mothership 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
- @context.instance_exec(@inputs[name], *args, &meta[:from_given])
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
@@ -1,3 +1,3 @@
1
1
  class Mothership
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
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: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 4
10
- version: 0.0.4
9
+ - 5
10
+ version: 0.0.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Alex Suraci