nfo-resque-mongo 1.17.1 → 1.17.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/HISTORY.md +4 -0
  2. data/lib/resque.rb +1 -0
  3. data/lib/resque/version.rb +1 -1
  4. metadata +11 -11
data/HISTORY.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 1.17.2 (2011-10-27)
2
+
3
+ * [resque-mongo] Fix for the gem mongo 2.x.
4
+
1
5
  ## 1.17.1 (2011-05-27)
2
6
 
3
7
  * Reverted `exit` change. Back to `exit!`.
@@ -193,6 +193,7 @@ module Resque
193
193
  doc = mongo.find_and_modify( :query => { :queue => queue.to_s },
194
194
  :sort => [[:date, 1]],
195
195
  :remove => true )
196
+ return if doc.nil?
196
197
  QueueStats.remove_job(queue)
197
198
  doc['item']
198
199
  rescue Mongo::OperationFailure => e
@@ -1,3 +1,3 @@
1
1
  module Resque
2
- Version = VERSION = '1.17.1'
2
+ Version = VERSION = '1.17.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nfo-resque-mongo
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.17.1
4
+ version: 1.17.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,11 +10,11 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2011-08-12 00:00:00.000000000Z
13
+ date: 2011-10-27 00:00:00.000000000Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: mongo
17
- requirement: &2151773960 !ruby/object:Gem::Requirement
17
+ requirement: &70103284536340 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ! '>='
@@ -22,10 +22,10 @@ dependencies:
22
22
  version: '1.0'
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *2151773960
25
+ version_requirements: *70103284536340
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: vegas
28
- requirement: &2151772540 !ruby/object:Gem::Requirement
28
+ requirement: &70103284535400 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ~>
@@ -33,10 +33,10 @@ dependencies:
33
33
  version: 0.1.2
34
34
  type: :runtime
35
35
  prerelease: false
36
- version_requirements: *2151772540
36
+ version_requirements: *70103284535400
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: sinatra
39
- requirement: &2151771120 !ruby/object:Gem::Requirement
39
+ requirement: &70103284534280 !ruby/object:Gem::Requirement
40
40
  none: false
41
41
  requirements:
42
42
  - - ! '>='
@@ -44,10 +44,10 @@ dependencies:
44
44
  version: 0.9.2
45
45
  type: :runtime
46
46
  prerelease: false
47
- version_requirements: *2151771120
47
+ version_requirements: *70103284534280
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: multi_json
50
- requirement: &2151770140 !ruby/object:Gem::Requirement
50
+ requirement: &70103284533300 !ruby/object:Gem::Requirement
51
51
  none: false
52
52
  requirements:
53
53
  - - ~>
@@ -55,7 +55,7 @@ dependencies:
55
55
  version: '1.0'
56
56
  type: :runtime
57
57
  prerelease: false
58
- version_requirements: *2151770140
58
+ version_requirements: *70103284533300
59
59
  description: ! " Resque-mongo is a MongoDB-backed Ruby library for creating background
60
60
  jobs,\n placing those jobs on multiple queues, and processing them later.\n\n
61
61
  \ Background jobs can be any Ruby class or module that responds to\n perform.
@@ -153,7 +153,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
153
153
  version: '0'
154
154
  requirements: []
155
155
  rubyforge_project:
156
- rubygems_version: 1.8.7
156
+ rubygems_version: 1.8.10
157
157
  signing_key:
158
158
  specification_version: 3
159
159
  summary: Resque is a Redis-backed queueing system.