beanstalk-client-rspec 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.mkd +7 -0
- data/lib/beanstalk-client-rspec/version.rb +1 -1
- data/lib/beanstalk-client-rspec.rb +4 -1
- data/spec/beanstalk_spec.rb +8 -0
- metadata +6 -6
data/CHANGELOG.mkd
CHANGED
@@ -26,6 +26,9 @@ module Beanstalk
|
|
26
26
|
job = nil
|
27
27
|
@watch_list.each do |tube_name|
|
28
28
|
begin
|
29
|
+
if @tubes[tube_name].nil?
|
30
|
+
next
|
31
|
+
end
|
29
32
|
job = @tubes[tube_name]['ready'].pop(false)
|
30
33
|
rescue ThreadError
|
31
34
|
next
|
@@ -49,7 +52,7 @@ module Beanstalk
|
|
49
52
|
private
|
50
53
|
def interact(cmd, rfmt)
|
51
54
|
case cmd
|
52
|
-
when /^watch/
|
55
|
+
when /^watch (\S+)/
|
53
56
|
[@watch_list.size]
|
54
57
|
when /^ignore/
|
55
58
|
[@watch_list.size]
|
data/spec/beanstalk_spec.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: beanstalk-client-rspec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-02-
|
12
|
+
date: 2012-02-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|
16
|
-
requirement: &
|
16
|
+
requirement: &28719040 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *28719040
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: beanstalk-client
|
27
|
-
requirement: &
|
27
|
+
requirement: &28717920 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,7 +32,7 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *28717920
|
36
36
|
description: Provides a fairly complete mock for beanstalk-client by imitating beanstalkd
|
37
37
|
using arrays. Also provides some rspec matchers for testing the state of the system.
|
38
38
|
email:
|