pg_eventstore 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: df0f1cb9814509329a52545776c5f3b3445b98f436cba8491c607ff6a4aaeea2
4
- data.tar.gz: 6044ef3293026dc4f4e952d5591ed660006cd79b14ab14d744b150f0d3e3a6ad
3
+ metadata.gz: d164756463155daaa363ac2c51d2b85097559d471912af64298e988d6a1831bb
4
+ data.tar.gz: a3b727ae69c0cc4d897b9c1bc9ca4d2495677280f64f4af177ae790cefdfec1a
5
5
  SHA512:
6
- metadata.gz: e66202ec3ff994a858fda5266d230d0a47eb12a6fbc921f602f4c73f09df7a5a34e8c3681f1a0889b58a42e82f1a32a59d8e1d73a376af51930774d675c1a4f9
7
- data.tar.gz: efe0cdbbf6e0fbb123ac767c7bf9e355d15b6159279cb2b2fbca29a15660128a6ecd3b799ca501b83f19f8aefa9904446b64f62fb3f8cd7f200bf5d562c569a0
6
+ metadata.gz: bc96f8a831df8271c74aa4ec9570016c740f454ce3b48cca41e070ec41166d4aea46e68d5630707c30c797aa4ec922f982c53c147c90e2e665eb7f14118ed84b
7
+ data.tar.gz: c1f8daa5fb4ff0b243d3d34ae8846aef18d20dadf0284f7ac5e9d8c159f2f2fdfe622124c6186a4cc566a445c90228b27814ad93d7b4db3cdf98f793fc564670
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [1.0.3]
4
+ - Do no update `Subscription#last_chunk_fed_at` if the chunk is empty
5
+
3
6
  ## [1.0.2]
4
7
  - UI: Fix opening of SubscriptionsSet tab of non-existing SubscriptionsSet
5
8
 
@@ -106,7 +106,9 @@ module PgEventstore
106
106
  # @param global_position [Integer, nil]
107
107
  # @return [void]
108
108
  def update_subscription_chunk_stats(global_position)
109
- global_position ||= @subscription.last_chunk_greatest_position
109
+ # nil means subscriptions events query were executed, but there were no new events
110
+ return @subscription.update(updated_at: Time.now.utc) if global_position.nil?
111
+
110
112
  @subscription.update(last_chunk_fed_at: Time.now.utc, last_chunk_greatest_position: global_position)
111
113
  end
112
114
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PgEventstore
4
- VERSION = "1.0.2"
4
+ VERSION = "1.0.3"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pg_eventstore
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ivan Dzyzenko
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-05-13 00:00:00.000000000 Z
11
+ date: 2024-05-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pg