Skip to content

Commit a3fa82d

Browse files
committed
Update the CI Ruby / Rails versions
1 parent d23e86a commit a3fa82d

5 files changed

Lines changed: 17 additions & 19 deletions

File tree

.github/workflows/main.yml

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,15 @@ jobs:
1414
strategy:
1515
fail-fast: false
1616
matrix:
17-
ruby: [ 2.7, 3.0, 3.1, 3.2 ]
17+
ruby: [ '3.0', '3.1', '3.2', '3.3', '3.4' ]
1818
gemfile:
19-
- rails_5_2
20-
- rails_6_0
2119
- rails_6_1
2220
- rails_7_0
2321
- rails_7_1
22+
- rails_8_0
2423
exclude:
25-
- ruby: '3.0'
26-
gemfile: rails_5_2
27-
- ruby: '3.1'
28-
gemfile: rails_5_2
29-
- ruby: '3.2'
30-
gemfile: rails_5_2
31-
- ruby: '3.2'
32-
gemfile: rails_6
24+
- ruby: '3.1'
25+
gemfile: rails_8_0
3326
env:
3427
BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
3528

@@ -43,8 +36,8 @@ jobs:
4336
cache-version: ${{ matrix.gemfile }}
4437
- name: Install dependencies
4538
run: |
46-
if [ "${{matrix.ruby}}" = "2.7" ]; then
47-
gem update --system 3.4.22
39+
if [ "${{matrix.ruby}}" = "3.0" ]; then
40+
gem update --system 3.5.23
4841
else
4942
gem update --system
5043
fi

Gemfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,8 @@ source "https://rubygems.org"
44

55
# Specify your gem's dependencies in tinypacker.gemspec
66
gemspec
7+
8+
if Gem::Version.create(RUBY_VERSION) >= Gem::Version.create("3.4.0")
9+
gem "base64"
10+
gem "bigdecimal"
11+
end

gemfiles/rails_5_2.gemfile

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

gemfiles/rails_8_0.gemfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
source "https://rubygems.org"
2+
3+
gem "rails", "~> 8.0.0"
4+
5+
gemspec path: '../'

tinypacker.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
1212
spec.description = spec.summary
1313
spec.homepage = "https://github.com/taogawa/tinypacker"
1414
spec.license = "MIT"
15-
spec.required_ruby_version = ">= 2.6.0"
15+
spec.required_ruby_version = ">= 3.0.0"
1616

1717
spec.metadata["homepage_uri"] = spec.homepage
1818
spec.metadata["source_code_uri"] = "https://github.com/taogawa/tinypacker"

0 commit comments

Comments
 (0)