rubycfn 0.3.8 → 0.3.9
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 -2
- data/Gemfile.lock +1 -1
- data/README.md +1 -1
- data/lib/rubycfn/version.rb +1 -1
- data/lib/rubycfn.rb +2 -1
- data/spec/lib/rubycfn_spec.rb +13 -0
- 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: caf023ccb4bd77b29645fbfc9b06a717b9fe1871
|
4
|
+
data.tar.gz: e7e0a042adec2d4918c8caf7b570e2851e8bf120
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e9375683b9dfb35db23b9f87dade39f5a65caa72ce214470a36d11cbe15f383eee8acc662192409fd43cd8c0cfcba9a0e2ea89db187feb98cd8ed84bea0d7583
|
7
|
+
data.tar.gz: 1a7d944789d61a10b3dca153677b5927de0f891d2ad858d26587652073c6028341b595bce0709fc2ac8e29dca9a8acf24abb1a3ad7c12372c65f57b5696657ac
|
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.3.
|
5
|
+
## 0.3.10 (Next Release)
|
6
|
+
|
7
|
+
## 0.3.9
|
8
|
+
|
9
|
+
* Add support for UpdatePolicy element in resource -- [@leonrodenburg][@leonrodenburg]
|
6
10
|
|
7
11
|
## 0.3.8
|
8
12
|
|
@@ -90,4 +94,4 @@ This project uses [Semantic Versioning](http://semver.org/).
|
|
90
94
|
* Added Rubycfn CLI to generate new projects -- [@dennisvink][@dennisvink]
|
91
95
|
|
92
96
|
[@dennisvink]: https://github.com/dennisvink
|
93
|
-
|
97
|
+
[@leonrodenburg]: https://github.com/leonrodenburg
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -61,7 +61,7 @@ __________ ____ __________________.___._________ _____________________
|
|
61
61
|
| _/ | /| | _// | |/ \ \/ | __) | | _/
|
62
62
|
| | \ | / | | \\____ |\ \____| \ | | \
|
63
63
|
|____|_ /______/ |______ // ______| \______ /\___ / |______ /
|
64
|
-
\/ \/ \/ \/ \/ \/ [v0.3.
|
64
|
+
\/ \/ \/ \/ \/ \/ [v0.3.9]
|
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
@@ -409,7 +409,8 @@ module Rubycfn
|
|
409
409
|
Metadata: TOPLEVEL_BINDING.eval("@metadata"),
|
410
410
|
Properties: TOPLEVEL_BINDING.eval("@properties"),
|
411
411
|
Type: arguments[:type],
|
412
|
-
Condition: arguments[:condition]
|
412
|
+
Condition: arguments[:condition],
|
413
|
+
UpdatePolicy: arguments[:update_policy]
|
413
414
|
}
|
414
415
|
}
|
415
416
|
TOPLEVEL_BINDING.eval("@aws_resources = @aws_resources.deep_merge(#{res})")
|
data/spec/lib/rubycfn_spec.rb
CHANGED
@@ -14,6 +14,11 @@ describe Rubycfn do
|
|
14
14
|
|
15
15
|
resource :rspec_resource_name,
|
16
16
|
type: "Rspec::Test",
|
17
|
+
update_policy: {
|
18
|
+
"AutoScalingReplacingUpdate": {
|
19
|
+
"WillReplace": true
|
20
|
+
}
|
21
|
+
},
|
17
22
|
amount: 2 do |r|
|
18
23
|
r.property(:name) { "RSpec" }
|
19
24
|
end
|
@@ -54,6 +59,7 @@ describe Rubycfn do
|
|
54
59
|
|
55
60
|
it { should have_key "Type" }
|
56
61
|
it { should have_key "Properties" }
|
62
|
+
it { should have_key "UpdatePolicy"}
|
57
63
|
|
58
64
|
context "resource type is correct" do
|
59
65
|
let(:type) { resource["Type"] }
|
@@ -68,6 +74,13 @@ describe Rubycfn do
|
|
68
74
|
|
69
75
|
it { should have_key "Name" }
|
70
76
|
end
|
77
|
+
|
78
|
+
context "Update policy is correct" do
|
79
|
+
let(:update_policy) { resource["UpdatePolicy"] }
|
80
|
+
subject { update_policy }
|
81
|
+
|
82
|
+
it { should include("AutoScalingReplacingUpdate" => { "WillReplace" => true })}
|
83
|
+
end
|
71
84
|
end
|
72
85
|
end
|
73
86
|
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.3.
|
4
|
+
version: 0.3.9
|
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-09-
|
11
|
+
date: 2019-09-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: neatjson
|