Skip to content

Commit

Permalink
feat: drop support Ruby 2.5 and 2.6
Browse files Browse the repository at this point in the history
  • Loading branch information
bibendi committed Nov 7, 2023
1 parent a50ff5b commit 71de51e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby: [ '2.5', '2.6', '2.7', '3.0', '3.1', '3.2' ]
ruby: [ '2.7', '3.0', '3.1', '3.2' ]
env:
RUBY_IMAGE: ${{ matrix.ruby }} # The image used in the Dockerfile
name: Ruby ${{ matrix.ruby }}
Expand Down
2 changes: 1 addition & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ inherit_gem:
standard: config/base.yml

AllCops:
TargetRubyVersion: 2.5
TargetRubyVersion: 2.7
Exclude:
- 'tmp/**/*'
NewCops: enable
Expand Down
2 changes: 1 addition & 1 deletion dip.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Gem::Specification.new do |spec|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.require_paths = ["lib"]

spec.required_ruby_version = ">= 2.5"
spec.required_ruby_version = ">= 2.7"

spec.add_dependency "thor", ">= 0.20", "< 2"

Expand Down
2 changes: 1 addition & 1 deletion lib/dip/command.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class Command
class ProgramRunner
def self.call(cmdline, env: {}, **options)
if cmdline.is_a?(Array)
::Kernel.exec(env, cmdline[0], *cmdline[1..-1], **options)
::Kernel.exec(env, cmdline[0], *cmdline[1..], **options)
else
::Kernel.exec(env, cmdline, **options)
end
Expand Down

0 comments on commit 71de51e

Please sign in to comment.