diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 908261f..9ea7eb0 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -13,7 +13,7 @@ jobs: fail-fast: false matrix: ruby: - - 2.7 + - 3.2 name: Ruby-${{matrix.ruby}} steps: - name: Check out diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e150165..815ad6d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,9 +18,9 @@ jobs: fail-fast: false matrix: ruby: - - 2.6 - 2.7 - 3.0 + - 3.2 name: Ruby-${{matrix.ruby}} continue-on-error: ${{matrix.ruby == 'head'}} steps: diff --git a/.rubocop.yml b/.rubocop.yml index cf1eaa3..5cbe513 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -2,6 +2,7 @@ require: - rubocop-performance AllCops: + TargetRubyVersion: 3.2 DisabledByDefault: true Exclude: - 'bin/{bundle,bundle-audit,bundler-audit,rackup,rake,rspec,rubocop}' @@ -648,7 +649,7 @@ Style/GlobalVars: Style/GuardClause: Enabled: true Style/HashSyntax: - Enabled: true + Enabled: false Style/IdenticalConditionalBranches: Enabled: true Style/IfInsideElse: diff --git a/.ruby-version b/.ruby-version index d5a6340..dcb7d80 100644 --- a/.ruby-version +++ b/.ruby-version @@ -1 +1 @@ -ruby-2.6 \ No newline at end of file +ruby-3.2 diff --git a/CHANGELOG.md b/CHANGELOG.md index 004ef83..3420a97 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,6 @@ # 0.1.0 - Initial release -# 0.2.3 -- Add Danger validation for changelog and prepare for next patch release ([#7](https://github.com/cerner/github_bot-ruby/pull/7)) \ No newline at end of file +# 0.3.0 +- Add Danger validation for changelog and prepare for next patch release ([#7](https://github.com/cerner/github_bot-ruby/pull/7)) +- Update to support ruby 3.2 ([#8](https://github.com/cerner/github_bot-ruby/pull/8)) diff --git a/github_bot.gemspec b/github_bot.gemspec index e29a782..780e2ab 100644 --- a/github_bot.gemspec +++ b/github_bot.gemspec @@ -27,10 +27,13 @@ Gem::Specification.new do |spec| spec.executables = spec.files.grep(/^bin\//) { |f| File.basename(f) } spec.require_paths = ['lib'] - spec.required_ruby_version = '>= 2.6.2' + # rubocop:disable Gemspec/RequiredRubyVersion + # The intent is for supportability from ruby 2.7 and greater + spec.required_ruby_version = '>= 2.7.6' + # rubocop:enable Gemspec/RequiredRubyVersion spec.add_dependency 'git', '~> 1.0' - spec.add_dependency 'jwt', '~> 1.0' - spec.add_dependency 'octokit', '~> 4.18' + spec.add_dependency 'jwt', '~> 2.0' + spec.add_dependency 'octokit', '>= 4.18' spec.add_dependency 'rails', '>= 5.0.0.1', '< 7.0.0' end diff --git a/lib/github_bot/version.rb b/lib/github_bot/version.rb index 3563412..58c1ed5 100644 --- a/lib/github_bot/version.rb +++ b/lib/github_bot/version.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true module GithubBot - VERSION = '0.2.3' + VERSION = '0.3.0' # version module module Version