configlogic 2.0.9.1 → 2.0.10
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 +4 -4
- data/Gemfile.lock +1 -1
- data/configlogic.gemspec +1 -1
- data/lib/configlogic.rb +1 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2ff9f21b871547a845ebf52393b6ae78f0f43f33
|
|
4
|
+
data.tar.gz: cf78b2fee76a6f80333a888e360db8d4a05af13f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 29bcb7e9ba8dd0734ea5eabd0efd7698b5d6b3fcf92465011c25eead42eb95612b521da172cb88e20765369f12b015a3da8c6f07c3d00aa107f15e1f11b983b4
|
|
7
|
+
data.tar.gz: ac2d35b9ad4ba944f716ea9e487cf3476977198f0d69fc855f72ec39a8c5086ba90fba41e49d381fd669ae56ae8c91262263dfdb1bf270ce8781e99017c5c724
|
data/Gemfile.lock
CHANGED
data/configlogic.gemspec
CHANGED
data/lib/configlogic.rb
CHANGED
|
@@ -120,6 +120,7 @@ class Configlogic < Hash
|
|
|
120
120
|
# Called for dynamically-defined keys, and also the first key deferenced at the top-level, if load! is not used.
|
|
121
121
|
# Otherwise, create_accessors! (called by new) will have created actual methods for each key.
|
|
122
122
|
def method_missing(name, *args, &block)
|
|
123
|
+
super if name === :to_ary # delegate to_ary to Hash
|
|
123
124
|
key = name.to_s
|
|
124
125
|
return missing_key("Missing setting '#{key}' in #{@section}") unless has_key? key
|
|
125
126
|
value = fetch(key)
|