eventus 0.3.7 → 0.3.8

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.
@@ -14,15 +14,15 @@ module Eventus
14
14
  def commit(events)
15
15
  seqs = events.map{|e| e['sequence']}
16
16
  doc = {
17
- _id: "#{events[0]['sid']}_#{seqs.min}",
18
- sid: events[0]['sid'],
19
- min: seqs.min,
20
- max: seqs.max,
21
- events: events,
22
- dispatched: false
17
+ '_id' => "#{events[0]['sid']}_#{seqs.min}",
18
+ 'sid' => events[0]['sid'],
19
+ 'min' => seqs.min,
20
+ 'max' => seqs.max,
21
+ 'events' => events,
22
+ 'dispatched' => false
23
23
  }
24
24
 
25
- future = @commits.find_one({sid:doc[:sid], max:{:$gte => doc[:min]}})
25
+ future = @commits.find_one({sid:doc['sid'], max:{:$gte => doc['min']}})
26
26
  raise Eventus::ConcurrencyError if future
27
27
  begin
28
28
  @commits.insert(doc, safe:true)
@@ -1,3 +1,3 @@
1
1
  module Eventus
2
- VERSION = "0.3.7"
2
+ VERSION = "0.3.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eventus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.7
4
+ version: 0.3.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: