Skip to content

Commit 0393801

Browse files
committed
add test for rails 7.2 and drop 7.0
1 parent 340ed8c commit 0393801

8 files changed

+185
-144
lines changed

.github/workflows/test.yml

+6-3
Original file line numberDiff line numberDiff line change
@@ -21,21 +21,24 @@ jobs:
2121
- ruby: 2.7.3
2222
gemfile: Gemfile.6-1
2323
- ruby: 2.7.3
24-
gemfile: Gemfile.7-0
24+
gemfile: Gemfile.7-1
2525
- ruby: 3.2.0
2626
gemfile: Gemfile.6-1
2727
- ruby: 3.2.0
28-
gemfile: Gemfile.7-0
28+
gemfile: Gemfile.7-1
2929
- ruby: 3.3.4
3030
gemfile: Gemfile.7-1
31+
- ruby: 3.3.4
32+
gemfile: Gemfile.7-2
3133
env:
3234
BUNDLE_GEMFILE: "${{ matrix.gemfile }}"
3335
steps:
34-
- uses: actions/checkout@v2
36+
- uses: actions/checkout@v4
3537
- name: Install ruby
3638
uses: ruby/setup-ruby@v1
3739
with:
3840
ruby-version: "${{ matrix.ruby }}"
41+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
3942
- name: Bundle
4043
run: |
4144
gem install bundler:1.17.3

Gemfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Gemfile.7-1
1+
Gemfile.7-2

Gemfile.7-0.lock

-133
This file was deleted.

Gemfile.7-1.lock

+3-3
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ GEM
7676
mini_portile2 (2.8.7)
7777
minitest (5.24.1)
7878
mutex_m (0.2.0)
79-
nokogiri (1.16.6)
79+
nokogiri (1.15.6)
8080
mini_portile2 (~> 2.8.2)
8181
racc (~> 1.4)
8282
psych (5.1.2)
@@ -134,7 +134,7 @@ GEM
134134
rspec_candy (0.5.1)
135135
rspec
136136
sneaky-save
137-
shoulda-matchers (6.2.0)
137+
shoulda-matchers (5.3.0)
138138
activesupport (>= 5.2.0)
139139
sneaky-save (0.1.3)
140140
activerecord (>= 3.2.0)
@@ -164,4 +164,4 @@ DEPENDENCIES
164164
sqlite3 (~> 1.7)
165165

166166
BUNDLED WITH
167-
2.5.15
167+
2.4.22

Gemfile.7-0 Gemfile.7-2

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
source 'https://rubygems.org'
22

33
# Runtime dependencies
4-
gem 'railties', '>= 7.0.1'
4+
gem 'railties', '~> 7.2'
55
gem 'assignable_values'
66

77
# Development dependencies
88
gem 'rspec'
99
gem 'rspec-rails'
1010
gem 'rspec_candy'
1111
gem 'shoulda-matchers'
12-
gem 'sqlite3'
12+
gem 'sqlite3', "~> 1.7"
1313
gem 'database_cleaner'
1414
gem 'gemika', '>= 0.8.1'
1515

Gemfile.7-2.lock

+171
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,171 @@
1+
PATH
2+
remote: .
3+
specs:
4+
consul (1.3.2)
5+
activerecord (>= 3.2)
6+
activesupport (>= 3.2)
7+
edge_rider (>= 0.3.0)
8+
memoized (>= 1.0.2)
9+
railties (>= 3.2)
10+
11+
GEM
12+
remote: https://rubygems.org/
13+
specs:
14+
actionpack (7.2.2)
15+
actionview (= 7.2.2)
16+
activesupport (= 7.2.2)
17+
nokogiri (>= 1.8.5)
18+
racc
19+
rack (>= 2.2.4, < 3.2)
20+
rack-session (>= 1.0.1)
21+
rack-test (>= 0.6.3)
22+
rails-dom-testing (~> 2.2)
23+
rails-html-sanitizer (~> 1.6)
24+
useragent (~> 0.16)
25+
actionview (7.2.2)
26+
activesupport (= 7.2.2)
27+
builder (~> 3.1)
28+
erubi (~> 1.11)
29+
rails-dom-testing (~> 2.2)
30+
rails-html-sanitizer (~> 1.6)
31+
activemodel (7.2.2)
32+
activesupport (= 7.2.2)
33+
activerecord (7.2.2)
34+
activemodel (= 7.2.2)
35+
activesupport (= 7.2.2)
36+
timeout (>= 0.4.0)
37+
activesupport (7.2.2)
38+
base64
39+
benchmark (>= 0.3)
40+
bigdecimal
41+
concurrent-ruby (~> 1.0, >= 1.3.1)
42+
connection_pool (>= 2.2.5)
43+
drb
44+
i18n (>= 1.6, < 2)
45+
logger (>= 1.4.2)
46+
minitest (>= 5.1)
47+
securerandom (>= 0.3)
48+
tzinfo (~> 2.0, >= 2.0.5)
49+
assignable_values (1.0.0)
50+
activerecord (>= 2.3)
51+
base64 (0.2.0)
52+
benchmark (0.4.0)
53+
bigdecimal (3.1.8)
54+
builder (3.3.0)
55+
concurrent-ruby (1.3.3)
56+
connection_pool (2.4.1)
57+
crass (1.0.6)
58+
database_cleaner (2.0.2)
59+
database_cleaner-active_record (>= 2, < 3)
60+
database_cleaner-active_record (2.2.0)
61+
activerecord (>= 5.a)
62+
database_cleaner-core (~> 2.0.0)
63+
database_cleaner-core (2.0.1)
64+
diff-lcs (1.5.1)
65+
drb (2.2.1)
66+
edge_rider (2.3.0)
67+
activerecord (>= 3.2)
68+
erubi (1.13.0)
69+
gemika (0.8.3)
70+
i18n (1.14.5)
71+
concurrent-ruby (~> 1.0)
72+
io-console (0.7.2)
73+
irb (1.14.1)
74+
rdoc (>= 4.0.0)
75+
reline (>= 0.4.2)
76+
logger (1.6.1)
77+
loofah (2.22.0)
78+
crass (~> 1.0.2)
79+
nokogiri (>= 1.12.0)
80+
memoized (1.1.1)
81+
mini_portile2 (2.8.7)
82+
minitest (5.24.1)
83+
nokogiri (1.16.6)
84+
mini_portile2 (~> 2.8.2)
85+
racc (~> 1.4)
86+
psych (5.2.0)
87+
stringio
88+
racc (1.8.0)
89+
rack (3.1.7)
90+
rack-session (2.0.0)
91+
rack (>= 3.0.0)
92+
rack-test (2.1.0)
93+
rack (>= 1.3)
94+
rackup (2.2.1)
95+
rack (>= 3)
96+
rails-dom-testing (2.2.0)
97+
activesupport (>= 5.0.0)
98+
minitest
99+
nokogiri (>= 1.6)
100+
rails-html-sanitizer (1.6.0)
101+
loofah (~> 2.21)
102+
nokogiri (~> 1.14)
103+
railties (7.2.2)
104+
actionpack (= 7.2.2)
105+
activesupport (= 7.2.2)
106+
irb (~> 1.13)
107+
rackup (>= 1.0.0)
108+
rake (>= 12.2)
109+
thor (~> 1.0, >= 1.2.2)
110+
zeitwerk (~> 2.6)
111+
rake (13.2.1)
112+
rdoc (6.7.0)
113+
psych (>= 4.0.0)
114+
reline (0.5.11)
115+
io-console (~> 0.5)
116+
rspec (3.13.0)
117+
rspec-core (~> 3.13.0)
118+
rspec-expectations (~> 3.13.0)
119+
rspec-mocks (~> 3.13.0)
120+
rspec-core (3.13.0)
121+
rspec-support (~> 3.13.0)
122+
rspec-expectations (3.13.1)
123+
diff-lcs (>= 1.2.0, < 2.0)
124+
rspec-support (~> 3.13.0)
125+
rspec-mocks (3.13.1)
126+
diff-lcs (>= 1.2.0, < 2.0)
127+
rspec-support (~> 3.13.0)
128+
rspec-rails (6.1.3)
129+
actionpack (>= 6.1)
130+
activesupport (>= 6.1)
131+
railties (>= 6.1)
132+
rspec-core (~> 3.13)
133+
rspec-expectations (~> 3.13)
134+
rspec-mocks (~> 3.13)
135+
rspec-support (~> 3.13)
136+
rspec-support (3.13.1)
137+
rspec_candy (0.5.1)
138+
rspec
139+
sneaky-save
140+
securerandom (0.3.2)
141+
shoulda-matchers (6.2.0)
142+
activesupport (>= 5.2.0)
143+
sneaky-save (0.1.3)
144+
activerecord (>= 3.2.0)
145+
sqlite3 (1.7.3)
146+
mini_portile2 (~> 2.8.0)
147+
stringio (3.1.2)
148+
thor (1.3.2)
149+
timeout (0.4.1)
150+
tzinfo (2.0.6)
151+
concurrent-ruby (~> 1.0)
152+
useragent (0.16.10)
153+
zeitwerk (2.7.1)
154+
155+
PLATFORMS
156+
ruby
157+
158+
DEPENDENCIES
159+
assignable_values
160+
consul!
161+
database_cleaner
162+
gemika (>= 0.8.1)
163+
railties (~> 7.2)
164+
rspec
165+
rspec-rails
166+
rspec_candy
167+
shoulda-matchers
168+
sqlite3 (~> 1.7)
169+
170+
BUNDLED WITH
171+
2.5.15

Gemfile.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Gemfile.7-1.lock
1+
Gemfile.7-2.lock

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Consul is an authorization solution for Ruby on Rails where you describe _sets o
77
We have used Consul in combination with [assignable_values](https://github.com/makandra/assignable_values) to solve a variety of authorization requirements ranging from boring to bizarre.
88
Also see our crash course video: [Solving bizare authorization requirements with Rails](http://bizarre-authorization.talks.makandra.com/).
99

10-
Consul is tested with Rails 5.2, 6.1, 7.0, 7.1 on Ruby 2.5, 2.7, 3.2, 3.3 (only if supported, for each Ruby/Rails combination). If you need support for Rails 3.2, please use [v0.13.2](https://github.com/makandra/consul/tree/v0.13.2).
10+
Consul is tested with Rails 5.2, 6.1, 7.1, 7.2 on Ruby 2.5, 2.7, 3.2, 3.3 (only if supported, for each Ruby/Rails combination). If you need support for Rails 3.2, please use [v0.13.2](https://github.com/makandra/consul/tree/v0.13.2).
1111

1212
## Describing access to your application
1313

0 commit comments

Comments
 (0)