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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 699174cc78457c539305fafcea82bfd12f528776
4
- data.tar.gz: 35ddbb039d550addab144558772acd2e726bf631
3
+ metadata.gz: cda4d8a6853705150ef9a286b9cd50097897eb88
4
+ data.tar.gz: 5cd6ae6c588da5c4cb43f08687c577040277194c
5
5
  SHA512:
6
- metadata.gz: 2de90523ec7bfeaa925092b869b76b160aef426a8917d2d3fc8f171ed99408b66311bb34be5348f99e5709711cd2014fc3ec703f16f368b15899b6b675698d5c
7
- data.tar.gz: 2be2ee4ecd40a4bf9485d031d706c5ebfb0e0286f74c4e33dea4f62fb9da10b61be3ba85d2bb4a523e59e556b717101a3612c92d0b3cc2d253ad88908aa63d91
6
+ metadata.gz: be7ecd2990dd1887f7127860256e28150017d323d3e1384461eea0d8c3e72cfcd8c43342018e889eff0ec15cca9b261db5f7f614b71721f83d380941b8839e7c
7
+ data.tar.gz: bbbedcb6edd30a9ab968e6a8568f6cf876b6401f8de3b5e2a531da4eabdc711244cb1d3a55be3640e8b17edfc3553bf843f7dad33a9c9f760c879681043c019b
@@ -8,9 +8,9 @@ module CarryOut
8
8
  end
9
9
 
10
10
  def method_missing(method, *args, &block)
11
- if args.length == 1 || (args.length == 0 && !block.nil?)
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
@@ -1,3 +1,3 @@
1
1
  module CarryOut
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: carry_out
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Fields