messaging 4.0.4.pre → 4.0.5

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: f76dc35b493eb944a479e329a474a7489fe8f343e5e0cb61b4becd1b584386c5
4
- data.tar.gz: d8ae5780117ac2b18a0fc30fa02e2801eb0b19db0cd92c4d3548099c1814e8f0
3
+ metadata.gz: c87e653e527433818875b3b98f39b57e96e0ad4d6d6768af9c447c889bc6a023
4
+ data.tar.gz: 1d9022a5ad433b724394abee582ae61c136ca4f2b800251d9a475570189b6e4a
5
5
  SHA512:
6
- metadata.gz: b767a34378a64ef4ff9065b45665fafa3a66322d82c410b218683949dc0536466be365e842b341ff83c8a32a564d4c05ae3b3971a1fb453800c46052320a8e4c
7
- data.tar.gz: a38d74910ce0f4ed0decd9b59108f80b821058626f58fae043afdbb597f93bd96dafe375a9d94ea2f826c6e665012fa409ed245051265d16d039836f32875f9c
6
+ metadata.gz: 231eb2da912229c56f3fefd8b57b7d2a314ef86d554430a17228b3d94da64100fd8580f1b7f30541e51cd8d787d09b48f0c891a71e7ecee545cbaadbc9957c38
7
+ data.tar.gz: c8f73a2c7495625c0e2e37c419358b72cf49495cf4ecaa3442c9c550905534d0d16554bfe9480e15128b135d99012bd727a9917ab3fc0e26b0982a61c9faaaff
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- messaging (4.0.4.pre)
4
+ messaging (4.0.5)
5
5
  activerecord
6
6
  activesupport
7
7
  after_transaction
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Messaging
2
- VERSION = '4.0.4.pre'.freeze
2
+ VERSION = '4.0.5'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: messaging
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.4.pre
4
+ version: 4.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bukowskis