Skip to content

Commit c92b4ef

Browse files
authored
Merge pull request #205 from taketo1113/drop-ruby2.7-rails6.1
Drop support for Ruby 2.7 and Rails 6.1 and below
2 parents 5fd31dc + b889a17 commit c92b4ef

File tree

8 files changed

+15
-93
lines changed

8 files changed

+15
-93
lines changed

.github/workflows/main.yml

Lines changed: 13 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -12,43 +12,30 @@ jobs:
1212
strategy:
1313
fail-fast: false
1414
matrix:
15-
ruby: [2.7, '3.0', 3.1, 3.2, 3.3, 3.4]
16-
rails: ['6.0', '6.1', '7.0', '7.1', '7.2', '8.0', '8.1']
17-
include:
18-
- ruby: 2.6
19-
rails: '5.2'
20-
# rails 8.0 + sprockets-rails
21-
- ruby: 3.2
22-
rails: '8.0_sprockets'
23-
- ruby: 3.3
24-
rails: '8.0_sprockets'
25-
- ruby: 3.4
26-
rails: '8.0_sprockets'
27-
# rails 8.1 + sprockets-rails
28-
- ruby: 3.2
29-
rails: '8.1_sprockets'
30-
- ruby: 3.3
31-
rails: '8.1_sprockets'
32-
- ruby: 3.4
33-
rails: '8.1_sprockets'
15+
ruby: ['3.0', 3.1, 3.2, 3.3, 3.4]
16+
rails: ['7.0', '7.1', '7.2', '8.0', '8.0_sprockets', '8.1', '8.1_sprockets']
3417
exclude:
3518
# rails 8.1: support ruby 3.2+
36-
- ruby: 2.7
37-
rails: '8.1'
3819
- ruby: 3.0
3920
rails: '8.1'
4021
- ruby: 3.1
4122
rails: '8.1'
23+
# rails 8.1 + sprockets-rails
24+
- ruby: 3.0
25+
rails: '8.1_sprockets'
26+
- ruby: 3.1
27+
rails: '8.1_sprockets'
4228
# rails 8.0: support ruby 3.2+
43-
- ruby: 2.7
44-
rails: '8.0'
4529
- ruby: 3.0
4630
rails: '8.0'
4731
- ruby: 3.1
4832
rails: '8.0'
33+
# rails 8.0 + sprockets-rails
34+
- ruby: 3.0
35+
rails: '8.0_sprockets'
36+
- ruby: 3.1
37+
rails: '8.0_sprockets'
4938
# rails 7.2: support ruby 3.1+
50-
- ruby: 2.7
51-
rails: '7.2'
5239
- ruby: 3.0
5340
rails: '7.2'
5441

@@ -58,7 +45,7 @@ jobs:
5845

5946
steps:
6047
- name: Checkout code
61-
uses: actions/checkout@v4
48+
uses: actions/checkout@v6
6249

6350
- name: Setup Ruby
6451
uses: ruby/setup-ruby@v1

Appraisals

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,3 @@
1-
appraise "rails-5.2" do
2-
gem "rails", "~> 5.2.7"
3-
end
4-
5-
appraise "rails-6.0" do
6-
gem "rails", "~> 6.0.4"
7-
8-
# for ruby 3.4+
9-
gem "base64"
10-
gem "bigdecimal"
11-
gem "mutex_m"
12-
gem "drb"
13-
14-
# Fix https://github.com/rails/rails/issues/54260
15-
gem "concurrent-ruby", "1.3.4"
16-
end
17-
18-
appraise "rails-6.1" do
19-
gem "rails", "~> 6.1.5"
20-
21-
# for ruby 3.4+
22-
gem "base64"
23-
gem "bigdecimal"
24-
gem "mutex_m"
25-
gem "drb"
26-
27-
# Fix https://github.com/rails/rails/issues/54260
28-
gem "concurrent-ruby", "1.3.4"
29-
end
30-
311
appraise "rails-7.0" do
322
gem "rails", "~> 7.0.2"
333
gem "sprockets-rails"
@@ -37,9 +7,6 @@ appraise "rails-7.0" do
377
gem "bigdecimal"
388
gem "mutex_m"
399
gem "drb"
40-
41-
# Fix https://github.com/rails/rails/issues/54260
42-
gem "concurrent-ruby", "1.3.4"
4310
end
4411

4512
appraise "rails-7.1" do

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Every time you generate a controller or scaffold, you'll get Slim templates.
2020

2121
If you have existing `.erb` templates, check out our guide [How to convert your `.erb` templates to `.slim`](https://github.com/slim-template/slim/wiki/Template-Converters-ERB-to-SLIM) on how to achieve this.
2222

23-
This gem is [tested with Ruby on Rails 5.2+](/.github/workflows/main.yml).
23+
This gem is [tested with Ruby on Rails 7.0+](/.github/workflows/main.yml).
2424

2525
## History
2626

gemfiles/rails_5.2.gemfile

Lines changed: 0 additions & 7 deletions
This file was deleted.

gemfiles/rails_6.0.gemfile

Lines changed: 0 additions & 12 deletions
This file was deleted.

gemfiles/rails_6.1.gemfile

Lines changed: 0 additions & 12 deletions
This file was deleted.

gemfiles/rails_7.0.gemfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,5 @@ gem "base64"
88
gem "bigdecimal"
99
gem "mutex_m"
1010
gem "drb"
11-
gem "concurrent-ruby", "1.3.4"
1211

1312
gemspec path: "../"

slim-rails.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Gem::Specification.new do |spec|
1616
spec.files = Dir["{lib}/**/*", "README.md", "CHANGELOG.md", "LICENSE"]
1717
spec.require_paths = ["lib"]
1818

19-
spec.required_ruby_version = ">= 2.0.0"
19+
spec.required_ruby_version = ">= 3.0.0"
2020

2121
spec.add_runtime_dependency "actionpack", [">= 3.1"]
2222
spec.add_runtime_dependency "railties", [">= 3.1"]

0 commit comments

Comments
 (0)