var_block 1.0.2 → 1.0.3
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/lib/var_block/getvar_handlers.rb +2 -2
- data/lib/var_block/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c54f547c317f7e4e0e1b6250f1567d240fc27939
|
4
|
+
data.tar.gz: 9e02a66cc863bb96b82db8aeb0cf6c0d86ae48dc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4667d1bfc1f5cdb2d18ac34e0907d4f494d25ae17fbb65c3a33dad0da430b8f108c2c473cab281372f81a640b27c8e9447c80bfe3c9b5567f57f9f3f017f5f03
|
7
|
+
data.tar.gz: 41e1f9c0fd07c1c07f4b78997fa23725850f772c744a455266d40f18deb003f88c9da1e9746fad1a496e9ed0394d475c676f61da893e1fb190509954e7c56dfa
|
@@ -11,7 +11,7 @@ module VarBlock
|
|
11
11
|
def handle_var_array(value, context, options)
|
12
12
|
# if :truthy?, we need to check each item in the array, and return false immediately if at least one is found to be not "truthy", else return true
|
13
13
|
if options.any?
|
14
|
-
return handle_options(value,
|
14
|
+
return handle_options(value, options)
|
15
15
|
|
16
16
|
# else, if no options, defaults to return as a wrapped Array
|
17
17
|
else
|
@@ -39,7 +39,7 @@ module VarBlock
|
|
39
39
|
|
40
40
|
private
|
41
41
|
|
42
|
-
def handle_options(value,
|
42
|
+
def handle_options(value, options)
|
43
43
|
options.each do |option|
|
44
44
|
case option
|
45
45
|
|
data/lib/var_block/version.rb
CHANGED