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 +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/pg_eventstore/subscriptions/subscription_runner.rb +3 -1
- data/lib/pg_eventstore/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d164756463155daaa363ac2c51d2b85097559d471912af64298e988d6a1831bb
|
|
4
|
+
data.tar.gz: a3b727ae69c0cc4d897b9c1bc9ca4d2495677280f64f4af177ae790cefdfec1a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bc96f8a831df8271c74aa4ec9570016c740f454ce3b48cca41e070ec41166d4aea46e68d5630707c30c797aa4ec922f982c53c147c90e2e665eb7f14118ed84b
|
|
7
|
+
data.tar.gz: c1f8daa5fb4ff0b243d3d34ae8846aef18d20dadf0284f7ac5e9d8c159f2f2fdfe622124c6186a4cc566a445c90228b27814ad93d7b4db3cdf98f793fc564670
|
data/CHANGELOG.md
CHANGED
|
@@ -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
|
-
|
|
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
|
|
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.
|
|
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-
|
|
11
|
+
date: 2024-05-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: pg
|