envin 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/envin/converter.rb +1 -1
- data/lib/envin/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a0a4ba0aaa5c60c8524e4f0071cbc98a0885fdb3
|
4
|
+
data.tar.gz: cbc542bff04e7fddbfd4e728e66bd5ce4e83ac80
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0a8fb948b302e96590058ebd4447be95d48808cea56c065f510b2e4a57ea764633702be0eb81312c60100240ec2f8be1f36b248b2ead4ea2d22072465a12dc23
|
7
|
+
data.tar.gz: '098b3c7016f51a13b401640ab6fba5ab1bf3fff0ead5bdea3a70d95e7ee3c79b492be68f4e2105c0f83e9804df51fb8cc54ecd5942f4eb5c9f5551a354e14c73'
|
data/lib/envin/converter.rb
CHANGED
@@ -51,7 +51,7 @@ module Envin
|
|
51
51
|
target_file = source_file if !target_file
|
52
52
|
config_content = File.exist?(source_file) ? load_yaml(source_file, root_element) : {}
|
53
53
|
config_env = build_yaml_from_env(prefix)
|
54
|
-
return if config_env.
|
54
|
+
return if config_env.keys.size == 0
|
55
55
|
root = {}
|
56
56
|
if root_element
|
57
57
|
root[root_element] = config_content.merge(config_env)
|
data/lib/envin/version.rb
CHANGED