diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml index 88e4ddf..ba148e5 100644 --- a/.github/workflows/ruby.yml +++ b/.github/workflows/ruby.yml @@ -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 }} diff --git a/.rubocop.yml b/.rubocop.yml index 68938be..4f45101 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -7,7 +7,7 @@ inherit_gem: standard: config/base.yml AllCops: - TargetRubyVersion: 2.5 + TargetRubyVersion: 2.7 Exclude: - 'tmp/**/*' NewCops: enable diff --git a/dip.gemspec b/dip.gemspec index d26f053..a7d7a60 100644 --- a/dip.gemspec +++ b/dip.gemspec @@ -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" diff --git a/lib/dip/command.rb b/lib/dip/command.rb index 7216e38..0b46291 100644 --- a/lib/dip/command.rb +++ b/lib/dip/command.rb @@ -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