terraform-synthesizer 0.0.4 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +7 -8
- data/Gemfile +1 -0
- data/Gemfile.lock +36 -2
- data/lib/terraform-synthesizer/version.rb +1 -1
- data/lib/terraform-synthesizer.rb +15 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ad5c5a1af03060f08522005c756033c30ac0ff614f0eabd5e75d96304d08185c
|
4
|
+
data.tar.gz: 254647a24165f17fe8f286ce5fae4c48d57f6a40613c8b6ac02068e8b82145bc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d73807f7dc01973d12fd9594ceb601d3b098063aebda675e1c5cb19aafe95a62bff734267aaf97268234947159f5143c6fe9e83dd877d1d703ef721bb469272d
|
7
|
+
data.tar.gz: 40fc3e66eb6c344ed9963323cac52f88354e1861b2083a529f2fd97ecbc8c217d7d6a0649ea9482d25d1a3e2fdc1e98baeead7f85e3806e3e3e839fe7cd32c3d
|
data/.rubocop.yml
CHANGED
@@ -1,10 +1,6 @@
|
|
1
1
|
AllCops:
|
2
|
-
TargetRubyVersion: '3.0'
|
3
2
|
NewCops: enable
|
4
3
|
|
5
|
-
Gemspec/RequiredRubyVersion:
|
6
|
-
Enabled: false
|
7
|
-
|
8
4
|
Style/FrozenStringLiteralComment:
|
9
5
|
Enabled: false
|
10
6
|
|
@@ -23,9 +19,6 @@ Style/StringConcatenation:
|
|
23
19
|
Metrics/MethodLength:
|
24
20
|
Enabled: false
|
25
21
|
|
26
|
-
Metrics/ModuleLength:
|
27
|
-
Enabled: false
|
28
|
-
|
29
22
|
Metrics/AbcSize:
|
30
23
|
Enabled: false
|
31
24
|
|
@@ -50,5 +43,11 @@ Metrics/ClassLength:
|
|
50
43
|
Metrics/BlockLength:
|
51
44
|
Enabled: false
|
52
45
|
|
53
|
-
|
46
|
+
Metrics/ModuleLength:
|
47
|
+
Enabled: false
|
48
|
+
|
49
|
+
Naming/FileName:
|
50
|
+
Enabled: false
|
51
|
+
|
52
|
+
Lint/EmptyClass:
|
54
53
|
Enabled: false
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,12 +1,24 @@
|
|
1
1
|
GEM
|
2
2
|
remote: https://rubygems.org/
|
3
3
|
specs:
|
4
|
-
abstract-synthesizer (0.0.
|
4
|
+
abstract-synthesizer (0.0.4)
|
5
5
|
ast (2.4.2)
|
6
|
+
backport (1.2.0)
|
7
|
+
benchmark (0.3.0)
|
6
8
|
diff-lcs (1.5.0)
|
7
|
-
|
9
|
+
e2mmap (0.1.0)
|
10
|
+
jaro_winkler (1.5.6)
|
11
|
+
json (2.7.0)
|
8
12
|
keycutter (1.0.2)
|
13
|
+
kramdown (2.4.0)
|
14
|
+
rexml
|
15
|
+
kramdown-parser-gfm (1.1.0)
|
16
|
+
kramdown (~> 2.0)
|
9
17
|
language_server-protocol (3.17.0.3)
|
18
|
+
nokogiri (1.15.5-x86_64-darwin)
|
19
|
+
racc (~> 1.4)
|
20
|
+
nokogiri (1.15.5-x86_64-linux)
|
21
|
+
racc (~> 1.4)
|
10
22
|
parallel (1.23.0)
|
11
23
|
parser (3.2.2.4)
|
12
24
|
ast (~> 2.4.1)
|
@@ -14,7 +26,10 @@ GEM
|
|
14
26
|
racc (1.7.3)
|
15
27
|
rainbow (3.1.1)
|
16
28
|
rake (13.1.0)
|
29
|
+
rbs (2.8.4)
|
17
30
|
regexp_parser (2.8.2)
|
31
|
+
reverse_markdown (2.1.1)
|
32
|
+
nokogiri
|
18
33
|
rexml (3.2.6)
|
19
34
|
rspec (3.12.0)
|
20
35
|
rspec-core (~> 3.12.0)
|
@@ -43,6 +58,24 @@ GEM
|
|
43
58
|
rubocop-ast (1.30.0)
|
44
59
|
parser (>= 3.2.1.0)
|
45
60
|
ruby-progressbar (1.13.0)
|
61
|
+
solargraph (0.49.0)
|
62
|
+
backport (~> 1.2)
|
63
|
+
benchmark
|
64
|
+
bundler (~> 2.0)
|
65
|
+
diff-lcs (~> 1.4)
|
66
|
+
e2mmap
|
67
|
+
jaro_winkler (~> 1.5)
|
68
|
+
kramdown (~> 2.3)
|
69
|
+
kramdown-parser-gfm (~> 1.1)
|
70
|
+
parser (~> 3.0)
|
71
|
+
rbs (~> 2.0)
|
72
|
+
reverse_markdown (~> 2.0)
|
73
|
+
rubocop (~> 1.38)
|
74
|
+
thor (~> 1.0)
|
75
|
+
tilt (~> 2.0)
|
76
|
+
yard (~> 0.9, >= 0.9.24)
|
77
|
+
thor (1.3.0)
|
78
|
+
tilt (2.3.0)
|
46
79
|
unicode-display_width (2.5.0)
|
47
80
|
yard (0.9.34)
|
48
81
|
|
@@ -56,6 +89,7 @@ DEPENDENCIES
|
|
56
89
|
rake
|
57
90
|
rspec
|
58
91
|
rubocop
|
92
|
+
solargraph
|
59
93
|
yard
|
60
94
|
|
61
95
|
BUNDLED WITH
|
@@ -1,7 +1,20 @@
|
|
1
1
|
require %(abstract-synthesizer)
|
2
2
|
|
3
3
|
class TerraformSynthesizer < AbstractSynthesizer
|
4
|
-
def method_missing(method_name, *args, &
|
4
|
+
def method_missing(method_name, *args, &)
|
5
|
+
if method_name.to_s.eql?(%(locals))
|
6
|
+
keys = args[0]
|
7
|
+
if keys.length.to_s.eql(%(0))
|
8
|
+
@translation = {} if @translation.nil?
|
9
|
+
@translation[:template] = {} if @translation[:template].nil?
|
10
|
+
@translation[:template][:locals] = {} if @translation[:template][:locals].nil?
|
11
|
+
@translation[:template][:locals].merge!(instance_eval(&)) if block_given?
|
12
|
+
else
|
13
|
+
raise ArgumentError, %(key length for locals was more than 0, this is bad)
|
14
|
+
end
|
15
|
+
else
|
16
|
+
return {}
|
17
|
+
end
|
5
18
|
abstract_method_missing(
|
6
19
|
method_name,
|
7
20
|
%i[
|
@@ -12,7 +25,7 @@ class TerraformSynthesizer < AbstractSynthesizer
|
|
12
25
|
data
|
13
26
|
],
|
14
27
|
*args,
|
15
|
-
&
|
28
|
+
&
|
16
29
|
)
|
17
30
|
end
|
18
31
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: terraform-synthesizer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- drzthslnt@gmail.com
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-12-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: abstract-synthesizer
|