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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: a8a0ce0ef887a10279f6ced064366c37455d03d1
4
- data.tar.gz: 9da65e890dbb3894863f607bc1883245e59a748f
2
+ SHA256:
3
+ metadata.gz: bcb2c7a316c9d05ccb05b49ac6a98b38d93b3baa211cb846f475d72d1453c9fb
4
+ data.tar.gz: 94e74c03acfb93d900a3f04a2a85db9a8e5a558816c631924b83f43274245d20
5
5
  SHA512:
6
- metadata.gz: 7afe1e28fb7c4bf813c5d835fcf3e16b28cd13ad816b00b9f50b1a45609742cc3137f30874e01d602dd970b8d9e458259d636ba543eb252a8845c4a2763d039c
7
- data.tar.gz: 2739d554fd6d0625332212761697540e3ee34f0a3c651357375aba0f03fcd66f77a5deeaea4214981e36a8e1a70897dd7f958df661b659e0ae10da4f348b794b
6
+ metadata.gz: 67c0477bf6a9221fa1ad40ad190cb768f97a41782f5e837394a6a7c796a61052bf2f40267c8706d35cfeef4548db761d3c9e3e83658c1c9875f063617b76d254
7
+ data.tar.gz: d021a4a6e63079bce9c9ad2d068a433b835a6c4e65af92db66a67af57611278b2df6843f5fa1e6bea78a3bc5edf5a2d0d2ff32e41a57a7bc501b4fdc7275e455
@@ -1,11 +1,13 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- envin (0.1.6)
4
+ envin (0.1.7)
5
+ deep_merge (~> 1.2.1)
5
6
 
6
7
  GEM
7
8
  remote: https://rubygems.org/
8
9
  specs:
10
+ deep_merge (1.2.1)
9
11
 
10
12
  PLATFORMS
11
13
  ruby
@@ -19,4 +19,5 @@ Gem::Specification.new do |spec|
19
19
  end
20
20
  spec.executables = ["envin"]
21
21
  spec.require_paths = ["lib"]
22
+ spec.add_dependency "deep_merge", "~> 1.2.1"
22
23
  end
@@ -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.merge(config_env)
58
+ root[root_element] = config_content.deep_merge(config_env)
58
59
  else
59
60
  root = config_content.merge(config_env)
60
61
  end
@@ -1,3 +1,3 @@
1
1
  module Envin
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.7"
3
3
  end
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.6
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: 2017-12-13 00:00:00.000000000 Z
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.6.14
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