Skip to content

Commit 6867ed7

Browse files
committed
chore: drop < 2.3 support - clean CI, Rakefile, gemspec
1 parent 7d5f37e commit 6867ed7

File tree

3 files changed

+19
-40
lines changed

3 files changed

+19
-40
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,16 @@ jobs:
1111
strategy:
1212
fail-fast: false
1313
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"
3124

3225
steps:
3326
- uses: actions/checkout@v4
@@ -36,20 +29,7 @@ jobs:
3629
uses: ruby/setup-ruby@v1
3730
with:
3831
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
5333

5434
- name: Install dependencies
5535
run: bundle install --jobs 3 --retry 3

Rakefile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,18 @@ require "rspec/core/rake_task"
44
desc "Run specs"
55
RSpec::Core::RakeTask.new(:spec)
66

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)
88
namespace :multi do
99
task :spec do
1010
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
1314
]
15+
1416
rubies.each do |v|
1517
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}")
1919
end
2020
end
2121
end

callable.gemspec

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Gem::Specification.new do |spec|
1313
"simplifying instantiation and method invocation."
1414
spec.homepage = "https://github.com/dbongo/callable"
1515
spec.license = "MIT"
16-
spec.required_ruby_version = ">= 2.1.0"
16+
spec.required_ruby_version = ">= 2.3.0"
1717

1818
spec.metadata = {
1919
"homepage_uri" => spec.homepage,
@@ -24,7 +24,6 @@ Gem::Specification.new do |spec|
2424
spec.files = Dir["lib/**/*.rb", "LICENSE", "README.md"]
2525
spec.require_paths = ["lib"]
2626

27-
spec.add_development_dependency "bundler", ">= 1.17"
28-
spec.add_development_dependency "rake", "~> 12.3"
27+
spec.add_development_dependency "rake", "~> 13.0"
2928
spec.add_development_dependency "rspec", "~> 3.0"
3029
end

0 commit comments

Comments
 (0)