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 +4 -4
- data/lib/booby/parser.rb +1 -1
- data/lib/booby/version.rb +1 -1
- data/test/parser_test.rb +7 -7
- data/test/version_test.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2d5bc4af10d62ad3ae71c75b0fe4951decb5cb4b
|
4
|
+
data.tar.gz: 1f52fe8ba770f7e4f9ee848b7e0f863284b96593
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ef4416f45f5bb4028865ec1e52dfdd15862b8a5f19d8fafd5c513dee12429b394eb49481852a74b657b9ed56678df47d46817ce122a66fd95b9c0b54c7fac2cd
|
7
|
+
data.tar.gz: b3e48456ebad7cfb2e284df7b5da2b4b3a494dbf3b004817e9e87f230e6ed1c1f38819c2e51762a92f396a6f9d06e9a624286df2943966d861b19aee46701b34
|
data/lib/booby/parser.rb
CHANGED
data/lib/booby/version.rb
CHANGED
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
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
|
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-
|
11
|
+
date: 2014-07-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|