Skip to content

Commit

Permalink
Bump minimum required Ruby to 2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
iMacTia committed Nov 4, 2022
1 parent 5194034 commit 3ddac7e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ AllCops:
DisplayCopNames: true
DisplayStyleGuide: true
NewCops: enable
TargetRubyVersion: 2.5
TargetRubyVersion: 2.7

Metrics/BlockLength:
Exclude:
Expand Down
2 changes: 1 addition & 1 deletion lib/sidekiq/logging/shared.rb
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def filter_args
def deep_stringify!(args)
case args
when Hash
args.map { |key, value| [deep_stringify!(key), deep_stringify!(value)] }.to_h
args.to_h { |key, value| [deep_stringify!(key), deep_stringify!(value)] }
when Array
args.map! { |val| deep_stringify!(val) }
else
Expand Down
2 changes: 1 addition & 1 deletion sidekiq-logstash.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Gem::Specification.new do |spec|

spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
spec.require_paths = ['lib']
spec.required_ruby_version = '>= 2.5.0'
spec.required_ruby_version = '>= 2.7.0'

spec.add_dependency 'logstash-event', '~> 1.2'
spec.add_dependency 'sidekiq', '~> 7.0'
Expand Down

0 comments on commit 3ddac7e

Please sign in to comment.