choosy 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/VERSION +1 -1
- data/lib/choosy/super_command.rb +7 -2
- data/spec/choosy/super_command_spec.rb +2 -2
- metadata +2 -2
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.3
|
data/lib/choosy/super_command.rb
CHANGED
@@ -34,8 +34,13 @@ module Choosy
|
|
34
34
|
end
|
35
35
|
|
36
36
|
super_result.subresults.each do |result|
|
37
|
-
|
38
|
-
|
37
|
+
executor = result.command.executor
|
38
|
+
|
39
|
+
if executor.is_a?(Proc)
|
40
|
+
executor.call(result.args, result.options)
|
41
|
+
else
|
42
|
+
executor.execute!(result.args, result.options)
|
43
|
+
end
|
39
44
|
end
|
40
45
|
end
|
41
46
|
|