mothership 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/mothership/inputs.rb +8 -2
- data/lib/mothership/version.rb +1 -1
- metadata +3 -3
data/lib/mothership/inputs.rb
CHANGED
@@ -42,8 +42,14 @@ class Mothership
|
|
42
42
|
|
43
43
|
if @inputs.key?(name) && @inputs[name] != []
|
44
44
|
val =
|
45
|
-
if meta[:from_given]
|
46
|
-
@
|
45
|
+
if convert = meta[:from_given]
|
46
|
+
if @inputs[name].is_a?(Array)
|
47
|
+
@inputs[name].collect do |i|
|
48
|
+
@context.instance_exec(i, *args, &convert)
|
49
|
+
end
|
50
|
+
else
|
51
|
+
@context.instance_exec(@inputs[name], *args, &convert)
|
52
|
+
end
|
47
53
|
else
|
48
54
|
@inputs[name]
|
49
55
|
end
|
data/lib/mothership/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mothership
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 5
|
10
|
+
version: 0.0.5
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Alex Suraci
|