Skip to content

Commit 38434c9

Browse files
authored
Merge pull request #30 from talkable/rails-8.1
Rails 8.1
2 parents 1be5f1d + d853d66 commit 38434c9

File tree

9 files changed

+29
-43
lines changed

9 files changed

+29
-43
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,28 +5,28 @@ jobs:
55
strategy:
66
fail-fast: false
77
matrix:
8-
ruby: ['3.0', '3.1', '3.2', '3.3']
9-
gemfile:
10-
- activemodel_6_1
11-
- activemodel_7_0
12-
- activemodel_7_1
13-
- activemodel_7_2
14-
- activemodel_8_0
8+
ruby: ['3.0', '3.1', '3.2', '3.3', '3.4']
9+
rails: ['7.1', '7.2', '8.0', '8.1']
1510
exclude:
1611
# Rails 7.2 requires Ruby >= 3.1.0
1712
- ruby: '3.0'
18-
gemfile: 'activemodel_7_2'
13+
rails: '7.2'
1914
# Rails 8.0 requires Ruby >= 3.2.0
2015
- ruby: '3.0'
21-
gemfile: 'activemodel_8_0'
16+
rails: '8.0'
2217
- ruby: '3.1'
23-
gemfile: 'activemodel_8_0'
24-
name: Ruby ${{ matrix.ruby }}, ${{ matrix.gemfile }}
18+
rails: '8.0'
19+
# Rails 8.1 requires Ruby >= 3.2.0
20+
- ruby: '3.0'
21+
rails: '8.1'
22+
- ruby: '3.1'
23+
rails: '8.1'
24+
name: Ruby ${{ matrix.ruby }}, Rails ${{ matrix.rails }}
2525
runs-on: ubuntu-latest
2626
env:
27-
BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
27+
BUNDLE_GEMFILE: gemfiles/activemodel_${{ matrix.rails }}.gemfile
2828
steps:
29-
- uses: actions/checkout@v4
29+
- uses: actions/checkout@v5
3030
- uses: ruby/setup-ruby@v1
3131
with:
3232
ruby-version: ${{ matrix.ruby }}

.github/workflows/gem-push.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,11 @@ jobs:
1212
packages: write
1313

1414
steps:
15-
- uses: actions/checkout@v4
16-
- name: Set up Ruby 3.2
17-
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
18-
# change this to (see https://github.com/ruby/setup-ruby#versioning):
19-
# uses: ruby/setup-ruby@v1
20-
uses: ruby/setup-ruby@55283cc23133118229fd3f97f9336ee23a179fcf # v1.146.0
15+
- uses: actions/checkout@v5
16+
- name: Set up Ruby 3.4
17+
uses: ruby/setup-ruby@v1
2118
with:
22-
ruby-version: 3.2.2
19+
ruby-version: 3.4.7
2320

2421
- name: Publish to GPR
2522
run: |

accept_values_for.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Gem::Specification.new do |spec|
2525
spec.metadata["homepage_uri"] = spec.homepage
2626
spec.metadata["source_code_uri"] = spec.homepage
2727

28-
spec.add_dependency "activemodel", ">= 6.1", "< 8.1"
28+
spec.add_dependency "activemodel", ">= 7.1", "< 8.2"
2929
spec.add_dependency "rspec", ">= 3.10", "< 4.0"
3030

3131
spec.add_development_dependency "bundler", "~> 2.2"

gemfiles/activemodel_6_1.gemfile

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

gemfiles/activemodel_7_0.gemfile

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

gemfiles/activemodel_8.1.gemfile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
source "https://rubygems.org"
2+
3+
gemspec path: ".."
4+
5+
gem "activemodel", "~> 8.1.0"
6+
7+
group :test do
8+
gem "activerecord", "~> 8.1.0", require: "active_record"
9+
gem "rspec", "~> 3.13"
10+
gem "sqlite3", "~> 2.2"
11+
end

0 commit comments

Comments
 (0)