rubycfn 0.3.8 → 0.3.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3a67c783ed3a9632618ffe3feab06c75fdfc7539
4
- data.tar.gz: 1166d0dee1db9009e259e51eb4e069c84c6e0047
3
+ metadata.gz: caf023ccb4bd77b29645fbfc9b06a717b9fe1871
4
+ data.tar.gz: e7e0a042adec2d4918c8caf7b570e2851e8bf120
5
5
  SHA512:
6
- metadata.gz: 8cbb3b83362fd9705f289e4c5fa098cd91d9d34c74d1f7c145e2cda7c131336280ea6f883fe2ff630d366bd28fb6388ce7d0cbc7f2aa36958e9940b55b768717
7
- data.tar.gz: b1f803072f2bdf77d5e032c689f93252608fa31130cf8f0dc3431b4202b06e3d570d08d36e359415c035208d86f0384902545f574ebd4fd33e79b5c3cfaba6a4
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.9 (Next Release)
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
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rubycfn (0.3.8)
4
+ rubycfn (0.3.9)
5
5
  activesupport (~> 5.1.5)
6
6
  dotenv (~> 2.4.0)
7
7
  json (~> 2.1.0)
data/README.md CHANGED
@@ -61,7 +61,7 @@ __________ ____ __________________.___._________ _____________________
61
61
  | _/ | /| | _// | |/ \ \/ | __) | | _/
62
62
  | | \ | / | | \\____ |\ \____| \ | | \
63
63
  |____|_ /______/ |______ // ______| \______ /\___ / |______ /
64
- \/ \/ \/ \/ \/ \/ [v0.3.8]
64
+ \/ \/ \/ \/ \/ \/ [v0.3.9]
65
65
  Project name? example
66
66
  Account ID? 1234567890
67
67
  Select region EU (Frankfurt)
@@ -1,4 +1,4 @@
1
1
  # Rubycfn version
2
2
  module Rubycfn
3
- VERSION = "0.3.8".freeze
3
+ VERSION = "0.3.9".freeze
4
4
  end
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})")
@@ -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.8
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-06 00:00:00.000000000 Z
11
+ date: 2019-09-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: neatjson