ruby_event_store 1.1.0 → 1.1.1

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: 36e7110d2b9570a081d8c27c092fb49f745e2fc52df0f5ac8a1fef43e9c947b5
4
- data.tar.gz: eca5201fd1e093a988d0dbd405a46fbd78c1da27e2733fc263e6fcd4b474eed8
3
+ metadata.gz: 6c14775d70ee44777790b8b916ceee3b7801439494711a701aabb5a8904e8270
4
+ data.tar.gz: 9c11cdd6cc8a13a8e16749928acb174c1cc11ca5a5e56aae2d9338fbbb42f842
5
5
  SHA512:
6
- metadata.gz: aa50fda1e6bf1deb3d8ea4b22b39d4e039a18b3ad6fd325c1b6295195f435214f4210a14fb4f164ad5113db0a8f0bd8d27ff083bd2cccdb6a6714c01cda3239f
7
- data.tar.gz: d7bf94647c93fa324249b63495a792bd56678037db5bc0a03fb654679e7298d8d15fbd4846e174a98335986c6eeccd9d326c4c8b67435b0e03edb84a94a2249d
6
+ metadata.gz: 15c4530f8da5f71f6e411296a7e228ccea5dc0a3b836cfa90d7ba6c9f1462881d85963d1f68e0995f7b86bf27f9ae4981a551e3fbd1aa8b5213238488144ecba
7
+ data.tar.gz: d925c31f958e72529c43fe4a006e74a0140b37bbddd667e1ac19cebca66963c59903a1aac136f1b080b2977b2019bb5e79c21bf9ab6bca5aa23c9f1db45293a8
@@ -10,9 +10,10 @@ module RubyEventStore
10
10
 
11
11
  def each
12
12
  return to_enum unless block_given?
13
+
13
14
  0.step(total_limit - 1, batch_size) do |batch_offset|
14
- batch_limit = [batch_size, total_limit - batch_offset].min
15
- result = reader.call(batch_offset, batch_limit)
15
+ batch_limit = [batch_size, total_limit - batch_offset].min
16
+ result = reader.call(batch_offset, batch_limit)
16
17
 
17
18
  break if result.empty?
18
19
  yield result
@@ -29,6 +30,6 @@ module RubyEventStore
29
30
 
30
31
  private
31
32
 
32
- attr_accessor :batch_size, :total_limit, :reader
33
+ attr_reader :batch_size, :total_limit, :reader
33
34
  end
34
35
  end
@@ -98,7 +98,7 @@ module RubyEventStore
98
98
  case meta
99
99
  when Leaf
100
100
  value = data.fetch(attribute)
101
- return unless value
101
+ return if value.nil?
102
102
 
103
103
  encryption_key = key_repository.key_of(meta.fetch(:identifier))
104
104
  encryption_key.encrypt(serializer.dump(value), meta.fetch(:iv))
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RubyEventStore
4
- VERSION = "1.1.0"
4
+ VERSION = "1.1.1"
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: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arkency
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-07-28 00:00:00.000000000 Z
11
+ date: 2020-08-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby