euston-daemons 1.0.1-java → 1.0.2-java

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-daemons'
3
- s.version = '1.0.1'
4
- s.platform = 'java'
3
+ s.version = '1.0.2'
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']
7
7
  s.homepage = "http://github.com/leemhenson/euston-daemons"
@@ -11,7 +11,6 @@ Gem::Specification.new do |s|
11
11
  # = MANIFEST =
12
12
  s.files = %w[
13
13
  Gemfile
14
- Gemfile.lock
15
14
  LICENSE
16
15
  Rakefile
17
16
  euston-daemons.gemspec
@@ -35,6 +34,7 @@ Gem::Specification.new do |s|
35
34
  lib/euston-daemons/message_buffer_daemon/lib/components/event_store_component.rb
36
35
  lib/euston-daemons/message_buffer_daemon/lib/daemon.rb
37
36
  lib/euston-daemons/message_buffer_daemon/lib/message_logger.rb
37
+ lib/euston-daemons/message_buffer_daemon/lib/mongodbs.rb
38
38
  lib/euston-daemons/message_buffer_daemon/lib/publisher.rb
39
39
  lib/euston-daemons/message_buffer_daemon/lib/read_model/message_buffer.rb
40
40
  lib/euston-daemons/message_buffer_daemon/lib/read_model/message_log.rb
@@ -57,13 +57,16 @@ Gem::Specification.new do |s|
57
57
  s.add_dependency 'require_all', '~> 1.2.0'
58
58
  s.add_dependency 'safely', '~> 0.3.0'
59
59
 
60
+ if RUBY_PLATFORM.to_s == 'java'
61
+ s.add_dependency 'euston-rabbitmq', '~> 1.0.0'
62
+ s.add_dependency 'jessica', '~> 1.0.0'
63
+ s.add_dependency 'jmongo', '~> 1.0.0'
64
+ end
65
+
60
66
  s.add_dependency 'euston', '~> 1.0.0'
61
67
  s.add_dependency 'euston-eventstore', '~> 1.0.0'
62
- s.add_dependency 'euston-rabbitmq', '~> 1.0.0'
63
- s.add_dependency 'jessica', '~> 1.0.0'
64
- s.add_dependency 'jmongo', '~> 1.0.0'
65
- # s.add_dependency 'mongoid'
66
68
  s.add_dependency 'mongoid-glue', '~> 1.0.0'
69
+ # s.add_dependency 'mongoid'
67
70
 
68
71
  s.add_development_dependency 'rspec', '~> 2.6.0'
69
72
  end
@@ -16,8 +16,8 @@ read_connection = Mongo::Connection.new hash[:host], hash[:port], :safe => hash
16
16
 
17
17
  event_database = hash[:event_store_database]
18
18
 
19
- Euston::RabbitMq.event_store_mongodb = Mongo::DB.new event_database, event_connection
20
- Euston::RabbitMq.read_model_mongodb = Mongo::DB.new hash[:read_model_database], read_connection
19
+ Euston::RabbitMq.event_store_mongodb = Euston::MessageBufferDaemon.event_store_mongodb = Mongo::DB.new event_database, event_connection
20
+ Euston::RabbitMq.read_model_mongodb = Euston::MessageBufferDaemon.read_model_mongodb = Mongo::DB.new hash[:read_model_database], read_connection
21
21
 
22
22
  Euston::EventStore::Persistence::Mongodb::Config.instance.logger = EUSTON_LOG
23
23
  Euston::EventStore::Persistence::Mongodb::Config.instance.database = event_database
@@ -0,0 +1,5 @@
1
+ module Euston
2
+ module MessageBufferDaemon
3
+ mattr_accessor :event_store_mongodb, :read_model_mongodb
4
+ end
5
+ end
@@ -1,14 +1,16 @@
1
+ require_rel '../mongodbs.rb'
2
+
1
3
  module Euston
2
4
  module MessageBufferDaemon
3
5
  module ReadModel
4
6
  class MessageBuffer
5
7
  class << self
6
8
  def commands
7
- self.new "buffered_commands", Euston::RabbitMq.read_model_mongodb
9
+ self.new "buffered_commands", Euston::MessageBufferDaemon.read_model_mongodb
8
10
  end
9
11
 
10
12
  def events
11
- self.new "buffered_events", Euston::RabbitMq.event_store_mongodb
13
+ self.new "buffered_events", Euston::MessageBufferDaemon.event_store_mongod
12
14
  end
13
15
  end
14
16
 
@@ -1,5 +1,5 @@
1
1
  module Euston
2
2
  module Daemons
3
- VERSION = "1.0.1"
3
+ VERSION = "1.0.2"
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.0.1
5
+ version: 1.0.2
6
6
  platform: java
7
7
  authors:
8
8
  - Lee Henson
@@ -10,160 +10,161 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2011-09-16 00:00:00.000000000Z
13
+ date: 2011-09-18 00:00:00.000000000 -07:00
14
+ default_executable:
14
15
  dependencies:
15
16
  - !ruby/object:Gem::Dependency
16
17
  name: activemodel
17
- version_requirements: &2058 !ruby/object:Gem::Requirement
18
+ version_requirements: &2148 !ruby/object:Gem::Requirement
18
19
  requirements:
19
20
  - - ~>
20
21
  - !ruby/object:Gem::Version
21
22
  version: 3.0.0
22
23
  none: false
23
- requirement: *2058
24
+ requirement: *2148
24
25
  prerelease: false
25
26
  type: :runtime
26
27
  - !ruby/object:Gem::Dependency
27
28
  name: activesupport
28
- version_requirements: &2076 !ruby/object:Gem::Requirement
29
+ version_requirements: &2166 !ruby/object:Gem::Requirement
29
30
  requirements:
30
31
  - - ~>
31
32
  - !ruby/object:Gem::Version
32
33
  version: 3.0.0
33
34
  none: false
34
- requirement: *2076
35
+ requirement: *2166
35
36
  prerelease: false
36
37
  type: :runtime
37
38
  - !ruby/object:Gem::Dependency
38
39
  name: erb-yaml
39
- version_requirements: &2092 !ruby/object:Gem::Requirement
40
+ version_requirements: &2182 !ruby/object:Gem::Requirement
40
41
  requirements:
41
42
  - - ~>
42
43
  - !ruby/object:Gem::Version
43
44
  version: 1.0.0
44
45
  none: false
45
- requirement: *2092
46
+ requirement: *2182
46
47
  prerelease: false
47
48
  type: :runtime
48
49
  - !ruby/object:Gem::Dependency
49
50
  name: hollywood
50
- version_requirements: &2108 !ruby/object:Gem::Requirement
51
+ version_requirements: &2198 !ruby/object:Gem::Requirement
51
52
  requirements:
52
53
  - - ~>
53
54
  - !ruby/object:Gem::Version
54
55
  version: 1.0.0
55
56
  none: false
56
- requirement: *2108
57
+ requirement: *2198
57
58
  prerelease: false
58
59
  type: :runtime
59
60
  - !ruby/object:Gem::Dependency
60
61
  name: i18n
61
- version_requirements: &2124 !ruby/object:Gem::Requirement
62
+ version_requirements: &2214 !ruby/object:Gem::Requirement
62
63
  requirements:
63
64
  - - ~>
64
65
  - !ruby/object:Gem::Version
65
66
  version: 0.5.0
66
67
  none: false
67
- requirement: *2124
68
+ requirement: *2214
68
69
  prerelease: false
69
70
  type: :runtime
70
71
  - !ruby/object:Gem::Dependency
71
72
  name: require_all
72
- version_requirements: &2140 !ruby/object:Gem::Requirement
73
+ version_requirements: &2230 !ruby/object:Gem::Requirement
73
74
  requirements:
74
75
  - - ~>
75
76
  - !ruby/object:Gem::Version
76
77
  version: 1.2.0
77
78
  none: false
78
- requirement: *2140
79
+ requirement: *2230
79
80
  prerelease: false
80
81
  type: :runtime
81
82
  - !ruby/object:Gem::Dependency
82
83
  name: safely
83
- version_requirements: &2156 !ruby/object:Gem::Requirement
84
+ version_requirements: &2246 !ruby/object:Gem::Requirement
84
85
  requirements:
85
86
  - - ~>
86
87
  - !ruby/object:Gem::Version
87
88
  version: 0.3.0
88
89
  none: false
89
- requirement: *2156
90
+ requirement: *2246
90
91
  prerelease: false
91
92
  type: :runtime
92
93
  - !ruby/object:Gem::Dependency
93
- name: euston
94
- version_requirements: &2172 !ruby/object:Gem::Requirement
94
+ name: euston-rabbitmq
95
+ version_requirements: &2262 !ruby/object:Gem::Requirement
95
96
  requirements:
96
97
  - - ~>
97
98
  - !ruby/object:Gem::Version
98
99
  version: 1.0.0
99
100
  none: false
100
- requirement: *2172
101
+ requirement: *2262
101
102
  prerelease: false
102
103
  type: :runtime
103
104
  - !ruby/object:Gem::Dependency
104
- name: euston-eventstore
105
- version_requirements: &2188 !ruby/object:Gem::Requirement
105
+ name: jessica
106
+ version_requirements: &2278 !ruby/object:Gem::Requirement
106
107
  requirements:
107
108
  - - ~>
108
109
  - !ruby/object:Gem::Version
109
110
  version: 1.0.0
110
111
  none: false
111
- requirement: *2188
112
+ requirement: *2278
112
113
  prerelease: false
113
114
  type: :runtime
114
115
  - !ruby/object:Gem::Dependency
115
- name: euston-rabbitmq
116
- version_requirements: &2204 !ruby/object:Gem::Requirement
116
+ name: jmongo
117
+ version_requirements: &2294 !ruby/object:Gem::Requirement
117
118
  requirements:
118
119
  - - ~>
119
120
  - !ruby/object:Gem::Version
120
121
  version: 1.0.0
121
122
  none: false
122
- requirement: *2204
123
+ requirement: *2294
123
124
  prerelease: false
124
125
  type: :runtime
125
126
  - !ruby/object:Gem::Dependency
126
- name: jessica
127
- version_requirements: &2220 !ruby/object:Gem::Requirement
127
+ name: euston
128
+ version_requirements: &2310 !ruby/object:Gem::Requirement
128
129
  requirements:
129
130
  - - ~>
130
131
  - !ruby/object:Gem::Version
131
132
  version: 1.0.0
132
133
  none: false
133
- requirement: *2220
134
+ requirement: *2310
134
135
  prerelease: false
135
136
  type: :runtime
136
137
  - !ruby/object:Gem::Dependency
137
- name: jmongo
138
- version_requirements: &2236 !ruby/object:Gem::Requirement
138
+ name: euston-eventstore
139
+ version_requirements: &2326 !ruby/object:Gem::Requirement
139
140
  requirements:
140
141
  - - ~>
141
142
  - !ruby/object:Gem::Version
142
143
  version: 1.0.0
143
144
  none: false
144
- requirement: *2236
145
+ requirement: *2326
145
146
  prerelease: false
146
147
  type: :runtime
147
148
  - !ruby/object:Gem::Dependency
148
149
  name: mongoid-glue
149
- version_requirements: &2252 !ruby/object:Gem::Requirement
150
+ version_requirements: &2342 !ruby/object:Gem::Requirement
150
151
  requirements:
151
152
  - - ~>
152
153
  - !ruby/object:Gem::Version
153
154
  version: 1.0.0
154
155
  none: false
155
- requirement: *2252
156
+ requirement: *2342
156
157
  prerelease: false
157
158
  type: :runtime
158
159
  - !ruby/object:Gem::Dependency
159
160
  name: rspec
160
- version_requirements: &2268 !ruby/object:Gem::Requirement
161
+ version_requirements: &2358 !ruby/object:Gem::Requirement
161
162
  requirements:
162
163
  - - ~>
163
164
  - !ruby/object:Gem::Version
164
165
  version: 2.6.0
165
166
  none: false
166
- requirement: *2268
167
+ requirement: *2358
167
168
  prerelease: false
168
169
  type: :development
169
170
  description: ''
@@ -175,7 +176,6 @@ extensions: []
175
176
  extra_rdoc_files: []
176
177
  files:
177
178
  - Gemfile
178
- - Gemfile.lock
179
179
  - LICENSE
180
180
  - Rakefile
181
181
  - euston-daemons.gemspec
@@ -199,6 +199,7 @@ files:
199
199
  - lib/euston-daemons/message_buffer_daemon/lib/components/event_store_component.rb
200
200
  - lib/euston-daemons/message_buffer_daemon/lib/daemon.rb
201
201
  - lib/euston-daemons/message_buffer_daemon/lib/message_logger.rb
202
+ - lib/euston-daemons/message_buffer_daemon/lib/mongodbs.rb
202
203
  - lib/euston-daemons/message_buffer_daemon/lib/publisher.rb
203
204
  - lib/euston-daemons/message_buffer_daemon/lib/read_model/message_buffer.rb
204
205
  - lib/euston-daemons/message_buffer_daemon/lib/read_model/message_log.rb
@@ -207,6 +208,7 @@ files:
207
208
  - lib/euston-daemons/message_buffer_daemon/rake_task.rb
208
209
  - lib/euston-daemons/rake_task.rb
209
210
  - lib/euston-daemons/version.rb
211
+ has_rdoc: true
210
212
  homepage: http://github.com/leemhenson/euston-daemons
211
213
  licenses: []
212
214
  post_install_message:
@@ -227,7 +229,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
227
229
  none: false
228
230
  requirements: []
229
231
  rubyforge_project:
230
- rubygems_version: 1.8.9
232
+ rubygems_version: 1.5.1
231
233
  signing_key:
232
234
  specification_version: 3
233
235
  summary: Message buffer, command processor and event processor daemons for Euston-RabbitMq
data/Gemfile.lock DELETED
@@ -1,101 +0,0 @@
1
- GIT
2
- remote: https://github.com/guyboertje/mongoid.git
3
- revision: 3e5d48a14baf274998202dda9e6540cd4aeb7fe6
4
- specs:
5
- mongoid (2.1.0)
6
- activemodel (~> 3.0)
7
- jmongo
8
- mongo (~> 1.3)
9
- tzinfo (~> 0.3.22)
10
-
11
- PATH
12
- remote: .
13
- specs:
14
- euston-daemons (1.0.1-java)
15
- activemodel (~> 3.0.0)
16
- activesupport (~> 3.0.0)
17
- erb-yaml (~> 1.0.0)
18
- euston (~> 1.0.0)
19
- euston-eventstore (~> 1.0.0)
20
- euston-rabbitmq (~> 1.0.0)
21
- hollywood (~> 1.0.0)
22
- i18n (~> 0.5.0)
23
- jessica (~> 1.0.0)
24
- jmongo (~> 1.0.0)
25
- mongoid-glue (~> 1.0.0)
26
- require_all (~> 1.2.0)
27
- safely (~> 0.3.0)
28
-
29
- GEM
30
- remote: http://rubygems.org/
31
- specs:
32
- activemodel (3.0.10)
33
- activesupport (= 3.0.10)
34
- builder (~> 2.1.2)
35
- i18n (~> 0.5.0)
36
- activesupport (3.0.10)
37
- bson (1.3.1-java)
38
- builder (2.1.2)
39
- diff-lcs (1.1.3)
40
- erb-yaml (1.0.0)
41
- hash-keys (< 2.0.0, >= 1.0.0)
42
- euston (1.0.0)
43
- activesupport (~> 3.0.9)
44
- euston-eventstore (~> 1.0.0)
45
- require_all (~> 1.2.0)
46
- euston-eventstore (1.0.4-java)
47
- activesupport (~> 3.0.9)
48
- hash-keys (~> 1.0.0)
49
- jmongo (~> 1.0.0)
50
- json-jruby (~> 1.5.0)
51
- require_all (~> 1.2.0)
52
- uuid (~> 2.3.0)
53
- euston-rabbitmq (1.0.0-java)
54
- activesupport (~> 3.0.0)
55
- euston (~> 1.0.0)
56
- euston-eventstore (~> 1.0.0)
57
- hash-keys (~> 1.0.0)
58
- hollywood (~> 1.0.0)
59
- jessica (~> 1.0.0)
60
- jmongo (~> 1.0.0)
61
- require_all (~> 1.2.0)
62
- robustthread (~> 0.5.2)
63
- safely (~> 0.3.0)
64
- hash-keys (1.0.0)
65
- hollywood (1.0.0)
66
- i18n (0.5.0)
67
- jessica (1.0.2-java)
68
- require_all (~> 1.2.0)
69
- jmongo (1.0.3)
70
- require_all (~> 1.2)
71
- json (1.5.0-java)
72
- json-jruby (1.5.0-java)
73
- json (= 1.5.0)
74
- macaddr (1.4.0)
75
- systemu (~> 2.2.0)
76
- mongo (1.3.1)
77
- bson (>= 1.3.1)
78
- mongoid-glue (1.0.0)
79
- require_all (1.2.0)
80
- robustthread (0.5.2)
81
- rspec (2.6.0)
82
- rspec-core (~> 2.6.0)
83
- rspec-expectations (~> 2.6.0)
84
- rspec-mocks (~> 2.6.0)
85
- rspec-core (2.6.4)
86
- rspec-expectations (2.6.0)
87
- diff-lcs (~> 1.1.2)
88
- rspec-mocks (2.6.0)
89
- safely (0.3.0)
90
- systemu (2.2.0)
91
- tzinfo (0.3.29)
92
- uuid (2.3.4)
93
- macaddr (~> 1.0)
94
-
95
- PLATFORMS
96
- java
97
-
98
- DEPENDENCIES
99
- euston-daemons!
100
- mongoid!
101
- rspec (~> 2.6.0)