ruby_event_store 2.12.0 → 2.13.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: 340c04c1b68fa8cebc285043301c1f4f18a3991f3b8907902867fa8ea58fba1e
4
- data.tar.gz: 5f2e265af27f9d41aa973f7330269ed8364e59d598a944a1727d2e586e23760b
3
+ metadata.gz: 73f43b0e4a063400ef20694abb7eb89adbd7742cba5b8c363fed8b8920f3d43b
4
+ data.tar.gz: f0e7ad5c67950d8111aea122204ab10c638a3bf4a44bcd39ec311d511ed420b7
5
5
  SHA512:
6
- metadata.gz: c659b73c074917ea247b21bbdeed50c4c69398ad17ad6bafa36643c906e762b024def7585375f8d5ebe43df8af5d20d0567e7060f50970907e75a79a5b8c96cb
7
- data.tar.gz: ed1c6f434bccb600c849b9e726c97493af2bb75453edf97d0da3d03d71de0a9084ae900d14259638a8357afb5d6298b124a63df689b9c465d965b146ef67bab0
6
+ metadata.gz: 80d69bf0eb026d2d4d8842cea5c26c04a0c46f4651b58800ab1a456cbb9a725df76d004bcbc69a291d0ee117ab939d74f5ba6458a8d029a970f87088db4cbac1
7
+ data.tar.gz: 3aee127d839698b67bd0602973f15d54f9cd0eb3b036fb2ae7da04394229683f959e6905d5da54dfe0d2ae34f839d70bf25f9bf8e3ca7d34475a2131f4117789
@@ -15,8 +15,8 @@ module RubyEventStore
15
15
  batch_limit = [batch_size, total_limit - batch_offset].min
16
16
  result = reader.call(batch_offset, batch_limit)
17
17
 
18
- break if result.empty?
19
- yield result
18
+ yield result if result.any?
19
+ break if result.size < batch_size
20
20
  end
21
21
  end
22
22
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RubyEventStore
4
- VERSION = "2.12.0"
4
+ VERSION = "2.13.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_event_store
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.12.0
4
+ version: 2.13.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arkency
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-09-04 00:00:00.000000000 Z
11
+ date: 2023-12-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby
@@ -119,7 +119,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
119
119
  - !ruby/object:Gem::Version
120
120
  version: '0'
121
121
  requirements: []
122
- rubygems_version: 3.4.17
122
+ rubygems_version: 3.3.7
123
123
  signing_key:
124
124
  specification_version: 4
125
125
  summary: Implementation of an event store in Ruby