euston-daemons 1.2.9-java → 1.2.10-java

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/Rakefile CHANGED
@@ -73,7 +73,7 @@ end
73
73
 
74
74
  desc "Run all examples"
75
75
  RSpec::Core::RakeTask.new(:spec) do |t|
76
- t.rspec_opts = ['-r ./spec/spec_helper.rb', '--colour', '--format Fuubar']
76
+ t.rspec_opts = ['-r ./spec/spec_helper.rb', '-b', '--tty', '--colour', '--format Fuubar']
77
77
  t.pattern = 'spec/**/*_spec.rb'
78
78
  end
79
79
 
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'euston-daemons'
3
- s.version = '1.2.9'
3
+ s.version = '1.2.10'
4
4
  s.platform = RUBY_PLATFORM.to_s == 'java' ? 'java' : Gem::Platform::RUBY
5
5
  s.authors = ['Lee Henson', 'Guy Boertje']
6
6
  s.email = ['lee.m.henson@gmail.com', 'guyboertje@gmail.com']
@@ -62,7 +62,7 @@ Gem::Specification.new do |s|
62
62
  s.add_dependency 'activemodel', '>= 3.0.10'
63
63
  s.add_dependency 'activesupport', '>= 3.0.10'
64
64
  s.add_dependency 'erb-yaml', '~> 1.0.0'
65
- s.add_dependency 'euston', '~> 1.2.4'
65
+ s.add_dependency 'euston', '~> 1.2.9'
66
66
  s.add_dependency 'euston-eventstore', '~> 1.2.3'
67
67
  s.add_dependency 'euston-rabbitmq', '~> 1.2.2'
68
68
  s.add_dependency 'hollywood', '~> 1.0.0'
@@ -75,10 +75,10 @@ Gem::Specification.new do |s|
75
75
  s.add_dependency 'jmongo', '~> 1.1.0'
76
76
  end
77
77
 
78
- s.add_development_dependency 'awesome_print', '~> 0.4.0'
78
+ s.add_development_dependency 'awesome_print', '~> 1.0.2'
79
79
  s.add_development_dependency 'cranky', '~> 0.2.0'
80
80
  s.add_development_dependency 'ffaker', '~> 1.8.0'
81
- s.add_development_dependency 'fuubar', '~> 0.0.0'
81
+ s.add_development_dependency 'fuubar', '~> 1.0.0'
82
82
  s.add_development_dependency 'rabbitmqadmin-cli', '~> 1.0.2'
83
83
  s.add_development_dependency 'rake', '~> 0.9.2'
84
84
  s.add_development_dependency 'rspec', '~> 2.6.0'
@@ -36,6 +36,7 @@ module Euston
36
36
  @commits.each do |commit|
37
37
  commit.events.each do |event|
38
38
  hash = event.to_hash
39
+ hash[:headers][commit.headers[:source_message_type]] = commit.headers[:source_message]
39
40
  @events_exchange.publish ActiveSupport::JSON.encode(hash), self.class.default_publish_options.merge(:routing_key => "events.#{hash[:headers][:type]}")
40
41
  end
41
42
 
@@ -35,6 +35,7 @@ module Euston
35
35
  snapshot = EventStore::Snapshot.new pair.stream.stream_id,
36
36
  pair.stream.stream_revision,
37
37
  snapshot[:payload],
38
+ :event_source_type => klass.to_s,
38
39
  :version => snapshot[:version]
39
40
 
40
41
  @log.debug "Writing snapshot: #{snapshot.inspect}"
@@ -1,5 +1,5 @@
1
1
  module Euston
2
2
  module Daemons
3
- VERSION = "1.2.9"
3
+ VERSION = "1.2.10"
4
4
  end
5
5
  end
@@ -45,7 +45,7 @@ describe 'snapshotter component', :jruby, :purge_event_store, :euston_event_stor
45
45
 
46
46
  describe 'snapshot' do
47
47
  subject { @event_store.get_snapshot counter_id }
48
- its(:headers) { should == { :version => 1 } }
48
+ its(:headers) { should == { :event_source_type=>"Euston::Daemons::SampleModel::Counter", :version => 1 } }
49
49
  its(:payload) { should == { :count => 3 } }
50
50
  end
51
51
 
@@ -79,19 +79,19 @@ describe 'snapshotter component', :jruby, :purge_event_store, :euston_event_stor
79
79
 
80
80
  describe 'first snapshot' do
81
81
  subject { @event_store.get_snapshot counter_id, 3 }
82
- its(:headers) { should == { :version => 1 } }
82
+ its(:headers) { should == { :event_source_type=>"Euston::Daemons::SampleModel::Counter", :version => 1 } }
83
83
  its(:payload) { should == { :count => 3 } }
84
84
  end
85
85
 
86
86
  describe 'second snapshot' do
87
87
  subject { @event_store.get_snapshot counter_id, 6 }
88
- its(:headers) { should == { :version => 1 } }
88
+ its(:headers) { should == { :event_source_type=>"Euston::Daemons::SampleModel::Counter", :version => 1 } }
89
89
  its(:payload) { should == { :count => 19 } }
90
90
  end
91
91
 
92
92
  describe 'third snapshot' do
93
93
  subject { @event_store.get_snapshot counter_id }
94
- its(:headers) { should == { :version => 1 } }
94
+ its(:headers) { should == { :event_source_type=>"Euston::Daemons::SampleModel::Counter", :version => 1 } }
95
95
  its(:payload) { should == { :count => 87 } }
96
96
  end
97
97
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: euston-daemons
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.2.9
5
+ version: 1.2.10
6
6
  platform: java
7
7
  authors:
8
8
  - Lee Henson
@@ -10,215 +10,215 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-02-03 00:00:00.000000000Z
13
+ date: 2012-02-28 00:00:00.000000000Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activemodel
17
- version_requirements: &2058 !ruby/object:Gem::Requirement
17
+ version_requirements: &4792 !ruby/object:Gem::Requirement
18
18
  requirements:
19
19
  - - ! '>='
20
20
  - !ruby/object:Gem::Version
21
21
  version: 3.0.10
22
22
  none: false
23
- requirement: *2058
23
+ requirement: *4792
24
24
  prerelease: false
25
25
  type: :runtime
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: activesupport
28
- version_requirements: &2076 !ruby/object:Gem::Requirement
28
+ version_requirements: &4810 !ruby/object:Gem::Requirement
29
29
  requirements:
30
30
  - - ! '>='
31
31
  - !ruby/object:Gem::Version
32
32
  version: 3.0.10
33
33
  none: false
34
- requirement: *2076
34
+ requirement: *4810
35
35
  prerelease: false
36
36
  type: :runtime
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: erb-yaml
39
- version_requirements: &2092 !ruby/object:Gem::Requirement
39
+ version_requirements: &4826 !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: *4826
46
46
  prerelease: false
47
47
  type: :runtime
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: euston
50
- version_requirements: &2108 !ruby/object:Gem::Requirement
50
+ version_requirements: &4842 !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - ~>
53
53
  - !ruby/object:Gem::Version
54
- version: 1.2.4
54
+ version: 1.2.9
55
55
  none: false
56
- requirement: *2108
56
+ requirement: *4842
57
57
  prerelease: false
58
58
  type: :runtime
59
59
  - !ruby/object:Gem::Dependency
60
60
  name: euston-eventstore
61
- version_requirements: &2124 !ruby/object:Gem::Requirement
61
+ version_requirements: &4858 !ruby/object:Gem::Requirement
62
62
  requirements:
63
63
  - - ~>
64
64
  - !ruby/object:Gem::Version
65
65
  version: 1.2.3
66
66
  none: false
67
- requirement: *2124
67
+ requirement: *4858
68
68
  prerelease: false
69
69
  type: :runtime
70
70
  - !ruby/object:Gem::Dependency
71
71
  name: euston-rabbitmq
72
- version_requirements: &2140 !ruby/object:Gem::Requirement
72
+ version_requirements: &4874 !ruby/object:Gem::Requirement
73
73
  requirements:
74
74
  - - ~>
75
75
  - !ruby/object:Gem::Version
76
76
  version: 1.2.2
77
77
  none: false
78
- requirement: *2140
78
+ requirement: *4874
79
79
  prerelease: false
80
80
  type: :runtime
81
81
  - !ruby/object:Gem::Dependency
82
82
  name: hollywood
83
- version_requirements: &2156 !ruby/object:Gem::Requirement
83
+ version_requirements: &4890 !ruby/object:Gem::Requirement
84
84
  requirements:
85
85
  - - ~>
86
86
  - !ruby/object:Gem::Version
87
87
  version: 1.0.0
88
88
  none: false
89
- requirement: *2156
89
+ requirement: *4890
90
90
  prerelease: false
91
91
  type: :runtime
92
92
  - !ruby/object:Gem::Dependency
93
93
  name: i18n
94
- version_requirements: &2172 !ruby/object:Gem::Requirement
94
+ version_requirements: &4906 !ruby/object:Gem::Requirement
95
95
  requirements:
96
96
  - - ! '>='
97
97
  - !ruby/object:Gem::Version
98
98
  version: 0.5.0
99
99
  none: false
100
- requirement: *2172
100
+ requirement: *4906
101
101
  prerelease: false
102
102
  type: :runtime
103
103
  - !ruby/object:Gem::Dependency
104
104
  name: safely
105
- version_requirements: &2188 !ruby/object:Gem::Requirement
105
+ version_requirements: &4922 !ruby/object:Gem::Requirement
106
106
  requirements:
107
107
  - - ~>
108
108
  - !ruby/object:Gem::Version
109
109
  version: 0.3.0
110
110
  none: false
111
- requirement: *2188
111
+ requirement: *4922
112
112
  prerelease: false
113
113
  type: :runtime
114
114
  - !ruby/object:Gem::Dependency
115
115
  name: uuidtools
116
- version_requirements: &2204 !ruby/object:Gem::Requirement
116
+ version_requirements: &4938 !ruby/object:Gem::Requirement
117
117
  requirements:
118
118
  - - ~>
119
119
  - !ruby/object:Gem::Version
120
120
  version: 2.1.2
121
121
  none: false
122
- requirement: *2204
122
+ requirement: *4938
123
123
  prerelease: false
124
124
  type: :runtime
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: hot_bunnies
127
- version_requirements: &2220 !ruby/object:Gem::Requirement
127
+ version_requirements: &4954 !ruby/object:Gem::Requirement
128
128
  requirements:
129
129
  - - ~>
130
130
  - !ruby/object:Gem::Version
131
131
  version: 1.3.0
132
132
  none: false
133
- requirement: *2220
133
+ requirement: *4954
134
134
  prerelease: false
135
135
  type: :runtime
136
136
  - !ruby/object:Gem::Dependency
137
137
  name: jmongo
138
- version_requirements: &2236 !ruby/object:Gem::Requirement
138
+ version_requirements: &4970 !ruby/object:Gem::Requirement
139
139
  requirements:
140
140
  - - ~>
141
141
  - !ruby/object:Gem::Version
142
142
  version: 1.1.0
143
143
  none: false
144
- requirement: *2236
144
+ requirement: *4970
145
145
  prerelease: false
146
146
  type: :runtime
147
147
  - !ruby/object:Gem::Dependency
148
148
  name: awesome_print
149
- version_requirements: &2252 !ruby/object:Gem::Requirement
149
+ version_requirements: &4986 !ruby/object:Gem::Requirement
150
150
  requirements:
151
151
  - - ~>
152
152
  - !ruby/object:Gem::Version
153
- version: 0.4.0
153
+ version: 1.0.2
154
154
  none: false
155
- requirement: *2252
155
+ requirement: *4986
156
156
  prerelease: false
157
157
  type: :development
158
158
  - !ruby/object:Gem::Dependency
159
159
  name: cranky
160
- version_requirements: &2270 !ruby/object:Gem::Requirement
160
+ version_requirements: &5004 !ruby/object:Gem::Requirement
161
161
  requirements:
162
162
  - - ~>
163
163
  - !ruby/object:Gem::Version
164
164
  version: 0.2.0
165
165
  none: false
166
- requirement: *2270
166
+ requirement: *5004
167
167
  prerelease: false
168
168
  type: :development
169
169
  - !ruby/object:Gem::Dependency
170
170
  name: ffaker
171
- version_requirements: &2286 !ruby/object:Gem::Requirement
171
+ version_requirements: &5020 !ruby/object:Gem::Requirement
172
172
  requirements:
173
173
  - - ~>
174
174
  - !ruby/object:Gem::Version
175
175
  version: 1.8.0
176
176
  none: false
177
- requirement: *2286
177
+ requirement: *5020
178
178
  prerelease: false
179
179
  type: :development
180
180
  - !ruby/object:Gem::Dependency
181
181
  name: fuubar
182
- version_requirements: &2302 !ruby/object:Gem::Requirement
182
+ version_requirements: &5036 !ruby/object:Gem::Requirement
183
183
  requirements:
184
184
  - - ~>
185
185
  - !ruby/object:Gem::Version
186
- version: 0.0.0
186
+ version: 1.0.0
187
187
  none: false
188
- requirement: *2302
188
+ requirement: *5036
189
189
  prerelease: false
190
190
  type: :development
191
191
  - !ruby/object:Gem::Dependency
192
192
  name: rabbitmqadmin-cli
193
- version_requirements: &2318 !ruby/object:Gem::Requirement
193
+ version_requirements: &5052 !ruby/object:Gem::Requirement
194
194
  requirements:
195
195
  - - ~>
196
196
  - !ruby/object:Gem::Version
197
197
  version: 1.0.2
198
198
  none: false
199
- requirement: *2318
199
+ requirement: *5052
200
200
  prerelease: false
201
201
  type: :development
202
202
  - !ruby/object:Gem::Dependency
203
203
  name: rake
204
- version_requirements: &2334 !ruby/object:Gem::Requirement
204
+ version_requirements: &5068 !ruby/object:Gem::Requirement
205
205
  requirements:
206
206
  - - ~>
207
207
  - !ruby/object:Gem::Version
208
208
  version: 0.9.2
209
209
  none: false
210
- requirement: *2334
210
+ requirement: *5068
211
211
  prerelease: false
212
212
  type: :development
213
213
  - !ruby/object:Gem::Dependency
214
214
  name: rspec
215
- version_requirements: &2350 !ruby/object:Gem::Requirement
215
+ version_requirements: &5084 !ruby/object:Gem::Requirement
216
216
  requirements:
217
217
  - - ~>
218
218
  - !ruby/object:Gem::Version
219
219
  version: 2.6.0
220
220
  none: false
221
- requirement: *2350
221
+ requirement: *5084
222
222
  prerelease: false
223
223
  type: :development
224
224
  description: ''
@@ -282,12 +282,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
282
282
  requirements:
283
283
  - - ! '>='
284
284
  - !ruby/object:Gem::Version
285
+ segments:
286
+ - 0
287
+ hash: 2
285
288
  version: '0'
286
289
  none: false
287
290
  required_rubygems_version: !ruby/object:Gem::Requirement
288
291
  requirements:
289
292
  - - ! '>='
290
293
  - !ruby/object:Gem::Version
294
+ segments:
295
+ - 0
296
+ hash: 2
291
297
  version: '0'
292
298
  none: false
293
299
  requirements: []