rails_event_store_active_record-legacy 0.32.0 → 0.33.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
  SHA256:
3
- metadata.gz: eff68a246249af3de610dcd3726b949438b066e9691bb11ab50a880cd9fec5be
4
- data.tar.gz: 11e680a6c72139c632e4b450e319bd9e8f109694bb286921d38b0516d12b5efe
3
+ metadata.gz: 9467f23b17b11fd2bfe840459e421c1d8dcb636f169eae25fce94621afb50ec4
4
+ data.tar.gz: b266158917c71ce57cc0521ee0b74b8c34bd7d52c2aeea8fbd3f744e5de9505c
5
5
  SHA512:
6
- metadata.gz: f8f62c1d22349f5bd9986ab570c6c75394fc202a6507eb947dcde24f660f1b93bb6d01f19d41dee54370633a6633f046d93c057e8025cce7589323367e3c34ee
7
- data.tar.gz: 5a806d547c43b3e067bcfa64569caee427d732f0c3199be9878f6160f5d453231f114036106ceb46c60ec9398c806f23c10e0ab320bbab80adbc09cb901b57db
6
+ metadata.gz: 99a9fd71fcef564042da9b97fc88f9a5b316b3d195a3bd50e884acaa03f119c0ec24b2cd0bc1aaaa39844fd0a6ae57794cf67f8e2c33226e680d5a19a09823c4
7
+ data.tar.gz: 1ee7e9154f2ec559814e48596ae48d41f19be60b0d74c4e4aeac7230fc334797828e4bde19fcf384f7ef7f37b0dbe7ec3c16059e6b68e05ea267ac9e05c37d8d
@@ -55,12 +55,9 @@ instead:
55
55
  build_event_entity(LegacyEvent.where(stream: stream.name).last)
56
56
  end
57
57
 
58
- def read_event(event_id)
59
- build_event_entity(LegacyEvent.find_by(event_id: event_id)) or raise RubyEventStore::EventNotFound.new(event_id)
60
- end
61
-
62
58
  def read(spec)
63
59
  stream = LegacyEvent.order(id: order(spec))
60
+ stream = stream.where(event_id: spec.with_ids) if spec.with_ids?
64
61
  stream = stream.limit(spec.limit) if spec.limit?
65
62
  stream = stream.where(start_condition(spec)) unless spec.head?
66
63
  stream = stream.where(stream: spec.stream.name) unless spec.stream.global?
@@ -1,5 +1,5 @@
1
1
  module RailsEventStoreActiveRecord
2
2
  module Legacy
3
- VERSION = "0.32.0"
3
+ VERSION = "0.33.0"
4
4
  end
5
5
  end
@@ -39,8 +39,8 @@ Gem::Specification.new do |spec|
39
39
  spec.add_development_dependency 'childprocess'
40
40
  spec.add_development_dependency 'mutant-rspec', '~> 0.8.17'
41
41
 
42
- spec.add_dependency 'ruby_event_store', '= 0.32.0'
43
- spec.add_dependency 'rails_event_store_active_record', '= 0.32.0'
42
+ spec.add_dependency 'ruby_event_store', '= 0.33.0'
43
+ spec.add_dependency 'rails_event_store_active_record', '= 0.33.0'
44
44
  spec.add_dependency 'activesupport', '>= 3.0'
45
45
  spec.add_dependency 'activemodel', '>= 3.0'
46
46
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_event_store_active_record-legacy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.32.0
4
+ version: 0.33.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-09-27 00:00:00.000000000 Z
11
+ date: 2018-10-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -156,28 +156,28 @@ dependencies:
156
156
  requirements:
157
157
  - - '='
158
158
  - !ruby/object:Gem::Version
159
- version: 0.32.0
159
+ version: 0.33.0
160
160
  type: :runtime
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
164
  - - '='
165
165
  - !ruby/object:Gem::Version
166
- version: 0.32.0
166
+ version: 0.33.0
167
167
  - !ruby/object:Gem::Dependency
168
168
  name: rails_event_store_active_record
169
169
  requirement: !ruby/object:Gem::Requirement
170
170
  requirements:
171
171
  - - '='
172
172
  - !ruby/object:Gem::Version
173
- version: 0.32.0
173
+ version: 0.33.0
174
174
  type: :runtime
175
175
  prerelease: false
176
176
  version_requirements: !ruby/object:Gem::Requirement
177
177
  requirements:
178
178
  - - '='
179
179
  - !ruby/object:Gem::Version
180
- version: 0.32.0
180
+ version: 0.33.0
181
181
  - !ruby/object:Gem::Dependency
182
182
  name: activesupport
183
183
  requirement: !ruby/object:Gem::Requirement
@@ -248,7 +248,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
248
248
  version: '0'
249
249
  requirements: []
250
250
  rubyforge_project:
251
- rubygems_version: 2.7.6
251
+ rubygems_version: 3.0.0.beta1
252
252
  signing_key:
253
253
  specification_version: 4
254
254
  summary: Active Record events repository for Rails Event Store