aws-cfn-compiler 0.2.1 → 0.2.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: 0341ec58a6fdcaa0aa8db05578913d55d08b9183
4
- data.tar.gz: fda2436952d6ac8c9ace1dc971128fc11a622bd9
3
+ metadata.gz: 9d7702e120cc29167d0b79b778daeeba1c2b19c9
4
+ data.tar.gz: 93ca70c0bbdad226153166c3ceb48d9d9331bb6d
5
5
  SHA512:
6
- metadata.gz: bda6cd298f8f9309360fe238835b30276c26dcb53dc2a804d9a1d6971047aab545aa8ba3166b186e09358a961524531d14801d3e3d1d57ac14c108f614f299d4
7
- data.tar.gz: 65c1ede2af535e67c39fb2cc50bb7ed517fdbb972132a47231478b22cef4b9d651b935929bf41cb87e0a1dedbac41bca34f537e7f7ab55435d4a9ebdbf527cc4
6
+ metadata.gz: d7aceb756cc71abf95b18536f46c3299c7056425166dc770f4ae3495f429b391afb0ecaeac482890b82d03baa01ee32438e92da1d60942fbff72f5c7f4042106
7
+ data.tar.gz: 587db40181316bc50a027fb3f69dcc09c18f77b263d355fd2b64e31249de89d9b3a6556818d75622de8b399acc5afcfc769019696165a209ea816aca5383d31a
@@ -125,15 +125,15 @@ module Aws
125
125
  # pass
126
126
  end
127
127
  if File.exists?(abs)
128
- raise 'Unsupported specification file type' unless abs =~ /\.(json|ya?ml)\z/i
128
+ raise "Unsupported specification file type: #{spec}=>#{abs}\n\tSupported types are: json,yaml,jts,yts\n" unless abs =~ /\.(json|ya?ml|jts|yts)\z/i
129
129
 
130
130
  puts "Loading specification #{abs}..."
131
131
  spec = File.read(abs)
132
132
 
133
133
  case File.extname(File.basename(abs)).downcase
134
- when /json/
134
+ when /json|jts/
135
135
  @spec = JSON.parse(spec)
136
- when /yaml/
136
+ when /yaml|yts/
137
137
  @spec = YAML.load(spec)
138
138
  else
139
139
  raise "Unsupported file type for specification: #{spec}"
@@ -1,7 +1,7 @@
1
1
  module Aws
2
2
  module Cfn
3
3
  module Compiler
4
- VERSION = "0.2.1"
4
+ VERSION = "0.2.3"
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.2.1
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - PKinney