beanstalk-client-rspec 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.mkd CHANGED
@@ -1,3 +1,10 @@
1
+ # 0.0.5 (2012-06-26)
2
+
3
+ Bugfixes
4
+ --------
5
+
6
+ * Fix the timeout logic. It was reversed.
7
+
1
8
  # 0.0.4 (2012-02-19)
2
9
 
3
10
  Bugfixes
@@ -29,7 +29,7 @@ module Beanstalk
29
29
  if @tubes[tube_name].nil?
30
30
  next
31
31
  end
32
- job = @tubes[tube_name]['ready'].pop(false)
32
+ job = @tubes[tube_name]['ready'].pop(true)
33
33
  rescue ThreadError
34
34
  next
35
35
  end
@@ -40,9 +40,9 @@ module Beanstalk
40
40
 
41
41
  if job.nil?
42
42
  if timeout
43
- return nil
43
+ raise Beanstalk::TimedOut
44
44
  else
45
- raise Beanstalk::TimedOut if job.nil?
45
+ return nil
46
46
  end
47
47
  end
48
48
 
@@ -1,7 +1,7 @@
1
1
  module Beanstalk
2
2
  module Client
3
3
  module Rspec
4
- VERSION = "0.0.4"
4
+ VERSION = '0.0.5'
5
5
  end
6
6
  end
7
7
  end
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
4
+ version: 0.0.5
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-19 00:00:00.000000000 Z
12
+ date: 2012-06-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
16
- requirement: &28719040 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,15 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *28719040
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
25
30
  - !ruby/object:Gem::Dependency
26
31
  name: beanstalk-client
27
- requirement: &28717920 !ruby/object:Gem::Requirement
32
+ requirement: !ruby/object:Gem::Requirement
28
33
  none: false
29
34
  requirements:
30
35
  - - ! '>='
@@ -32,7 +37,12 @@ dependencies:
32
37
  version: '0'
33
38
  type: :runtime
34
39
  prerelease: false
35
- version_requirements: *28717920
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
36
46
  description: Provides a fairly complete mock for beanstalk-client by imitating beanstalkd
37
47
  using arrays. Also provides some rspec matchers for testing the state of the system.
38
48
  email:
@@ -77,7 +87,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
77
87
  version: '0'
78
88
  requirements: []
79
89
  rubyforge_project:
80
- rubygems_version: 1.8.11
90
+ rubygems_version: 1.8.23
81
91
  signing_key:
82
92
  specification_version: 3
83
93
  summary: Mock and RSpec for beanstalk-client