bellman 0.2.1 → 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: 645ac517e2553a9763ecfcab627ecc142e0f70f6c76e8f9c04bb16a7b4e8d24b
4
- data.tar.gz: dca631c201dc133003c0aeee89f633b2f5ae345d441f80674d6331bc8460780b
3
+ metadata.gz: fa2ba3b14e20fbbcfce64402c4ed554a9d5daffb05654da26c81c05d9f8aeedb
4
+ data.tar.gz: 105d8df28697df3c4f0524c1dd73abb0b3b68edcaa017f945abf598c368ec1ca
5
5
  SHA512:
6
- metadata.gz: 0e42815770f0de388f597b471f0d04ee54680dce2c2aad026a7b79d7f1179246ca914803e89eedc621b321f72d55682fa09d1cf57bbf97a32af21dfc335522b1
7
- data.tar.gz: 573ddf2a7f97869aacb35bce6e4c5cbd02a25c10291c2baf37f5bfd954f884d4f5e83fc2851b17bdfb9e6c96ade858eafefc15a13674996de343789af1f70126
6
+ metadata.gz: 55ee9b7b9d637cb9fe1b1aefbada788f8d8a8c0fce2634c52e8fa440567bb1e2c488bdeeda3fa04e47b153e4bf635915ffe760bd6b5c898664f7054a67c2a4a8
7
+ data.tar.gz: 66a2e4a9ccb71dc441674dd5875a79d793c932204e870b73104f3fd1779ef4629b2d5699edbc60f72a83a4a2e99137cb4c2e2e34ce9bac96406bbf52002fb124
data/Gemfile CHANGED
@@ -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.1)
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.4)
12
- actionpack (= 8.0.4)
13
- activesupport (= 8.0.4)
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.4)
18
- actionpack (= 8.0.4)
19
- activejob (= 8.0.4)
20
- activerecord (= 8.0.4)
21
- activestorage (= 8.0.4)
22
- activesupport (= 8.0.4)
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.4)
25
- actionpack (= 8.0.4)
26
- actionview (= 8.0.4)
27
- activejob (= 8.0.4)
28
- activesupport (= 8.0.4)
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.4)
32
- actionview (= 8.0.4)
33
- activesupport (= 8.0.4)
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,42 +40,43 @@ GEM
38
40
  rails-dom-testing (~> 2.2)
39
41
  rails-html-sanitizer (~> 1.6)
40
42
  useragent (~> 0.16)
41
- actiontext (8.0.4)
42
- actionpack (= 8.0.4)
43
- activerecord (= 8.0.4)
44
- activestorage (= 8.0.4)
45
- activesupport (= 8.0.4)
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.4)
49
- activesupport (= 8.0.4)
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.4)
55
- activesupport (= 8.0.4)
57
+ activejob (8.1.2)
58
+ activesupport (= 8.1.2)
56
59
  globalid (>= 0.3.6)
57
- activemodel (8.0.4)
58
- activesupport (= 8.0.4)
59
- activerecord (8.0.4)
60
- activemodel (= 8.0.4)
61
- activesupport (= 8.0.4)
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.4)
64
- actionpack (= 8.0.4)
65
- activejob (= 8.0.4)
66
- activerecord (= 8.0.4)
67
- activesupport (= 8.0.4)
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.4)
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)
@@ -83,7 +86,6 @@ GEM
83
86
  public_suffix (>= 2.0.2, < 8.0)
84
87
  ast (2.4.3)
85
88
  base64 (0.3.0)
86
- benchmark (0.5.0)
87
89
  bigdecimal (4.0.1)
88
90
  bootsnap (1.21.1)
89
91
  msgpack (~> 1.2)
@@ -182,7 +184,7 @@ GEM
182
184
  date
183
185
  stringio
184
186
  public_suffix (7.0.2)
185
- puma (6.6.1)
187
+ puma (7.2.0)
186
188
  nio4r (~> 2.0)
187
189
  racc (1.8.1)
188
190
  rack (3.2.4)
@@ -193,20 +195,20 @@ GEM
193
195
  rack (>= 1.3)
194
196
  rackup (2.3.1)
195
197
  rack (>= 3)
196
- rails (8.0.4)
197
- actioncable (= 8.0.4)
198
- actionmailbox (= 8.0.4)
199
- actionmailer (= 8.0.4)
200
- actionpack (= 8.0.4)
201
- actiontext (= 8.0.4)
202
- actionview (= 8.0.4)
203
- activejob (= 8.0.4)
204
- activemodel (= 8.0.4)
205
- activerecord (= 8.0.4)
206
- activestorage (= 8.0.4)
207
- activesupport (= 8.0.4)
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)
208
210
  bundler (>= 1.15.0)
209
- railties (= 8.0.4)
211
+ railties (= 8.1.2)
210
212
  rails-dom-testing (2.3.0)
211
213
  activesupport (>= 5.0.0)
212
214
  minitest
@@ -214,9 +216,9 @@ GEM
214
216
  rails-html-sanitizer (1.6.2)
215
217
  loofah (~> 2.21)
216
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)
217
- railties (8.0.4)
218
- actionpack (= 8.0.4)
219
- activesupport (= 8.0.4)
219
+ railties (8.1.2)
220
+ actionpack (= 8.1.2)
221
+ activesupport (= 8.1.2)
220
222
  irb (~> 1.13)
221
223
  rackup (>= 1.0.0)
222
224
  rake (>= 12.2)
@@ -333,8 +335,8 @@ DEPENDENCIES
333
335
  debug
334
336
  minitest (~> 5.0)
335
337
  propshaft
336
- puma (~> 6.0)
337
- rails (~> 8.0.0)
338
+ puma (~> 7.2)
339
+ rails (~> 8.1.2)
338
340
  rake (~> 13.0)
339
341
  rubocop (~> 1.21)
340
342
  rubocop-minitest
@@ -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.1'
4
+ VERSION = '0.2.2'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bellman
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patrick R. Schmid