hierarchical_config 0.3 → 0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/hierarchical_config.rb +3 -3
  2. metadata +3 -3
@@ -95,11 +95,11 @@ module HierarchicalConfig
95
95
  def fill_in_env_vars(hash)
96
96
  r = {}
97
97
  hash.each do |key,value|
98
- if !value.nil? && ENV.key?(value)
99
- r[key]=ENV[value]
100
- elsif value.is_a? Hash
98
+ if value.is_a? Hash
101
99
  leaf_hash = fill_in_env_vars(value)
102
100
  r[key]=leaf_hash unless leaf_hash.keys.empty?
101
+ elsif !value.nil? && ENV.key?(value)
102
+ r[key]=ENV[value]
103
103
  end
104
104
  end
105
105
  r
metadata CHANGED
@@ -1,12 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hierarchical_config
3
3
  version: !ruby/object:Gem::Version
4
- hash: 13
4
+ hash: 3
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
- - 3
9
- version: "0.3"
8
+ - 4
9
+ version: "0.4"
10
10
  platform: ruby
11
11
  authors:
12
12
  - timgaleckas