messaging 4.0.0.pre → 4.0.2.pre
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 57c53952e42de9fffee05500cd9bd9c16d87bb08b6ae79945e7e5cc43467e2db
|
4
|
+
data.tar.gz: d56112b7c1d5a096cdf9f77f4ef01834e14a00b3a427224db3bd6684d594e250
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 81005a85d53c14d7e200240b5310ef0b10bd8eca6f988c30f0995810097a00a0449bbf01d9dac6726641abcaf3edacdca27d87e8752ff17ebe1e4235af536455
|
7
|
+
data.tar.gz: 76754877fabaf8f406c6d64161ae46cb60407c3ab6bec0dae59ad50ba75482d1179046dcab87abaa69a008cae80d983497b06901b56565856cae58d6b99edd35
|
data/Gemfile.lock
CHANGED
@@ -66,7 +66,7 @@ module Messaging
|
|
66
66
|
|
67
67
|
def fetch_messages
|
68
68
|
SerializedMessage.in_category(categories)
|
69
|
-
.
|
69
|
+
.with_transaction_id_lower_than_any_currently_running_transaction
|
70
70
|
.newer_than(last_processed_transaction_id, last_processed_position)
|
71
71
|
.order(:id)
|
72
72
|
.limit(1000)
|
@@ -10,7 +10,7 @@ module Messaging
|
|
10
10
|
where(stream_category: Array(categories).map(&:to_s))
|
11
11
|
end
|
12
12
|
|
13
|
-
def self.
|
13
|
+
def self.with_transaction_id_lower_than_any_currently_running_transaction
|
14
14
|
where('transaction_id < pg_snapshot_xmin(pg_current_snapshot())')
|
15
15
|
end
|
16
16
|
|
data/lib/messaging/version.rb
CHANGED
data/lib/messaging.rb
CHANGED
@@ -5,7 +5,7 @@ require 'active_support'
|
|
5
5
|
require 'active_support/notifications'
|
6
6
|
require 'active_support/core_ext'
|
7
7
|
|
8
|
-
if RUBY_VERSION == '2
|
8
|
+
if RUBY_VERSION.split('.').first == '2'
|
9
9
|
require 'messaging/config_23'
|
10
10
|
else
|
11
11
|
require 'messaging/config'
|
@@ -18,7 +18,7 @@ require 'messaging/exception_handler'
|
|
18
18
|
require 'messaging/message'
|
19
19
|
require 'messaging/message/from_json'
|
20
20
|
|
21
|
-
if RUBY_VERSION == '2
|
21
|
+
if RUBY_VERSION.split('.').first == '2'
|
22
22
|
require 'messaging/routing_23'
|
23
23
|
else
|
24
24
|
require 'messaging/routing'
|