sparkle_formation 1.1.8 → 1.1.10

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: cec97d229b916558ac8d3d3dbab3ba9912b7b637
4
- data.tar.gz: eae3742d180d5a39cffbe79488d7ba48a81421dd
3
+ metadata.gz: ef4f6f158ed4355b25821d57ad5a5ce55a2ca02b
4
+ data.tar.gz: e8e8bf70d1aa0e00f4cd0a8276f4e56f710dc85c
5
5
  SHA512:
6
- metadata.gz: 9d17129d13125c94b53a65f7db3bf98a5158d05d364e0db63c7b96932d160c0199528f186fe44d2087853744fe0f6dddb748ed7f24d40a9275febd2a55461dd6
7
- data.tar.gz: 06a6b6e7583dd3b99d3ab58660be6619d7ff263717f4c90c36b1742e6ebfdce6cc509038656491d36d5b042aede6b3c410c50831690ccacdb6b5a8b4dcb78bb3
6
+ metadata.gz: c6a6fb065872b62d1e3cb5706f243ad96ca28b5c4d5ccc123fa25dd8c86f95e45cfd04774d07e061e477a418ec43f17fd969a2ab5f56f33ab1eaef4a16aab95e
7
+ data.tar.gz: cf1fbb2ca90637d667720139d2c13aad6ff1fe38eb2f84d23a529a70eb044db967e2a7936f6102dacd8780697b32acc5a7b3cb26153697379b751649d2c94440
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## v1.1.10
2
+ * Join nesting arguments to template name. Allow optional replace.
3
+
1
4
  ## v1.1.8
2
5
  * Raise error on name collisions within pack (#101)
3
6
  * Extract registry items from pack during compile
@@ -88,3 +88,7 @@ This generates a policy data structure:
88
88
  ]
89
89
  }
90
90
  ~~~
91
+
92
+ _NOTE: For stack policy usage with the [sfn](http://www.sparkleformation.io/docs/sfn)
93
+ command, please refer to the [built-in callbacks](http://www.sparkleformation.io/docs/sfn/callbacks.html#builtin-callbacks)
94
+ documentation._
@@ -240,7 +240,13 @@ class SparkleFormation
240
240
  options = {}
241
241
  end
242
242
  to_nest = struct._self.sparkle.get(:template, template)
243
- resource_name = (args.empty? ? template.to_s.gsub('__', '_') : args.map{|a| Bogo::Utility.snake(a)}.join('_')).to_sym
243
+ resource_name = template.to_s.gsub('__', '_')
244
+ unless(args.empty?)
245
+ resource_name = [
246
+ options.delete(:overwrite_name) ? nil : resource_name,
247
+ args.map{|a| Bogo::Utility.snake(a)}.join('_')
248
+ ].flatten.compact.join('_').to_sym
249
+ end
244
250
  nested_template = self.compile(to_nest[:path], :sparkle)
245
251
  nested_template.parent = struct._self
246
252
  nested_template.name = Bogo::Utility.camel(resource_name)
@@ -1,4 +1,4 @@
1
1
  class SparkleFormation
2
2
  # Current library version
3
- VERSION = Gem::Version.new('1.1.8')
3
+ VERSION = Gem::Version.new('1.1.10')
4
4
  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.1.8
4
+ version: 1.1.10
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-11-11 00:00:00.000000000 Z
11
+ date: 2015-11-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: attribute_struct