sparkle_formation 1.0.2 → 1.0.4

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: 34e0be284545b28444bd22287a29aaf74a0aa25d
4
- data.tar.gz: e18497e3c5b66af3e905cd0754e88eb5f1cded54
3
+ metadata.gz: 5a7ac537659ebf74662bbcfff4803d88c1dedfc8
4
+ data.tar.gz: f87846f1473c7b2557121b125243829dad134edd
5
5
  SHA512:
6
- metadata.gz: 1ac1f84363eaa01a0f87eaac6932a4eb03b35170b2f0d1b286eb0c2b8632c8c8fef62b01fa928b14e808bb34b167c130306b09c70acb6e45bdbfa2874790cf44
7
- data.tar.gz: aa39442b0e3690301b6db50cd7fadea4e3aee04fd687aa99b9da19aa396f6203c01e8eff50454224b036fe4a327a05215398e65afbf2418413c998d1e55bda14
6
+ metadata.gz: 8710305f6ca7f5e96e987c87c2896451641d3a9469f5c0d3c1bb1a283b6c7ed1a09759979d014fd447862c689eb815b870ac7462d4c10a106b1659623eb8e7b3
7
+ data.tar.gz: 903bbd84d290e38b3273858dd16260e866c95a62085d4d12441c6b6ff007b1412f18f421ccd03d12d22398f878a39527943458893db0ef1f7f24e33550a7a857
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## v1.0.4
2
+ * Fixes on testing (#66 #67 #68 thanks @matschaffer)
3
+ * Properly handle JSON templates within packs (#72)
4
+
1
5
  ## v1.0.2
2
6
  * Support custom values for stack resource type matching
3
7
 
@@ -247,18 +247,21 @@ class SparkleFormation
247
247
  data = Smash.new(:template => [])
248
248
  t_wrap = eval_wrapper.new
249
249
  t_wrap.part_data(data)
250
- begin
251
- t_wrap.instance_eval(IO.read(path), path, 1)
252
- rescue TypeError
250
+ if(slim_path.end_with?('.rb'))
251
+ begin
252
+ t_wrap.instance_eval(IO.read(path), path, 1)
253
+ rescue TypeError
254
+ end
253
255
  end
254
- data = data[:template].first
256
+ data = data[:template].first || Smash.new
255
257
  unless(data[:name])
256
- data[:name] = slim_path.tr('/', '__')
258
+ data[:name] = slim_path.tr('/', '__').sub(/\.(rb|json)$/, '')
257
259
  end
258
260
  hash[data[:name]] = data.merge(
259
261
  Smash.new(
260
262
  :type => :template,
261
- :path => path
263
+ :path => path,
264
+ :serialized => !path.end_with?('.rb')
262
265
  )
263
266
  )
264
267
  end
@@ -366,6 +366,7 @@ class SparkleFormation
366
366
  :name => 'OS::Neutron::Net',
367
367
  :finalizer => :neutron_net_finalizer,
368
368
  :properties => {
369
+ 'CidrBlock' => 'cidr'
369
370
  }
370
371
  },
371
372
  'AWS::EC2::Subnet' => {
@@ -1,4 +1,4 @@
1
1
  class SparkleFormation
2
2
  # Current library version
3
- VERSION = Gem::Version.new('1.0.2')
3
+ VERSION = Gem::Version.new('1.0.4')
4
4
  end
@@ -13,6 +13,7 @@ Gem::Specification.new do |s|
13
13
  s.add_dependency 'attribute_struct', '~> 0.2.2'
14
14
  s.add_dependency 'multi_json'
15
15
  s.add_dependency 'bogo'
16
+ s.add_development_dependency 'minitest'
16
17
  s.executables << 'generate_sparkle_docs'
17
18
  s.files = Dir['lib/**/*'] + %w(sparkle_formation.gemspec README.md CHANGELOG.md LICENSE)
18
19
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sparkle_formation
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Roberts
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-08 00:00:00.000000000 Z
11
+ date: 2015-10-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: attribute_struct
@@ -52,6 +52,20 @@ dependencies:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: minitest
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
55
69
  description: Ruby DSL for programmatic orchestration API template generation
56
70
  email: chrisroberts.code@gmail.com
57
71
  executables: