rubycfn 0.4.7 → 0.4.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -1
- data/Gemfile.lock +5 -5
- data/README.md +1 -1
- data/lib/monkeypatch.rb +18 -0
- data/lib/rubycfn/version.rb +1 -1
- data/lib/rubycfn.rb +1 -1
- 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: 5b76dccd9c3373b0aa27e96e35b278cd1bc2cba6e859595f587529ebbe08c13d
|
|
4
|
+
data.tar.gz: 42239d1611396d74ccbc6b069040ebab40b44961acc30d7d98814921ee63e0b1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 16ac67c4378901b589b75245584ae500d7b7cd85332906f4a438d488b555565edab04ced7869778737767d7ea57eab8edc0589e5dd47442ace00545b88415c17
|
|
7
|
+
data.tar.gz: 839c9cc0e243559ac7c5299aceef9335164857af3ad3fcaa6c6270221532b2633c4745d6ccf13eacc4d0e2d193fc7328141201d25a9ec1c6dbf09cb0a128c932
|
data/CHANGELOG.md
CHANGED
|
@@ -2,7 +2,12 @@
|
|
|
2
2
|
All notable changes to Rubycfn will be documented in this file.
|
|
3
3
|
This project uses [Semantic Versioning](http://semver.org/).
|
|
4
4
|
|
|
5
|
-
## 0.4.
|
|
5
|
+
## 0.4.9 (Next Release)
|
|
6
|
+
|
|
7
|
+
## 0.4.8
|
|
8
|
+
|
|
9
|
+
* Allow for AWS::CDK::Metadata Resources -- [@dennisvink][@dennisvink]
|
|
10
|
+
* Added fnsub to Hash in monkeypatch.rb -- [@dennisvink][@dennisvink]
|
|
6
11
|
|
|
7
12
|
## 0.4.7
|
|
8
13
|
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
rubycfn (0.4.
|
|
4
|
+
rubycfn (0.4.8)
|
|
5
5
|
activesupport (~> 5.1.5)
|
|
6
6
|
dotenv (~> 2.4.0)
|
|
7
7
|
json (~> 2.1.0)
|
|
@@ -20,7 +20,7 @@ GEM
|
|
|
20
20
|
public_suffix (>= 2.0.2, < 5.0)
|
|
21
21
|
awesome_print (1.8.0)
|
|
22
22
|
coderay (1.1.2)
|
|
23
|
-
concurrent-ruby (1.1.
|
|
23
|
+
concurrent-ruby (1.1.6)
|
|
24
24
|
diff-lcs (1.3)
|
|
25
25
|
docile (1.3.2)
|
|
26
26
|
dotenv (2.4.0)
|
|
@@ -43,7 +43,7 @@ GEM
|
|
|
43
43
|
guard (~> 2.1)
|
|
44
44
|
guard-compat (~> 1.1)
|
|
45
45
|
rspec (>= 2.99.0, < 4.0)
|
|
46
|
-
i18n (1.
|
|
46
|
+
i18n (1.8.2)
|
|
47
47
|
concurrent-ruby (~> 1.0)
|
|
48
48
|
json (2.1.0)
|
|
49
49
|
launchy (2.4.3)
|
|
@@ -54,7 +54,7 @@ GEM
|
|
|
54
54
|
ruby_dep (~> 1.2)
|
|
55
55
|
lumberjack (1.0.13)
|
|
56
56
|
method_source (0.9.2)
|
|
57
|
-
minitest (5.
|
|
57
|
+
minitest (5.14.0)
|
|
58
58
|
neatjson (0.8.4)
|
|
59
59
|
necromancer (0.4.0)
|
|
60
60
|
nenv (0.3.0)
|
|
@@ -104,7 +104,7 @@ GEM
|
|
|
104
104
|
thor (0.20.3)
|
|
105
105
|
thread_safe (0.3.6)
|
|
106
106
|
timers (4.3.0)
|
|
107
|
-
tty-color (0.5.
|
|
107
|
+
tty-color (0.5.1)
|
|
108
108
|
tty-cursor (0.5.0)
|
|
109
109
|
tty-prompt (0.16.1)
|
|
110
110
|
necromancer (~> 0.4.0)
|
data/README.md
CHANGED
|
@@ -61,7 +61,7 @@ __________ ____ __________________.___._________ _____________________
|
|
|
61
61
|
| _/ | /| | _// | |/ \ \/ | __) | | _/
|
|
62
62
|
| | \ | / | | \\____ |\ \____| \ | | \
|
|
63
63
|
|____|_ /______/ |______ // ______| \______ /\___ / |______ /
|
|
64
|
-
\/ \/ \/ \/ \/ \/ [v0.4.
|
|
64
|
+
\/ \/ \/ \/ \/ \/ [v0.4.8]
|
|
65
65
|
Project name? example
|
|
66
66
|
Account ID? 1234567890
|
|
67
67
|
Select region EU (Frankfurt)
|
data/lib/monkeypatch.rb
CHANGED
|
@@ -37,6 +37,15 @@ class Symbol
|
|
|
37
37
|
end
|
|
38
38
|
|
|
39
39
|
class Hash
|
|
40
|
+
def fnjoin(separator = "")
|
|
41
|
+
{
|
|
42
|
+
"Fn::Join": [
|
|
43
|
+
separator,
|
|
44
|
+
self
|
|
45
|
+
]
|
|
46
|
+
}
|
|
47
|
+
end
|
|
48
|
+
|
|
40
49
|
def fnsplit(separator = "")
|
|
41
50
|
{
|
|
42
51
|
"Fn::Split": [
|
|
@@ -233,4 +242,13 @@ class ::Hash
|
|
|
233
242
|
]
|
|
234
243
|
}
|
|
235
244
|
end
|
|
245
|
+
|
|
246
|
+
def fnjoin(separator = "")
|
|
247
|
+
{
|
|
248
|
+
"Fn::Join": [
|
|
249
|
+
separator,
|
|
250
|
+
self
|
|
251
|
+
]
|
|
252
|
+
}
|
|
253
|
+
end
|
|
236
254
|
end
|
data/lib/rubycfn/version.rb
CHANGED
data/lib/rubycfn.rb
CHANGED
|
@@ -182,7 +182,7 @@ module Rubycfn
|
|
|
182
182
|
arguments[:cloud] ||= $1
|
|
183
183
|
resource_specification = TOPLEVEL_BINDING.eval("@resource_specification")
|
|
184
184
|
|
|
185
|
-
raise "#{arguments[:type]} is not a valid resource type" unless resource_specification["ResourceTypes"][arguments[:type].to_s] || arguments[:type] =~ /Rspec\:\:/ || arguments[:type] =~ /^Custom\:\:/ || arguments[:type] =~ /AWS\:\:Serverless\:\:/
|
|
185
|
+
raise "#{arguments[:type]} is not a valid resource type" unless resource_specification["ResourceTypes"][arguments[:type].to_s] || arguments[:type] =~ /Rspec\:\:/ || arguments[:type] =~ /^Custom\:\:/ || arguments[:type] =~ /AWS\:\:Serverless\:\:/ || arguments[:type] =~ /\:\:CDK/
|
|
186
186
|
|
|
187
187
|
# Custom resource types are AWS resources
|
|
188
188
|
if arguments[:cloud] == "Custom" || arguments[:cloud] == "Rspec"
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rubycfn
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.4.
|
|
4
|
+
version: 0.4.8
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Dennis Vink
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-
|
|
11
|
+
date: 2020-02-18 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: neatjson
|