unified_settings 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: 73896f0aecb4e9798a501cb5e3e87c68ae50b0f0531ea50491d830859897c42f
4
- data.tar.gz: 0bca6f0c037cf42bb8b9961474ed5145fe4e436ffe3598f30e16aa756ae0909e
3
+ metadata.gz: 5d897734e735f41188db95e41e35b0d756de0368c300d805515e6135b31bd45e
4
+ data.tar.gz: 2a807b9e87356e0768dc4258eaac9682d9e1ab144af5c0e72d2a4927a4b87a24
5
5
  SHA512:
6
- metadata.gz: 7335dc6d9447df99efa67c754e5b36e1f3d9e49a3f62506a611e7406252db2313c9dac8b48b69fdc0680e15a5b40a5afe74046de32f3a36d59f4645861d6a0c9
7
- data.tar.gz: 0e3e1a4b839e5483c8a16ed0f7cbfb76d267b828ed7ea8061cf05c847613c433ebe4d506d64e392510d3c4f45207b30282cabecc62dc19b564ce724e766ce4fe
6
+ metadata.gz: 5703898c82a5473e47a5450a330fa547fee31ea33e2c3df97834ffa871fb33614edec7dd29e47027ad78c353c2aab06ebad212ea306be216bfdeddc712bd938a
7
+ data.tar.gz: 92704cc58d63aeadec87ec9ffc72071fbb37f030df8f810f27f379fa1d9bbe01dde47f0eae285711ee7389bc13a41f20c96a1cff545c4e8bf3c690e3ec78e6db
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
@@ -5,7 +5,7 @@ source 'https://rubygems.org'
5
5
  # Specify your gem's dependencies in unified_settings.gemspec
6
6
  gemspec
7
7
 
8
- gem 'bundler', '~> 2.3'
8
+ gem 'bundler', '~> 2.6'
9
9
  gem 'bundler-audit', '>= 0'
10
10
  gem 'minitest', '~> 5.0'
11
11
  gem 'rake', '~> 13.0'
@@ -21,7 +21,7 @@ gem 'ruby_audit', '>= 0'
21
21
  ##
22
22
 
23
23
  # Bundle edge Rails instead: gem "rails", github: "rails/rails", branch: "main"
24
- gem 'rails', '~> 8.0.0'
24
+ gem 'rails', '~> 8.1.2'
25
25
 
26
26
  # The modern asset pipeline for Rails
27
27
  # https://github.com/rails/propshaft
@@ -29,7 +29,7 @@ gem 'propshaft'
29
29
 
30
30
  # Use the Puma web server
31
31
  # [https://github.com/puma/puma]
32
- gem 'puma', '~> 6.0'
32
+ gem 'puma', '~> 7.2'
33
33
 
34
34
  # Build JSON APIs with ease
35
35
  # [https://github.com/rails/jbuilder]
data/Gemfile.lock CHANGED
@@ -1,36 +1,38 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- unified_settings (0.2.0)
4
+ unified_settings (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,185 +102,220 @@ 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
- config (5.5.2)
105
+ childprocess (4.1.0)
106
+ concurrent-ruby (1.3.6)
107
+ config (5.6.1)
105
108
  deep_merge (~> 1.2, >= 1.2.1)
106
109
  ostruct
107
- connection_pool (2.4.1)
110
+ connection_pool (3.0.2)
108
111
  crass (1.0.6)
109
- cssbundling-rails (1.4.1)
112
+ cssbundling-rails (1.4.3)
110
113
  railties (>= 6.0.0)
111
- date (3.4.1)
112
- debug (1.9.2)
114
+ date (3.5.1)
115
+ debug (1.11.1)
113
116
  irb (~> 1.10)
114
117
  reline (>= 0.3.8)
115
118
  deep_merge (1.2.2)
116
- drb (2.2.1)
117
- erubi (1.13.0)
118
- globalid (1.2.1)
119
+ drb (2.2.3)
120
+ erb (6.0.1)
121
+ erubi (1.13.1)
122
+ globalid (1.3.0)
119
123
  activesupport (>= 6.1)
120
- i18n (1.14.6)
124
+ i18n (1.14.8)
121
125
  concurrent-ruby (~> 1.0)
122
- io-console (0.8.0)
123
- irb (1.14.1)
126
+ io-console (0.8.2)
127
+ irb (1.16.0)
128
+ pp (>= 0.6.0)
124
129
  rdoc (>= 4.0.0)
125
130
  reline (>= 0.4.2)
126
- json (2.9.0)
127
- language_server-protocol (3.17.0.3)
128
- logger (1.6.2)
129
- loofah (2.23.1)
131
+ json (2.18.0)
132
+ language_server-protocol (3.17.0.5)
133
+ lint_roller (1.1.0)
134
+ logger (1.7.0)
135
+ loofah (2.25.0)
130
136
  crass (~> 1.0.2)
131
137
  nokogiri (>= 1.12.0)
132
- mail (2.8.1)
138
+ mail (2.9.0)
139
+ logger
133
140
  mini_mime (>= 0.1.1)
134
141
  net-imap
135
142
  net-pop
136
143
  net-smtp
137
- marcel (1.0.4)
138
- matrix (0.4.2)
144
+ marcel (1.1.0)
145
+ matrix (0.4.3)
139
146
  mini_mime (1.1.5)
140
- minitest (5.25.4)
141
- msgpack (1.7.5)
142
- net-imap (0.5.1)
147
+ minitest (5.27.0)
148
+ msgpack (1.8.0)
149
+ net-imap (0.6.2)
143
150
  date
144
151
  net-protocol
145
152
  net-pop (0.1.2)
146
153
  net-protocol
147
154
  net-protocol (0.2.2)
148
155
  timeout
149
- net-smtp (0.5.0)
156
+ net-smtp (0.5.1)
150
157
  net-protocol
151
- nio4r (2.7.4)
152
- nokogiri (1.16.8-x86_64-darwin)
158
+ nio4r (2.7.5)
159
+ nokogiri (1.19.0-aarch64-linux-gnu)
153
160
  racc (~> 1.4)
154
- nokogiri (1.16.8-x86_64-linux)
161
+ nokogiri (1.19.0-aarch64-linux-musl)
155
162
  racc (~> 1.4)
156
- ostruct (0.6.1)
157
- parallel (1.26.3)
158
- parser (3.3.6.0)
163
+ nokogiri (1.19.0-arm-linux-gnu)
164
+ racc (~> 1.4)
165
+ nokogiri (1.19.0-arm-linux-musl)
166
+ racc (~> 1.4)
167
+ nokogiri (1.19.0-arm64-darwin)
168
+ racc (~> 1.4)
169
+ nokogiri (1.19.0-x86_64-darwin)
170
+ racc (~> 1.4)
171
+ nokogiri (1.19.0-x86_64-linux-gnu)
172
+ racc (~> 1.4)
173
+ nokogiri (1.19.0-x86_64-linux-musl)
174
+ racc (~> 1.4)
175
+ ostruct (0.6.3)
176
+ parallel (1.27.0)
177
+ parser (3.3.10.1)
159
178
  ast (~> 2.4.1)
160
179
  racc
161
- propshaft (1.1.0)
180
+ pp (0.6.3)
181
+ prettyprint
182
+ prettyprint (0.2.0)
183
+ prism (1.8.0)
184
+ propshaft (1.3.1)
162
185
  actionpack (>= 7.0.0)
163
186
  activesupport (>= 7.0.0)
164
187
  rack
165
- railties (>= 7.0.0)
166
- psych (5.2.1)
188
+ psych (5.3.1)
167
189
  date
168
190
  stringio
169
- public_suffix (6.0.1)
170
- puma (6.5.0)
191
+ public_suffix (7.0.2)
192
+ puma (7.2.0)
171
193
  nio4r (~> 2.0)
172
194
  racc (1.8.1)
173
- rack (3.1.8)
174
- rack-session (2.0.0)
195
+ rack (3.2.4)
196
+ rack-session (2.1.1)
197
+ base64 (>= 0.1.0)
175
198
  rack (>= 3.0.0)
176
- rack-test (2.1.0)
199
+ rack-test (2.2.0)
177
200
  rack (>= 1.3)
178
- rackup (2.2.1)
201
+ rackup (2.3.1)
179
202
  rack (>= 3)
180
- rails (8.0.0)
181
- actioncable (= 8.0.0)
182
- actionmailbox (= 8.0.0)
183
- actionmailer (= 8.0.0)
184
- actionpack (= 8.0.0)
185
- actiontext (= 8.0.0)
186
- actionview (= 8.0.0)
187
- activejob (= 8.0.0)
188
- activemodel (= 8.0.0)
189
- activerecord (= 8.0.0)
190
- activestorage (= 8.0.0)
191
- activesupport (= 8.0.0)
203
+ rails (8.1.2)
204
+ actioncable (= 8.1.2)
205
+ actionmailbox (= 8.1.2)
206
+ actionmailer (= 8.1.2)
207
+ actionpack (= 8.1.2)
208
+ actiontext (= 8.1.2)
209
+ actionview (= 8.1.2)
210
+ activejob (= 8.1.2)
211
+ activemodel (= 8.1.2)
212
+ activerecord (= 8.1.2)
213
+ activestorage (= 8.1.2)
214
+ activesupport (= 8.1.2)
192
215
  bundler (>= 1.15.0)
193
- railties (= 8.0.0)
194
- rails-dom-testing (2.2.0)
216
+ railties (= 8.1.2)
217
+ rails-dom-testing (2.3.0)
195
218
  activesupport (>= 5.0.0)
196
219
  minitest
197
220
  nokogiri (>= 1.6)
198
- rails-html-sanitizer (1.6.1)
221
+ rails-html-sanitizer (1.6.2)
199
222
  loofah (~> 2.21)
200
223
  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)
201
- railties (8.0.0)
202
- actionpack (= 8.0.0)
203
- activesupport (= 8.0.0)
224
+ railties (8.1.2)
225
+ actionpack (= 8.1.2)
226
+ activesupport (= 8.1.2)
204
227
  irb (~> 1.13)
205
228
  rackup (>= 1.0.0)
206
229
  rake (>= 12.2)
207
230
  thor (~> 1.0, >= 1.2.2)
231
+ tsort (>= 0.2)
208
232
  zeitwerk (~> 2.6)
209
233
  rainbow (3.1.1)
210
- rake (13.2.1)
211
- rdoc (6.8.1)
234
+ rake (13.3.1)
235
+ rdoc (7.1.0)
236
+ erb
212
237
  psych (>= 4.0.0)
213
- regexp_parser (2.9.3)
214
- reline (0.5.12)
238
+ tsort
239
+ regexp_parser (2.11.3)
240
+ reline (0.6.3)
215
241
  io-console (~> 0.5)
216
- rexml (3.3.9)
217
- rubocop (1.69.1)
242
+ rexml (3.4.4)
243
+ rubocop (1.82.1)
218
244
  json (~> 2.3)
219
- language_server-protocol (>= 3.17.0)
245
+ language_server-protocol (~> 3.17.0.2)
246
+ lint_roller (~> 1.1.0)
220
247
  parallel (~> 1.10)
221
248
  parser (>= 3.3.0.2)
222
249
  rainbow (>= 2.2.2, < 4.0)
223
250
  regexp_parser (>= 2.9.3, < 3.0)
224
- rubocop-ast (>= 1.36.2, < 2.0)
251
+ rubocop-ast (>= 1.48.0, < 2.0)
225
252
  ruby-progressbar (~> 1.7)
226
253
  unicode-display_width (>= 2.4.0, < 4.0)
227
- rubocop-ast (1.36.2)
228
- parser (>= 3.3.1.0)
229
- rubocop-minitest (0.36.0)
230
- rubocop (>= 1.61, < 2.0)
231
- rubocop-ast (>= 1.31.1, < 2.0)
232
- rubocop-performance (1.23.0)
233
- rubocop (>= 1.48.1, < 2.0)
234
- rubocop-ast (>= 1.31.1, < 2.0)
235
- rubocop-rails (2.27.0)
254
+ rubocop-ast (1.49.0)
255
+ parser (>= 3.3.7.2)
256
+ prism (~> 1.7)
257
+ rubocop-minitest (0.38.2)
258
+ lint_roller (~> 1.1)
259
+ rubocop (>= 1.75.0, < 2.0)
260
+ rubocop-ast (>= 1.38.0, < 2.0)
261
+ rubocop-performance (1.26.1)
262
+ lint_roller (~> 1.1)
263
+ rubocop (>= 1.75.0, < 2.0)
264
+ rubocop-ast (>= 1.47.1, < 2.0)
265
+ rubocop-rails (2.34.3)
236
266
  activesupport (>= 4.2.0)
267
+ lint_roller (~> 1.1)
237
268
  rack (>= 1.1)
238
- rubocop (>= 1.52.0, < 2.0)
239
- rubocop-ast (>= 1.31.1, < 2.0)
240
- rubocop-rake (0.6.0)
241
- rubocop (~> 1.0)
269
+ rubocop (>= 1.75.0, < 2.0)
270
+ rubocop-ast (>= 1.44.0, < 2.0)
271
+ rubocop-rake (0.7.1)
272
+ lint_roller (~> 1.1)
273
+ rubocop (>= 1.72.1)
242
274
  ruby-progressbar (1.13.0)
243
- ruby_audit (2.3.1)
275
+ ruby_audit (3.1.0)
244
276
  bundler-audit (~> 0.9.0)
245
- rubyzip (2.3.2)
246
- securerandom (0.4.0)
247
- selenium-webdriver (4.10.0)
277
+ rubyzip (3.2.2)
278
+ securerandom (0.4.1)
279
+ selenium-webdriver (4.1.0)
280
+ childprocess (>= 0.5, < 5.0)
248
281
  rexml (~> 3.2, >= 3.2.5)
249
- rubyzip (>= 1.2.2, < 3.0)
250
- websocket (~> 1.0)
251
- stringio (3.1.2)
252
- thor (1.3.2)
253
- timeout (0.4.2)
282
+ rubyzip (>= 1.2.2)
283
+ stringio (3.2.0)
284
+ thor (1.5.0)
285
+ timeout (0.6.0)
286
+ tsort (0.2.0)
254
287
  tzinfo (2.0.6)
255
288
  concurrent-ruby (~> 1.0)
256
- unicode-display_width (3.1.2)
257
- unicode-emoji (~> 4.0, >= 4.0.4)
258
- unicode-emoji (4.0.4)
259
- uri (1.0.2)
289
+ unicode-display_width (3.2.0)
290
+ unicode-emoji (~> 4.1)
291
+ unicode-emoji (4.2.0)
292
+ uri (1.1.1)
260
293
  useragent (0.16.11)
261
294
  webdrivers (5.3.1)
262
295
  nokogiri (~> 1.6)
263
296
  rubyzip (>= 1.3.0)
264
297
  selenium-webdriver (~> 4.0, < 4.11)
265
- websocket (1.2.11)
266
- websocket-driver (0.7.6)
298
+ websocket-driver (0.8.0)
299
+ base64
267
300
  websocket-extensions (>= 0.1.0)
268
301
  websocket-extensions (0.1.5)
269
302
  xpath (3.2.0)
270
303
  nokogiri (~> 1.8)
271
- zeitwerk (2.7.1)
304
+ zeitwerk (2.7.4)
272
305
 
273
306
  PLATFORMS
274
- x86_64-darwin-22
275
- x86_64-darwin-23
276
- x86_64-darwin-24
277
- x86_64-linux
307
+ aarch64-linux-gnu
308
+ aarch64-linux-musl
309
+ arm-linux-gnu
310
+ arm-linux-musl
311
+ arm64-darwin
312
+ x86_64-darwin
313
+ x86_64-linux-gnu
314
+ x86_64-linux-musl
278
315
 
279
316
  DEPENDENCIES
280
317
  bootsnap
281
- bundler (~> 2.3)
318
+ bundler (~> 2.6)
282
319
  bundler-audit
283
320
  capybara
284
321
  config (>= 3.0)
@@ -286,8 +323,8 @@ DEPENDENCIES
286
323
  debug
287
324
  minitest (~> 5.0)
288
325
  propshaft
289
- puma (~> 6.0)
290
- rails (~> 8.0.0)
326
+ puma (~> 7.2)
327
+ rails (~> 8.1.2)
291
328
  rake (~> 13.0)
292
329
  rubocop (~> 1.21)
293
330
  rubocop-minitest
@@ -301,4 +338,4 @@ DEPENDENCIES
301
338
  webdrivers
302
339
 
303
340
  BUNDLED WITH
304
- 2.5.23
341
+ 2.6.9
@@ -4,23 +4,33 @@ require 'logger'
4
4
 
5
5
  # Unified way to get settings
6
6
  module UnifiedSettings
7
- include ActiveSupport::Configurable
7
+ # Config object to emulate ActiveSupport::Configurable behavior that is
8
+ # deprecated in Rails 8.2
9
+ class Config
10
+ attr_accessor :handlers, :default_value, :case_sensitive, :on_missing_key,
11
+ :coercions, :coerce_arrays, :coerce_array_separator
12
+
13
+ def initialize
14
+ @handlers = [
15
+ Handlers::Env, Handlers::Credentials, Handlers::Constants
16
+ ]
17
+ @default_value = nil
18
+ @case_sensitive = false
19
+ @on_missing_key = [:log_error]
20
+ @coercions = %i[nil boolean integer float]
21
+ @coerce_arrays = true
22
+ @coerce_array_separator = ','
23
+ end
24
+ end
8
25
 
9
26
  NO_DEFAULT = :no_default
10
27
 
28
+ def self.config
29
+ @config ||= Config.new
30
+ end
31
+
11
32
  def self.configure
12
- # Set the defaults
13
- config.handlers = [
14
- Handlers::Env, Handlers::Credentials, Handlers::Constants
15
- ]
16
- config.default_value = nil
17
- config.case_sensitive = false
18
- config.on_missing_key = [:log_error]
19
- config.coercions = %i[nil boolean integer float]
20
- config.coerce_arrays = true
21
- config.coerce_array_separator = ','
22
-
23
- super
33
+ yield config if block_given?
24
34
 
25
35
  # Create an instance of the settings that can be used
26
36
  @settings = Settings.new
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module UnifiedSettings
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: unified_settings
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
@@ -71,7 +70,6 @@ metadata:
71
70
  source_code_uri: https://github.com/prschmid/unified_settings
72
71
  changelog_uri: https://github.com/prschmid/unified_settings
73
72
  rubygems_mfa_required: 'true'
74
- post_install_message:
75
73
  rdoc_options: []
76
74
  require_paths:
77
75
  - lib
@@ -79,15 +77,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
79
77
  requirements:
80
78
  - - ">="
81
79
  - !ruby/object:Gem::Version
82
- version: '3.3'
80
+ version: '3.4'
83
81
  required_rubygems_version: !ruby/object:Gem::Requirement
84
82
  requirements:
85
83
  - - ">="
86
84
  - !ruby/object:Gem::Version
87
85
  version: '0'
88
86
  requirements: []
89
- rubygems_version: 3.5.22
90
- signing_key:
87
+ rubygems_version: 3.6.9
91
88
  specification_version: 4
92
89
  summary: A unified way to get settings from different sources.
93
90
  test_files: []