euston-eventstore 1.2.4-java → 1.2.5-java

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'euston-eventstore'
3
- s.version = '1.2.4'
3
+ s.version = '1.2.5'
4
4
  s.date = '2012-02-02'
5
5
  s.platform = RUBY_PLATFORM.to_s == 'java' ? 'java' : Gem::Platform::RUBY
6
6
  s.authors = ['Lee Henson', 'Guy Boertje']
@@ -10,8 +10,8 @@ module Euston
10
10
 
11
11
  def save aggregate
12
12
  stream = aggregate.stream
13
- aggregate.uncommitted_events.each { |e| stream << EventStore::Persistence::Mongodb::MongoEventMessage.new(e.to_hash.stringify__keys) }
14
- aggregate.uncommitted_commands.each { |c| stream << EventStore::Persistence::Mongodb::MongoCommandMessage.new(c.to_hash.stringify__keys) }
13
+ aggregate.uncommitted_events.each { |e| stream << EventStore::EventMessage.new(e.to_hash.stringify__keys) }
14
+ aggregate.uncommitted_commands.each { |c| stream << EventStore::CommandMessage.new(c.to_hash.stringify__keys) }
15
15
  stream.uncommitted_headers[:aggregate_type] = aggregate.class.to_s
16
16
  stream.commit_changes Euston.uuid.generate
17
17
  end
@@ -1,5 +1,5 @@
1
1
  module Euston
2
2
  module EventStore
3
- VERSION = "1.2.4"
3
+ VERSION = "1.2.5"
4
4
  end
5
5
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: euston-eventstore
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.2.4
5
+ version: 1.2.5
6
6
  platform: java
7
7
  authors:
8
8
  - Lee Henson
@@ -176,7 +176,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
176
176
  none: false
177
177
  requirements: []
178
178
  rubyforge_project:
179
- rubygems_version: 1.8.9
179
+ rubygems_version: 1.8.15
180
180
  signing_key:
181
181
  specification_version: 3
182
182
  summary: Event store for use with Euston.