config_default 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c6d364e12aa53e53403e1d07d97af5e4aa8bf3ebad0e68d89b208aa5e0d3d36e
4
- data.tar.gz: 8d0a52621b05763871f6f08f45280a6d5098c331e2678def37195d870c7e3c77
3
+ metadata.gz: 4507e90d9bb3f204a007a1d66e4d2a861380b7a1270754e5adcae6319dd0ade6
4
+ data.tar.gz: f967fddbd62e8ddb92ca9e162c3471a3e0dd09573edd4e814fc14618a7861d98
5
5
  SHA512:
6
- metadata.gz: 33fff861a6c04f26f96ba558b08bcc1d085391a0a296e519b83cba6386bd32fa6b57cc541eb2ec7acd90623556b0679a39b314cecdaf82870e54580ea76d858e
7
- data.tar.gz: 76c86562331604f05c83bbc31e273216d46074785bb29f3eae875f9f22be975ef6b72ae466b32a0a9cc70a5eea3570bea5fed392130eff48e0d740ba1b8f0d23
6
+ metadata.gz: 7a2209a32fec7c10bb1ea0ecbfc03800bc6da8e10ababb9cb37336f445fd01c9608568b97189dc7b5511d4aad7157a200af0b455d68d136ecdc5082896375c38
7
+ data.tar.gz: 72792f9a6bfb4774169436dec22f1638cd8f01ba412bf553fbb930ad6e348c7cd8d15ede3273fa82f23462ffe7b3665044a50d94e7cfb42a0ee3050d4a20314d
data/Gemfile.lock CHANGED
@@ -1,73 +1,73 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- config_default (0.2.3)
4
+ config_default (0.2.4)
5
5
  activesupport (>= 6)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- actioncable (7.0.1)
11
- actionpack (= 7.0.1)
12
- activesupport (= 7.0.1)
10
+ actioncable (7.0.3.1)
11
+ actionpack (= 7.0.3.1)
12
+ activesupport (= 7.0.3.1)
13
13
  nio4r (~> 2.0)
14
14
  websocket-driver (>= 0.6.1)
15
- actionmailbox (7.0.1)
16
- actionpack (= 7.0.1)
17
- activejob (= 7.0.1)
18
- activerecord (= 7.0.1)
19
- activestorage (= 7.0.1)
20
- activesupport (= 7.0.1)
15
+ actionmailbox (7.0.3.1)
16
+ actionpack (= 7.0.3.1)
17
+ activejob (= 7.0.3.1)
18
+ activerecord (= 7.0.3.1)
19
+ activestorage (= 7.0.3.1)
20
+ activesupport (= 7.0.3.1)
21
21
  mail (>= 2.7.1)
22
22
  net-imap
23
23
  net-pop
24
24
  net-smtp
25
- actionmailer (7.0.1)
26
- actionpack (= 7.0.1)
27
- actionview (= 7.0.1)
28
- activejob (= 7.0.1)
29
- activesupport (= 7.0.1)
25
+ actionmailer (7.0.3.1)
26
+ actionpack (= 7.0.3.1)
27
+ actionview (= 7.0.3.1)
28
+ activejob (= 7.0.3.1)
29
+ activesupport (= 7.0.3.1)
30
30
  mail (~> 2.5, >= 2.5.4)
31
31
  net-imap
32
32
  net-pop
33
33
  net-smtp
34
34
  rails-dom-testing (~> 2.0)
35
- actionpack (7.0.1)
36
- actionview (= 7.0.1)
37
- activesupport (= 7.0.1)
35
+ actionpack (7.0.3.1)
36
+ actionview (= 7.0.3.1)
37
+ activesupport (= 7.0.3.1)
38
38
  rack (~> 2.0, >= 2.2.0)
39
39
  rack-test (>= 0.6.3)
40
40
  rails-dom-testing (~> 2.0)
41
41
  rails-html-sanitizer (~> 1.0, >= 1.2.0)
42
- actiontext (7.0.1)
43
- actionpack (= 7.0.1)
44
- activerecord (= 7.0.1)
45
- activestorage (= 7.0.1)
46
- activesupport (= 7.0.1)
42
+ actiontext (7.0.3.1)
43
+ actionpack (= 7.0.3.1)
44
+ activerecord (= 7.0.3.1)
45
+ activestorage (= 7.0.3.1)
46
+ activesupport (= 7.0.3.1)
47
47
  globalid (>= 0.6.0)
48
48
  nokogiri (>= 1.8.5)
49
- actionview (7.0.1)
50
- activesupport (= 7.0.1)
49
+ actionview (7.0.3.1)
50
+ activesupport (= 7.0.3.1)
51
51
  builder (~> 3.1)
52
52
  erubi (~> 1.4)
53
53
  rails-dom-testing (~> 2.0)
54
54
  rails-html-sanitizer (~> 1.1, >= 1.2.0)
55
- activejob (7.0.1)
56
- activesupport (= 7.0.1)
55
+ activejob (7.0.3.1)
56
+ activesupport (= 7.0.3.1)
57
57
  globalid (>= 0.3.6)
58
- activemodel (7.0.1)
59
- activesupport (= 7.0.1)
60
- activerecord (7.0.1)
61
- activemodel (= 7.0.1)
62
- activesupport (= 7.0.1)
63
- activestorage (7.0.1)
64
- actionpack (= 7.0.1)
65
- activejob (= 7.0.1)
66
- activerecord (= 7.0.1)
67
- activesupport (= 7.0.1)
58
+ activemodel (7.0.3.1)
59
+ activesupport (= 7.0.3.1)
60
+ activerecord (7.0.3.1)
61
+ activemodel (= 7.0.3.1)
62
+ activesupport (= 7.0.3.1)
63
+ activestorage (7.0.3.1)
64
+ actionpack (= 7.0.3.1)
65
+ activejob (= 7.0.3.1)
66
+ activerecord (= 7.0.3.1)
67
+ activesupport (= 7.0.3.1)
68
68
  marcel (~> 1.0)
69
69
  mini_mime (>= 1.1.0)
70
- activesupport (7.0.1)
70
+ activesupport (7.0.3.1)
71
71
  concurrent-ruby (~> 1.0, >= 1.0.2)
72
72
  i18n (>= 1.6, < 2)
73
73
  minitest (>= 5.1)
@@ -75,17 +75,16 @@ GEM
75
75
  ast (2.4.2)
76
76
  builder (3.2.4)
77
77
  coderay (1.1.3)
78
- concurrent-ruby (1.1.9)
78
+ concurrent-ruby (1.1.10)
79
79
  crass (1.0.6)
80
80
  diff-lcs (1.5.0)
81
81
  digest (3.1.0)
82
82
  erubi (1.10.0)
83
83
  globalid (1.0.0)
84
84
  activesupport (>= 5.0)
85
- i18n (1.8.11)
85
+ i18n (1.12.0)
86
86
  concurrent-ruby (~> 1.0)
87
- io-wait (0.2.1)
88
- loofah (2.13.0)
87
+ loofah (2.18.0)
89
88
  crass (~> 1.0.2)
90
89
  nokogiri (>= 1.5.9)
91
90
  mail (2.7.1)
@@ -93,7 +92,7 @@ GEM
93
92
  marcel (1.0.2)
94
93
  method_source (1.0.0)
95
94
  mini_mime (1.1.2)
96
- minitest (5.15.0)
95
+ minitest (5.16.2)
97
96
  net-imap (0.2.3)
98
97
  digest
99
98
  net-protocol
@@ -102,113 +101,112 @@ GEM
102
101
  digest
103
102
  net-protocol
104
103
  timeout
105
- net-protocol (0.1.2)
106
- io-wait
104
+ net-protocol (0.1.3)
107
105
  timeout
108
106
  net-smtp (0.3.1)
109
107
  digest
110
108
  net-protocol
111
109
  timeout
112
110
  nio4r (2.5.8)
113
- nokogiri (1.13.1-x86_64-darwin)
111
+ nokogiri (1.13.7-x86_64-darwin)
114
112
  racc (~> 1.4)
115
- nokogiri (1.13.1-x86_64-linux)
113
+ nokogiri (1.13.7-x86_64-linux)
116
114
  racc (~> 1.4)
117
- parallel (1.21.0)
118
- parser (3.1.0.0)
115
+ parallel (1.22.1)
116
+ parser (3.1.2.0)
119
117
  ast (~> 2.4.1)
120
118
  pry (0.14.1)
121
119
  coderay (~> 1.1)
122
120
  method_source (~> 1.0)
123
121
  racc (1.6.0)
124
- rack (2.2.3)
125
- rack-test (1.1.0)
126
- rack (>= 1.0, < 3)
127
- rails (7.0.1)
128
- actioncable (= 7.0.1)
129
- actionmailbox (= 7.0.1)
130
- actionmailer (= 7.0.1)
131
- actionpack (= 7.0.1)
132
- actiontext (= 7.0.1)
133
- actionview (= 7.0.1)
134
- activejob (= 7.0.1)
135
- activemodel (= 7.0.1)
136
- activerecord (= 7.0.1)
137
- activestorage (= 7.0.1)
138
- activesupport (= 7.0.1)
122
+ rack (2.2.4)
123
+ rack-test (2.0.2)
124
+ rack (>= 1.3)
125
+ rails (7.0.3.1)
126
+ actioncable (= 7.0.3.1)
127
+ actionmailbox (= 7.0.3.1)
128
+ actionmailer (= 7.0.3.1)
129
+ actionpack (= 7.0.3.1)
130
+ actiontext (= 7.0.3.1)
131
+ actionview (= 7.0.3.1)
132
+ activejob (= 7.0.3.1)
133
+ activemodel (= 7.0.3.1)
134
+ activerecord (= 7.0.3.1)
135
+ activestorage (= 7.0.3.1)
136
+ activesupport (= 7.0.3.1)
139
137
  bundler (>= 1.15.0)
140
- railties (= 7.0.1)
138
+ railties (= 7.0.3.1)
141
139
  rails-dom-testing (2.0.3)
142
140
  activesupport (>= 4.2.0)
143
141
  nokogiri (>= 1.6)
144
- rails-html-sanitizer (1.4.2)
142
+ rails-html-sanitizer (1.4.3)
145
143
  loofah (~> 2.3)
146
- railties (7.0.1)
147
- actionpack (= 7.0.1)
148
- activesupport (= 7.0.1)
144
+ railties (7.0.3.1)
145
+ actionpack (= 7.0.3.1)
146
+ activesupport (= 7.0.3.1)
149
147
  method_source
150
148
  rake (>= 12.2)
151
149
  thor (~> 1.0)
152
150
  zeitwerk (~> 2.5)
153
151
  rainbow (3.1.1)
154
152
  rake (13.0.6)
155
- regexp_parser (2.2.0)
153
+ regexp_parser (2.5.0)
156
154
  rexml (3.2.5)
157
- rspec (3.10.0)
158
- rspec-core (~> 3.10.0)
159
- rspec-expectations (~> 3.10.0)
160
- rspec-mocks (~> 3.10.0)
161
- rspec-core (3.10.1)
162
- rspec-support (~> 3.10.0)
163
- rspec-expectations (3.10.2)
155
+ rspec (3.11.0)
156
+ rspec-core (~> 3.11.0)
157
+ rspec-expectations (~> 3.11.0)
158
+ rspec-mocks (~> 3.11.0)
159
+ rspec-core (3.11.0)
160
+ rspec-support (~> 3.11.0)
161
+ rspec-expectations (3.11.0)
164
162
  diff-lcs (>= 1.2.0, < 2.0)
165
- rspec-support (~> 3.10.0)
166
- rspec-mocks (3.10.2)
163
+ rspec-support (~> 3.11.0)
164
+ rspec-mocks (3.11.1)
167
165
  diff-lcs (>= 1.2.0, < 2.0)
168
- rspec-support (~> 3.10.0)
169
- rspec-support (3.10.3)
170
- rubocop (1.25.0)
166
+ rspec-support (~> 3.11.0)
167
+ rspec-support (3.11.0)
168
+ rubocop (1.30.1)
171
169
  parallel (~> 1.10)
172
170
  parser (>= 3.1.0.0)
173
171
  rainbow (>= 2.2.2, < 4.0)
174
172
  regexp_parser (>= 1.8, < 3.0)
175
- rexml
176
- rubocop-ast (>= 1.15.1, < 2.0)
173
+ rexml (>= 3.2.5, < 4.0)
174
+ rubocop-ast (>= 1.18.0, < 2.0)
177
175
  ruby-progressbar (~> 1.7)
178
176
  unicode-display_width (>= 1.4.0, < 3.0)
179
- rubocop-ast (1.15.1)
180
- parser (>= 3.0.1.1)
181
- rubocop-config-umbrellio (1.25.0.61)
182
- rubocop (~> 1.25.0)
183
- rubocop-performance (~> 1.13.0)
184
- rubocop-rails (~> 2.13.0)
177
+ rubocop-ast (1.19.1)
178
+ parser (>= 3.1.1.0)
179
+ rubocop-config-umbrellio (1.30.0.65)
180
+ rubocop (~> 1.30.0)
181
+ rubocop-performance (~> 1.14.0)
182
+ rubocop-rails (~> 2.14.2)
185
183
  rubocop-rake (~> 0.6.0)
186
- rubocop-rspec (~> 2.7.0)
184
+ rubocop-rspec (~> 2.11.1)
187
185
  rubocop-sequel (~> 0.3.3)
188
- rubocop-performance (1.13.2)
186
+ rubocop-performance (1.14.3)
189
187
  rubocop (>= 1.7.0, < 2.0)
190
188
  rubocop-ast (>= 0.4.0)
191
- rubocop-rails (2.13.2)
189
+ rubocop-rails (2.14.2)
192
190
  activesupport (>= 4.2.0)
193
191
  rack (>= 1.1)
194
192
  rubocop (>= 1.7.0, < 2.0)
195
193
  rubocop-rake (0.6.0)
196
194
  rubocop (~> 1.0)
197
- rubocop-rspec (2.7.0)
195
+ rubocop-rspec (2.11.1)
198
196
  rubocop (~> 1.19)
199
- rubocop-sequel (0.3.3)
197
+ rubocop-sequel (0.3.4)
200
198
  rubocop (~> 1.0)
201
199
  ruby-progressbar (1.11.0)
202
- strscan (3.0.1)
200
+ strscan (3.0.3)
203
201
  thor (1.2.1)
204
- timeout (0.2.0)
205
- tzinfo (2.0.4)
202
+ timeout (0.3.0)
203
+ tzinfo (2.0.5)
206
204
  concurrent-ruby (~> 1.0)
207
- unicode-display_width (2.1.0)
205
+ unicode-display_width (2.2.0)
208
206
  websocket-driver (0.7.5)
209
207
  websocket-extensions (>= 0.1.0)
210
208
  websocket-extensions (0.1.5)
211
- zeitwerk (2.5.3)
209
+ zeitwerk (2.6.0)
212
210
 
213
211
  PLATFORMS
214
212
  x86_64-darwin-20
data/README.md CHANGED
@@ -2,7 +2,6 @@
2
2
 
3
3
  ConfigDefault is a simple way to separate your test/development config from your staging/production config.
4
4
  Designed to work with [Rails](https://github.com/rails/rails). It depends on `ActiveSupport`.
5
- Maybe in future I'll remove Rails dependency (cause it's never cool) and leave only ActiveSupport.
6
5
 
7
6
  ## Installation
8
7
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ConfigDefault
4
- VERSION = "0.2.3"
4
+ VERSION = "0.2.4"
5
5
  end
@@ -31,6 +31,8 @@ module ConfigDefault
31
31
  data = default_config.deep_merge(config)
32
32
  data = key ? data[key] : data
33
33
 
34
+ return {} if data.nil?
35
+
34
36
  if deep_symbolize_keys
35
37
  data.deep_symbolize_keys
36
38
  elsif symbolize_keys
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: config_default
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stepan Kirushkin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-04-19 00:00:00.000000000 Z
11
+ date: 2022-07-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -73,7 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
73
73
  - !ruby/object:Gem::Version
74
74
  version: '0'
75
75
  requirements: []
76
- rubygems_version: 3.3.3
76
+ rubygems_version: 3.3.12
77
77
  signing_key:
78
78
  specification_version: 4
79
79
  summary: A simple way to manage default and env configuration in Rails.