sparkle_formation 0.2.12 → 0.3.0

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: 46a1c4f04178bc15ec4ebce5da8046a7187bf9cb
4
- data.tar.gz: 74608ee05fd93fdcbe70762a0c6702d5a0f2aeb0
3
+ metadata.gz: f0a71f19541a41b7c1939abd94c39a2d9c44389f
4
+ data.tar.gz: b49e09f6abe9c535eebe042bb052e8cc87ba91a3
5
5
  SHA512:
6
- metadata.gz: 33caa72fa07477b8c4bd48c6d2da66817fc292bd22f2d6817234673f17b95abd3532d3c6e29a6d4b2776c46e47557b17c33ba6647f2985e97dd8add9b14b3ad2
7
- data.tar.gz: 51bf91bef24f3618847f31815be27964aa858203c5e964bee9b66aee32e77e76d290b405b545ac40e7e16d53a7ff37f34819601096ddbb35af6fd07294a67bb5
6
+ metadata.gz: 6deda0e42edd85bc7e184840dcbd6e073b31744ca00eae9ab790415bb10b1467d915e4757516d3e863f2e244c4fff554dcbe214b5b137c8ed27694bbefe28187
7
+ data.tar.gz: 09960fd747e2d13f97716aa28c790aa2d0716f83ff0d8ae4700a81b13e7d91f326f20957f0435032fac5282fb34ec8991ccb86d5e07975a33e2023ef0f85a3be
data/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## v0.3.0
2
+ * Update `or!` helper method to take multiple arguments
3
+ * Support non-ref values in `map!` (#19)
4
+
5
+ _NOTE: This release *could* contain a breaking change. The `map!` method
6
+ will now only auto generate a `ref!` call if the passed value is a symbol._
7
+
1
8
  ## v0.2.12
2
9
  * Stubs for template generation parameters
3
10
  * Add `no_value!` helper method
@@ -64,8 +64,10 @@ class SparkleFormation
64
64
  end
65
65
  end
66
66
  thing = _process_key(thing, :force) if thing.is_a?(Symbol)
67
- key = _process_key(key, :force) if key.is_a?(Symbol)
68
- {'Fn::FindInMap' => [_process_key(thing), {'Ref' => _process_key(key)}, *suffix]}
67
+ if(key.is_a?(Symbol))
68
+ key = ref!(key)
69
+ end
70
+ {'Fn::FindInMap' => [thing, key, *suffix]}
69
71
  end
70
72
  alias_method :_cf_find_in_map, :_cf_map
71
73
  alias_method :find_in_map!, :_cf_map
@@ -211,10 +213,10 @@ class SparkleFormation
211
213
  # @param v1 [Object]
212
214
  # @param v2 [Object]
213
215
  # @return [Hash]
214
- def _or(v1, v2)
216
+ def _or(*args)
215
217
  {
216
218
  'Fn::Or' => _array(
217
- *[v1,v2].map{|v|
219
+ *args.map{|v|
218
220
  if(v.is_a?(Symbol) || v.is_a?(String))
219
221
  _condition(v)
220
222
  else
@@ -18,5 +18,5 @@
18
18
 
19
19
  class SparkleFormation
20
20
  # Current library version
21
- VERSION = Gem::Version.new('0.2.12')
21
+ VERSION = Gem::Version.new('0.3.0')
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.12
4
+ version: 0.3.0
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-03-06 00:00:00.000000000 Z
11
+ date: 2015-08-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: attribute_struct