Skip to content

Commit 414d912

Browse files
authored
Ongoing rails support (#38)
* first * Second * Update Gemfile.lock
1 parent 343f935 commit 414d912

18 files changed

Lines changed: 99 additions & 86 deletions

.github/workflows/tests.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,15 @@ jobs:
1010
strategy:
1111
matrix:
1212
ruby:
13-
- '3.0'
14-
- '3.1'
1513
- '3.2'
1614
- '3.3'
15+
- '3.4'
16+
- '4.0'
1717
rails:
18-
- '6.1'
19-
- '7.0'
2018
- '7.1'
19+
- '7.2'
20+
- '8.0'
21+
- '8.1'
2122
runs-on: ubuntu-22.04
2223

2324
name: RSpec (Rails ${{ matrix.rails }}) (Ruby ${{ matrix.ruby }})

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,5 @@
1212

1313
gemfiles/*.lock
1414
.env.local
15+
*.gem
16+
/.claude

Appraisals

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
1-
appraise "rails-6.1" do
2-
gem "rails", "~> 6.1"
1+
appraise "rails-7.1" do
2+
gem "rails", "~> 7.1.0"
33
end
44

5-
appraise "rails-7.0" do
6-
gem "rails", "~> 7.0"
5+
appraise "rails-7.2" do
6+
gem "rails", "~> 7.2.0"
77
end
88

9-
appraise "rails-7.1" do
10-
gem "rails", "~> 7.1"
9+
appraise "rails-8.0" do
10+
gem "rails", "~> 8.0.0"
11+
end
12+
13+
appraise "rails-8.1" do
14+
gem "rails", "~> 8.1.0"
1115
end

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ruby:3.0
1+
FROM ruby:3.4
22

33
WORKDIR /usr/src/app
44

Gemfile.lock

Lines changed: 33 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,59 @@
11
PATH
22
remote: .
33
specs:
4-
sql_enum (1.0.0)
5-
activerecord (>= 6.1.0)
6-
activesupport (>= 6.1.0)
4+
sql_enum (2.0.0)
5+
activerecord (>= 7.1.0)
6+
activesupport (>= 7.1.0)
77
mysql2
88

99
GEM
1010
remote: https://rubygems.org/
1111
specs:
12-
activemodel (7.0.8)
13-
activesupport (= 7.0.8)
14-
activerecord (7.0.8)
15-
activemodel (= 7.0.8)
16-
activesupport (= 7.0.8)
17-
activesupport (7.0.8)
18-
concurrent-ruby (~> 1.0, >= 1.0.2)
12+
activemodel (8.1.2)
13+
activesupport (= 8.1.2)
14+
activerecord (8.1.2)
15+
activemodel (= 8.1.2)
16+
activesupport (= 8.1.2)
17+
timeout (>= 0.4.0)
18+
activesupport (8.1.2)
19+
base64
20+
bigdecimal
21+
concurrent-ruby (~> 1.0, >= 1.3.1)
22+
connection_pool (>= 2.2.5)
23+
drb
1924
i18n (>= 1.6, < 2)
25+
json
26+
logger (>= 1.4.2)
2027
minitest (>= 5.1)
21-
tzinfo (~> 2.0)
28+
securerandom (>= 0.3)
29+
tzinfo (~> 2.0, >= 2.0.5)
30+
uri (>= 0.13.1)
2231
appraisal (2.5.0)
2332
bundler
2433
rake
2534
thor (>= 0.14.0)
2635
awesome_print (1.9.2)
27-
concurrent-ruby (1.2.3)
36+
base64 (0.3.0)
37+
bigdecimal (4.0.1)
38+
concurrent-ruby (1.3.6)
39+
connection_pool (3.0.2)
2840
debug (1.9.1)
2941
irb (~> 1.10)
3042
reline (>= 0.3.8)
3143
diff-lcs (1.5.0)
44+
drb (2.2.3)
3245
i18n (1.14.1)
3346
concurrent-ruby (~> 1.0)
3447
io-console (0.7.2)
3548
irb (1.11.1)
3649
rdoc
3750
reline (>= 0.4.2)
38-
minitest (5.21.2)
51+
json (2.18.1)
52+
logger (1.7.0)
53+
minitest (6.0.1)
54+
prism (~> 1.5)
3955
mysql2 (0.5.5)
56+
prism (1.9.0)
4057
psych (5.1.2)
4158
stringio
4259
rake (13.1.0)
@@ -57,10 +74,13 @@ GEM
5774
diff-lcs (>= 1.2.0, < 2.0)
5875
rspec-support (~> 3.12.0)
5976
rspec-support (3.12.1)
77+
securerandom (0.4.1)
6078
stringio (3.1.0)
6179
thor (1.3.0)
80+
timeout (0.6.0)
6281
tzinfo (2.0.6)
6382
concurrent-ruby (~> 1.0)
83+
uri (1.1.1)
6484

6585
PLATFORMS
6686
ruby

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ Enables usage of native sql enums with ActiveRecord
44

55
## NOTE
66

7-
Version 1.0 of this is compatible with Rails 7 and above.
7+
Version 2.0 of this gem requires Rails 7.1+ and Ruby 3.2+.
88

9-
For Rails versions below Rails 7, use version 0.4
9+
For Rails 7.0 and 7.1, use version 1.0. For Rails versions below 7, use version 0.4.
1010

1111
## Installation
1212

@@ -30,7 +30,7 @@ Or install it yourself as:
3030

3131
Use a part of table definition:
3232
```ruby
33-
class CreateUsers < ActiveRecord::Migration[5.1]
33+
class CreateUsers < ActiveRecord::Migration[7.1]
3434
def change
3535
create_table :users do |t|
3636
t.enum :status, limit: [:active, :pending, :inactive], default: :active

gemfiles/rails_7.1.gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
source "https://rubygems.org"
44

5-
gem "rails", "~> 7.1"
5+
gem "rails", "~> 7.1.0"
66

77
gemspec path: "../"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
source "https://rubygems.org"
44

5-
gem "rails", "~> 6.1"
5+
gem "rails", "~> 7.2.0"
66

77
gemspec path: "../"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
source "https://rubygems.org"
44

5-
gem "rails", "~> 7.0"
5+
gem "rails", "~> 8.0.0"
66

77
gemspec path: "../"

gemfiles/rails_8.1.gemfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# This file was generated by Appraisal
2+
3+
source "https://rubygems.org"
4+
5+
gem "rails", "~> 8.1.0"
6+
7+
gemspec path: "../"

0 commit comments

Comments
 (0)