despecable 0.0.4 → 0.0.5
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 98cd98797bdd7901e3577dc059fa92556d456c11
|
4
|
+
data.tar.gz: 3f23e8c9cb02084a5ac39161bbe2756f52512dc9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bfe5b70765a7c8d6612df4d7746db2c49e887a5aae5d02ac879665d656646ac016abae7d12380c2e87ce773b5e063857838a4fe02ab6a874534fb55007b1312b
|
7
|
+
data.tar.gz: 1f0e453dc92b6df6830e0feb43c749d552475f57a997675a451e1209bf601e400720131cc017350e29611a33d612705bd269740062378d4c412ef3817fc1d3d9
|
data/lib/despecable/spectator.rb
CHANGED
@@ -46,7 +46,11 @@ module Despecable
|
|
46
46
|
@specd.append(name)
|
47
47
|
if !params.key?(name) && options[:default]
|
48
48
|
params[name] = options[:default]
|
49
|
+
elsif options[:array]
|
50
|
+
values = @spectacles.arrayify(params[name])
|
51
|
+
params[name] = values.map{|val| @spectacles.read(val, type, options)}
|
49
52
|
elsif options[:arrayable] && @spectacles.arrayable?(params[name])
|
53
|
+
# TODO: deprecate arrayable in favor of array
|
50
54
|
values = @spectacles.arrayify(params[name])
|
51
55
|
params[name] = values.map{|val| @spectacles.read(val, type, options)}
|
52
56
|
else
|