messaging 4.0.3.pre → 4.0.5
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c87e653e527433818875b3b98f39b57e96e0ad4d6d6768af9c447c889bc6a023
|
4
|
+
data.tar.gz: 1d9022a5ad433b724394abee582ae61c136ca4f2b800251d9a475570189b6e4a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 231eb2da912229c56f3fefd8b57b7d2a314ef86d554430a17228b3d94da64100fd8580f1b7f30541e51cd8d787d09b48f0c891a71e7ecee545cbaadbc9957c38
|
7
|
+
data.tar.gz: c8f73a2c7495625c0e2e37c419358b72cf49495cf4ecaa3442c9c550905534d0d16554bfe9480e15128b135d99012bd727a9917ab3fc0e26b0982a61c9faaaff
|
data/Gemfile.lock
CHANGED
@@ -72,6 +72,7 @@ module Messaging
|
|
72
72
|
return super if readonly?
|
73
73
|
with_locked_stream do
|
74
74
|
set_stream_position
|
75
|
+
set_transaction_id
|
75
76
|
validate_expected_version!
|
76
77
|
super
|
77
78
|
end
|
@@ -88,6 +89,10 @@ module Messaging
|
|
88
89
|
self.stream_position = current_stream_position + 1
|
89
90
|
end
|
90
91
|
|
92
|
+
def set_transaction_id
|
93
|
+
self.transaction_id = connection.select_value('SELECT pg_current_xact_id()')
|
94
|
+
end
|
95
|
+
|
91
96
|
def validate_expected_version!
|
92
97
|
ExpectedVersion.new(expected_version || :any).match!(current_stream_position)
|
93
98
|
end
|
data/lib/messaging/version.rb
CHANGED