booby 0.0.2 → 0.0.3

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: f4c5717f748ffb6a68a2a502f0fa853c7a61dcac
4
- data.tar.gz: 87694c849db54accec0c6ad203afdca0bbeaf11f
3
+ metadata.gz: 317f8f4c72fbf3b58a75ef71ae3d9941bc38e5ad
4
+ data.tar.gz: 9b4904f92a91e3b47c1548b030e9523f655eaaa3
5
5
  SHA512:
6
- metadata.gz: acc3c3d861c9e2df6a751c9ca1f8cdd70e8d568dda3f8dd18e814dc60de42423566317201f95a4e24827b63d09e38231e54bf565f2b7ef63da76b8f2b89785f5
7
- data.tar.gz: 1176b49c1099a8026f78327cbf3ba33fa60fc2effd64da8a7ceadc1230dcaa8a20d6b5e576260a2d4ec298bcb39bd01a0ae63ce5e3b2fa3defc3a79843d3dc7c
6
+ metadata.gz: 81da5d0c265a7c107f617c1347cd32d83c850244302af33f6f58f0974f8d487353bcd63d1d8a04c742cf60fdd444397e9f0200c8fadb7e6d9c501a6c636f4ee5
7
+ data.tar.gz: 126f524df6da170f0fe03bebd3909af1b199f743ca99d839c2b61d80866f04272683a84665fc7fd0579b3a08fde666667d06ac94d5dcc74eaaca3afbdcb8b603
data/lib/booby/parser.rb CHANGED
@@ -47,7 +47,7 @@ module Booby
47
47
  # Check arity for this command...
48
48
  ar = @__current_processor.class.const_get(:ARITY) rescue nil
49
49
  ar = ar[cmd] if ar
50
- ar_int = ar.to_i rescue 0
50
+ ar_int = (ar.to_i rescue 0)
51
51
 
52
52
  if (ar === true && args.empty?) || (ar_int > 0 && args.size != ar_int)
53
53
  raise InvalidNumberOfParametersError.new(ar, args.size, cmd, line_no)
data/lib/booby/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Booby
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
data/test/version_test.rb CHANGED
@@ -2,6 +2,6 @@ require File.expand_path("../helper.rb", __FILE__)
2
2
 
3
3
  class TestVersion < Minitest::Test
4
4
  def test_version_number
5
- assert_equal Booby::VERSION, "0.0.2"
5
+ assert_equal Booby::VERSION, "0.0.3"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: booby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hmurca Team