inprovise 0.2.10 → 0.2.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/inprovise/config.rb +6 -1
- data/lib/inprovise/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YjkyZDI4ZDcwMWQzZTM3NTJiYzJiYmNjNDI2N2U2NmZkNWI1Y2M3MQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
Zjk2ZmQ3YWFhYjE2ZTk2NzdlOTUyMDkyNDU3MDNiNDgwZTc5MmM3Mg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NzNjNzJhZDgyMjNjMjNiZjYzMjEzZjI0NmU0NTFkYmY4ZmY1MWI0NGY1MWM4
|
10
|
+
NjUwMTNmODA4NjYwNjQ3NzYwYTUyMjQyOWExOTJlM2I0ZjU0ODE1NDc5ODJi
|
11
|
+
OWM5NDIxMDkxYWE4YjAyYmQ5NmZiMDIzMjE1MWI0MTBjMmVjMTE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MWY0Y2M5ZWQ0YTQ3ZWNlZTljM2I0NmYwYjBkNDc5OTcwN2YxODcyYWM4YWY1
|
14
|
+
NjliYmZmZmMxYzE3YjJhOGQ1MDBkNTAwMDU0MDMyN2RhYTgxYTBiNWI2YWQw
|
15
|
+
MWE0YjgzZWM5OWVhNzZmYzBlNDY3Y2YwNTc4MzhlZjIxODMzZmM=
|
data/lib/inprovise/config.rb
CHANGED
@@ -16,7 +16,12 @@ class Inprovise::Config
|
|
16
16
|
private :_v_
|
17
17
|
|
18
18
|
def get(key)
|
19
|
-
Symbol === key
|
19
|
+
if Symbol === key
|
20
|
+
@table[key]
|
21
|
+
else
|
22
|
+
vk = (path = key.to_s.split('.')).pop
|
23
|
+
path.reduce(@table) { |t,k| t[k.to_sym] ||= self.class.new }[vk.to_sym]
|
24
|
+
end
|
20
25
|
end
|
21
26
|
|
22
27
|
def set(key, val)
|
data/lib/inprovise/version.rb
CHANGED