sparkle_formation 0.2.8 → 0.2.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: 606dadd19767aa72a3e8a3efeb079d060146d7bc
4
- data.tar.gz: b2364fa255d7fa852edcb43fe803814c1892f909
3
+ metadata.gz: b479d29d2362b0b07927cc975a6908b1600df820
4
+ data.tar.gz: 8d0477f4ac1aedb6cb7fd471711194a0a93b50a2
5
5
  SHA512:
6
- metadata.gz: 2485a030c1069bf8bbcd39b8ef8f320e4bc6c9e2ac696cdb78acb24be19f1ad4df96c6a7c5f93c196793f76d8eb5134fc456a981fffa96642ce23fdeb495a7d3
7
- data.tar.gz: 37f0b4351f4e3b5072a8f4c73cd03393abd710e64751ff31e03a98812d7fa23b4dad491cd798c167b28ae67a01bc0708ca03ad54d75ecf4a78bd23c41b55f613
6
+ metadata.gz: 56d720122b2bcd063c6a2fb7ab369d9497794aa182ef5763dd9266389f9799c018f406ec786ad728f8bcf42c005ec41e2e07bc17832d9ad4989be4eb700247ff
7
+ data.tar.gz: 1df868daea61d465381fd2b934c32257013bd8f914814be7b365b7bf08bedeb5842a5074bf632d3298b7907279f0acd290f7570ba2222c5c40cc2a92bf10552a
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## v0.2.10
2
+ * Add helper for generating no value
3
+ * Fix Fn::If generator (#35 thanks @yhuang !)
4
+
1
5
  ## v0.2.8
2
6
  * Relax isolated nesting check (resources only)
3
7
  * Include condition within generated hash within `if!` helper (#32)
@@ -151,12 +151,12 @@ class SparkleFormation
151
151
 
152
152
  # Fn::If generator
153
153
  #
154
- # @param cond [String, Symbol] symbol will be converted to condition
154
+ # @param cond [String, Symbol] symbol will be case processed
155
155
  # @param true_value [Object]
156
156
  # @param false_value [Object]
157
157
  # @return [Hash]
158
158
  def _if(cond, true_value, false_value)
159
- cond = cond.is_a?(Symbol) || cond.is_a?(String) ? _condition(cond) : cond
159
+ cond = cond.is_a?(Symbol) ? _process_key(cond) : cond
160
160
  {'Fn::If' => _array(cond, true_value, false_value)}
161
161
  end
162
162
  alias_method :if!, :_if
@@ -226,6 +226,14 @@ class SparkleFormation
226
226
  end
227
227
  alias_method :or!, :_or
228
228
 
229
+ # No value generator
230
+ #
231
+ # @return [String]
232
+ def _no_value
233
+ _ref('AWS::NoValue')
234
+ end
235
+ alias_method :no_value!, :_no_value
236
+
229
237
  # Execute system command
230
238
  #
231
239
  # @param command [String]
@@ -18,5 +18,5 @@
18
18
 
19
19
  class SparkleFormation
20
20
  # Current library version
21
- VERSION = Gem::Version.new('0.2.8')
21
+ VERSION = Gem::Version.new('0.2.10')
22
22
  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: 0.2.8
4
+ version: 0.2.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-01-12 00:00:00.000000000 Z
11
+ date: 2015-01-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: attribute_struct