hierarchical_config 0.10 → 0.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/lib/hierarchical_config/version.rb +1 -1
- data/lib/hierarchical_config.rb +2 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 502a88c0a26d91426a06e3c833476f50e6093bd8
|
4
|
+
data.tar.gz: b33a8bd047569e7aeb2265d72687a1aa3d1ec672
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 621fd79e4f0c21fa1ac2e240654f17d96541960bbea8d2aef84320321a2acf070bc5b36dc9772013164e04e5881acf8035778e23bff3883266913d5735e17a5f
|
7
|
+
data.tar.gz: a3bb54aa6e3c73bbd625caa62888e05ba90f0c2c5e9eb2b14777cd36e8ca1c20ee9ec30efeb3411677412ab04486a5fba402b6814edfa192ea4384590c5579e4
|
data/Gemfile.lock
CHANGED
data/lib/hierarchical_config.rb
CHANGED
@@ -153,7 +153,8 @@ module HierarchicalConfig
|
|
153
153
|
# it adds key to the error set
|
154
154
|
# * recursively sets open structs for deep hashes
|
155
155
|
# * recursively freezes config objects
|
156
|
-
def lock_down_and_ostructify!(
|
156
|
+
def lock_down_and_ostructify!( _hash, path, environment)
|
157
|
+
hash = Hash[_hash.map{|k,v|[k.to_s, v]}] #stringify keys
|
157
158
|
errors = []
|
158
159
|
hash.each do | key, value |
|
159
160
|
hash[key], child_errors = lock_down_and_ostructify_item!(value, path + '.' + key, environment)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hierarchical_config
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '0.
|
4
|
+
version: '0.11'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- timgaleckas
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: exe
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2019-04-04 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: bundler
|