eventus 0.3.4 → 0.3.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -26,7 +26,9 @@ module Eventus
26
26
 
27
27
  def conflict?(e1, e2)
28
28
  return false unless @event_conflicts
29
- @event_conflicts.fetch(e1,[]).include?(e2) || @event_conflicts.fetch(e2,[]).include?(e1)
29
+ s1 = e1.to_s
30
+ s2 = e2.to_s
31
+ @event_conflicts.fetch(s1,[]).include?(s2) || @event_conflicts.fetch(s2,[]).include?(s1)
30
32
  end
31
33
  end
32
34
 
@@ -1,3 +1,3 @@
1
1
  module Eventus
2
- VERSION = "0.3.4"
2
+ VERSION = "0.3.5"
3
3
  end
@@ -58,7 +58,7 @@ describe Eventus::AggregateRoot do
58
58
  describe "when saving" do
59
59
  let(:aggregate) { TestAgg.new }
60
60
  let(:stream) { stub(:stream, :committed_events => events, :version => 0) }
61
- let(:events) { [{'name' => 'lemon_squeezed'}] }
61
+ let(:events) { [{'name' => :lemon_squeezed}] }
62
62
 
63
63
  before do
64
64
  aggregate.populate(stream)
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.4
4
+ version: 0.3.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-01-17 00:00:00.000000000Z
12
+ date: 2012-01-18 00:00:00.000000000Z
13
13
  dependencies: []
14
14
  description: An Event Store
15
15
  email:
@@ -57,7 +57,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
57
57
  version: '0'
58
58
  segments:
59
59
  - 0
60
- hash: -2869143753432076418
60
+ hash: -247495815524544458
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: -2869143753432076418
69
+ hash: -247495815524544458
70
70
  requirements: []
71
71
  rubyforge_project: eventus
72
72
  rubygems_version: 1.8.13