booby 0.0.3 → 0.1.0

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: 317f8f4c72fbf3b58a75ef71ae3d9941bc38e5ad
4
- data.tar.gz: 9b4904f92a91e3b47c1548b030e9523f655eaaa3
3
+ metadata.gz: 2d5bc4af10d62ad3ae71c75b0fe4951decb5cb4b
4
+ data.tar.gz: 1f52fe8ba770f7e4f9ee848b7e0f863284b96593
5
5
  SHA512:
6
- metadata.gz: 81da5d0c265a7c107f617c1347cd32d83c850244302af33f6f58f0974f8d487353bcd63d1d8a04c742cf60fdd444397e9f0200c8fadb7e6d9c501a6c636f4ee5
7
- data.tar.gz: 126f524df6da170f0fe03bebd3909af1b199f743ca99d839c2b61d80866f04272683a84665fc7fd0579b3a08fde666667d06ac94d5dcc74eaaca3afbdcb8b603
6
+ metadata.gz: ef4416f45f5bb4028865ec1e52dfdd15862b8a5f19d8fafd5c513dee12429b394eb49481852a74b657b9ed56678df47d46817ce122a66fd95b9c0b54c7fac2cd
7
+ data.tar.gz: b3e48456ebad7cfb2e284df7b5da2b4b3a494dbf3b004817e9e87f230e6ed1c1f38819c2e51762a92f396a6f9d06e9a624286df2943966d861b19aee46701b34
data/lib/booby/parser.rb CHANGED
@@ -54,7 +54,7 @@ module Booby
54
54
  end
55
55
 
56
56
  # Parse...
57
- res = @__current_processor.process(cmd, *args)
57
+ res = @__current_processor.process(line_no, cmd, *args)
58
58
 
59
59
  # Check result...
60
60
  case res
data/lib/booby/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Booby
2
- VERSION = "0.0.3"
2
+ VERSION = "0.1.0"
3
3
  end
data/test/parser_test.rb CHANGED
@@ -3,7 +3,7 @@ require File.expand_path("../helper.rb", __FILE__)
3
3
  class SimpleProcessor
4
4
  attr_reader :foo, :bar
5
5
 
6
- def process(cmd, *args)
6
+ def process(line_no, cmd, *args)
7
7
  case cmd
8
8
  when "foo"
9
9
  @foo = args
@@ -36,7 +36,7 @@ END
36
36
  class GroupProcessor
37
37
  attr_reader :foos
38
38
 
39
- def process(cmd, *args)
39
+ def process(line_no, cmd, *args)
40
40
  case cmd
41
41
  when "foo"
42
42
  @foos ||= []
@@ -52,7 +52,7 @@ end
52
52
  class GroupedProcessor
53
53
  attr_reader :group, :bar
54
54
 
55
- def process(cmd, *args)
55
+ def process(line_no, cmd, *args)
56
56
  case cmd
57
57
  when "bar"
58
58
  @bar = args
@@ -70,7 +70,7 @@ end
70
70
  class InvalidGroupedProcessor
71
71
  attr_reader :group, :bar
72
72
 
73
- def process(cmd, *args)
73
+ def process(line_no, cmd, *args)
74
74
  case cmd
75
75
  when "bar"
76
76
  @bar = args
@@ -95,7 +95,7 @@ END
95
95
  class RepeatableGroupedProcessor
96
96
  attr_reader :group, :bar
97
97
 
98
- def process(cmd, *args)
98
+ def process(line_no, cmd, *args)
99
99
  case cmd
100
100
  when "bar"
101
101
  @bar = args
@@ -126,7 +126,7 @@ foo 6
126
126
  END
127
127
 
128
128
  class InvalidResponseProcessor
129
- def process(cmd, *args)
129
+ def process(line_no, cmd, *args)
130
130
  return "foo"
131
131
  end
132
132
  end
@@ -144,7 +144,7 @@ class ArityCheckProcessor
144
144
 
145
145
  attr_reader :foo, :bar, :baz
146
146
 
147
- def process(cmd, *args)
147
+ def process(line_no, cmd, *args)
148
148
  case cmd
149
149
  when "foo"
150
150
  @foo = args
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.3"
5
+ assert_equal Booby::VERSION, "0.1.0"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: booby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hmurca Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-18 00:00:00.000000000 Z
11
+ date: 2014-07-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler