sparkle_formation 0.2.12 → 0.3.0
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 +4 -4
- data/CHANGELOG.md +7 -0
- data/lib/sparkle_formation/sparkle_attribute.rb +6 -4
- data/lib/sparkle_formation/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f0a71f19541a41b7c1939abd94c39a2d9c44389f
|
4
|
+
data.tar.gz: b49e09f6abe9c535eebe042bb052e8cc87ba91a3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
68
|
-
|
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(
|
216
|
+
def _or(*args)
|
215
217
|
{
|
216
218
|
'Fn::Or' => _array(
|
217
|
-
*
|
219
|
+
*args.map{|v|
|
218
220
|
if(v.is_a?(Symbol) || v.is_a?(String))
|
219
221
|
_condition(v)
|
220
222
|
else
|
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.
|
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-
|
11
|
+
date: 2015-08-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: attribute_struct
|