Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Commit

Permalink
Update to support ruby 3.2 (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
poloka authored Jul 6, 2023
1 parent 7d1ebc5 commit 25f8ed4
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
fail-fast: false
matrix:
ruby:
- 2.7
- 3.2
name: Ruby-${{matrix.ruby}}
steps:
- name: Check out
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 2 additions & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ require:
- rubocop-performance

AllCops:
TargetRubyVersion: 3.2
DisabledByDefault: true
Exclude:
- 'bin/{bundle,bundle-audit,bundler-audit,rackup,rake,rspec,rubocop}'
Expand Down Expand Up @@ -648,7 +649,7 @@ Style/GlobalVars:
Style/GuardClause:
Enabled: true
Style/HashSyntax:
Enabled: true
Enabled: false
Style/IdenticalConditionalBranches:
Enabled: true
Style/IfInsideElse:
Expand Down
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ruby-2.6
ruby-3.2
5 changes: 3 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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))
# 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))
9 changes: 6 additions & 3 deletions github_bot.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion lib/github_bot/version.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true

module GithubBot
VERSION = '0.2.3'
VERSION = '0.3.0'

# version module
module Version
Expand Down

0 comments on commit 25f8ed4

Please sign in to comment.