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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MmQ4NGYyYzAzM2U3NGJlY2EzMDFlMjU1OGJiYzdlMmQ2YjJkMzZmZA==
4
+ YjkyZDI4ZDcwMWQzZTM3NTJiYzJiYmNjNDI2N2U2NmZkNWI1Y2M3MQ==
5
5
  data.tar.gz: !binary |-
6
- NjFhYmFkMDI1NTFiZjExOTJiMzBhODhlYjdmYjBlYzQwZmNjZTFlMg==
6
+ Zjk2ZmQ3YWFhYjE2ZTk2NzdlOTUyMDkyNDU3MDNiNDgwZTc5MmM3Mg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- OWQ2NTFhYzk5OGYzODkyZDA0ODA4ZmMxMTc0MTVlMjFmN2VkYTUxYTIzNGI5
10
- ZmVkNjFhZDY2MjFhNzZjNzQxMWE5MTY4YTE2ZjI4NzZhOWNjNjdiNDE5MDUx
11
- YjFjNzk2OTQ3YzA3Mzg2YTYyYTY0YTM2Yzg5Nzc5YmRmYTdjMDM=
9
+ NzNjNzJhZDgyMjNjMjNiZjYzMjEzZjI0NmU0NTFkYmY4ZmY1MWI0NGY1MWM4
10
+ NjUwMTNmODA4NjYwNjQ3NzYwYTUyMjQyOWExOTJlM2I0ZjU0ODE1NDc5ODJi
11
+ OWM5NDIxMDkxYWE4YjAyYmQ5NmZiMDIzMjE1MWI0MTBjMmVjMTE=
12
12
  data.tar.gz: !binary |-
13
- OWUwN2ZkNDk4NTYzNDljNThkMDgwNjEzZDVmMTY4Y2RmZTg2YTA2ODdhODAy
14
- NWRmY2E1OWJjMjg4MzZjMTQxMzkzYmMwOGVmNDUxOTc4ZTUxYzQ3MmU0NjBk
15
- ZmEzMjhlM2Y4ODljMjIyZjFhNDVkZjEzZWY3ZmVjNjYxNmVkZDE=
13
+ MWY0Y2M5ZWQ0YTQ3ZWNlZTljM2I0NmYwYjBkNDc5OTcwN2YxODcyYWM4YWY1
14
+ NjliYmZmZmMxYzE3YjJhOGQ1MDBkNTAwMDU0MDMyN2RhYTgxYTBiNWI2YWQw
15
+ MWE0YjgzZWM5OWVhNzZmYzBlNDY3Y2YwNTc4MzhlZjIxODMzZmM=
@@ -16,7 +16,12 @@ class Inprovise::Config
16
16
  private :_v_
17
17
 
18
18
  def get(key)
19
- Symbol === key ? @table[key] : key.to_s.split('.').reduce(@table) { |t,k| t[k.to_sym] ||= self.class.new }
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)
@@ -5,6 +5,6 @@
5
5
 
6
6
  module Inprovise
7
7
 
8
- VERSION = '0.2.10'
8
+ VERSION = '0.2.11'
9
9
 
10
10
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inprovise
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.10
4
+ version: 0.2.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Corino