ultra_config 0.10.1 → 0.10.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 378a284c5e03b945de5316675c81f0120be6dc1b
4
- data.tar.gz: f8dfb9f35e941a7ceadb0acbca1d3f074411be4d
3
+ metadata.gz: 11db9a20bede8150e2e42b23c82b605ab8ce1fbe
4
+ data.tar.gz: 64bc6932bcdaadcd1f65f1464c41f501d1e56af9
5
5
  SHA512:
6
- metadata.gz: 89dd4d038e981c731f6435f46487da78107c91d6ec28be34d1cbf6d14ab0c44f34e5e8651bd19d3a21267b126e9570863cfcd338dfa3cd5d9d24f57e28b71813
7
- data.tar.gz: 07252e8dc6909fa1998781651d3de1cf93ea61f35841796e934ffa4c32447ca36060eca17f8e4bc8b9cc7f46970568c96262df4ae46d1900fb2a6ea5128669cb
6
+ metadata.gz: fc2a34e0074263c4812604505c6082714a9fbb78893230bc3ad03c67d4c83310f8c38da2d65e860d5a57391a96d9ea4e1a04a658a62c015dde040343f9fb60ac
7
+ data.tar.gz: 671e2c635e01b8b834bc3b1f14b1a326aa719fa56560e67d562264aa187f618f86ef3bcf82714ab636bdd509f632b399d00a06b79c64e7660dbc2df0707db4b2
@@ -57,7 +57,11 @@ module UltraConfig
57
57
  hash = {}
58
58
  @objects.each do |name, object|
59
59
  if object.is_a?(Config)
60
- object.sanitize? ? hash[name] = '*****' : hash[name] = object.value
60
+ if object.sanitize?
61
+ hash[name].nil? ? nil : hash[name] = '*****'
62
+ else
63
+ hash[name] = object.value
64
+ end
61
65
  else
62
66
  hash[name] = object.to_sanitized_h
63
67
  end
data/ultra_config.gemspec CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = 'ultra_config'
7
- spec.version = '0.10.1'
7
+ spec.version = '0.10.2'
8
8
  spec.authors = ['Gregory Kuruc']
9
9
  spec.email = ['gjk910327@gmail.com']
10
10
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ultra_config
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.1
4
+ version: 0.10.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gregory Kuruc