rails_event_store 0.26.0 → 0.27.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2a5bd73cb1d107b088b8ca4d39a99618793e2c52
4
- data.tar.gz: a0df85d8c21cc429dbaf15ef64d9bbe548c2d2ba
3
+ metadata.gz: a8dc0ed0911caed6dbdd5c6e2d64dee2714bd6e3
4
+ data.tar.gz: a9fce2d8dea596900609475da01c800250a391b3
5
5
  SHA512:
6
- metadata.gz: 41564025e79a0ed684a95f405cbe4c218a935cea246681ac9cb3ce14f5786edd5073aa0f19cf5ffdf3da44875733178e1ec1e3e17efb69253a161ddd375bcd9f
7
- data.tar.gz: f56912b7168aba03b04f08fa216ecdc2d40d0147949ea5f0485d7b14894a9e0a19b0cc805979549f0624291dc9f0fa58e5e876c09d3b5886dda0a8dd1959f6c2
6
+ metadata.gz: b8dbb74dc75494ab762cf9e22efd3e9a73a249396a4e1091efa3b27c945c6cf087e99f17f469648dafc97c1253d4eabf59178bef147f5a6489cce919d8f270c1
7
+ data.tar.gz: 3c1fc00730fdf641984c51c66766fb06baa876d8c9295fa624b284a5a6564d4de456e50b55ea747f6fb94e25c6b6a7dc8fc00c399f6f1d62a697a3526afaf2c2
@@ -1,5 +1,2 @@
1
1
  require 'rails_event_store_active_record'
2
- require 'rails_event_store/all'
3
-
4
- # Use active record by default
5
- RailsEventStore.event_repository = RailsEventStoreActiveRecord::EventRepository.new
2
+ require 'rails_event_store/all'
@@ -1,10 +1,9 @@
1
- require 'active_support/core_ext/class/attribute_accessors'
2
1
  require 'ruby_event_store'
2
+ require 'rails_event_store/active_job_dispatcher'
3
3
  require 'rails_event_store/client'
4
4
  require 'rails_event_store/version'
5
5
  require 'rails_event_store/railtie'
6
6
  require 'rails_event_store/deprecations'
7
- require 'rails_event_store/active_job_dispatcher'
8
7
 
9
8
  module RailsEventStore
10
9
  Event = RubyEventStore::Event
@@ -21,11 +20,4 @@ module RailsEventStore
21
20
  InvalidPageSize = RubyEventStore::InvalidPageSize
22
21
  GLOBAL_STREAM = RubyEventStore::GLOBAL_STREAM
23
22
  PAGE_SIZE = RubyEventStore::PAGE_SIZE
24
-
25
- mattr_reader :event_repository
26
-
27
- def self.event_repository=(event_repository)
28
- raise ArgumentError unless event_repository
29
- @@event_repository = event_repository
30
- end
31
- end
23
+ end
@@ -1,7 +1,7 @@
1
1
  module RailsEventStore
2
2
  class Client < RubyEventStore::Client
3
- def initialize(repository: RailsEventStore.event_repository,
4
- event_broker: EventBroker.new,
3
+ def initialize(repository: RailsEventStoreActiveRecord::EventRepository.new,
4
+ event_broker: EventBroker.new(dispatcher: ActiveJobDispatcher.new),
5
5
  page_size: PAGE_SIZE)
6
6
  capture_metadata = ->{ Thread.current[:rails_event_store] }
7
7
  super(repository: repository,
@@ -9,5 +9,6 @@ module RailsEventStore
9
9
  page_size: page_size,
10
10
  metadata_proc: capture_metadata)
11
11
  end
12
+
12
13
  end
13
- end
14
+ end
@@ -1,3 +1,3 @@
1
1
  module RailsEventStore
2
- VERSION = "0.26.0"
2
+ VERSION = "0.27.0"
3
3
  end
@@ -27,12 +27,14 @@ Gem::Specification.new do |spec|
27
27
  spec.add_development_dependency 'sqlite3'
28
28
  spec.add_development_dependency 'rack-test'
29
29
  spec.add_development_dependency 'mutant-rspec', '~> 0.8.14'
30
+ spec.add_development_dependency 'google-protobuf', '~> 3.5.1.2'
30
31
 
31
- spec.add_dependency 'ruby_event_store', '= 0.26.0'
32
- spec.add_dependency 'rails_event_store_active_record', '= 0.26.0'
33
- spec.add_dependency 'aggregate_root', '= 0.26.0'
34
- spec.add_dependency 'bounded_context', '= 0.26.0'
32
+ spec.add_dependency 'ruby_event_store', '= 0.27.0'
33
+ spec.add_dependency 'rails_event_store_active_record', '= 0.27.0'
34
+ spec.add_dependency 'aggregate_root', '= 0.27.0'
35
+ spec.add_dependency 'bounded_context', '= 0.27.0'
35
36
  spec.add_dependency 'activesupport', '>= 3.0'
36
37
  spec.add_dependency 'activemodel', '>= 3.0'
37
38
  spec.add_dependency 'activejob', '>= 3.0'
39
+ spec.add_dependency 'arkency-command_bus', '>= 0.4'
38
40
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_event_store
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.26.0
4
+ version: 0.27.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arkency
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-03-06 00:00:00.000000000 Z
11
+ date: 2018-03-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -122,62 +122,76 @@ dependencies:
122
122
  - - "~>"
123
123
  - !ruby/object:Gem::Version
124
124
  version: 0.8.14
125
+ - !ruby/object:Gem::Dependency
126
+ name: google-protobuf
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: 3.5.1.2
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: 3.5.1.2
125
139
  - !ruby/object:Gem::Dependency
126
140
  name: ruby_event_store
127
141
  requirement: !ruby/object:Gem::Requirement
128
142
  requirements:
129
143
  - - '='
130
144
  - !ruby/object:Gem::Version
131
- version: 0.26.0
145
+ version: 0.27.0
132
146
  type: :runtime
133
147
  prerelease: false
134
148
  version_requirements: !ruby/object:Gem::Requirement
135
149
  requirements:
136
150
  - - '='
137
151
  - !ruby/object:Gem::Version
138
- version: 0.26.0
152
+ version: 0.27.0
139
153
  - !ruby/object:Gem::Dependency
140
154
  name: rails_event_store_active_record
141
155
  requirement: !ruby/object:Gem::Requirement
142
156
  requirements:
143
157
  - - '='
144
158
  - !ruby/object:Gem::Version
145
- version: 0.26.0
159
+ version: 0.27.0
146
160
  type: :runtime
147
161
  prerelease: false
148
162
  version_requirements: !ruby/object:Gem::Requirement
149
163
  requirements:
150
164
  - - '='
151
165
  - !ruby/object:Gem::Version
152
- version: 0.26.0
166
+ version: 0.27.0
153
167
  - !ruby/object:Gem::Dependency
154
168
  name: aggregate_root
155
169
  requirement: !ruby/object:Gem::Requirement
156
170
  requirements:
157
171
  - - '='
158
172
  - !ruby/object:Gem::Version
159
- version: 0.26.0
173
+ version: 0.27.0
160
174
  type: :runtime
161
175
  prerelease: false
162
176
  version_requirements: !ruby/object:Gem::Requirement
163
177
  requirements:
164
178
  - - '='
165
179
  - !ruby/object:Gem::Version
166
- version: 0.26.0
180
+ version: 0.27.0
167
181
  - !ruby/object:Gem::Dependency
168
182
  name: bounded_context
169
183
  requirement: !ruby/object:Gem::Requirement
170
184
  requirements:
171
185
  - - '='
172
186
  - !ruby/object:Gem::Version
173
- version: 0.26.0
187
+ version: 0.27.0
174
188
  type: :runtime
175
189
  prerelease: false
176
190
  version_requirements: !ruby/object:Gem::Requirement
177
191
  requirements:
178
192
  - - '='
179
193
  - !ruby/object:Gem::Version
180
- version: 0.26.0
194
+ version: 0.27.0
181
195
  - !ruby/object:Gem::Dependency
182
196
  name: activesupport
183
197
  requirement: !ruby/object:Gem::Requirement
@@ -220,6 +234,20 @@ dependencies:
220
234
  - - ">="
221
235
  - !ruby/object:Gem::Version
222
236
  version: '3.0'
237
+ - !ruby/object:Gem::Dependency
238
+ name: arkency-command_bus
239
+ requirement: !ruby/object:Gem::Requirement
240
+ requirements:
241
+ - - ">="
242
+ - !ruby/object:Gem::Version
243
+ version: '0.4'
244
+ type: :runtime
245
+ prerelease: false
246
+ version_requirements: !ruby/object:Gem::Requirement
247
+ requirements:
248
+ - - ">="
249
+ - !ruby/object:Gem::Version
250
+ version: '0.4'
223
251
  description: Implementation of Event Store in Ruby
224
252
  email:
225
253
  - dev@arkency.com