seam-mongodb 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/lib/seam/mongodb.rb CHANGED
@@ -26,9 +26,11 @@ module Seam
26
26
  def self.find_all_pending_executions_by_step step
27
27
  Seam::Mongodb.collection
28
28
  .find( { next_step: step, next_execute_at: { '$lte' => Time.now } } )
29
+ .select( { '_id' => 1 } )
29
30
  .map do |x|
30
31
  -> do
31
- Seam::Effort.parse x
32
+ record = Seam::Mongodb.collection.find( { '_id' => x['_id'] } ).first
33
+ Seam::Effort.parse record
32
34
  end.to_object
33
35
  end
34
36
  end
@@ -1,5 +1,5 @@
1
1
  module Seam
2
2
  module Mongodb
3
- VERSION = "0.0.3"
3
+ VERSION = "0.0.4"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: seam-mongodb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -254,7 +254,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
254
254
  version: '0'
255
255
  segments:
256
256
  - 0
257
- hash: -2871184592722645062
257
+ hash: -1560466269320564369
258
258
  required_rubygems_version: !ruby/object:Gem::Requirement
259
259
  none: false
260
260
  requirements:
@@ -263,7 +263,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
263
263
  version: '0'
264
264
  segments:
265
265
  - 0
266
- hash: -2871184592722645062
266
+ hash: -1560466269320564369
267
267
  requirements: []
268
268
  rubyforge_project:
269
269
  rubygems_version: 1.8.25