envin 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/Gemfile.lock +3 -1
- data/envin.gemspec +1 -0
- data/lib/envin/converter.rb +2 -1
- data/lib/envin/version.rb +1 -1
- metadata +18 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: bcb2c7a316c9d05ccb05b49ac6a98b38d93b3baa211cb846f475d72d1453c9fb
|
4
|
+
data.tar.gz: 94e74c03acfb93d900a3f04a2a85db9a8e5a558816c631924b83f43274245d20
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 67c0477bf6a9221fa1ad40ad190cb768f97a41782f5e837394a6a7c796a61052bf2f40267c8706d35cfeef4548db761d3c9e3e83658c1c9875f063617b76d254
|
7
|
+
data.tar.gz: d021a4a6e63079bce9c9ad2d068a433b835a6c4e65af92db66a67af57611278b2df6843f5fa1e6bea78a3bc5edf5a2d0d2ff32e41a57a7bc501b4fdc7275e455
|
data/Gemfile.lock
CHANGED
data/envin.gemspec
CHANGED
data/lib/envin/converter.rb
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
require 'yaml'
|
2
2
|
require 'erb'
|
3
|
+
require 'deep_merge'
|
3
4
|
|
4
5
|
module Envin
|
5
6
|
module Converter
|
@@ -54,7 +55,7 @@ module Envin
|
|
54
55
|
return if config_env.keys.size == 0
|
55
56
|
root = {}
|
56
57
|
if root_element
|
57
|
-
root[root_element] = config_content.
|
58
|
+
root[root_element] = config_content.deep_merge(config_env)
|
58
59
|
else
|
59
60
|
root = config_content.merge(config_env)
|
60
61
|
end
|
data/lib/envin/version.rb
CHANGED
metadata
CHANGED
@@ -1,15 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: envin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Zidni Mubarock
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
12
|
-
dependencies:
|
11
|
+
date: 2018-01-23 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: deep_merge
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 1.2.1
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 1.2.1
|
13
27
|
description: Build yaml file from OS environment variables
|
14
28
|
email:
|
15
29
|
- zidmubarock@gmail.com
|
@@ -49,7 +63,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
49
63
|
version: '0'
|
50
64
|
requirements: []
|
51
65
|
rubyforge_project:
|
52
|
-
rubygems_version: 2.
|
66
|
+
rubygems_version: 2.7.4
|
53
67
|
signing_key:
|
54
68
|
specification_version: 4
|
55
69
|
summary: Build yaml file from OS environment variables
|