config_default 0.3.3 → 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: 3b92a35721ebb7c3e7b208fc2bf2bb45a7d2276c0964f9fda4c1b24a06ea70b6
4
- data.tar.gz: b453466b7af77aad6cd857b33d0a45feca68d72ae68f5d129a86c5298ea29762
3
+ metadata.gz: dd2b2151255612de4a96754aa6d2e6ecfd94c5eb4c495936a11903aa706ada9c
4
+ data.tar.gz: 6fb8f1d98735c72bc853d8dfad2a5db90b1ddb415a0c4a962cbc7312df40d54e
5
5
  SHA512:
6
- metadata.gz: f52175fa7fae1627f93fc95d00829929f4b1937b205d682516d96793e1576101f2b24b8b0383e80c36baf3230f84fecc52fc52d295604c9d0a33f98dd416998a
7
- data.tar.gz: 5ee49bfcecb8a15a83030c247e70cbdde7edb94ffd5735c8beb5a3e6c1a2806664fc23c22cba69b13d0c397f5f831fd3fce72f5fad6d7e0b7e36415aefd590de
6
+ metadata.gz: cb162516ca7ecd4fc9792f56c4becafa21cb9f7f752252b60a9773ce7b5ed436bf533c123e34537ddaded77e4f1c4ba1ede81f216701758682cf664ec20470b4
7
+ data.tar.gz: 1302f57f8a047149c4ee41b30ad3ff0fcb07cb28132c7a1fa8958bf9a3c12f6293f7382b5753a84101228e02994ce460fffcfb5dd2b81b10663bbc81c2aaabb9
@@ -24,7 +24,7 @@ jobs:
24
24
 
25
25
  strategy:
26
26
  matrix:
27
- ruby: [3.2, 3.3, 3.4]
27
+ ruby: [3.2, 3.3, 3.4, 4.0]
28
28
 
29
29
  steps:
30
30
  - uses: actions/checkout@v2
data/Gemfile.lock CHANGED
@@ -1,37 +1,37 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- config_default (0.3.3)
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)
@@ -83,31 +83,31 @@ GEM
83
83
  uri (>= 0.13.1)
84
84
  ast (2.4.3)
85
85
  base64 (0.3.0)
86
- bigdecimal (3.3.1)
86
+ bigdecimal (4.0.1)
87
87
  builder (3.3.0)
88
88
  coderay (1.1.3)
89
- concurrent-ruby (1.3.5)
90
- connection_pool (2.5.4)
89
+ concurrent-ruby (1.3.6)
90
+ connection_pool (3.0.2)
91
91
  crass (1.0.6)
92
- date (3.5.0)
92
+ date (3.5.1)
93
93
  diff-lcs (1.6.2)
94
94
  drb (2.2.3)
95
- erb (5.1.3)
95
+ erb (6.0.1)
96
96
  erubi (1.13.1)
97
97
  globalid (1.3.0)
98
98
  activesupport (>= 6.1)
99
- i18n (1.14.7)
99
+ i18n (1.14.8)
100
100
  concurrent-ruby (~> 1.0)
101
- io-console (0.8.1)
102
- irb (1.15.3)
101
+ io-console (0.8.2)
102
+ irb (1.16.0)
103
103
  pp (>= 0.6.0)
104
104
  rdoc (>= 4.0.0)
105
105
  reline (>= 0.4.2)
106
- json (2.15.2)
106
+ json (2.18.0)
107
107
  language_server-protocol (3.17.0.5)
108
108
  lint_roller (1.1.0)
109
109
  logger (1.7.0)
110
- loofah (2.24.1)
110
+ loofah (2.25.0)
111
111
  crass (~> 1.0.2)
112
112
  nokogiri (>= 1.12.0)
113
113
  mail (2.9.0)
@@ -119,8 +119,9 @@ GEM
119
119
  marcel (1.1.0)
120
120
  method_source (1.1.0)
121
121
  mini_mime (1.1.5)
122
- minitest (5.26.0)
123
- net-imap (0.5.12)
122
+ minitest (6.0.1)
123
+ prism (~> 1.5)
124
+ net-imap (0.6.2)
124
125
  date
125
126
  net-protocol
126
127
  net-pop (0.1.2)
@@ -130,24 +131,25 @@ GEM
130
131
  net-smtp (0.5.1)
131
132
  net-protocol
132
133
  nio4r (2.7.5)
133
- nokogiri (1.18.10-arm64-darwin)
134
+ nokogiri (1.19.0-arm64-darwin)
134
135
  racc (~> 1.4)
135
- nokogiri (1.18.10-x86_64-darwin)
136
+ nokogiri (1.19.0-x86_64-darwin)
136
137
  racc (~> 1.4)
137
- nokogiri (1.18.10-x86_64-linux-gnu)
138
+ nokogiri (1.19.0-x86_64-linux-gnu)
138
139
  racc (~> 1.4)
139
140
  parallel (1.27.0)
140
- parser (3.3.10.0)
141
+ parser (3.3.10.1)
141
142
  ast (~> 2.4.1)
142
143
  racc
143
144
  pp (0.6.3)
144
145
  prettyprint
145
146
  prettyprint (0.2.0)
146
- prism (1.6.0)
147
- pry (0.15.2)
147
+ prism (1.8.0)
148
+ pry (0.16.0)
148
149
  coderay (~> 1.1)
149
150
  method_source (~> 1.0)
150
- psych (5.2.6)
151
+ reline (>= 0.6.0)
152
+ psych (5.3.1)
151
153
  date
152
154
  stringio
153
155
  racc (1.8.1)
@@ -157,22 +159,22 @@ GEM
157
159
  rack (>= 3.0.0)
158
160
  rack-test (2.2.0)
159
161
  rack (>= 1.3)
160
- rackup (2.2.1)
162
+ rackup (2.3.1)
161
163
  rack (>= 3)
162
- rails (8.1.1)
163
- actioncable (= 8.1.1)
164
- actionmailbox (= 8.1.1)
165
- actionmailer (= 8.1.1)
166
- actionpack (= 8.1.1)
167
- actiontext (= 8.1.1)
168
- actionview (= 8.1.1)
169
- activejob (= 8.1.1)
170
- activemodel (= 8.1.1)
171
- activerecord (= 8.1.1)
172
- activestorage (= 8.1.1)
173
- 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)
174
176
  bundler (>= 1.15.0)
175
- railties (= 8.1.1)
177
+ railties (= 8.1.2)
176
178
  rails-dom-testing (2.3.0)
177
179
  activesupport (>= 5.0.0)
178
180
  minitest
@@ -180,9 +182,9 @@ GEM
180
182
  rails-html-sanitizer (1.6.2)
181
183
  loofah (~> 2.21)
182
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)
183
- railties (8.1.1)
184
- actionpack (= 8.1.1)
185
- activesupport (= 8.1.1)
185
+ railties (8.1.2)
186
+ actionpack (= 8.1.2)
187
+ activesupport (= 8.1.2)
186
188
  irb (~> 1.13)
187
189
  rackup (>= 1.0.0)
188
190
  rake (>= 12.2)
@@ -191,12 +193,12 @@ GEM
191
193
  zeitwerk (~> 2.6)
192
194
  rainbow (3.1.1)
193
195
  rake (13.3.1)
194
- rdoc (6.15.1)
196
+ rdoc (7.1.0)
195
197
  erb
196
198
  psych (>= 4.0.0)
197
199
  tsort
198
200
  regexp_parser (2.11.3)
199
- reline (0.6.2)
201
+ reline (0.6.3)
200
202
  io-console (~> 0.5)
201
203
  rspec (3.13.2)
202
204
  rspec-core (~> 3.13.0)
@@ -211,7 +213,7 @@ GEM
211
213
  diff-lcs (>= 1.2.0, < 2.0)
212
214
  rspec-support (~> 3.13.0)
213
215
  rspec-support (3.13.6)
214
- rubocop (1.81.7)
216
+ rubocop (1.82.1)
215
217
  json (~> 2.3)
216
218
  language_server-protocol (~> 3.17.0.2)
217
219
  lint_roller (~> 1.1.0)
@@ -219,14 +221,14 @@ GEM
219
221
  parser (>= 3.3.0.2)
220
222
  rainbow (>= 2.2.2, < 4.0)
221
223
  regexp_parser (>= 2.9.3, < 3.0)
222
- rubocop-ast (>= 1.47.1, < 2.0)
224
+ rubocop-ast (>= 1.48.0, < 2.0)
223
225
  ruby-progressbar (~> 1.7)
224
226
  unicode-display_width (>= 2.4.0, < 4.0)
225
- rubocop-ast (1.47.1)
227
+ rubocop-ast (1.49.0)
226
228
  parser (>= 3.3.7.2)
227
- prism (~> 1.4)
228
- rubocop-config-umbrellio (1.81.109)
229
- rubocop (~> 1.81.0)
229
+ prism (~> 1.7)
230
+ rubocop-config-umbrellio (1.82.114)
231
+ rubocop (~> 1.82.0)
230
232
  rubocop-factory_bot (~> 2.27.0)
231
233
  rubocop-performance (~> 1.26.0)
232
234
  rubocop-rails (~> 2.33.0)
@@ -257,22 +259,22 @@ GEM
257
259
  rubocop (>= 1.72.1, < 2)
258
260
  ruby-progressbar (1.13.0)
259
261
  securerandom (0.4.1)
260
- stringio (3.1.7)
261
- thor (1.4.0)
262
- timeout (0.4.4)
262
+ stringio (3.2.0)
263
+ thor (1.5.0)
264
+ timeout (0.6.0)
263
265
  tsort (0.2.0)
264
266
  tzinfo (2.0.6)
265
267
  concurrent-ruby (~> 1.0)
266
268
  unicode-display_width (3.2.0)
267
269
  unicode-emoji (~> 4.1)
268
- unicode-emoji (4.1.0)
270
+ unicode-emoji (4.2.0)
269
271
  uri (1.1.1)
270
272
  useragent (0.16.11)
271
273
  websocket-driver (0.8.0)
272
274
  base64
273
275
  websocket-extensions (>= 0.1.0)
274
276
  websocket-extensions (0.1.5)
275
- zeitwerk (2.7.3)
277
+ zeitwerk (2.7.4)
276
278
 
277
279
  PLATFORMS
278
280
  arm64-darwin
@@ -288,4 +290,4 @@ DEPENDENCIES
288
290
  rubocop-config-umbrellio
289
291
 
290
292
  BUNDLED WITH
291
- 2.7.2
293
+ 4.0.4
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ConfigDefault
4
- VERSION = "0.3.3"
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.3.3
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: 3.7.2
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: []