Skip to content

Commit db12da8

Browse files
authored
Merge pull request #70 from DannyBen/drop/ruby2-support
Drop support for Ruby 2.x
2 parents 5c8471b + b35e422 commit db12da8

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111

1212
strategy:
13-
matrix: { ruby: ['2.7', '3.0', '3.1', '3.2', head] }
13+
matrix: { ruby: ['3.0', '3.1', '3.2', head] }
1414

1515
steps:
1616
- name: Checkout code

.rubocop.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ inherit_mode:
1313
- Exclude
1414

1515
AllCops:
16-
TargetRubyVersion: 2.7
16+
TargetRubyVersion: 3.0
1717
Include:
1818
- '**/runfile'
1919
- '**/*.runfile'

examples/helpers/runfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ require 'json'
33
# Define helper methods
44
helpers do
55
def files
6-
Dir['*'].sort
6+
Dir['*']
77
end
88
end
99

lib/runfile/userfile.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def full_name
4646
def guests
4747
@guests ||= begin
4848
result = imports.map do |glob, context|
49-
Dir.glob("#{glob}.runfile").sort.map do |guest_path|
49+
Dir.glob("#{glob}.runfile").map do |guest_path|
5050
Userfile.new guest_path, context: context, host: self
5151
end
5252
end

runfile.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Gem::Specification.new do |s|
1919
s.executables = ['run']
2020
s.homepage = 'https://github.com/DannyBen/runfile'
2121
s.license = 'MIT'
22-
s.required_ruby_version = '>= 2.7'
22+
s.required_ruby_version = '>= 3.0'
2323

2424
s.metadata = {
2525
'homepage_uri' => 'https://github.com/DannyBen/runfile',

spec/fixtures/sample_import_gem/sample_import_gem.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ Gem::Specification.new do |s|
1010
s.email = '[email protected]'
1111
s.files = Dir['*.runfile']
1212
s.license = 'MIT'
13-
s.required_ruby_version = '>= 2.7'
13+
s.required_ruby_version = '>= 3.0'
1414
s.metadata['rubygems_mfa_required'] = 'true'
1515
end

spec/runfile/bin_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
describe 'bin/run' do
22
let(:bin) { File.expand_path('bin/run', '../../../') }
3-
let(:leeway) { RUBY_VERSION < "3.2.0" ? 0 : 33 }
3+
let(:leeway) { RUBY_VERSION < '3.2.0' ? 0 : 33 }
44

55
context 'when the file contains a syntax error' do
66
it 'errors gracefully' do

0 commit comments

Comments
 (0)