config_default 0.4.0 → 0.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: 92dd218f8a1be7a70e0db01df45c8fada10764d21630cc9f2c3d23f2e2d1f410
4
- data.tar.gz: ebba8ce2e496548c2eab5654ae929843f1fec470e47e7dd5c4c5991443fdd436
3
+ metadata.gz: dd2b2151255612de4a96754aa6d2e6ecfd94c5eb4c495936a11903aa706ada9c
4
+ data.tar.gz: 6fb8f1d98735c72bc853d8dfad2a5db90b1ddb415a0c4a962cbc7312df40d54e
5
5
  SHA512:
6
- metadata.gz: 3200b3c18516614f756faab457fd7cef675874d0511edde29f4aacaf3348c2e1339222fbb6602a23ec923ba80598e23fca343fe61057dae9bab168bfc7b1492c
7
- data.tar.gz: 6c238c29a8bc7343f13d71e07ee1da68b32263eabee089d8d8671f2d2d1f91ad9444a24bbd46d030a62475a72cb92bd24c07498f8a8ea3c70399924012f6292f
6
+ metadata.gz: cb162516ca7ecd4fc9792f56c4becafa21cb9f7f752252b60a9773ce7b5ed436bf533c123e34537ddaded77e4f1c4ba1ede81f216701758682cf664ec20470b4
7
+ data.tar.gz: 1302f57f8a047149c4ee41b30ad3ff0fcb07cb28132c7a1fa8958bf9a3c12f6293f7382b5753a84101228e02994ce460fffcfb5dd2b81b10663bbc81c2aaabb9
data/Gemfile.lock CHANGED
@@ -1,37 +1,37 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- config_default (0.4.0)
4
+ config_default (0.5.0)
5
5
  activesupport (>= 6)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- action_text-trix (2.1.15)
10
+ action_text-trix (2.1.16)
11
11
  railties
12
- actioncable (8.1.1)
13
- actionpack (= 8.1.1)
14
- activesupport (= 8.1.1)
12
+ actioncable (8.1.2)
13
+ actionpack (= 8.1.2)
14
+ activesupport (= 8.1.2)
15
15
  nio4r (~> 2.0)
16
16
  websocket-driver (>= 0.6.1)
17
17
  zeitwerk (~> 2.6)
18
- actionmailbox (8.1.1)
19
- actionpack (= 8.1.1)
20
- activejob (= 8.1.1)
21
- activerecord (= 8.1.1)
22
- activestorage (= 8.1.1)
23
- activesupport (= 8.1.1)
18
+ actionmailbox (8.1.2)
19
+ actionpack (= 8.1.2)
20
+ activejob (= 8.1.2)
21
+ activerecord (= 8.1.2)
22
+ activestorage (= 8.1.2)
23
+ activesupport (= 8.1.2)
24
24
  mail (>= 2.8.0)
25
- actionmailer (8.1.1)
26
- actionpack (= 8.1.1)
27
- actionview (= 8.1.1)
28
- activejob (= 8.1.1)
29
- activesupport (= 8.1.1)
25
+ actionmailer (8.1.2)
26
+ actionpack (= 8.1.2)
27
+ actionview (= 8.1.2)
28
+ activejob (= 8.1.2)
29
+ activesupport (= 8.1.2)
30
30
  mail (>= 2.8.0)
31
31
  rails-dom-testing (~> 2.2)
32
- actionpack (8.1.1)
33
- actionview (= 8.1.1)
34
- activesupport (= 8.1.1)
32
+ actionpack (8.1.2)
33
+ actionview (= 8.1.2)
34
+ activesupport (= 8.1.2)
35
35
  nokogiri (>= 1.8.5)
36
36
  rack (>= 2.2.4)
37
37
  rack-session (>= 1.0.1)
@@ -39,36 +39,36 @@ GEM
39
39
  rails-dom-testing (~> 2.2)
40
40
  rails-html-sanitizer (~> 1.6)
41
41
  useragent (~> 0.16)
42
- actiontext (8.1.1)
42
+ actiontext (8.1.2)
43
43
  action_text-trix (~> 2.1.15)
44
- actionpack (= 8.1.1)
45
- activerecord (= 8.1.1)
46
- activestorage (= 8.1.1)
47
- activesupport (= 8.1.1)
44
+ actionpack (= 8.1.2)
45
+ activerecord (= 8.1.2)
46
+ activestorage (= 8.1.2)
47
+ activesupport (= 8.1.2)
48
48
  globalid (>= 0.6.0)
49
49
  nokogiri (>= 1.8.5)
50
- actionview (8.1.1)
51
- activesupport (= 8.1.1)
50
+ actionview (8.1.2)
51
+ activesupport (= 8.1.2)
52
52
  builder (~> 3.1)
53
53
  erubi (~> 1.11)
54
54
  rails-dom-testing (~> 2.2)
55
55
  rails-html-sanitizer (~> 1.6)
56
- activejob (8.1.1)
57
- activesupport (= 8.1.1)
56
+ activejob (8.1.2)
57
+ activesupport (= 8.1.2)
58
58
  globalid (>= 0.3.6)
59
- activemodel (8.1.1)
60
- activesupport (= 8.1.1)
61
- activerecord (8.1.1)
62
- activemodel (= 8.1.1)
63
- activesupport (= 8.1.1)
59
+ activemodel (8.1.2)
60
+ activesupport (= 8.1.2)
61
+ activerecord (8.1.2)
62
+ activemodel (= 8.1.2)
63
+ activesupport (= 8.1.2)
64
64
  timeout (>= 0.4.0)
65
- activestorage (8.1.1)
66
- actionpack (= 8.1.1)
67
- activejob (= 8.1.1)
68
- activerecord (= 8.1.1)
69
- activesupport (= 8.1.1)
65
+ activestorage (8.1.2)
66
+ actionpack (= 8.1.2)
67
+ activejob (= 8.1.2)
68
+ activerecord (= 8.1.2)
69
+ activesupport (= 8.1.2)
70
70
  marcel (~> 1.0)
71
- activesupport (8.1.1)
71
+ activesupport (8.1.2)
72
72
  base64
73
73
  bigdecimal
74
74
  concurrent-ruby (~> 1.0, >= 1.3.1)
@@ -119,8 +119,7 @@ GEM
119
119
  marcel (1.1.0)
120
120
  method_source (1.1.0)
121
121
  mini_mime (1.1.5)
122
- mini_portile2 (2.8.9)
123
- minitest (6.0.0)
122
+ minitest (6.0.1)
124
123
  prism (~> 1.5)
125
124
  net-imap (0.6.2)
126
125
  date
@@ -132,26 +131,24 @@ GEM
132
131
  net-smtp (0.5.1)
133
132
  net-protocol
134
133
  nio4r (2.7.5)
135
- nokogiri (1.18.10)
136
- mini_portile2 (~> 2.8.2)
134
+ nokogiri (1.19.0-arm64-darwin)
137
135
  racc (~> 1.4)
138
- nokogiri (1.18.10-arm64-darwin)
136
+ nokogiri (1.19.0-x86_64-darwin)
139
137
  racc (~> 1.4)
140
- nokogiri (1.18.10-x86_64-darwin)
141
- racc (~> 1.4)
142
- nokogiri (1.18.10-x86_64-linux-gnu)
138
+ nokogiri (1.19.0-x86_64-linux-gnu)
143
139
  racc (~> 1.4)
144
140
  parallel (1.27.0)
145
- parser (3.3.10.0)
141
+ parser (3.3.10.1)
146
142
  ast (~> 2.4.1)
147
143
  racc
148
144
  pp (0.6.3)
149
145
  prettyprint
150
146
  prettyprint (0.2.0)
151
- prism (1.7.0)
152
- pry (0.15.2)
147
+ prism (1.8.0)
148
+ pry (0.16.0)
153
149
  coderay (~> 1.1)
154
150
  method_source (~> 1.0)
151
+ reline (>= 0.6.0)
155
152
  psych (5.3.1)
156
153
  date
157
154
  stringio
@@ -164,20 +161,20 @@ GEM
164
161
  rack (>= 1.3)
165
162
  rackup (2.3.1)
166
163
  rack (>= 3)
167
- rails (8.1.1)
168
- actioncable (= 8.1.1)
169
- actionmailbox (= 8.1.1)
170
- actionmailer (= 8.1.1)
171
- actionpack (= 8.1.1)
172
- actiontext (= 8.1.1)
173
- actionview (= 8.1.1)
174
- activejob (= 8.1.1)
175
- activemodel (= 8.1.1)
176
- activerecord (= 8.1.1)
177
- activestorage (= 8.1.1)
178
- activesupport (= 8.1.1)
164
+ rails (8.1.2)
165
+ actioncable (= 8.1.2)
166
+ actionmailbox (= 8.1.2)
167
+ actionmailer (= 8.1.2)
168
+ actionpack (= 8.1.2)
169
+ actiontext (= 8.1.2)
170
+ actionview (= 8.1.2)
171
+ activejob (= 8.1.2)
172
+ activemodel (= 8.1.2)
173
+ activerecord (= 8.1.2)
174
+ activestorage (= 8.1.2)
175
+ activesupport (= 8.1.2)
179
176
  bundler (>= 1.15.0)
180
- railties (= 8.1.1)
177
+ railties (= 8.1.2)
181
178
  rails-dom-testing (2.3.0)
182
179
  activesupport (>= 5.0.0)
183
180
  minitest
@@ -185,9 +182,9 @@ GEM
185
182
  rails-html-sanitizer (1.6.2)
186
183
  loofah (~> 2.21)
187
184
  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)
188
- railties (8.1.1)
189
- actionpack (= 8.1.1)
190
- activesupport (= 8.1.1)
185
+ railties (8.1.2)
186
+ actionpack (= 8.1.2)
187
+ activesupport (= 8.1.2)
191
188
  irb (~> 1.13)
192
189
  rackup (>= 1.0.0)
193
190
  rake (>= 12.2)
@@ -196,7 +193,7 @@ GEM
196
193
  zeitwerk (~> 2.6)
197
194
  rainbow (3.1.1)
198
195
  rake (13.3.1)
199
- rdoc (7.0.3)
196
+ rdoc (7.1.0)
200
197
  erb
201
198
  psych (>= 4.0.0)
202
199
  tsort
@@ -216,7 +213,7 @@ GEM
216
213
  diff-lcs (>= 1.2.0, < 2.0)
217
214
  rspec-support (~> 3.13.0)
218
215
  rspec-support (3.13.6)
219
- rubocop (1.81.7)
216
+ rubocop (1.82.1)
220
217
  json (~> 2.3)
221
218
  language_server-protocol (~> 3.17.0.2)
222
219
  lint_roller (~> 1.1.0)
@@ -224,14 +221,14 @@ GEM
224
221
  parser (>= 3.3.0.2)
225
222
  rainbow (>= 2.2.2, < 4.0)
226
223
  regexp_parser (>= 2.9.3, < 3.0)
227
- rubocop-ast (>= 1.47.1, < 2.0)
224
+ rubocop-ast (>= 1.48.0, < 2.0)
228
225
  ruby-progressbar (~> 1.7)
229
226
  unicode-display_width (>= 2.4.0, < 4.0)
230
- rubocop-ast (1.48.0)
227
+ rubocop-ast (1.49.0)
231
228
  parser (>= 3.3.7.2)
232
- prism (~> 1.4)
233
- rubocop-config-umbrellio (1.81.109)
234
- rubocop (~> 1.81.0)
229
+ prism (~> 1.7)
230
+ rubocop-config-umbrellio (1.82.114)
231
+ rubocop (~> 1.82.0)
235
232
  rubocop-factory_bot (~> 2.27.0)
236
233
  rubocop-performance (~> 1.26.0)
237
234
  rubocop-rails (~> 2.33.0)
@@ -263,7 +260,7 @@ GEM
263
260
  ruby-progressbar (1.13.0)
264
261
  securerandom (0.4.1)
265
262
  stringio (3.2.0)
266
- thor (1.4.0)
263
+ thor (1.5.0)
267
264
  timeout (0.6.0)
268
265
  tsort (0.2.0)
269
266
  tzinfo (2.0.6)
@@ -293,4 +290,4 @@ DEPENDENCIES
293
290
  rubocop-config-umbrellio
294
291
 
295
292
  BUNDLED WITH
296
- 4.0.3
293
+ 4.0.4
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ConfigDefault
4
- VERSION = "0.4.0"
4
+ VERSION = "0.5.0"
5
5
  end
@@ -26,9 +26,12 @@ module ConfigDefault
26
26
  default_config = load_file("#{name}.#{config.postfix}")
27
27
  config = load_file(name)
28
28
 
29
- data = default_config.deep_merge(config)
30
- data = data[key] if key
29
+ if key
30
+ default_config = default_config[key] || {}
31
+ config = config[key] || {}
32
+ end
31
33
 
34
+ data = default_config.deep_merge(config)
32
35
  return {} if data.nil?
33
36
 
34
37
  if deep_symbolize_keys
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: config_default
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stepan Kirushkin
@@ -69,7 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
69
69
  - !ruby/object:Gem::Version
70
70
  version: '0'
71
71
  requirements: []
72
- rubygems_version: 4.0.3
72
+ rubygems_version: 4.0.4
73
73
  specification_version: 4
74
74
  summary: A simple way to manage default and env configuration in Rails.
75
75
  test_files: []