aws-cfn-compiler 0.9.23 → 0.9.24

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: 6013b3170d68dabcd92242c1c512dc3381202bba
4
- data.tar.gz: dbaf3289245e797fae21cf628d7759c29432612d
3
+ metadata.gz: d39e565e05d1e365cdf9990446420ba623039c0a
4
+ data.tar.gz: a2f51539bc6f44804d7178a5e9c6475f7f1533bf
5
5
  SHA512:
6
- metadata.gz: 07370837b32d3421c5bed357ee266b03f180a0096fc1199cd2bd9104133d3179b01875de6bfe1f9f1e4cd981388260598355569f40c3246916557a76b0a85427
7
- data.tar.gz: f0f197cbe616d0e26846922a7d770b27e00836328013dd4f09e63a4a1492f3f589fbe7c6f5981fd81a10aa4ad08715916fa1cecf66cd99e70c1f56938b68c65c
6
+ metadata.gz: 068072e0d3f8c4b4f7f730888f45551e646894885d6c8bd739c83b6d8507e7000912aaa7c65e396fa1cf580e9ad6640d7a77658b986ed1a8df6f34152b0da0fe
7
+ data.tar.gz: 63e87e2157a79994ba82603ef44f4d4f2f738cb12fed721777b1a463dda8c33dbda74aa23675fef803429c84e72da47723b71f8be8bdb6b1058b552b40713331
@@ -71,11 +71,11 @@ module Aws
71
71
  @logger.debug "#{name} is a #{hash['Type']} and 'Default' is #{hash['Default']}"
72
72
  case hash['Type']
73
73
  when /String/
74
- abort! "Parameter #{name} has an invalid Default: #{hash['Default']}" unless hash['Default'].is_a?(String)
74
+ abort! "Parameter #{name} has an invalid Default: #{hash['Default']}(#{hash['Default'].class})" unless hash['Default'].is_a?(String)
75
75
  when /Number/
76
- abort! "Parameter #{name} has an invalid Default: #{hash['Default']}" unless (hash['Default'].is_a?(Numeric))
77
- when /CommaDelimetedList/
78
- abort! "Parameter #{name} has an invalid Default: #{hash['Default']}" unless (hash['Default'].is_a?(Array))
76
+ abort! "Parameter #{name} has an invalid Default: #{hash['Default']}(#{hash['Default'].class})" unless (hash['Default'].is_a?(Numeric) or hash['Default'].is_a?(String))
77
+ when /CommaDelimitedList/
78
+ abort! "Parameter #{name} has an invalid Default: #{hash['Default']}(#{hash['Default'].class})" unless (hash['Default'].is_a?(Array) or (hash['Default'].is_a?(String) and hash['Default'].split(%r'\s*,\s*').size > 0))
79
79
  else
80
80
  abort! "Parameter #{name} has an invalid type: #{hash['Type']}"
81
81
  end
@@ -1,7 +1,7 @@
1
1
  module Aws
2
2
  module Cfn
3
3
  module Compiler
4
- VERSION = '0.9.23'
4
+ VERSION = '0.9.24'
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-cfn-compiler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.23
4
+ version: 0.9.24
5
5
  platform: ruby
6
6
  authors:
7
7
  - PKinney