consent 2.4.0 → 2.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9b93a2b46698ef7ba24642972b3c255ece007f5a2184a51b540bf30d9008586a
4
- data.tar.gz: 4133a6cfa57b200b5e9c238d979ec7e21c8e0d35a2991a1a0a4c0b7bef71a977
3
+ metadata.gz: 8a7f3d0bface397869a595d46763a6c17aafa1563e074d7b658454fc0b1e4c2f
4
+ data.tar.gz: 301924b497164138ee60d4de3970caa9dee41ebb01697ecccf7ef9fc9202ee70
5
5
  SHA512:
6
- metadata.gz: a83602c37d57879260c1a13157bb65209c606826187e44ef4764a86497bee2a27ab0088d1b7c082de1fc95d34c225481a06967ec3d56f2344280edf6b248f777
7
- data.tar.gz: 9267bfa0bcf4575dc7080bb275ca3f9515c5d2d55568244bdd66aa9fd21720e3fcdb44ce9ef1d11f08bde3f7c1bec4ca0a402b9d086784d553aa1acf12c4234e
6
+ metadata.gz: 7fdc2b3e5ff872bdc11da1688fb362d360f33e217ea5d5ffe6e8a9e2e0438454e94a7402d8c0db32ca738524e690e007a14a9e2ccdc51401a13926887d44d949
7
+ data.tar.gz: 78e9b088d5e3dd9772944155ae8704f33a9b474c952c9513c78f73bff420871eee1352e8d692dd42b5a924e93bf4083023c34574300db6003adb4ad070f08224
data/Appraisals CHANGED
@@ -1,15 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- appraise "rails-6-1" do
4
- gem "rails", "6.1.7.7"
5
- end
6
-
7
- appraise "rails-7-0" do
8
- gem "rails", "7.0.8.7"
9
- end
10
-
11
3
  appraise "rails-7-1" do
12
- gem "rails", "7.1.3.2"
4
+ gem "rails", "7.1.5.2"
13
5
  end
14
6
 
15
7
  appraise "rails-7-2" do
data/Gemfile CHANGED
@@ -5,15 +5,4 @@ source "https://rubygems.org"
5
5
  # Specify your gem's dependencies in consent.gemspec
6
6
  gemspec
7
7
 
8
- gem "base64", "~> 0.3.0" # Hold base64 to support Ruby 3.0
9
- gem "bigdecimal", "~> 3.2.0", "< 3.2.3" # Hold bigdecimal to support Ruby 3.0
10
- gem "connection_pool", "~> 2.4.1" # Hold connection_pool to support Ruby 3.0 (2.5.3 requires Ruby 3.1+)
11
- gem "erb", "~> 4.0.4" # Hold erb to support Ruby 3.0
12
- gem "logger", "~> 1.7.0" # Hold logger to support Ruby 3.0
13
- gem "minitest", "~> 5.25.5" # Hold minitest to support Ruby 3.0
14
- gem "mutex_m", "~> 0.3.0" # Hold mutex_m to support Ruby 3.0
15
- gem "net-imap", "< 0.5.0"
16
- gem "nokogiri", "~> 1.17.0", "< 1.18" # Hold nokogiri to support Ruby 3.0
17
8
  gem "rubocop-powerhome", path: "../rubocop-powerhome"
18
- gem "securerandom", "< 0.4" # Hold securerandom to support Ruby 3.0
19
- gem "zeitwerk", "< 2.7.0"
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../rubocop-powerhome
3
3
  specs:
4
- rubocop-powerhome (0.6.0)
4
+ rubocop-powerhome (0.6.1)
5
5
  rubocop (= 1.82.1)
6
6
  rubocop-performance
7
7
  rubocop-rails
@@ -11,15 +11,15 @@ PATH
11
11
  PATH
12
12
  remote: .
13
13
  specs:
14
- consent (2.4.0)
14
+ consent (2.5.0)
15
15
  cancancan (= 3.2.1)
16
16
 
17
17
  GEM
18
18
  remote: https://rubygems.org/
19
19
  specs:
20
- actionpack (8.0.2)
21
- actionview (= 8.0.2)
22
- activesupport (= 8.0.2)
20
+ actionpack (8.1.3)
21
+ actionview (= 8.1.3)
22
+ activesupport (= 8.1.3)
23
23
  nokogiri (>= 1.8.5)
24
24
  rack (>= 2.2.4)
25
25
  rack-session (>= 1.0.1)
@@ -27,26 +27,26 @@ GEM
27
27
  rails-dom-testing (~> 2.2)
28
28
  rails-html-sanitizer (~> 1.6)
29
29
  useragent (~> 0.16)
30
- actionview (8.0.2)
31
- activesupport (= 8.0.2)
30
+ actionview (8.1.3)
31
+ activesupport (= 8.1.3)
32
32
  builder (~> 3.1)
33
33
  erubi (~> 1.11)
34
34
  rails-dom-testing (~> 2.2)
35
35
  rails-html-sanitizer (~> 1.6)
36
- activemodel (8.0.2)
37
- activesupport (= 8.0.2)
38
- activerecord (8.0.2)
39
- activemodel (= 8.0.2)
40
- activesupport (= 8.0.2)
36
+ activemodel (8.1.3)
37
+ activesupport (= 8.1.3)
38
+ activerecord (8.1.3)
39
+ activemodel (= 8.1.3)
40
+ activesupport (= 8.1.3)
41
41
  timeout (>= 0.4.0)
42
- activesupport (8.0.2)
42
+ activesupport (8.1.3)
43
43
  base64
44
- benchmark (>= 0.3)
45
44
  bigdecimal
46
45
  concurrent-ruby (~> 1.0, >= 1.3.1)
47
46
  connection_pool (>= 2.2.5)
48
47
  drb
49
48
  i18n (>= 1.6, < 2)
49
+ json
50
50
  logger (>= 1.4.2)
51
51
  minitest (>= 5.1)
52
52
  securerandom (>= 0.3)
@@ -58,35 +58,33 @@ GEM
58
58
  thor (>= 0.14.0)
59
59
  ast (2.4.3)
60
60
  base64 (0.3.0)
61
- benchmark (0.4.1)
62
- bigdecimal (3.2.2)
61
+ bigdecimal (4.1.1)
63
62
  builder (3.3.0)
64
63
  byebug (11.1.3)
65
64
  cancancan (3.2.1)
66
- cgi (0.5.1)
67
65
  coderay (1.1.3)
68
66
  combustion (1.5.0)
69
67
  activesupport (>= 3.0.0)
70
68
  railties (>= 3.0.0)
71
69
  thor (>= 0.14.6)
72
- concurrent-ruby (1.3.5)
73
- connection_pool (2.4.1)
70
+ concurrent-ruby (1.3.6)
71
+ connection_pool (3.0.2)
74
72
  crass (1.0.6)
75
73
  csv (3.3.5)
76
- date (3.4.1)
74
+ date (3.5.1)
77
75
  diff-lcs (1.6.2)
78
76
  drb (2.2.3)
79
- erb (4.0.4)
80
- cgi (>= 0.3.3)
77
+ erb (6.0.2)
81
78
  erubi (1.13.1)
82
- i18n (1.14.7)
79
+ i18n (1.14.8)
83
80
  concurrent-ruby (~> 1.0)
84
- io-console (0.8.1)
85
- irb (1.15.2)
81
+ io-console (0.8.2)
82
+ irb (1.17.0)
86
83
  pp (>= 0.6.0)
84
+ prism (>= 1.3.0)
87
85
  rdoc (>= 4.0.0)
88
86
  reline (>= 0.4.2)
89
- json (2.13.2)
87
+ json (2.19.3)
90
88
  language_server-protocol (3.17.0.5)
91
89
  license_finder (7.2.1)
92
90
  bundler
@@ -98,85 +96,83 @@ GEM
98
96
  xml-simple (~> 1.1.9)
99
97
  lint_roller (1.1.0)
100
98
  logger (1.7.0)
101
- loofah (2.24.1)
99
+ loofah (2.25.1)
102
100
  crass (~> 1.0.2)
103
101
  nokogiri (>= 1.12.0)
104
102
  method_source (1.1.0)
105
103
  mini_portile2 (2.8.9)
106
- minitest (5.25.5)
107
- mutex_m (0.3.0)
108
- net-imap (0.4.22)
109
- date
110
- net-protocol
111
- net-protocol (0.2.2)
112
- timeout
113
- nokogiri (1.17.2)
104
+ minitest (6.0.3)
105
+ drb (~> 2.0)
106
+ prism (~> 1.5)
107
+ nokogiri (1.19.2)
114
108
  mini_portile2 (~> 2.8.2)
115
109
  racc (~> 1.4)
116
- nokogiri (1.17.2-arm64-darwin)
110
+ nokogiri (1.19.2-arm64-darwin)
117
111
  racc (~> 1.4)
118
- nokogiri (1.17.2-x86_64-linux)
112
+ nokogiri (1.19.2-x86_64-linux-gnu)
119
113
  racc (~> 1.4)
120
- parallel (1.27.0)
121
- parser (3.3.9.0)
114
+ parallel (1.28.0)
115
+ parser (3.3.11.1)
122
116
  ast (~> 2.4.1)
123
117
  racc
124
- pp (0.6.2)
118
+ pp (0.6.3)
125
119
  prettyprint
126
120
  prettyprint (0.2.0)
127
- prism (1.4.0)
121
+ prism (1.9.0)
128
122
  pry (0.14.2)
129
123
  coderay (~> 1.1)
130
124
  method_source (~> 1.0)
131
125
  pry-byebug (3.10.1)
132
126
  byebug (~> 11.0)
133
127
  pry (>= 0.13, < 0.15)
134
- psych (5.2.6)
128
+ psych (5.3.1)
135
129
  date
136
130
  stringio
137
131
  racc (1.8.1)
138
- rack (3.2.0)
139
- rack-session (2.1.1)
132
+ rack (3.2.6)
133
+ rack-session (2.1.2)
140
134
  base64 (>= 0.1.0)
141
135
  rack (>= 3.0.0)
142
136
  rack-test (2.2.0)
143
137
  rack (>= 1.3)
144
- rackup (2.2.1)
138
+ rackup (2.3.1)
145
139
  rack (>= 3)
146
140
  rails-dom-testing (2.3.0)
147
141
  activesupport (>= 5.0.0)
148
142
  minitest
149
143
  nokogiri (>= 1.6)
150
- rails-html-sanitizer (1.6.2)
151
- loofah (~> 2.21)
144
+ rails-html-sanitizer (1.7.0)
145
+ loofah (~> 2.25)
152
146
  nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0)
153
- railties (8.0.2)
154
- actionpack (= 8.0.2)
155
- activesupport (= 8.0.2)
147
+ railties (8.1.3)
148
+ actionpack (= 8.1.3)
149
+ activesupport (= 8.1.3)
156
150
  irb (~> 1.13)
157
151
  rackup (>= 1.0.0)
158
152
  rake (>= 12.2)
159
153
  thor (~> 1.0, >= 1.2.2)
154
+ tsort (>= 0.2)
160
155
  zeitwerk (~> 2.6)
161
156
  rainbow (3.1.1)
162
157
  rake (13.3.1)
163
- rdoc (6.14.2)
158
+ rdoc (7.2.0)
164
159
  erb
165
160
  psych (>= 4.0.0)
166
- regexp_parser (2.11.0)
167
- reline (0.6.2)
161
+ tsort
162
+ regexp_parser (2.12.0)
163
+ reline (0.6.3)
168
164
  io-console (~> 0.5)
169
- rexml (3.4.1)
170
- rspec (3.13.1)
165
+ rexml (3.4.4)
166
+ rspec (3.13.2)
171
167
  rspec-core (~> 3.13.0)
172
168
  rspec-expectations (~> 3.13.0)
173
169
  rspec-mocks (~> 3.13.0)
174
- rspec-core (3.13.5)
170
+ rspec-core (3.13.6)
175
171
  rspec-support (~> 3.13.0)
176
172
  rspec-expectations (3.13.5)
177
173
  diff-lcs (>= 1.2.0, < 2.0)
178
174
  rspec-support (~> 3.13.0)
179
- rspec-mocks (3.13.5)
175
+ rspec-mocks (3.13.8)
180
176
  diff-lcs (>= 1.2.0, < 2.0)
181
177
  rspec-support (~> 3.13.0)
182
178
  rspec-rails (6.1.5)
@@ -187,7 +183,7 @@ GEM
187
183
  rspec-expectations (~> 3.13)
188
184
  rspec-mocks (~> 3.13)
189
185
  rspec-support (~> 3.13)
190
- rspec-support (3.13.4)
186
+ rspec-support (3.13.7)
191
187
  rubocop (1.82.1)
192
188
  json (~> 2.3)
193
189
  language_server-protocol (~> 3.17.0.2)
@@ -199,47 +195,48 @@ GEM
199
195
  rubocop-ast (>= 1.48.0, < 2.0)
200
196
  ruby-progressbar (~> 1.7)
201
197
  unicode-display_width (>= 2.4.0, < 4.0)
202
- rubocop-ast (1.48.0)
198
+ rubocop-ast (1.49.1)
203
199
  parser (>= 3.3.7.2)
204
- prism (~> 1.4)
205
- rubocop-performance (1.24.0)
200
+ prism (~> 1.7)
201
+ rubocop-performance (1.26.1)
206
202
  lint_roller (~> 1.1)
207
- rubocop (>= 1.72.1, < 2.0)
208
- rubocop-ast (>= 1.38.0, < 2.0)
209
- rubocop-rails (2.30.3)
203
+ rubocop (>= 1.75.0, < 2.0)
204
+ rubocop-ast (>= 1.47.1, < 2.0)
205
+ rubocop-rails (2.34.3)
210
206
  activesupport (>= 4.2.0)
211
207
  lint_roller (~> 1.1)
212
208
  rack (>= 1.1)
213
- rubocop (>= 1.72.1, < 2.0)
214
- rubocop-ast (>= 1.38.0, < 2.0)
209
+ rubocop (>= 1.75.0, < 2.0)
210
+ rubocop-ast (>= 1.44.0, < 2.0)
215
211
  rubocop-rake (0.7.1)
216
212
  lint_roller (~> 1.1)
217
213
  rubocop (>= 1.72.1)
218
- rubocop-rspec (3.6.0)
214
+ rubocop-rspec (3.9.0)
219
215
  lint_roller (~> 1.1)
220
- rubocop (~> 1.72, >= 1.72.1)
216
+ rubocop (~> 1.81)
221
217
  ruby-progressbar (1.13.0)
222
218
  rubyzip (2.4.1)
223
- securerandom (0.3.2)
224
- sqlite3 (1.7.3)
219
+ securerandom (0.4.1)
220
+ sqlite3 (2.9.2)
225
221
  mini_portile2 (~> 2.8.0)
226
- sqlite3 (1.7.3-arm64-darwin)
227
- sqlite3 (1.7.3-x86_64-linux)
228
- stringio (3.1.7)
222
+ sqlite3 (2.9.2-arm64-darwin)
223
+ sqlite3 (2.9.2-x86_64-linux-gnu)
224
+ stringio (3.2.0)
229
225
  thor (1.5.0)
230
- timeout (0.4.3)
231
- tomlrb (2.0.3)
226
+ timeout (0.6.1)
227
+ tomlrb (2.0.4)
228
+ tsort (0.2.0)
232
229
  tzinfo (2.0.6)
233
230
  concurrent-ruby (~> 1.0)
234
- unicode-display_width (3.1.4)
235
- unicode-emoji (~> 4.0, >= 4.0.4)
236
- unicode-emoji (4.0.4)
237
- uri (1.0.3)
231
+ unicode-display_width (3.2.0)
232
+ unicode-emoji (~> 4.1)
233
+ unicode-emoji (4.2.0)
234
+ uri (1.1.1)
238
235
  useragent (0.16.11)
239
236
  with_env (1.1.0)
240
237
  xml-simple (1.1.9)
241
238
  rexml
242
- zeitwerk (2.6.18)
239
+ zeitwerk (2.7.5)
243
240
 
244
241
  PLATFORMS
245
242
  arm64-darwin-22
@@ -250,28 +247,17 @@ PLATFORMS
250
247
  DEPENDENCIES
251
248
  activerecord (>= 5)
252
249
  appraisal (~> 2.5.0)
253
- base64 (~> 0.3.0)
254
- bigdecimal (~> 3.2.0, < 3.2.3)
255
250
  bundler (~> 2.1)
256
251
  combustion (~> 1.3)
257
- connection_pool (~> 2.4.1)
258
252
  consent!
259
- erb (~> 4.0.4)
260
253
  license_finder (>= 7.0)
261
- logger (~> 1.7.0)
262
- minitest (~> 5.25.5)
263
- mutex_m (~> 0.3.0)
264
- net-imap (< 0.5.0)
265
- nokogiri (~> 1.17.0, < 1.18)
266
254
  pry (>= 0.14.2)
267
255
  pry-byebug (= 3.10.1)
268
256
  rake (~> 13)
269
257
  rspec (~> 3.0)
270
258
  rspec-rails (~> 6.1.5)
271
259
  rubocop-powerhome!
272
- securerandom (< 0.4)
273
- sqlite3 (~> 1.7.3)
274
- zeitwerk (< 2.7.0)
260
+ sqlite3 (~> 2.9)
275
261
 
276
262
  BUNDLED WITH
277
263
  2.5.23
data/consent.gemspec CHANGED
@@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
12
12
  spec.description = "Consent permission based authorization"
13
13
  spec.homepage = "https://github.com/powerhome/power-tools"
14
14
  spec.license = "MIT"
15
- spec.required_ruby_version = ">= 3.0"
15
+ spec.required_ruby_version = ">= 3.2"
16
16
 
17
17
  spec.metadata["rubygems_mfa_required"] = "true"
18
18
  spec.files = `git ls-files`.split.grep_v(/^(test|spec|features)/)
@@ -31,5 +31,5 @@ Gem::Specification.new do |spec|
31
31
  spec.add_development_dependency "rspec", "~> 3.0"
32
32
  spec.add_development_dependency "rspec-rails", "~> 6.1.5"
33
33
  spec.add_development_dependency "rubocop-powerhome", "0.5.0"
34
- spec.add_development_dependency "sqlite3", "~> 1.7.3"
34
+ spec.add_development_dependency "sqlite3", "~> 2.9"
35
35
  end
data/docs/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ### [2.5.0] - 2026-05-27
4
+
5
+ - Drop support for Ruby < 3.3 and Rails < 7.1 [#396](https://github.com/powerhome/power-tools/pull/396)
6
+ - Added a `PermissionDefinitionPayload.generate` method to generate a payload hash of an application's permission defintions. [#433](https://github.com/powerhome/power-tools/pull/433)
7
+
3
8
  ### [2.4.0] - 2026-02-04
4
9
  - Adds ability to verify and synchronize permission definitions across environments using deterministic checksums [#387](https://github.com/powerhome/power-tools/pull/387)
5
10
 
@@ -4,18 +4,7 @@
4
4
 
5
5
  source "https://rubygems.org"
6
6
 
7
- gem "base64", "~> 0.3.0"
8
- gem "bigdecimal", "~> 3.2.0", "< 3.2.3"
9
- gem "connection_pool", "~> 2.4.1"
10
- gem "erb", "~> 4.0.4"
11
- gem "logger", "~> 1.7.0"
12
- gem "minitest", "~> 5.25.5"
13
- gem "mutex_m", "~> 0.3.0"
14
- gem "net-imap", "< 0.5.0"
15
- gem "nokogiri", "~> 1.17.0", "< 1.18"
16
- gem "rails", "7.1.3.2"
7
+ gem "rails", "7.1.5.2"
17
8
  gem "rubocop-powerhome", path: "../../rubocop-powerhome"
18
- gem "securerandom", "< 0.4"
19
- gem "zeitwerk", "< 2.7.0"
20
9
 
21
10
  gemspec path: "../"