rubycfn 0.4.4 → 0.4.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -1
- data/Gemfile.lock +3 -3
- data/README.md +3 -3
- data/lib/rubycfn/version.rb +1 -1
- data/lib/rubycfn.rb +5 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b1bb92a5757a5c7061695b4460f8cb071cdfae48
|
4
|
+
data.tar.gz: 150e5faf63fde45afe96df907964e86ecc39f90a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 37db6e219b441d66f8cfe13d24849cef86a80bb73e32c7532df06f6f0fde98fece5cacb413148901375cad6b884f0dce71b6f6f094ad30035143dd5c58dc8a1e
|
7
|
+
data.tar.gz: abf563cc7cd2313fae68a60ca97cc73a0613350c584f7ad632ff662201c6c2e66c1f93cdd31b2c94dc4bf6ebe6a66952711de17e8e6e015d55a8df3ccf011b30
|
data/CHANGELOG.md
CHANGED
@@ -2,7 +2,11 @@
|
|
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.6 (Next Release)
|
6
|
+
|
7
|
+
## 0.4.5
|
8
|
+
|
9
|
+
* Added `empty_string` method to allow for empty string as property value -- [@dennisvink][@dennisvink]
|
6
10
|
|
7
11
|
## 0.4.4
|
8
12
|
|
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.5)
|
5
5
|
activesupport (~> 5.1.5)
|
6
6
|
dotenv (~> 2.4.0)
|
7
7
|
json (~> 2.1.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.7.0)
|
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.12.2)
|
58
58
|
neatjson (0.8.4)
|
59
59
|
necromancer (0.4.0)
|
60
60
|
nenv (0.3.0)
|
data/README.md
CHANGED
@@ -36,7 +36,7 @@ parameter :bucket_name,
|
|
36
36
|
|
37
37
|
resource :foobar,
|
38
38
|
type: "AWS::S3::Bucket" do |r|
|
39
|
-
r.property(:
|
39
|
+
r.property(:bucket_name) { :bucket_name.ref }
|
40
40
|
end
|
41
41
|
```
|
42
42
|
|
@@ -51,7 +51,7 @@ Both commands will output the CloudFormation template without the need for you t
|
|
51
51
|
|
52
52
|
## Setting up a Rubycfn project
|
53
53
|
|
54
|
-
For projects that extend beyond a
|
54
|
+
For projects that extend beyond a simple stack or those that require unit
|
55
55
|
testing you can create a Rubycfn project in the following way:
|
56
56
|
|
57
57
|
`rubycfn`
|
@@ -61,7 +61,7 @@ __________ ____ __________________.___._________ _____________________
|
|
61
61
|
| _/ | /| | _// | |/ \ \/ | __) | | _/
|
62
62
|
| | \ | / | | \\____ |\ \____| \ | | \
|
63
63
|
|____|_ /______/ |______ // ______| \______ /\___ / |______ /
|
64
|
-
\/ \/ \/ \/ \/ \/ [v0.4.
|
64
|
+
\/ \/ \/ \/ \/ \/ [v0.4.5]
|
65
65
|
Project name? example
|
66
66
|
Account ID? 1234567890
|
67
67
|
Select region EU (Frankfurt)
|
data/lib/rubycfn/version.rb
CHANGED
data/lib/rubycfn.rb
CHANGED
@@ -79,6 +79,10 @@ module Rubycfn
|
|
79
79
|
TOPLEVEL_BINDING.eval("@mappings = @mappings.deep_merge(#{res})")
|
80
80
|
end
|
81
81
|
|
82
|
+
def self.empty_string
|
83
|
+
"<emptyString>"
|
84
|
+
end
|
85
|
+
|
82
86
|
def self.parameter(name, arguments)
|
83
87
|
name = name.to_s.cfnize
|
84
88
|
arguments[:type] ||= "String"
|
@@ -288,7 +292,7 @@ module Rubycfn
|
|
288
292
|
TOPLEVEL_BINDING.eval("@depends_on = []")
|
289
293
|
TOPLEVEL_BINDING.eval("@description = ''")
|
290
294
|
TOPLEVEL_BINDING.eval("@transform = ''")
|
291
|
-
JSON.pretty_generate(skeleton.recursive_compact)
|
295
|
+
JSON.pretty_generate(skeleton.recursive_compact).gsub("<emptyString>","")
|
292
296
|
end
|
293
297
|
end
|
294
298
|
end
|
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.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dennis Vink
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-10-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: neatjson
|