euston-eventstore 1.2.6 → 1.2.7
Sign up to get free protection for your applications and to get access to all the features.
- data/euston-eventstore.gemspec +5 -5
- data/lib/euston-eventstore/repository.rb +1 -0
- data/lib/euston-eventstore/version.rb +1 -1
- metadata +36 -30
data/euston-eventstore.gemspec
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'euston-eventstore'
|
3
|
-
s.version = '1.2.
|
4
|
-
s.date = '2012-02-
|
3
|
+
s.version = '1.2.7'
|
4
|
+
s.date = '2012-02-28'
|
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']
|
@@ -54,7 +54,7 @@ Gem::Specification.new do |s|
|
|
54
54
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
55
55
|
|
56
56
|
s.add_dependency 'activesupport', '~> 3.1.0'
|
57
|
-
s.add_dependency 'euston', '~> 1.2.
|
57
|
+
s.add_dependency 'euston', '~> 1.2.9'
|
58
58
|
s.add_dependency 'hash-keys', '~> 1.0.0'
|
59
59
|
|
60
60
|
if RUBY_PLATFORM.to_s == 'java'
|
@@ -68,8 +68,8 @@ Gem::Specification.new do |s|
|
|
68
68
|
s.add_dependency 'uuid', '~> 2.3.0'
|
69
69
|
end
|
70
70
|
|
71
|
-
s.add_development_dependency 'awesome_print', '~> 0.
|
72
|
-
s.add_development_dependency 'fuubar', '~>
|
71
|
+
s.add_development_dependency 'awesome_print', '~> 1.0.2'
|
72
|
+
s.add_development_dependency 'fuubar', '~> 1.0.0'
|
73
73
|
s.add_development_dependency 'rake', '~> 0.9.2'
|
74
74
|
s.add_development_dependency 'rspec', '~> 2.6.0'
|
75
75
|
end
|
@@ -12,6 +12,7 @@ module Euston
|
|
12
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
|
+
aggregate.uncommitted_headers.each { |key, value| stream.uncommitted_headers[key] = value }
|
15
16
|
stream.uncommitted_headers[:aggregate_type] = aggregate.class.to_s
|
16
17
|
stream.commit_changes Euston.uuid.generate
|
17
18
|
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.
|
4
|
+
version: 1.2.7
|
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-
|
13
|
+
date: 2012-02-28 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activesupport
|
17
|
-
requirement: &
|
17
|
+
requirement: &70259973395120 !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ~>
|
@@ -22,21 +22,21 @@ dependencies:
|
|
22
22
|
version: 3.1.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
|
-
version_requirements: *
|
25
|
+
version_requirements: *70259973395120
|
26
26
|
- !ruby/object:Gem::Dependency
|
27
27
|
name: euston
|
28
|
-
requirement: &
|
28
|
+
requirement: &70259973393800 !ruby/object:Gem::Requirement
|
29
29
|
none: false
|
30
30
|
requirements:
|
31
31
|
- - ~>
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 1.2.
|
33
|
+
version: 1.2.9
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
|
-
version_requirements: *
|
36
|
+
version_requirements: *70259973393800
|
37
37
|
- !ruby/object:Gem::Dependency
|
38
38
|
name: hash-keys
|
39
|
-
requirement: &
|
39
|
+
requirement: &70259973392720 !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: *
|
47
|
+
version_requirements: *70259973392720
|
48
48
|
- !ruby/object:Gem::Dependency
|
49
49
|
name: bson
|
50
|
-
requirement: &
|
50
|
+
requirement: &70259973407700 !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: *
|
58
|
+
version_requirements: *70259973407700
|
59
59
|
- !ruby/object:Gem::Dependency
|
60
60
|
name: bson_ext
|
61
|
-
requirement: &
|
61
|
+
requirement: &70259973406640 !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: *
|
69
|
+
version_requirements: *70259973406640
|
70
70
|
- !ruby/object:Gem::Dependency
|
71
71
|
name: json
|
72
|
-
requirement: &
|
72
|
+
requirement: &70259973405640 !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: *
|
80
|
+
version_requirements: *70259973405640
|
81
81
|
- !ruby/object:Gem::Dependency
|
82
82
|
name: mongo
|
83
|
-
requirement: &
|
83
|
+
requirement: &70259973404660 !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: *
|
91
|
+
version_requirements: *70259973404660
|
92
92
|
- !ruby/object:Gem::Dependency
|
93
93
|
name: uuid
|
94
|
-
requirement: &
|
94
|
+
requirement: &70259973403980 !ruby/object:Gem::Requirement
|
95
95
|
none: false
|
96
96
|
requirements:
|
97
97
|
- - ~>
|
@@ -99,32 +99,32 @@ dependencies:
|
|
99
99
|
version: 2.3.0
|
100
100
|
type: :runtime
|
101
101
|
prerelease: false
|
102
|
-
version_requirements: *
|
102
|
+
version_requirements: *70259973403980
|
103
103
|
- !ruby/object:Gem::Dependency
|
104
104
|
name: awesome_print
|
105
|
-
requirement: &
|
105
|
+
requirement: &70259973403300 !ruby/object:Gem::Requirement
|
106
106
|
none: false
|
107
107
|
requirements:
|
108
108
|
- - ~>
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: 0.
|
110
|
+
version: 1.0.2
|
111
111
|
type: :development
|
112
112
|
prerelease: false
|
113
|
-
version_requirements: *
|
113
|
+
version_requirements: *70259973403300
|
114
114
|
- !ruby/object:Gem::Dependency
|
115
115
|
name: fuubar
|
116
|
-
requirement: &
|
116
|
+
requirement: &70259973402520 !ruby/object:Gem::Requirement
|
117
117
|
none: false
|
118
118
|
requirements:
|
119
119
|
- - ~>
|
120
120
|
- !ruby/object:Gem::Version
|
121
|
-
version:
|
121
|
+
version: 1.0.0
|
122
122
|
type: :development
|
123
123
|
prerelease: false
|
124
|
-
version_requirements: *
|
124
|
+
version_requirements: *70259973402520
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: rake
|
127
|
-
requirement: &
|
127
|
+
requirement: &70259973401760 !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: *
|
135
|
+
version_requirements: *70259973401760
|
136
136
|
- !ruby/object:Gem::Dependency
|
137
137
|
name: rspec
|
138
|
-
requirement: &
|
138
|
+
requirement: &70259973401180 !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: *
|
146
|
+
version_requirements: *70259973401180
|
147
147
|
description: Ruby port for Jonathan Oliver's EventStore. See https://github.com/joliver/EventStore
|
148
148
|
for details.
|
149
149
|
email:
|
@@ -202,15 +202,21 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
202
202
|
- - ! '>='
|
203
203
|
- !ruby/object:Gem::Version
|
204
204
|
version: '0'
|
205
|
+
segments:
|
206
|
+
- 0
|
207
|
+
hash: -3102248399668511839
|
205
208
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
206
209
|
none: false
|
207
210
|
requirements:
|
208
211
|
- - ! '>='
|
209
212
|
- !ruby/object:Gem::Version
|
210
213
|
version: '0'
|
214
|
+
segments:
|
215
|
+
- 0
|
216
|
+
hash: -3102248399668511839
|
211
217
|
requirements: []
|
212
218
|
rubyforge_project:
|
213
|
-
rubygems_version: 1.8.
|
219
|
+
rubygems_version: 1.8.17
|
214
220
|
signing_key:
|
215
221
|
specification_version: 3
|
216
222
|
summary: Event store for use with Euston.
|