euston-eventstore 1.2.5-java → 1.2.6-java

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'euston-eventstore'
3
- s.version = '1.2.5'
4
- s.date = '2012-02-02'
3
+ s.version = '1.2.6'
4
+ s.date = '2012-02-03'
5
5
  s.platform = RUBY_PLATFORM.to_s == 'java' ? 'java' : Gem::Platform::RUBY
6
6
  s.authors = ['Lee Henson', 'Guy Boertje']
7
7
  s.email = ['lee.m.henson@gmail.com', 'guyboertje@gmail.com']
@@ -9,7 +9,7 @@ module Euston
9
9
  end
10
10
 
11
11
  def save aggregate
12
- stream = aggregate.stream
12
+ stream = aggregate.stream || event_store.create_stream(aggregate.aggregate_id)
13
13
  aggregate.uncommitted_events.each { |e| stream << EventStore::EventMessage.new(e.to_hash.stringify__keys) }
14
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
@@ -1,5 +1,5 @@
1
1
  module Euston
2
2
  module EventStore
3
- VERSION = "1.2.5"
3
+ VERSION = "1.2.6"
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.5
5
+ version: 1.2.6
6
6
  platform: java
7
7
  authors:
8
8
  - Lee Henson
@@ -10,105 +10,105 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-02-02 00:00:00.000000000Z
13
+ date: 2012-02-03 00:00:00.000000000Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activesupport
17
- version_requirements: &2058 !ruby/object:Gem::Requirement
17
+ version_requirements: &3548 !ruby/object:Gem::Requirement
18
18
  requirements:
19
19
  - - ~>
20
20
  - !ruby/object:Gem::Version
21
21
  version: 3.1.0
22
22
  none: false
23
- requirement: *2058
23
+ requirement: *3548
24
24
  prerelease: false
25
25
  type: :runtime
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: euston
28
- version_requirements: &2076 !ruby/object:Gem::Requirement
28
+ version_requirements: &3566 !ruby/object:Gem::Requirement
29
29
  requirements:
30
30
  - - ~>
31
31
  - !ruby/object:Gem::Version
32
32
  version: 1.2.2
33
33
  none: false
34
- requirement: *2076
34
+ requirement: *3566
35
35
  prerelease: false
36
36
  type: :runtime
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: hash-keys
39
- version_requirements: &2092 !ruby/object:Gem::Requirement
39
+ version_requirements: &3582 !ruby/object:Gem::Requirement
40
40
  requirements:
41
41
  - - ~>
42
42
  - !ruby/object:Gem::Version
43
43
  version: 1.0.0
44
44
  none: false
45
- requirement: *2092
45
+ requirement: *3582
46
46
  prerelease: false
47
47
  type: :runtime
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: json-jruby
50
- version_requirements: &2108 !ruby/object:Gem::Requirement
50
+ version_requirements: &3598 !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - ~>
53
53
  - !ruby/object:Gem::Version
54
54
  version: 1.5.0
55
55
  none: false
56
- requirement: *2108
56
+ requirement: *3598
57
57
  prerelease: false
58
58
  type: :runtime
59
59
  - !ruby/object:Gem::Dependency
60
60
  name: jmongo
61
- version_requirements: &2124 !ruby/object:Gem::Requirement
61
+ version_requirements: &3614 !ruby/object:Gem::Requirement
62
62
  requirements:
63
63
  - - ~>
64
64
  - !ruby/object:Gem::Version
65
65
  version: 1.1.1
66
66
  none: false
67
- requirement: *2124
67
+ requirement: *3614
68
68
  prerelease: false
69
69
  type: :runtime
70
70
  - !ruby/object:Gem::Dependency
71
71
  name: awesome_print
72
- version_requirements: &2140 !ruby/object:Gem::Requirement
72
+ version_requirements: &3630 !ruby/object:Gem::Requirement
73
73
  requirements:
74
74
  - - ~>
75
75
  - !ruby/object:Gem::Version
76
76
  version: 0.4.0
77
77
  none: false
78
- requirement: *2140
78
+ requirement: *3630
79
79
  prerelease: false
80
80
  type: :development
81
81
  - !ruby/object:Gem::Dependency
82
82
  name: fuubar
83
- version_requirements: &2158 !ruby/object:Gem::Requirement
83
+ version_requirements: &3648 !ruby/object:Gem::Requirement
84
84
  requirements:
85
85
  - - ~>
86
86
  - !ruby/object:Gem::Version
87
87
  version: 0.0.0
88
88
  none: false
89
- requirement: *2158
89
+ requirement: *3648
90
90
  prerelease: false
91
91
  type: :development
92
92
  - !ruby/object:Gem::Dependency
93
93
  name: rake
94
- version_requirements: &2174 !ruby/object:Gem::Requirement
94
+ version_requirements: &3664 !ruby/object:Gem::Requirement
95
95
  requirements:
96
96
  - - ~>
97
97
  - !ruby/object:Gem::Version
98
98
  version: 0.9.2
99
99
  none: false
100
- requirement: *2174
100
+ requirement: *3664
101
101
  prerelease: false
102
102
  type: :development
103
103
  - !ruby/object:Gem::Dependency
104
104
  name: rspec
105
- version_requirements: &2190 !ruby/object:Gem::Requirement
105
+ version_requirements: &3680 !ruby/object:Gem::Requirement
106
106
  requirements:
107
107
  - - ~>
108
108
  - !ruby/object:Gem::Version
109
109
  version: 2.6.0
110
110
  none: false
111
- requirement: *2190
111
+ requirement: *3680
112
112
  prerelease: false
113
113
  type: :development
114
114
  description: Ruby port for Jonathan Oliver's EventStore. See https://github.com/joliver/EventStore for details.
@@ -166,12 +166,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
166
166
  requirements:
167
167
  - - ! '>='
168
168
  - !ruby/object:Gem::Version
169
+ segments:
170
+ - 0
171
+ hash: 2
169
172
  version: '0'
170
173
  none: false
171
174
  required_rubygems_version: !ruby/object:Gem::Requirement
172
175
  requirements:
173
176
  - - ! '>='
174
177
  - !ruby/object:Gem::Version
178
+ segments:
179
+ - 0
180
+ hash: 2
175
181
  version: '0'
176
182
  none: false
177
183
  requirements: []