euston-eventstore 1.2.5 → 1.2.6

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
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: euston-eventstore
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.5
4
+ version: 1.2.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,11 +10,11 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-02-02 00:00:00.000000000 Z
13
+ date: 2012-02-03 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activesupport
17
- requirement: &70306899959380 !ruby/object:Gem::Requirement
17
+ requirement: &70248250939840 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ~>
@@ -22,10 +22,10 @@ dependencies:
22
22
  version: 3.1.0
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *70306899959380
25
+ version_requirements: *70248250939840
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: euston
28
- requirement: &70306899974160 !ruby/object:Gem::Requirement
28
+ requirement: &70248250936800 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ~>
@@ -33,10 +33,10 @@ dependencies:
33
33
  version: 1.2.2
34
34
  type: :runtime
35
35
  prerelease: false
36
- version_requirements: *70306899974160
36
+ version_requirements: *70248250936800
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: hash-keys
39
- requirement: &70306899972300 !ruby/object:Gem::Requirement
39
+ requirement: &70248250947160 !ruby/object:Gem::Requirement
40
40
  none: false
41
41
  requirements:
42
42
  - - ~>
@@ -44,10 +44,10 @@ dependencies:
44
44
  version: 1.0.0
45
45
  type: :runtime
46
46
  prerelease: false
47
- version_requirements: *70306899972300
47
+ version_requirements: *70248250947160
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: bson
50
- requirement: &70306899970700 !ruby/object:Gem::Requirement
50
+ requirement: &70248250946320 !ruby/object:Gem::Requirement
51
51
  none: false
52
52
  requirements:
53
53
  - - ! '>='
@@ -55,10 +55,10 @@ dependencies:
55
55
  version: 1.3.0
56
56
  type: :runtime
57
57
  prerelease: false
58
- version_requirements: *70306899970700
58
+ version_requirements: *70248250946320
59
59
  - !ruby/object:Gem::Dependency
60
60
  name: bson_ext
61
- requirement: &70306899968460 !ruby/object:Gem::Requirement
61
+ requirement: &70248250944740 !ruby/object:Gem::Requirement
62
62
  none: false
63
63
  requirements:
64
64
  - - ! '>='
@@ -66,10 +66,10 @@ dependencies:
66
66
  version: 1.3.0
67
67
  type: :runtime
68
68
  prerelease: false
69
- version_requirements: *70306899968460
69
+ version_requirements: *70248250944740
70
70
  - !ruby/object:Gem::Dependency
71
71
  name: json
72
- requirement: &70306899983060 !ruby/object:Gem::Requirement
72
+ requirement: &70248250956340 !ruby/object:Gem::Requirement
73
73
  none: false
74
74
  requirements:
75
75
  - - ~>
@@ -77,10 +77,10 @@ dependencies:
77
77
  version: 1.5.0
78
78
  type: :runtime
79
79
  prerelease: false
80
- version_requirements: *70306899983060
80
+ version_requirements: *70248250956340
81
81
  - !ruby/object:Gem::Dependency
82
82
  name: mongo
83
- requirement: &70306899980580 !ruby/object:Gem::Requirement
83
+ requirement: &70248250954740 !ruby/object:Gem::Requirement
84
84
  none: false
85
85
  requirements:
86
86
  - - ! '>='
@@ -88,10 +88,10 @@ dependencies:
88
88
  version: 1.3.0
89
89
  type: :runtime
90
90
  prerelease: false
91
- version_requirements: *70306899980580
91
+ version_requirements: *70248250954740
92
92
  - !ruby/object:Gem::Dependency
93
93
  name: uuid
94
- requirement: &70306899978760 !ruby/object:Gem::Requirement
94
+ requirement: &70248250953920 !ruby/object:Gem::Requirement
95
95
  none: false
96
96
  requirements:
97
97
  - - ~>
@@ -99,10 +99,10 @@ dependencies:
99
99
  version: 2.3.0
100
100
  type: :runtime
101
101
  prerelease: false
102
- version_requirements: *70306899978760
102
+ version_requirements: *70248250953920
103
103
  - !ruby/object:Gem::Dependency
104
104
  name: awesome_print
105
- requirement: &70306899976700 !ruby/object:Gem::Requirement
105
+ requirement: &70248250951860 !ruby/object:Gem::Requirement
106
106
  none: false
107
107
  requirements:
108
108
  - - ~>
@@ -110,10 +110,10 @@ dependencies:
110
110
  version: 0.4.0
111
111
  type: :development
112
112
  prerelease: false
113
- version_requirements: *70306899976700
113
+ version_requirements: *70248250951860
114
114
  - !ruby/object:Gem::Dependency
115
115
  name: fuubar
116
- requirement: &70306899975260 !ruby/object:Gem::Requirement
116
+ requirement: &70248250951200 !ruby/object:Gem::Requirement
117
117
  none: false
118
118
  requirements:
119
119
  - - ~>
@@ -121,10 +121,10 @@ dependencies:
121
121
  version: 0.0.0
122
122
  type: :development
123
123
  prerelease: false
124
- version_requirements: *70306899975260
124
+ version_requirements: *70248250951200
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: rake
127
- requirement: &70306899999420 !ruby/object:Gem::Requirement
127
+ requirement: &70248250949220 !ruby/object:Gem::Requirement
128
128
  none: false
129
129
  requirements:
130
130
  - - ~>
@@ -132,10 +132,10 @@ dependencies:
132
132
  version: 0.9.2
133
133
  type: :development
134
134
  prerelease: false
135
- version_requirements: *70306899999420
135
+ version_requirements: *70248250949220
136
136
  - !ruby/object:Gem::Dependency
137
137
  name: rspec
138
- requirement: &70306899996280 !ruby/object:Gem::Requirement
138
+ requirement: &70248250968240 !ruby/object:Gem::Requirement
139
139
  none: false
140
140
  requirements:
141
141
  - - ~>
@@ -143,7 +143,7 @@ dependencies:
143
143
  version: 2.6.0
144
144
  type: :development
145
145
  prerelease: false
146
- version_requirements: *70306899996280
146
+ version_requirements: *70248250968240
147
147
  description: Ruby port for Jonathan Oliver's EventStore. See https://github.com/joliver/EventStore
148
148
  for details.
149
149
  email: