euston-daemons 1.2.2-java → 1.2.3-java

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -101,13 +101,13 @@ task :release => :build do
101
101
 
102
102
  command = "gem push pkg/#{platform_dependant_gem_file}"
103
103
 
104
- if jruby?
105
- puts "--------------------------------------------------------------------------------------"
106
- puts "can't push to rubygems using jruby at the moment, so switch to mri and run: #{command}"
107
- puts "--------------------------------------------------------------------------------------"
108
- else
104
+ # if jruby?
105
+ # puts "--------------------------------------------------------------------------------------"
106
+ # puts "can't push to rubygems using jruby at the moment, so switch to mri and run: #{command}"
107
+ # puts "--------------------------------------------------------------------------------------"
108
+ # else
109
109
  sh command
110
- end
110
+ # end
111
111
  end
112
112
 
113
113
  desc "Build #{platform_dependant_gem_file} into the pkg directory"
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'euston-daemons'
3
- s.version = '1.2.2'
3
+ s.version = '1.2.3'
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']
@@ -34,7 +34,8 @@ module Euston
34
34
 
35
35
  def setup_mongo config
36
36
  # logger arg will not work until jmongo forwards it correctly
37
- connection = Mongo::Connection.from_uri config[:uri], :logger => @logger
37
+ uri = "mongodb://#{config[:host]}:#{config[:port]}/?#{config[:uri_options]}"
38
+ connection = Mongo::Connection.from_uri uri, :logger => @logger
38
39
 
39
40
  class << self.class
40
41
  attr_accessor :event_store_mongodb, :projections_mongodb
@@ -7,6 +7,7 @@ module Euston
7
7
 
8
8
  def initialize channel, id = 1, log = Euston::NullLogger.instance
9
9
  @channel = channel
10
+ @channel.prefetch = 1
10
11
  @channel.tx_select
11
12
  @id = id
12
13
  @log = log
@@ -7,6 +7,7 @@ module Euston
7
7
 
8
8
  def initialize channel, id = 1, logger = Euston::NullLogger.instance
9
9
  @channel = channel
10
+ @channel.prefetch = 1
10
11
  @channel.tx_select
11
12
  @id = "message_buffer #{id}"
12
13
  @log = logger
@@ -1,5 +1,5 @@
1
1
  module Euston
2
2
  module Daemons
3
- VERSION = "1.2.2"
3
+ VERSION = "1.2.3"
4
4
  end
5
5
  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.2
5
+ version: 1.2.3
6
6
  platform: java
7
7
  authors:
8
8
  - Lee Henson
@@ -10,205 +10,204 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2011-10-24 00:00:00.000000000 +01:00
14
- default_executable:
13
+ date: 2011-10-26 00:00:00.000000000Z
15
14
  dependencies:
16
15
  - !ruby/object:Gem::Dependency
17
16
  name: activemodel
18
- version_requirements: &2202 !ruby/object:Gem::Requirement
17
+ version_requirements: &2058 !ruby/object:Gem::Requirement
19
18
  requirements:
20
19
  - - ! '>='
21
20
  - !ruby/object:Gem::Version
22
21
  version: 3.0.10
23
22
  none: false
24
- requirement: *2202
23
+ requirement: *2058
25
24
  prerelease: false
26
25
  type: :runtime
27
26
  - !ruby/object:Gem::Dependency
28
27
  name: activesupport
29
- version_requirements: &2220 !ruby/object:Gem::Requirement
28
+ version_requirements: &2076 !ruby/object:Gem::Requirement
30
29
  requirements:
31
30
  - - ! '>='
32
31
  - !ruby/object:Gem::Version
33
32
  version: 3.0.10
34
33
  none: false
35
- requirement: *2220
34
+ requirement: *2076
36
35
  prerelease: false
37
36
  type: :runtime
38
37
  - !ruby/object:Gem::Dependency
39
38
  name: erb-yaml
40
- version_requirements: &2236 !ruby/object:Gem::Requirement
39
+ version_requirements: &2092 !ruby/object:Gem::Requirement
41
40
  requirements:
42
41
  - - ~>
43
42
  - !ruby/object:Gem::Version
44
43
  version: 1.0.0
45
44
  none: false
46
- requirement: *2236
45
+ requirement: *2092
47
46
  prerelease: false
48
47
  type: :runtime
49
48
  - !ruby/object:Gem::Dependency
50
49
  name: euston
51
- version_requirements: &2252 !ruby/object:Gem::Requirement
50
+ version_requirements: &2108 !ruby/object:Gem::Requirement
52
51
  requirements:
53
52
  - - ~>
54
53
  - !ruby/object:Gem::Version
55
54
  version: 1.2.0
56
55
  none: false
57
- requirement: *2252
56
+ requirement: *2108
58
57
  prerelease: false
59
58
  type: :runtime
60
59
  - !ruby/object:Gem::Dependency
61
60
  name: euston-eventstore
62
- version_requirements: &2268 !ruby/object:Gem::Requirement
61
+ version_requirements: &2124 !ruby/object:Gem::Requirement
63
62
  requirements:
64
63
  - - ~>
65
64
  - !ruby/object:Gem::Version
66
65
  version: 1.2.0
67
66
  none: false
68
- requirement: *2268
67
+ requirement: *2124
69
68
  prerelease: false
70
69
  type: :runtime
71
70
  - !ruby/object:Gem::Dependency
72
71
  name: euston-rabbitmq
73
- version_requirements: &2284 !ruby/object:Gem::Requirement
72
+ version_requirements: &2140 !ruby/object:Gem::Requirement
74
73
  requirements:
75
74
  - - ~>
76
75
  - !ruby/object:Gem::Version
77
76
  version: 1.2.0
78
77
  none: false
79
- requirement: *2284
78
+ requirement: *2140
80
79
  prerelease: false
81
80
  type: :runtime
82
81
  - !ruby/object:Gem::Dependency
83
82
  name: hollywood
84
- version_requirements: &2300 !ruby/object:Gem::Requirement
83
+ version_requirements: &2156 !ruby/object:Gem::Requirement
85
84
  requirements:
86
85
  - - ~>
87
86
  - !ruby/object:Gem::Version
88
87
  version: 1.0.0
89
88
  none: false
90
- requirement: *2300
89
+ requirement: *2156
91
90
  prerelease: false
92
91
  type: :runtime
93
92
  - !ruby/object:Gem::Dependency
94
93
  name: i18n
95
- version_requirements: &2316 !ruby/object:Gem::Requirement
94
+ version_requirements: &2172 !ruby/object:Gem::Requirement
96
95
  requirements:
97
96
  - - ! '>='
98
97
  - !ruby/object:Gem::Version
99
98
  version: 0.5.0
100
99
  none: false
101
- requirement: *2316
100
+ requirement: *2172
102
101
  prerelease: false
103
102
  type: :runtime
104
103
  - !ruby/object:Gem::Dependency
105
104
  name: macaddr
106
- version_requirements: &2332 !ruby/object:Gem::Requirement
105
+ version_requirements: &2188 !ruby/object:Gem::Requirement
107
106
  requirements:
108
107
  - - ~>
109
108
  - !ruby/object:Gem::Version
110
109
  version: 1.4.0
111
110
  none: false
112
- requirement: *2332
111
+ requirement: *2188
113
112
  prerelease: false
114
113
  type: :runtime
115
114
  - !ruby/object:Gem::Dependency
116
115
  name: safely
117
- version_requirements: &2348 !ruby/object:Gem::Requirement
116
+ version_requirements: &2204 !ruby/object:Gem::Requirement
118
117
  requirements:
119
118
  - - ~>
120
119
  - !ruby/object:Gem::Version
121
120
  version: 0.3.0
122
121
  none: false
123
- requirement: *2348
122
+ requirement: *2204
124
123
  prerelease: false
125
124
  type: :runtime
126
125
  - !ruby/object:Gem::Dependency
127
126
  name: hot_bunnies
128
- version_requirements: &2364 !ruby/object:Gem::Requirement
127
+ version_requirements: &2220 !ruby/object:Gem::Requirement
129
128
  requirements:
130
129
  - - ~>
131
130
  - !ruby/object:Gem::Version
132
131
  version: 1.3.0.pre1
133
132
  none: false
134
- requirement: *2364
133
+ requirement: *2220
135
134
  prerelease: false
136
135
  type: :runtime
137
136
  - !ruby/object:Gem::Dependency
138
137
  name: jmongo
139
- version_requirements: &2380 !ruby/object:Gem::Requirement
138
+ version_requirements: &2236 !ruby/object:Gem::Requirement
140
139
  requirements:
141
140
  - - ~>
142
141
  - !ruby/object:Gem::Version
143
142
  version: 1.1.0
144
143
  none: false
145
- requirement: *2380
144
+ requirement: *2236
146
145
  prerelease: false
147
146
  type: :runtime
148
147
  - !ruby/object:Gem::Dependency
149
148
  name: awesome_print
150
- version_requirements: &2396 !ruby/object:Gem::Requirement
149
+ version_requirements: &2252 !ruby/object:Gem::Requirement
151
150
  requirements:
152
151
  - - ~>
153
152
  - !ruby/object:Gem::Version
154
153
  version: 0.4.0
155
154
  none: false
156
- requirement: *2396
155
+ requirement: *2252
157
156
  prerelease: false
158
157
  type: :development
159
158
  - !ruby/object:Gem::Dependency
160
159
  name: cranky
161
- version_requirements: &2414 !ruby/object:Gem::Requirement
160
+ version_requirements: &2270 !ruby/object:Gem::Requirement
162
161
  requirements:
163
162
  - - ~>
164
163
  - !ruby/object:Gem::Version
165
164
  version: 0.2.0
166
165
  none: false
167
- requirement: *2414
166
+ requirement: *2270
168
167
  prerelease: false
169
168
  type: :development
170
169
  - !ruby/object:Gem::Dependency
171
170
  name: ffaker
172
- version_requirements: &2430 !ruby/object:Gem::Requirement
171
+ version_requirements: &2286 !ruby/object:Gem::Requirement
173
172
  requirements:
174
173
  - - ~>
175
174
  - !ruby/object:Gem::Version
176
175
  version: 1.8.0
177
176
  none: false
178
- requirement: *2430
177
+ requirement: *2286
179
178
  prerelease: false
180
179
  type: :development
181
180
  - !ruby/object:Gem::Dependency
182
181
  name: fuubar
183
- version_requirements: &2446 !ruby/object:Gem::Requirement
182
+ version_requirements: &2302 !ruby/object:Gem::Requirement
184
183
  requirements:
185
184
  - - ~>
186
185
  - !ruby/object:Gem::Version
187
186
  version: 0.0.0
188
187
  none: false
189
- requirement: *2446
188
+ requirement: *2302
190
189
  prerelease: false
191
190
  type: :development
192
191
  - !ruby/object:Gem::Dependency
193
192
  name: rabbitmqadmin-cli
194
- version_requirements: &2462 !ruby/object:Gem::Requirement
193
+ version_requirements: &2318 !ruby/object:Gem::Requirement
195
194
  requirements:
196
195
  - - ~>
197
196
  - !ruby/object:Gem::Version
198
197
  version: 1.0.2
199
198
  none: false
200
- requirement: *2462
199
+ requirement: *2318
201
200
  prerelease: false
202
201
  type: :development
203
202
  - !ruby/object:Gem::Dependency
204
203
  name: rspec
205
- version_requirements: &2478 !ruby/object:Gem::Requirement
204
+ version_requirements: &2334 !ruby/object:Gem::Requirement
206
205
  requirements:
207
206
  - - ~>
208
207
  - !ruby/object:Gem::Version
209
208
  version: 2.6.0
210
209
  none: false
211
- requirement: *2478
210
+ requirement: *2334
212
211
  prerelease: false
213
212
  type: :development
214
213
  description: ''
@@ -262,7 +261,6 @@ files:
262
261
  - spec/support/sample_model/counter.rb
263
262
  - spec/support/sample_model/counter2.rb
264
263
  - spec/support/stub_retrying_subscription.rb
265
- has_rdoc: true
266
264
  homepage: http://github.com/leemhenson/euston-daemons
267
265
  licenses: []
268
266
  post_install_message:
@@ -283,23 +281,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
283
281
  none: false
284
282
  requirements: []
285
283
  rubyforge_project:
286
- rubygems_version: 1.5.1
284
+ rubygems_version: 1.8.9
287
285
  signing_key:
288
286
  specification_version: 3
289
287
  summary: Message buffer, command processor and event processor daemons for Euston-RabbitMq
290
- test_files:
291
- - spec/daemons/command_processor_spec.rb
292
- - spec/daemons/event_processor_spec.rb
293
- - spec/daemons/message_buffer_spec.rb
294
- - spec/daemons/snapshotter_spec.rb
295
- - spec/spec_helper.rb
296
- - spec/support/factories/commands.rb
297
- - spec/support/factories/commit.rb
298
- - spec/support/factories/event_message.rb
299
- - spec/support/factories/events.rb
300
- - spec/support/filters.rb
301
- - spec/support/sample_model/commands.rb
302
- - spec/support/sample_model/counter.rb
303
- - spec/support/sample_model/counter2.rb
304
- - spec/support/stub_retrying_subscription.rb
288
+ test_files: []
305
289
  ...