euston-daemons 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'euston-daemons'
3
- s.version = '1.0.1'
3
+ s.version = '1.0.2'
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']
@@ -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
@@ -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
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: euston-daemons
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
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: 2011-09-16 00:00:00.000000000 Z
13
+ date: 2011-09-18 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activemodel
17
- requirement: &81141520 !ruby/object:Gem::Requirement
17
+ requirement: &5232880 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ~>
@@ -22,10 +22,10 @@ dependencies:
22
22
  version: 3.0.0
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *81141520
25
+ version_requirements: *5232880
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: activesupport
28
- requirement: &80947570 !ruby/object:Gem::Requirement
28
+ requirement: &5823660 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ~>
@@ -33,10 +33,10 @@ dependencies:
33
33
  version: 3.0.0
34
34
  type: :runtime
35
35
  prerelease: false
36
- version_requirements: *80947570
36
+ version_requirements: *5823660
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: erb-yaml
39
- requirement: &80947250 !ruby/object:Gem::Requirement
39
+ requirement: &5821580 !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: *80947250
47
+ version_requirements: *5821580
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: hollywood
50
- requirement: &80947010 !ruby/object:Gem::Requirement
50
+ requirement: &5798820 !ruby/object:Gem::Requirement
51
51
  none: false
52
52
  requirements:
53
53
  - - ~>
@@ -55,10 +55,10 @@ dependencies:
55
55
  version: 1.0.0
56
56
  type: :runtime
57
57
  prerelease: false
58
- version_requirements: *80947010
58
+ version_requirements: *5798820
59
59
  - !ruby/object:Gem::Dependency
60
60
  name: i18n
61
- requirement: &80946720 !ruby/object:Gem::Requirement
61
+ requirement: &5787920 !ruby/object:Gem::Requirement
62
62
  none: false
63
63
  requirements:
64
64
  - - ~>
@@ -66,10 +66,10 @@ dependencies:
66
66
  version: 0.5.0
67
67
  type: :runtime
68
68
  prerelease: false
69
- version_requirements: *80946720
69
+ version_requirements: *5787920
70
70
  - !ruby/object:Gem::Dependency
71
71
  name: require_all
72
- requirement: &80946410 !ruby/object:Gem::Requirement
72
+ requirement: &5784300 !ruby/object:Gem::Requirement
73
73
  none: false
74
74
  requirements:
75
75
  - - ~>
@@ -77,10 +77,10 @@ dependencies:
77
77
  version: 1.2.0
78
78
  type: :runtime
79
79
  prerelease: false
80
- version_requirements: *80946410
80
+ version_requirements: *5784300
81
81
  - !ruby/object:Gem::Dependency
82
82
  name: safely
83
- requirement: &80946090 !ruby/object:Gem::Requirement
83
+ requirement: &5772460 !ruby/object:Gem::Requirement
84
84
  none: false
85
85
  requirements:
86
86
  - - ~>
@@ -88,10 +88,10 @@ dependencies:
88
88
  version: 0.3.0
89
89
  type: :runtime
90
90
  prerelease: false
91
- version_requirements: *80946090
91
+ version_requirements: *5772460
92
92
  - !ruby/object:Gem::Dependency
93
93
  name: euston
94
- requirement: &80945730 !ruby/object:Gem::Requirement
94
+ requirement: &5770300 !ruby/object:Gem::Requirement
95
95
  none: false
96
96
  requirements:
97
97
  - - ~>
@@ -99,10 +99,10 @@ dependencies:
99
99
  version: 1.0.0
100
100
  type: :runtime
101
101
  prerelease: false
102
- version_requirements: *80945730
102
+ version_requirements: *5770300
103
103
  - !ruby/object:Gem::Dependency
104
104
  name: euston-eventstore
105
- requirement: &80945150 !ruby/object:Gem::Requirement
105
+ requirement: &5768780 !ruby/object:Gem::Requirement
106
106
  none: false
107
107
  requirements:
108
108
  - - ~>
@@ -110,10 +110,10 @@ dependencies:
110
110
  version: 1.0.0
111
111
  type: :runtime
112
112
  prerelease: false
113
- version_requirements: *80945150
113
+ version_requirements: *5768780
114
114
  - !ruby/object:Gem::Dependency
115
115
  name: mongoid-glue
116
- requirement: &80944880 !ruby/object:Gem::Requirement
116
+ requirement: &5767800 !ruby/object:Gem::Requirement
117
117
  none: false
118
118
  requirements:
119
119
  - - ~>
@@ -121,10 +121,10 @@ dependencies:
121
121
  version: 1.0.0
122
122
  type: :runtime
123
123
  prerelease: false
124
- version_requirements: *80944880
124
+ version_requirements: *5767800
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: rspec
127
- requirement: &80944560 !ruby/object:Gem::Requirement
127
+ requirement: &5766760 !ruby/object:Gem::Requirement
128
128
  none: false
129
129
  requirements:
130
130
  - - ~>
@@ -132,7 +132,7 @@ dependencies:
132
132
  version: 2.6.0
133
133
  type: :development
134
134
  prerelease: false
135
- version_requirements: *80944560
135
+ version_requirements: *5766760
136
136
  description: ''
137
137
  email:
138
138
  - lee.m.henson@gmail.com
@@ -142,7 +142,6 @@ extensions: []
142
142
  extra_rdoc_files: []
143
143
  files:
144
144
  - Gemfile
145
- - Gemfile.lock
146
145
  - LICENSE
147
146
  - Rakefile
148
147
  - euston-daemons.gemspec
@@ -166,6 +165,7 @@ files:
166
165
  - lib/euston-daemons/message_buffer_daemon/lib/components/event_store_component.rb
167
166
  - lib/euston-daemons/message_buffer_daemon/lib/daemon.rb
168
167
  - lib/euston-daemons/message_buffer_daemon/lib/message_logger.rb
168
+ - lib/euston-daemons/message_buffer_daemon/lib/mongodbs.rb
169
169
  - lib/euston-daemons/message_buffer_daemon/lib/publisher.rb
170
170
  - lib/euston-daemons/message_buffer_daemon/lib/read_model/message_buffer.rb
171
171
  - lib/euston-daemons/message_buffer_daemon/lib/read_model/message_log.rb
data/Gemfile.lock DELETED
@@ -1,96 +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)
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
- hollywood (~> 1.0.0)
21
- i18n (~> 0.5.0)
22
- mongoid-glue (~> 1.0.0)
23
- require_all (~> 1.2.0)
24
- safely (~> 0.3.0)
25
-
26
- GEM
27
- remote: http://rubygems.org/
28
- specs:
29
- activemodel (3.0.10)
30
- activesupport (= 3.0.10)
31
- builder (~> 2.1.2)
32
- i18n (~> 0.5.0)
33
- activesupport (3.0.10)
34
- bson (1.3.1)
35
- bson (1.3.1-java)
36
- bson_ext (1.3.1)
37
- builder (2.1.2)
38
- diff-lcs (1.1.3)
39
- erb-yaml (1.0.0)
40
- hash-keys (>= 1.0.0, < 2.0.0)
41
- euston (1.0.0)
42
- activesupport (~> 3.0.9)
43
- euston-eventstore (~> 1.0.0)
44
- require_all (~> 1.2.0)
45
- euston-eventstore (1.0.4)
46
- activesupport (~> 3.0.9)
47
- bson_ext (~> 1.3.1)
48
- hash-keys (~> 1.0.0)
49
- json (~> 1.5.0)
50
- mongo (~> 1.3.1)
51
- require_all (~> 1.2.0)
52
- uuid (~> 2.3.0)
53
- euston-eventstore (1.0.4-java)
54
- activesupport (~> 3.0.9)
55
- hash-keys (~> 1.0.0)
56
- jmongo (~> 1.0.0)
57
- json-jruby (~> 1.5.0)
58
- require_all (~> 1.2.0)
59
- uuid (~> 2.3.0)
60
- hash-keys (1.0.0)
61
- hollywood (1.0.0)
62
- i18n (0.5.0)
63
- jmongo (1.0.3)
64
- require_all (~> 1.2)
65
- json (1.5.0)
66
- json (1.5.0-java)
67
- json-jruby (1.5.0-java)
68
- json (= 1.5.0)
69
- macaddr (1.4.0)
70
- systemu (~> 2.2.0)
71
- mongo (1.3.1)
72
- bson (>= 1.3.1)
73
- mongoid-glue (1.0.0)
74
- require_all (1.2.0)
75
- rspec (2.6.0)
76
- rspec-core (~> 2.6.0)
77
- rspec-expectations (~> 2.6.0)
78
- rspec-mocks (~> 2.6.0)
79
- rspec-core (2.6.4)
80
- rspec-expectations (2.6.0)
81
- diff-lcs (~> 1.1.2)
82
- rspec-mocks (2.6.0)
83
- safely (0.3.0)
84
- systemu (2.2.0)
85
- tzinfo (0.3.29)
86
- uuid (2.3.4)
87
- macaddr (~> 1.0)
88
-
89
- PLATFORMS
90
- java
91
- ruby
92
-
93
- DEPENDENCIES
94
- euston-daemons!
95
- mongoid!
96
- rspec (~> 2.6.0)