rubycfn 0.4.2 → 0.4.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1a98726851049b551927b7305ce7893277589337
4
- data.tar.gz: 7444f3279037dc55b1cf15457c8ada64c573f543
3
+ metadata.gz: a68bc5a68e2c5d5e17afd182cc6584ecd7cbd2a0
4
+ data.tar.gz: 8ea2e232f188466493fc1549a1bd4df5940b0d00
5
5
  SHA512:
6
- metadata.gz: 37b83eb1bf4665c7fbf82b3b45e69682bc0856411c88a2dc1ace4605c46d13dff6a8eeb44d8294996d3f7952799926d9f7e85b3b75917de48574ecf01512240a
7
- data.tar.gz: e3f3f1fd9027f07287838fcba70d0fa3922c135bd62110e662657ee6bcf1ba219b5562545adb7a3f5dfc2f671fc88aa09038d4fe8c917942a58829aee6223eb4
6
+ metadata.gz: adb271c31360abcbb0526ecb9b967ff519aec21ba6a8f1cefb2f9405e4a468e2be8f3ed983e3b8b73ffa363fdf8a53c10b5939fb0510a13b6fbf93781534a332
7
+ data.tar.gz: 93dcf56467cc1b90e6b6912488111b41b4d0e5f4203adef9ea02ff3656317566747665363f6a51801297302c50e221086de58182762cc310a0233918b3abb5f6
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.3 (Next Release)
5
+ ## 0.4.4 (Next Release)
6
+
7
+ ## 0.4.3
8
+
9
+ * Fixed bug with property raise error causing confusing spec errors -- [@dennisvink][@dennisvink]
6
10
 
7
11
  ## 0.4.2
8
12
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rubycfn (0.4.2)
4
+ rubycfn (0.4.3)
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.4.2]
64
+ \/ \/ \/ \/ \/ \/ [v0.4.3]
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.4.2".freeze
3
+ VERSION = "0.4.3".freeze
4
4
  end
data/lib/rubycfn.rb CHANGED
@@ -429,10 +429,18 @@ module Rubycfn
429
429
  mandatory_properties.push(prop) if resource_specification["ResourceTypes"][arguments[:type].to_s]["Properties"][prop]["Required"] == true
430
430
  end
431
431
  TOPLEVEL_BINDING.eval("@properties").each do |k, _v|
432
- raise "Property `#{k}` for #{arguments[:type]} is not valid." unless known_properties.include? k.to_s
432
+ unless known_properties.include? k.to_s
433
+ TOPLEVEL_BINDING.eval("@depends_on = []")
434
+ TOPLEVEL_BINDING.eval("@properties = {}")
435
+ raise "Property `#{k}` for #{arguments[:type]} is not valid."
436
+ end
433
437
  mandatory_properties.delete(k.to_s)
434
438
  end
435
- raise "Property #{mandatory_properties.join(", ")} is mandatory for #{arguments[:type]}" unless mandatory_properties.count.zero?
439
+ unless mandatory_properties.count.zero?
440
+ TOPLEVEL_BINDING.eval("@depends_on = []")
441
+ TOPLEVEL_BINDING.eval("@properties = {}")
442
+ raise "Property #{mandatory_properties.join(", ")} is mandatory for #{arguments[:type]}"
443
+ end
436
444
  end
437
445
  res = {
438
446
  "#{name.to_s}#{i.zero? ? "" : resource_postpend}": {
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubycfn
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dennis Vink