carry_out 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/carry_out/plan_node.rb +2 -2
- data/lib/carry_out/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: cda4d8a6853705150ef9a286b9cd50097897eb88
|
4
|
+
data.tar.gz: 5cd6ae6c588da5c4cb43f08687c577040277194c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: be7ecd2990dd1887f7127860256e28150017d323d3e1384461eea0d8c3e72cfcd8c43342018e889eff0ec15cca9b261db5f7f614b71721f83d380941b8839e7c
|
7
|
+
data.tar.gz: bbbedcb6edd30a9ab968e6a8568f6cf876b6401f8de3b5e2a531da4eabdc711244cb1d3a55be3640e8b17edfc3553bf843f7dad33a9c9f760c879681043c019b
|
data/lib/carry_out/plan_node.rb
CHANGED
@@ -8,9 +8,9 @@ module CarryOut
|
|
8
8
|
end
|
9
9
|
|
10
10
|
def method_missing(method, *args, &block)
|
11
|
-
if args.length
|
11
|
+
if args.length <= 1 || (args.length == 0 && !block.nil?)
|
12
12
|
if @unitClass.instance_methods.include?(method)
|
13
|
-
@messages << { method: method, argument: args.first, block: block }
|
13
|
+
@messages << { method: method, argument: args.first || true, block: block }
|
14
14
|
else
|
15
15
|
raise NoMethodError.new("#{@unitClass} instances do not respond to `#{method}'", method, *args)
|
16
16
|
end
|
data/lib/carry_out/version.rb
CHANGED