bellman 0.2.0 → 0.2.2

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: 683543d3e170858c7c4a43efa40860b918b5209b40cd87548a2bd65cfe86537b
4
- data.tar.gz: a237d75de02a6763ed73a213057db2dbceb34d055f44f6b1f27392e59e38468a
3
+ metadata.gz: fa2ba3b14e20fbbcfce64402c4ed554a9d5daffb05654da26c81c05d9f8aeedb
4
+ data.tar.gz: 105d8df28697df3c4f0524c1dd73abb0b3b68edcaa017f945abf598c368ec1ca
5
5
  SHA512:
6
- metadata.gz: f022acd6210e89d2a4f279eb76d15d4960aa484cef3a8cfcfd6dc246d02a06765208c4dc5a2493a563119cf69090a8c1b83ffa38681c23f1fb5e3145c459d8c5
7
- data.tar.gz: 50f55c23a71b54e8bc882998ef8070ccca4df9af19219aa470c2fe013d8054f6071d35b22eb2b887e12262e8465a1c3434f48d05c06ce3132292e15c1bdcddc2
6
+ metadata.gz: 55ee9b7b9d637cb9fe1b1aefbada788f8d8a8c0fce2634c52e8fa440567bb1e2c488bdeeda3fa04e47b153e4bf635915ffe760bd6b5c898664f7054a67c2a4a8
7
+ data.tar.gz: 66a2e4a9ccb71dc441674dd5875a79d793c932204e870b73104f3fd1779ef4629b2d5699edbc60f72a83a4a2e99137cb4c2e2e34ce9bac96406bbf52002fb124
data/.rubocop.yml CHANGED
@@ -1,8 +1,8 @@
1
- require:
2
- - 'rubocop-performance'
3
- - 'rubocop-rails'
4
- - 'rubocop-minitest'
5
- - 'rubocop-rake'
1
+ plugins:
2
+ - rubocop-performance
3
+ - rubocop-rails
4
+ - rubocop-minitest
5
+ - rubocop-rake
6
6
 
7
7
  AllCops:
8
8
  NewCops: enable
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- ruby-3.3.6
1
+ ruby-3.4.8
data/Gemfile CHANGED
@@ -7,7 +7,7 @@ git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
7
7
  # Specify your gem's dependencies in bellman.gemspec
8
8
  gemspec
9
9
 
10
- gem 'bundler', '~> 2.3'
10
+ gem 'bundler', '~> 2.6'
11
11
  gem 'bundler-audit', '>= 0'
12
12
  gem 'minitest', '~> 5.0'
13
13
  gem 'rake', '~> 13.0'
@@ -23,7 +23,7 @@ gem 'ruby_audit', '>= 0'
23
23
  ##
24
24
 
25
25
  # Bundle edge Rails instead: gem "rails", github: "rails/rails", branch: "main"
26
- gem 'rails', '~> 8.0.0'
26
+ gem 'rails', '~> 8.1.2'
27
27
 
28
28
  # The modern asset pipeline for Rails
29
29
  # https://github.com/rails/propshaft
@@ -31,7 +31,7 @@ gem 'propshaft'
31
31
 
32
32
  # Use the Puma web server
33
33
  # [https://github.com/puma/puma]
34
- gem 'puma', '~> 6.0'
34
+ gem 'puma', '~> 7.2'
35
35
 
36
36
  # Build JSON APIs with ease
37
37
  # [https://github.com/rails/jbuilder]
data/Gemfile.lock CHANGED
@@ -1,36 +1,38 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bellman (0.2.0)
4
+ bellman (0.2.2)
5
5
  activerecord (> 4.2.0)
6
6
  activesupport (> 4.2.0)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- actioncable (8.0.0)
12
- actionpack (= 8.0.0)
13
- activesupport (= 8.0.0)
11
+ action_text-trix (2.1.16)
12
+ railties
13
+ actioncable (8.1.2)
14
+ actionpack (= 8.1.2)
15
+ activesupport (= 8.1.2)
14
16
  nio4r (~> 2.0)
15
17
  websocket-driver (>= 0.6.1)
16
18
  zeitwerk (~> 2.6)
17
- actionmailbox (8.0.0)
18
- actionpack (= 8.0.0)
19
- activejob (= 8.0.0)
20
- activerecord (= 8.0.0)
21
- activestorage (= 8.0.0)
22
- activesupport (= 8.0.0)
19
+ actionmailbox (8.1.2)
20
+ actionpack (= 8.1.2)
21
+ activejob (= 8.1.2)
22
+ activerecord (= 8.1.2)
23
+ activestorage (= 8.1.2)
24
+ activesupport (= 8.1.2)
23
25
  mail (>= 2.8.0)
24
- actionmailer (8.0.0)
25
- actionpack (= 8.0.0)
26
- actionview (= 8.0.0)
27
- activejob (= 8.0.0)
28
- activesupport (= 8.0.0)
26
+ actionmailer (8.1.2)
27
+ actionpack (= 8.1.2)
28
+ actionview (= 8.1.2)
29
+ activejob (= 8.1.2)
30
+ activesupport (= 8.1.2)
29
31
  mail (>= 2.8.0)
30
32
  rails-dom-testing (~> 2.2)
31
- actionpack (8.0.0)
32
- actionview (= 8.0.0)
33
- activesupport (= 8.0.0)
33
+ actionpack (8.1.2)
34
+ actionview (= 8.1.2)
35
+ activesupport (= 8.1.2)
34
36
  nokogiri (>= 1.8.5)
35
37
  rack (>= 2.2.4)
36
38
  rack-session (>= 1.0.1)
@@ -38,58 +40,58 @@ GEM
38
40
  rails-dom-testing (~> 2.2)
39
41
  rails-html-sanitizer (~> 1.6)
40
42
  useragent (~> 0.16)
41
- actiontext (8.0.0)
42
- actionpack (= 8.0.0)
43
- activerecord (= 8.0.0)
44
- activestorage (= 8.0.0)
45
- activesupport (= 8.0.0)
43
+ actiontext (8.1.2)
44
+ action_text-trix (~> 2.1.15)
45
+ actionpack (= 8.1.2)
46
+ activerecord (= 8.1.2)
47
+ activestorage (= 8.1.2)
48
+ activesupport (= 8.1.2)
46
49
  globalid (>= 0.6.0)
47
50
  nokogiri (>= 1.8.5)
48
- actionview (8.0.0)
49
- activesupport (= 8.0.0)
51
+ actionview (8.1.2)
52
+ activesupport (= 8.1.2)
50
53
  builder (~> 3.1)
51
54
  erubi (~> 1.11)
52
55
  rails-dom-testing (~> 2.2)
53
56
  rails-html-sanitizer (~> 1.6)
54
- activejob (8.0.0)
55
- activesupport (= 8.0.0)
57
+ activejob (8.1.2)
58
+ activesupport (= 8.1.2)
56
59
  globalid (>= 0.3.6)
57
- activemodel (8.0.0)
58
- activesupport (= 8.0.0)
59
- activerecord (8.0.0)
60
- activemodel (= 8.0.0)
61
- activesupport (= 8.0.0)
60
+ activemodel (8.1.2)
61
+ activesupport (= 8.1.2)
62
+ activerecord (8.1.2)
63
+ activemodel (= 8.1.2)
64
+ activesupport (= 8.1.2)
62
65
  timeout (>= 0.4.0)
63
- activestorage (8.0.0)
64
- actionpack (= 8.0.0)
65
- activejob (= 8.0.0)
66
- activerecord (= 8.0.0)
67
- activesupport (= 8.0.0)
66
+ activestorage (8.1.2)
67
+ actionpack (= 8.1.2)
68
+ activejob (= 8.1.2)
69
+ activerecord (= 8.1.2)
70
+ activesupport (= 8.1.2)
68
71
  marcel (~> 1.0)
69
- activesupport (8.0.0)
72
+ activesupport (8.1.2)
70
73
  base64
71
- benchmark (>= 0.3)
72
74
  bigdecimal
73
75
  concurrent-ruby (~> 1.0, >= 1.3.1)
74
76
  connection_pool (>= 2.2.5)
75
77
  drb
76
78
  i18n (>= 1.6, < 2)
79
+ json
77
80
  logger (>= 1.4.2)
78
81
  minitest (>= 5.1)
79
82
  securerandom (>= 0.3)
80
83
  tzinfo (~> 2.0, >= 2.0.5)
81
84
  uri (>= 0.13.1)
82
- addressable (2.8.7)
83
- public_suffix (>= 2.0.2, < 7.0)
84
- ast (2.4.2)
85
- base64 (0.2.0)
86
- benchmark (0.4.0)
87
- bigdecimal (3.1.8)
88
- bootsnap (1.18.4)
85
+ addressable (2.8.8)
86
+ public_suffix (>= 2.0.2, < 8.0)
87
+ ast (2.4.3)
88
+ base64 (0.3.0)
89
+ bigdecimal (4.0.1)
90
+ bootsnap (1.21.1)
89
91
  msgpack (~> 1.2)
90
92
  builder (3.3.0)
91
- bundler-audit (0.9.2)
92
- bundler (>= 1.2.0, < 3)
93
+ bundler-audit (0.9.3)
94
+ bundler (>= 1.2.0)
93
95
  thor (~> 1.0)
94
96
  capybara (3.40.0)
95
97
  addressable
@@ -100,205 +102,241 @@ GEM
100
102
  rack-test (>= 0.6.3)
101
103
  regexp_parser (>= 1.5, < 3.0)
102
104
  xpath (~> 3.2)
103
- concurrent-ruby (1.3.4)
104
- connection_pool (2.4.1)
105
+ childprocess (4.1.0)
106
+ concurrent-ruby (1.3.6)
107
+ connection_pool (3.0.2)
105
108
  crass (1.0.6)
106
- cssbundling-rails (1.4.1)
109
+ cssbundling-rails (1.4.3)
107
110
  railties (>= 6.0.0)
108
- date (3.4.1)
109
- debug (1.9.2)
111
+ date (3.5.1)
112
+ debug (1.11.1)
110
113
  irb (~> 1.10)
111
114
  reline (>= 0.3.8)
112
- drb (2.2.1)
113
- erubi (1.13.0)
114
- globalid (1.2.1)
115
+ drb (2.2.3)
116
+ erb (6.0.1)
117
+ erubi (1.13.1)
118
+ globalid (1.3.0)
115
119
  activesupport (>= 6.1)
116
- i18n (1.14.6)
120
+ i18n (1.14.8)
117
121
  concurrent-ruby (~> 1.0)
118
- io-console (0.8.0)
119
- irb (1.14.1)
122
+ io-console (0.8.2)
123
+ irb (1.16.0)
124
+ pp (>= 0.6.0)
120
125
  rdoc (>= 4.0.0)
121
126
  reline (>= 0.4.2)
122
- json (2.9.0)
123
- language_server-protocol (3.17.0.3)
124
- logger (1.6.2)
125
- loofah (2.23.1)
127
+ json (2.18.0)
128
+ language_server-protocol (3.17.0.5)
129
+ lint_roller (1.1.0)
130
+ logger (1.7.0)
131
+ loofah (2.25.0)
126
132
  crass (~> 1.0.2)
127
133
  nokogiri (>= 1.12.0)
128
- mail (2.8.1)
134
+ mail (2.9.0)
135
+ logger
129
136
  mini_mime (>= 0.1.1)
130
137
  net-imap
131
138
  net-pop
132
139
  net-smtp
133
- marcel (1.0.4)
134
- matrix (0.4.2)
140
+ marcel (1.1.0)
141
+ matrix (0.4.3)
135
142
  mini_mime (1.1.5)
136
- minitest (5.25.4)
137
- msgpack (1.7.5)
138
- net-imap (0.5.1)
143
+ minitest (5.27.0)
144
+ msgpack (1.8.0)
145
+ net-imap (0.6.2)
139
146
  date
140
147
  net-protocol
141
148
  net-pop (0.1.2)
142
149
  net-protocol
143
150
  net-protocol (0.2.2)
144
151
  timeout
145
- net-smtp (0.5.0)
152
+ net-smtp (0.5.1)
146
153
  net-protocol
147
- nio4r (2.7.4)
148
- nokogiri (1.16.8-x86_64-darwin)
154
+ nio4r (2.7.5)
155
+ nokogiri (1.19.0-aarch64-linux-gnu)
156
+ racc (~> 1.4)
157
+ nokogiri (1.19.0-aarch64-linux-musl)
158
+ racc (~> 1.4)
159
+ nokogiri (1.19.0-arm-linux-gnu)
160
+ racc (~> 1.4)
161
+ nokogiri (1.19.0-arm-linux-musl)
162
+ racc (~> 1.4)
163
+ nokogiri (1.19.0-arm64-darwin)
149
164
  racc (~> 1.4)
150
- nokogiri (1.16.8-x86_64-linux)
165
+ nokogiri (1.19.0-x86_64-darwin)
151
166
  racc (~> 1.4)
152
- parallel (1.26.3)
153
- parser (3.3.6.0)
167
+ nokogiri (1.19.0-x86_64-linux-gnu)
168
+ racc (~> 1.4)
169
+ nokogiri (1.19.0-x86_64-linux-musl)
170
+ racc (~> 1.4)
171
+ parallel (1.27.0)
172
+ parser (3.3.10.1)
154
173
  ast (~> 2.4.1)
155
174
  racc
156
- propshaft (1.1.0)
175
+ pp (0.6.3)
176
+ prettyprint
177
+ prettyprint (0.2.0)
178
+ prism (1.8.0)
179
+ propshaft (1.3.1)
157
180
  actionpack (>= 7.0.0)
158
181
  activesupport (>= 7.0.0)
159
182
  rack
160
- railties (>= 7.0.0)
161
- psych (5.2.1)
183
+ psych (5.3.1)
162
184
  date
163
185
  stringio
164
- public_suffix (6.0.1)
165
- puma (6.5.0)
186
+ public_suffix (7.0.2)
187
+ puma (7.2.0)
166
188
  nio4r (~> 2.0)
167
189
  racc (1.8.1)
168
- rack (3.1.8)
169
- rack-session (2.0.0)
190
+ rack (3.2.4)
191
+ rack-session (2.1.1)
192
+ base64 (>= 0.1.0)
170
193
  rack (>= 3.0.0)
171
- rack-test (2.1.0)
194
+ rack-test (2.2.0)
172
195
  rack (>= 1.3)
173
- rackup (2.2.1)
196
+ rackup (2.3.1)
174
197
  rack (>= 3)
175
- rails (8.0.0)
176
- actioncable (= 8.0.0)
177
- actionmailbox (= 8.0.0)
178
- actionmailer (= 8.0.0)
179
- actionpack (= 8.0.0)
180
- actiontext (= 8.0.0)
181
- actionview (= 8.0.0)
182
- activejob (= 8.0.0)
183
- activemodel (= 8.0.0)
184
- activerecord (= 8.0.0)
185
- activestorage (= 8.0.0)
186
- activesupport (= 8.0.0)
198
+ rails (8.1.2)
199
+ actioncable (= 8.1.2)
200
+ actionmailbox (= 8.1.2)
201
+ actionmailer (= 8.1.2)
202
+ actionpack (= 8.1.2)
203
+ actiontext (= 8.1.2)
204
+ actionview (= 8.1.2)
205
+ activejob (= 8.1.2)
206
+ activemodel (= 8.1.2)
207
+ activerecord (= 8.1.2)
208
+ activestorage (= 8.1.2)
209
+ activesupport (= 8.1.2)
187
210
  bundler (>= 1.15.0)
188
- railties (= 8.0.0)
189
- rails-dom-testing (2.2.0)
211
+ railties (= 8.1.2)
212
+ rails-dom-testing (2.3.0)
190
213
  activesupport (>= 5.0.0)
191
214
  minitest
192
215
  nokogiri (>= 1.6)
193
- rails-html-sanitizer (1.6.1)
216
+ rails-html-sanitizer (1.6.2)
194
217
  loofah (~> 2.21)
195
218
  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)
196
- railties (8.0.0)
197
- actionpack (= 8.0.0)
198
- activesupport (= 8.0.0)
219
+ railties (8.1.2)
220
+ actionpack (= 8.1.2)
221
+ activesupport (= 8.1.2)
199
222
  irb (~> 1.13)
200
223
  rackup (>= 1.0.0)
201
224
  rake (>= 12.2)
202
225
  thor (~> 1.0, >= 1.2.2)
226
+ tsort (>= 0.2)
203
227
  zeitwerk (~> 2.6)
204
228
  rainbow (3.1.1)
205
- rake (13.2.1)
206
- rdoc (6.8.1)
229
+ rake (13.3.1)
230
+ rdoc (7.1.0)
231
+ erb
207
232
  psych (>= 4.0.0)
208
- redis-client (0.22.2)
233
+ tsort
234
+ redis-client (0.26.3)
209
235
  connection_pool
210
- regexp_parser (2.9.3)
211
- reline (0.5.12)
236
+ regexp_parser (2.11.3)
237
+ reline (0.6.3)
212
238
  io-console (~> 0.5)
213
- rexml (3.3.9)
214
- rubocop (1.69.1)
239
+ rexml (3.4.4)
240
+ rubocop (1.82.1)
215
241
  json (~> 2.3)
216
- language_server-protocol (>= 3.17.0)
242
+ language_server-protocol (~> 3.17.0.2)
243
+ lint_roller (~> 1.1.0)
217
244
  parallel (~> 1.10)
218
245
  parser (>= 3.3.0.2)
219
246
  rainbow (>= 2.2.2, < 4.0)
220
247
  regexp_parser (>= 2.9.3, < 3.0)
221
- rubocop-ast (>= 1.36.2, < 2.0)
248
+ rubocop-ast (>= 1.48.0, < 2.0)
222
249
  ruby-progressbar (~> 1.7)
223
250
  unicode-display_width (>= 2.4.0, < 4.0)
224
- rubocop-ast (1.36.2)
225
- parser (>= 3.3.1.0)
226
- rubocop-minitest (0.36.0)
227
- rubocop (>= 1.61, < 2.0)
228
- rubocop-ast (>= 1.31.1, < 2.0)
229
- rubocop-performance (1.23.0)
230
- rubocop (>= 1.48.1, < 2.0)
231
- rubocop-ast (>= 1.31.1, < 2.0)
232
- rubocop-rails (2.27.0)
251
+ rubocop-ast (1.49.0)
252
+ parser (>= 3.3.7.2)
253
+ prism (~> 1.7)
254
+ rubocop-minitest (0.38.2)
255
+ lint_roller (~> 1.1)
256
+ rubocop (>= 1.75.0, < 2.0)
257
+ rubocop-ast (>= 1.38.0, < 2.0)
258
+ rubocop-performance (1.26.1)
259
+ lint_roller (~> 1.1)
260
+ rubocop (>= 1.75.0, < 2.0)
261
+ rubocop-ast (>= 1.47.1, < 2.0)
262
+ rubocop-rails (2.34.3)
233
263
  activesupport (>= 4.2.0)
264
+ lint_roller (~> 1.1)
234
265
  rack (>= 1.1)
235
- rubocop (>= 1.52.0, < 2.0)
236
- rubocop-ast (>= 1.31.1, < 2.0)
237
- rubocop-rake (0.6.0)
238
- rubocop (~> 1.0)
266
+ rubocop (>= 1.75.0, < 2.0)
267
+ rubocop-ast (>= 1.44.0, < 2.0)
268
+ rubocop-rake (0.7.1)
269
+ lint_roller (~> 1.1)
270
+ rubocop (>= 1.72.1)
239
271
  ruby-progressbar (1.13.0)
240
- ruby_audit (2.3.1)
272
+ ruby_audit (3.1.0)
241
273
  bundler-audit (~> 0.9.0)
242
- rubyzip (2.3.2)
243
- securerandom (0.4.0)
244
- selenium-webdriver (4.10.0)
274
+ rubyzip (3.2.2)
275
+ securerandom (0.4.1)
276
+ selenium-webdriver (4.1.0)
277
+ childprocess (>= 0.5, < 5.0)
245
278
  rexml (~> 3.2, >= 3.2.5)
246
- rubyzip (>= 1.2.2, < 3.0)
247
- websocket (~> 1.0)
248
- sentry-rails (5.22.0)
249
- railties (>= 5.0)
250
- sentry-ruby (~> 5.22.0)
251
- sentry-ruby (5.22.0)
279
+ rubyzip (>= 1.2.2)
280
+ sentry-rails (6.3.0)
281
+ railties (>= 5.2.0)
282
+ sentry-ruby (~> 6.3.0)
283
+ sentry-ruby (6.3.0)
252
284
  bigdecimal
253
285
  concurrent-ruby (~> 1.0, >= 1.0.2)
254
- sentry-sidekiq (5.22.0)
255
- sentry-ruby (~> 5.22.0)
256
- sidekiq (>= 3.0)
257
- sidekiq (7.3.6)
258
- connection_pool (>= 2.3.0)
259
- logger
260
- rack (>= 2.2.4)
261
- redis-client (>= 0.22.2)
262
- stringio (3.1.2)
263
- thor (1.3.2)
264
- timeout (0.4.2)
286
+ sentry-sidekiq (6.3.0)
287
+ sentry-ruby (~> 6.3.0)
288
+ sidekiq (>= 5.0)
289
+ sidekiq (8.1.0)
290
+ connection_pool (>= 3.0.0)
291
+ json (>= 2.16.0)
292
+ logger (>= 1.7.0)
293
+ rack (>= 3.2.0)
294
+ redis-client (>= 0.26.0)
295
+ stringio (3.2.0)
296
+ thor (1.5.0)
297
+ timeout (0.6.0)
298
+ tsort (0.2.0)
265
299
  tzinfo (2.0.6)
266
300
  concurrent-ruby (~> 1.0)
267
- unicode-display_width (3.1.2)
268
- unicode-emoji (~> 4.0, >= 4.0.4)
269
- unicode-emoji (4.0.4)
270
- uri (1.0.2)
301
+ unicode-display_width (3.2.0)
302
+ unicode-emoji (~> 4.1)
303
+ unicode-emoji (4.2.0)
304
+ uri (1.1.1)
271
305
  useragent (0.16.11)
272
306
  webdrivers (5.3.1)
273
307
  nokogiri (~> 1.6)
274
308
  rubyzip (>= 1.3.0)
275
309
  selenium-webdriver (~> 4.0, < 4.11)
276
- websocket (1.2.11)
277
- websocket-driver (0.7.6)
310
+ websocket-driver (0.8.0)
311
+ base64
278
312
  websocket-extensions (>= 0.1.0)
279
313
  websocket-extensions (0.1.5)
280
314
  xpath (3.2.0)
281
315
  nokogiri (~> 1.8)
282
- zeitwerk (2.7.1)
316
+ zeitwerk (2.7.4)
283
317
 
284
318
  PLATFORMS
285
- x86_64-darwin-22
286
- x86_64-darwin-23
287
- x86_64-darwin-24
288
- x86_64-linux
319
+ aarch64-linux-gnu
320
+ aarch64-linux-musl
321
+ arm-linux-gnu
322
+ arm-linux-musl
323
+ arm64-darwin
324
+ x86_64-darwin
325
+ x86_64-linux-gnu
326
+ x86_64-linux-musl
289
327
 
290
328
  DEPENDENCIES
291
329
  bellman!
292
330
  bootsnap
293
- bundler (~> 2.3)
331
+ bundler (~> 2.6)
294
332
  bundler-audit
295
333
  capybara
296
334
  cssbundling-rails
297
335
  debug
298
336
  minitest (~> 5.0)
299
337
  propshaft
300
- puma (~> 6.0)
301
- rails (~> 8.0.0)
338
+ puma (~> 7.2)
339
+ rails (~> 8.1.2)
302
340
  rake (~> 13.0)
303
341
  rubocop (~> 1.21)
304
342
  rubocop-minitest
@@ -315,4 +353,4 @@ DEPENDENCIES
315
353
  webdrivers
316
354
 
317
355
  BUNDLED WITH
318
- 2.5.23
356
+ 2.6.9
@@ -13,27 +13,41 @@
13
13
  # For historical details on a bellman/town crier see:
14
14
  # https://en.wikipedia.org/wiki/Town_crier
15
15
  module Bellman
16
- include ActiveSupport::Configurable
16
+ # Config object to emulate ActiveSupport::Configurable behavior that is
17
+ # deprecated in Rails 8.2
18
+ class Config
19
+ attr_accessor :severities, :default_severity, :on_unknown_severity,
20
+ :handlers
21
+
22
+ def initialize
23
+ @severities = %i[debug info warn error fatal].freeze
24
+ @default_severity = :error
25
+ @on_unknown_severity = :raise
26
+ @handlers = [
27
+ {
28
+ id: :log,
29
+ class: Bellman::Handlers::RailsLogger,
30
+ severities: %i[debug info warn error fatal]
31
+ },
32
+ {
33
+ id: :sentry,
34
+ class: Bellman::Handlers::Sentry,
35
+ severities: %i[error fatal]
36
+ }
37
+ ]
38
+ end
39
+ end
40
+
41
+ def self.config
42
+ @config ||= Config.new
43
+ end
17
44
 
18
45
  def self.configure
19
46
  # Set the defaults
20
- config.severities = %i[debug info warn error fatal].freeze
21
- config.default_severity = :error
22
- config.on_unknown_severity = :raise
23
- config.handlers = [
24
- {
25
- id: :log,
26
- class: Bellman::Handlers::RailsLogger,
27
- severities: %i[debug info warn error fatal]
28
- },
29
- {
30
- id: :sentry,
31
- class: Bellman::Handlers::Sentry,
32
- severities: %i[error fatal]
33
- }
34
- ]
35
-
36
- super
47
+ @config = Config.new
48
+
49
+ # Yield to block if given
50
+ yield(config) if block_given?
37
51
 
38
52
  # Create an instance of the handler that can be used
39
53
  @handler = Handlers::Handler.new
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Bellman
4
- VERSION = '0.2.0'
4
+ VERSION = '0.2.2'
5
5
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bellman
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patrick R. Schmid
8
- autorequire:
9
8
  bindir: exe
10
9
  cert_chain: []
11
- date: 2024-12-04 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: activerecord
@@ -69,7 +68,6 @@ metadata:
69
68
  source_code_uri: https://github.com/prschmid/bellman
70
69
  changelog_uri: https://github.com/prschmid/bellman
71
70
  rubygems_mfa_required: 'true'
72
- post_install_message:
73
71
  rdoc_options: []
74
72
  require_paths:
75
73
  - lib
@@ -77,15 +75,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
77
75
  requirements:
78
76
  - - ">="
79
77
  - !ruby/object:Gem::Version
80
- version: '3.3'
78
+ version: '3.4'
81
79
  required_rubygems_version: !ruby/object:Gem::Requirement
82
80
  requirements:
83
81
  - - ">="
84
82
  - !ruby/object:Gem::Version
85
83
  version: '0'
86
84
  requirements: []
87
- rubygems_version: 3.5.22
88
- signing_key:
85
+ rubygems_version: 3.6.9
89
86
  specification_version: 4
90
87
  summary: Unified way to take all of the log messages and direct them to the right
91
88
  place.