euston-eventstore 1.2.6-java → 1.2.7-java
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 +23 -23
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
@@ -2,7 +2,7 @@
|
|
2
2
|
name: euston-eventstore
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 1.2.
|
5
|
+
version: 1.2.7
|
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-
|
13
|
+
date: 2012-02-28 00:00:00.000000000Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activesupport
|
17
|
-
version_requirements: &
|
17
|
+
version_requirements: &3562 !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: *
|
23
|
+
requirement: *3562
|
24
24
|
prerelease: false
|
25
25
|
type: :runtime
|
26
26
|
- !ruby/object:Gem::Dependency
|
27
27
|
name: euston
|
28
|
-
version_requirements: &
|
28
|
+
version_requirements: &3580 !ruby/object:Gem::Requirement
|
29
29
|
requirements:
|
30
30
|
- - ~>
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 1.2.
|
32
|
+
version: 1.2.9
|
33
33
|
none: false
|
34
|
-
requirement: *
|
34
|
+
requirement: *3580
|
35
35
|
prerelease: false
|
36
36
|
type: :runtime
|
37
37
|
- !ruby/object:Gem::Dependency
|
38
38
|
name: hash-keys
|
39
|
-
version_requirements: &
|
39
|
+
version_requirements: &3596 !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: *
|
45
|
+
requirement: *3596
|
46
46
|
prerelease: false
|
47
47
|
type: :runtime
|
48
48
|
- !ruby/object:Gem::Dependency
|
49
49
|
name: json-jruby
|
50
|
-
version_requirements: &
|
50
|
+
version_requirements: &3612 !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: *
|
56
|
+
requirement: *3612
|
57
57
|
prerelease: false
|
58
58
|
type: :runtime
|
59
59
|
- !ruby/object:Gem::Dependency
|
60
60
|
name: jmongo
|
61
|
-
version_requirements: &
|
61
|
+
version_requirements: &3628 !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: *
|
67
|
+
requirement: *3628
|
68
68
|
prerelease: false
|
69
69
|
type: :runtime
|
70
70
|
- !ruby/object:Gem::Dependency
|
71
71
|
name: awesome_print
|
72
|
-
version_requirements: &
|
72
|
+
version_requirements: &3644 !ruby/object:Gem::Requirement
|
73
73
|
requirements:
|
74
74
|
- - ~>
|
75
75
|
- !ruby/object:Gem::Version
|
76
|
-
version: 0.
|
76
|
+
version: 1.0.2
|
77
77
|
none: false
|
78
|
-
requirement: *
|
78
|
+
requirement: *3644
|
79
79
|
prerelease: false
|
80
80
|
type: :development
|
81
81
|
- !ruby/object:Gem::Dependency
|
82
82
|
name: fuubar
|
83
|
-
version_requirements: &
|
83
|
+
version_requirements: &3662 !ruby/object:Gem::Requirement
|
84
84
|
requirements:
|
85
85
|
- - ~>
|
86
86
|
- !ruby/object:Gem::Version
|
87
|
-
version:
|
87
|
+
version: 1.0.0
|
88
88
|
none: false
|
89
|
-
requirement: *
|
89
|
+
requirement: *3662
|
90
90
|
prerelease: false
|
91
91
|
type: :development
|
92
92
|
- !ruby/object:Gem::Dependency
|
93
93
|
name: rake
|
94
|
-
version_requirements: &
|
94
|
+
version_requirements: &3678 !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: *
|
100
|
+
requirement: *3678
|
101
101
|
prerelease: false
|
102
102
|
type: :development
|
103
103
|
- !ruby/object:Gem::Dependency
|
104
104
|
name: rspec
|
105
|
-
version_requirements: &
|
105
|
+
version_requirements: &3694 !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: *
|
111
|
+
requirement: *3694
|
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.
|