resque-igo 1.12.4 → 1.12.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/resque.rb +1 -2
  2. data/lib/resque/version.rb +1 -1
  3. metadata +3 -3
data/lib/resque.rb CHANGED
@@ -182,8 +182,7 @@ module Resque
182
182
  query['delay_until'] = { '$not' => { '$gt' => Time.new}}
183
183
  end
184
184
  #sorting will result in significant performance penalties for large queues, you have been warned.
185
- #this applies to _id, too. it'd be nice, but it won't work, so don't try it.
186
- item = mongo[queue].find_and_modify(:query => query, :remove => true) #, :sort => [[:_id, :asc]] )
185
+ item = mongo[queue].find_and_modify(:query => query, :remove => true, :sort => [[:_id, :asc]] )
187
186
  rescue Mongo::OperationFailure => e
188
187
  return nil if e.message =~ /No matching object/
189
188
  raise e
@@ -1,3 +1,3 @@
1
1
  module Resque
2
- Version = VERSION = '1.12.4'
2
+ Version = VERSION = '1.12.5'
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: resque-igo
3
3
  version: !ruby/object:Gem::Version
4
- hash: 47
4
+ hash: 45
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 12
9
- - 4
10
- version: 1.12.4
9
+ - 5
10
+ version: 1.12.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Nathan D Acuff