artery 1.2.1 → 1.2.2
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/lib/artery/subscription/synchronization.rb +7 -0
- data/lib/artery/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 143083385171dd538fca23bf7be5e9294aca001ac387186f7e75362a85d28683
|
|
4
|
+
data.tar.gz: a87a4dcdd579ebca3be40eb0ea73db8272c10a9abd8534327ea0ccc28ab9353f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5198b675ce6edda582da79999247a75f0f571afb8513887e1820a3d028b55da0ebe8a5451f64b1b896a81b6c4c8f8314af7ef7a0a8fd5f9fbc0a8ff0bae2d18d
|
|
7
|
+
data.tar.gz: c149bf5eca05b0086a878722ef6ff77a344e637988aca0af1ee15508f87d11782abcbc91498d75e5c91972b35b55c3bc83b633568d9e831c3a8a456d593c37cb
|
|
@@ -83,6 +83,7 @@ module Artery
|
|
|
83
83
|
def receive_all
|
|
84
84
|
synchronization_in_progress! unless synchronization_in_progress?
|
|
85
85
|
|
|
86
|
+
reset_latest_index!
|
|
86
87
|
while receive_all_once == :continue; end
|
|
87
88
|
end
|
|
88
89
|
|
|
@@ -220,6 +221,12 @@ module Artery
|
|
|
220
221
|
end
|
|
221
222
|
:continue if should_continue
|
|
222
223
|
end
|
|
224
|
+
|
|
225
|
+
def reset_latest_index!
|
|
226
|
+
return unless latest_message_index.positive?
|
|
227
|
+
|
|
228
|
+
info.update!(latest_index: 0)
|
|
229
|
+
end
|
|
223
230
|
end
|
|
224
231
|
end
|
|
225
232
|
end
|
data/lib/artery/version.rb
CHANGED