tfdsl 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +3 -1
- data/lib/tfdsl/stack.rb +2 -1
- data/lib/tfdsl/version.rb +1 -1
- data/tfdsl.gemspec +1 -0
- metadata +15 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 85d091cc968fb7724fecfe17f7952ffb2c26a43f0ff7a593abc83c5cdea71b1c
|
4
|
+
data.tar.gz: a5617e1893c31b61ea1b9d9d0918d84b9a7d073886b2c87b46b9078ae5cb484d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5dbb4b3c42abd4b0f309cc3f68546186c096d971a91ae4d755effef112d2f881e9656964600a86dd24021899280382334b59463453f7179c1c6fd7d9d474ad9b
|
7
|
+
data.tar.gz: 97f415d389060a6f71cf591b61f751dd842eaf14243c9c09ba61f9708878f17014a7625f7bb887c81c2be2985e70b6d299893fc3e1f5c6abb9791adbfe9e1572
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
tfdsl (0.1.
|
4
|
+
tfdsl (0.1.9)
|
5
|
+
deep_merge (~> 1.2)
|
5
6
|
|
6
7
|
GEM
|
7
8
|
remote: https://rubygems.org/
|
@@ -16,6 +17,7 @@ GEM
|
|
16
17
|
term-ansicolor (~> 1.3)
|
17
18
|
thor (~> 0.19.4)
|
18
19
|
tins (~> 1.6)
|
20
|
+
deep_merge (1.2.1)
|
19
21
|
docile (1.3.1)
|
20
22
|
jaro_winkler (1.5.2)
|
21
23
|
json (2.1.0)
|
data/lib/tfdsl/stack.rb
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
require 'deep_merge'
|
1
2
|
module TFDSL
|
2
3
|
# This class is the representation of a terraform stack, or in another words
|
3
4
|
# is a collection of terraform configuration blocks
|
@@ -27,7 +28,7 @@ module TFDSL
|
|
27
28
|
@objects.each do |obj|
|
28
29
|
key = KindTranslator.kind obj.class
|
29
30
|
stack[key] = {} if stack[key].nil?
|
30
|
-
stack[key] = stack[key].
|
31
|
+
stack[key] = stack[key].deep_merge obj.to_json_repr
|
31
32
|
end
|
32
33
|
stack.to_json
|
33
34
|
end
|
data/lib/tfdsl/version.rb
CHANGED
data/tfdsl.gemspec
CHANGED
@@ -31,6 +31,7 @@ Gem::Specification.new do |spec|
|
|
31
31
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
32
32
|
spec.require_paths = ['lib']
|
33
33
|
|
34
|
+
spec.add_dependency 'deep_merge', '~> 1.2'
|
34
35
|
spec.add_development_dependency 'bundler', '~> 1.16'
|
35
36
|
spec.add_development_dependency 'coveralls', '~> 0.8'
|
36
37
|
spec.add_development_dependency 'minitest', '~> 5.0'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tfdsl
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tiago Lopo
|
@@ -10,6 +10,20 @@ bindir: exe
|
|
10
10
|
cert_chain: []
|
11
11
|
date: 2020-04-19 00:00:00.000000000 Z
|
12
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'
|
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'
|
13
27
|
- !ruby/object:Gem::Dependency
|
14
28
|
name: bundler
|
15
29
|
requirement: !ruby/object:Gem::Requirement
|