simple-config 0.1.10 → 0.1.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/simple-config.rb +5 -3
- metadata +1 -1
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 06a6c0dbcc7748e68fe3257821892f6e15109048
|
4
|
+
data.tar.gz: ecbb45dd7cb791841ffdd5eb41a06cef0818ec7a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 37dea24bb068948e9994181257947929e57823760341c5f6a38b9c11526a4201676b9d84447c06727e50bee206c96d9a033581fb07becabcca3c244cdbd6e1db
|
7
|
+
data.tar.gz: ceaa421e08721992847a9d58f0389381992f7d057b0f6c88cf644ed82237b3e4445e233ea5fda3f3f77115810f098fb97583ad6ecc7ef768bfec34c4522d38f9
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/simple-config.rb
CHANGED
@@ -59,9 +59,11 @@ class SimpleConfig
|
|
59
59
|
end
|
60
60
|
|
61
61
|
end
|
62
|
-
|
63
|
-
|
64
|
-
|
62
|
+
|
63
|
+
anonymous_items, remaining = a.partition {|x| x.first == :description }
|
64
|
+
|
65
|
+
if anonymous_items.any? then
|
66
|
+
return {items: anonymous_items.map(&:last)}.merge(Hash[remaining])
|
65
67
|
else
|
66
68
|
@to_h = Hash[a]
|
67
69
|
end
|
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|