File tree Expand file tree Collapse file tree 3 files changed +19
-40
lines changed Expand file tree Collapse file tree 3 files changed +19
-40
lines changed Original file line number Diff line number Diff line change @@ -11,23 +11,16 @@ jobs:
11
11
strategy :
12
12
fail-fast : false
13
13
matrix :
14
- include :
15
- # Legacy but still supported (Bundler 1.17)
16
- - ruby : " 2.1.9"
17
- bundler : " 1.17.3"
18
- - ruby : " 2.2.10"
19
- bundler : " 1.17.3"
20
-
21
- # Regular supported versions
22
- - ruby : " 2.3.8"
23
- - ruby : " 2.4.10"
24
- - ruby : " 2.5.9"
25
- - ruby : " 2.6.7"
26
- - ruby : " 2.7.8"
27
- - ruby : " 3.0.6"
28
- - ruby : " 3.1.4"
29
- - ruby : " 3.2.3"
30
- - ruby : " 3.3.0"
14
+ ruby :
15
+ - " 2.3.8"
16
+ - " 2.4.10"
17
+ - " 2.5.9"
18
+ - " 2.6.7"
19
+ - " 2.7.8"
20
+ - " 3.0.6"
21
+ - " 3.1.4"
22
+ - " 3.2.3"
23
+ - " 3.3.0"
31
24
32
25
steps :
33
26
- uses : actions/checkout@v4
36
29
uses : ruby/setup-ruby@v1
37
30
with :
38
31
ruby-version : ${{ matrix.ruby }}
39
-
40
- - name : Update RubyGems (for Ruby <= 2.2)
41
- if : matrix.ruby == '2.2.10' || matrix.ruby == '2.1.9'
42
- run : gem update --system 2.6.14
43
-
44
- - name : Clear old gem cache (for Ruby <= 2.2)
45
- if : matrix.ruby == '2.2.10' || matrix.ruby == '2.1.9'
46
- run : |
47
- gem sources --clear-all
48
- rm -rf ~/.gem
49
-
50
- - name : Install Bundler 1.17.3 (for Ruby <= 2.2)
51
- if : matrix.ruby == '2.2.10' || matrix.ruby == '2.1.9'
52
- run : gem install bundler -v 1.17.3 --force
32
+ bundler-cache : true # automatic bundle caching
53
33
54
34
- name : Install dependencies
55
35
run : bundle install --jobs 3 --retry 3
Original file line number Diff line number Diff line change @@ -4,18 +4,18 @@ require "rspec/core/rake_task"
4
4
desc "Run specs"
5
5
RSpec ::Core ::RakeTask . new ( :spec )
6
6
7
- # Run the suite under every Ruby installed via rbenv/rvm
7
+ # Run the suite under every Ruby installed via rbenv/rvm (2.3+ only)
8
8
namespace :multi do
9
9
task :spec do
10
10
rubies = %w[
11
- 2.1.9 2.2.10 2.3.8 2.4.10 2.5.9
12
- 2.6.7 2.7.8 3.0.6 3.1.4 3.2.3 3.3.0
11
+ 2.3.8 2.4.10 2.5.9
12
+ 2.6.7 2.7.8 3.0.6
13
+ 3.1.4 3.2.3 3.3.0
13
14
]
15
+
14
16
rubies . each do |v |
15
17
puts "\n === Ruby #{ v } ==="
16
- bundler = v < "2.3" ? "1.17.3" : "2"
17
- cmd = "RBENV_VERSION=#{ v } bundle _#{ bundler } _ exec rspec"
18
- system ( cmd ) || abort ( "Failed on #{ v } " )
18
+ system ( "RBENV_VERSION=#{ v } bundle exec rspec" ) || abort ( "Failed on #{ v } " )
19
19
end
20
20
end
21
21
end
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ Gem::Specification.new do |spec|
13
13
"simplifying instantiation and method invocation."
14
14
spec . homepage = "https://github.com/dbongo/callable"
15
15
spec . license = "MIT"
16
- spec . required_ruby_version = ">= 2.1 .0"
16
+ spec . required_ruby_version = ">= 2.3 .0"
17
17
18
18
spec . metadata = {
19
19
"homepage_uri" => spec . homepage ,
@@ -24,7 +24,6 @@ Gem::Specification.new do |spec|
24
24
spec . files = Dir [ "lib/**/*.rb" , "LICENSE" , "README.md" ]
25
25
spec . require_paths = [ "lib" ]
26
26
27
- spec . add_development_dependency "bundler" , ">= 1.17"
28
- spec . add_development_dependency "rake" , "~> 12.3"
27
+ spec . add_development_dependency "rake" , "~> 13.0"
29
28
spec . add_development_dependency "rspec" , "~> 3.0"
30
29
end
You can’t perform that action at this time.
0 commit comments