ruby_event_store 2.12.1 → 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: 414372f8cf49fdc7e5f2a4acc70e14d930b854dd21a33565dbcc6ad1a83424f3
4
- data.tar.gz: e1163e959017ae0fafb1dce7c4005379013e258e07dfb01f8aaf68d2112e3f1f
3
+ metadata.gz: 73f43b0e4a063400ef20694abb7eb89adbd7742cba5b8c363fed8b8920f3d43b
4
+ data.tar.gz: f0e7ad5c67950d8111aea122204ab10c638a3bf4a44bcd39ec311d511ed420b7
5
5
  SHA512:
6
- metadata.gz: 88a8e95634a0b3810f0304a621e358b494b08ea55df25cc2953ca6b99b77db6e73245899af2aa8e31ae9df2f7af3b536b7300eafc8bead9d4cf64cae71359fd7
7
- data.tar.gz: 88bbd5a470e4d04ca089659796beab558bd82703d9f17a7ce426ea5e5d2af701c0bb4e274b854345ce045022c8e506b375c26102e9c515133214988fa940c29c
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.1"
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.1
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-05 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