eventus 0.3.3 → 0.3.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -32,7 +32,7 @@ module Eventus
32
32
  @uncommitted_events.clear
33
33
  rescue ConcurrencyError => e
34
34
  Eventus.logger.info "ConcurrencyError, loading new events for: #{id}"
35
- load_events @persistence.load(id, version + 1)
35
+ load_events @persistence.load(id, version)
36
36
  raise e
37
37
  end
38
38
 
@@ -1,3 +1,3 @@
1
1
  module Eventus
2
- VERSION = "0.3.3"
2
+ VERSION = "0.3.4"
3
3
  end
@@ -82,7 +82,7 @@ describe Eventus::Stream do
82
82
  end
83
83
 
84
84
  it "should load latest events" do
85
- persistence.should_receive(:load).with(id, 1).and_return([stub, stub, stub])
85
+ persistence.should_receive(:load).with(id, 0).and_return([stub, stub, stub])
86
86
  stream.commit rescue nil
87
87
  stream.version.should == 3
88
88
  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.3
4
+ version: 0.3.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -57,7 +57,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
57
57
  version: '0'
58
58
  segments:
59
59
  - 0
60
- hash: -2796071801929159894
60
+ hash: -2869143753432076418
61
61
  required_rubygems_version: !ruby/object:Gem::Requirement
62
62
  none: false
63
63
  requirements:
@@ -66,7 +66,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
66
66
  version: '0'
67
67
  segments:
68
68
  - 0
69
- hash: -2796071801929159894
69
+ hash: -2869143753432076418
70
70
  requirements: []
71
71
  rubyforge_project: eventus
72
72
  rubygems_version: 1.8.13