rails_event_store-browser 0.29.0 → 0.30.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: 9c1fc4ffb22e0148f64facdc1b64394b96ad7d4a84c215ba42f5b9976617c949
4
- data.tar.gz: f7cc6ba07879898b5f84adcbaf57e0fa88aa6bad8b23f0d99d3390e9d5cc9ae4
3
+ metadata.gz: bcd7eb90c1d08b626d721dba644f087b1d989a91acf704d8bc148f722144e577
4
+ data.tar.gz: dd3d82d46ac73395f3d23c054a5c9f2bf4105bd512cb060b7f175dff95021809
5
5
  SHA512:
6
- metadata.gz: 98d0d0a4de6ee91f32c57e921ee946c18df1ab62237dcd3e6c94a9de3b4905cb9218ab8ac05cf4c9c2b0c255504dca908bf144da896e3c34340874e98fb8373c
7
- data.tar.gz: 057561ab0e84c1735ca22325b92538581e3d8216f08ca5847080a195c58d8024187bf852d03b6ab036b6cbb32568df266ce474ed0934df37cf074960411eb257
6
+ metadata.gz: 171157820266206b1f430a028274f5b015848393a10bca321bb3cd7a503c9e43f90d0725e3894d5b9595bc086717e780aa1f39952bdd9dfb387e2564a4575c1f
7
+ data.tar.gz: 1aa412eb5744388e97584a8326e48542169db7428aa090f2b19d780f30a038ac53c1146f84198764aef7361ef4489d18586d0e8b0b3de5cbc88182c48af88ca9
@@ -31,17 +31,17 @@ module RailsEventStore
31
31
 
32
32
  def events_forward(start)
33
33
  if stream_name.eql?(SERIALIZED_GLOBAL_STREAM_NAME)
34
- event_store.read_all_streams_forward(start: start, count: count)
34
+ event_store.read.limit(count).from(start).each.to_a
35
35
  else
36
- event_store.read_events_forward(stream_name, start: start, count: count)
36
+ event_store.read.limit(count).from(start).stream(stream_name).each.to_a
37
37
  end
38
38
  end
39
39
 
40
40
  def events_backward(start)
41
41
  if stream_name.eql?(SERIALIZED_GLOBAL_STREAM_NAME)
42
- event_store.read_all_streams_backward(start: start, count: count)
42
+ event_store.read.limit(count).from(start).backward.each.to_a
43
43
  else
44
- event_store.read_events_backward(stream_name, start: start, count: count)
44
+ event_store.read.limit(count).from(start).stream(stream_name).backward.each.to_a
45
45
  end
46
46
  end
47
47
 
@@ -1,5 +1,5 @@
1
1
  module RailsEventStore
2
2
  module Browser
3
- VERSION = "0.29.0"
3
+ VERSION = "0.30.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_event_store-browser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.29.0
4
+ version: 0.30.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arkency
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-05-06 00:00:00.000000000 Z
11
+ date: 2018-05-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 0.29.0
33
+ version: 0.30.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 0.29.0
40
+ version: 0.30.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rails
43
43
  requirement: !ruby/object:Gem::Requirement