google-cloud-pubsub 1.1.2 → 1.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/google/cloud/pubsub/async_publisher.rb +3 -3
- data/lib/google/cloud/pubsub/async_publisher/batch.rb +3 -3
- data/lib/google/cloud/pubsub/subscriber.rb +2 -2
- data/lib/google/cloud/pubsub/subscriber/inventory.rb +2 -2
- data/lib/google/cloud/pubsub/subscriber/sequencer.rb +2 -2
- data/lib/google/cloud/pubsub/subscriber/stream.rb +2 -2
- data/lib/google/cloud/pubsub/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: 1feb85392aa3adbb0358718fbd2b3f9cfad766c2dd30fa03ffdd93a0ab9199f3
|
4
|
+
data.tar.gz: 726f51f0d1851d82de1ee42230da2480a39d1dc18e3ebe418afdb03ce28fa6ea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9c9b2ac59f9fac674bb1bfbddf8d5a23cf768986fbd13e0e41128bf86574884b3d46cd88c564f9b28a531dfebaf6ba05bced34d5f6ee50664442876eea601d6a
|
7
|
+
data.tar.gz: e3e93f611b142aad3e8323d3aeae2339c810924f31369370e668063da54af64806b0270db81c75b2e6361537ec596d238a5bad4c8cdf79a4d818af08790efc6b
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release History
|
2
2
|
|
3
|
+
### 1.1.3 / 2019-12-18
|
4
|
+
|
5
|
+
#### Bug Fixes
|
6
|
+
|
7
|
+
* Fix MonitorMixin usage on Ruby 2.7
|
8
|
+
* Ruby 2.7 will error if new_cond is called before super().
|
9
|
+
* Make the call to super() be the first call in initialize
|
10
|
+
|
3
11
|
### 1.1.2 / 2019-11-19
|
4
12
|
|
5
13
|
#### Performance Improvements
|
@@ -72,6 +72,9 @@ module Google
|
|
72
72
|
##
|
73
73
|
# @private Create a new instance of the object.
|
74
74
|
def initialize topic_name, service, max_bytes: 10_000_000, max_messages: 1000, interval: 0.25, threads: {}
|
75
|
+
# init MonitorMixin
|
76
|
+
super()
|
77
|
+
|
75
78
|
@topic_name = service.topic_path topic_name
|
76
79
|
@service = service
|
77
80
|
|
@@ -90,9 +93,6 @@ module Google
|
|
90
93
|
@batches = {}
|
91
94
|
|
92
95
|
@cond = new_cond
|
93
|
-
|
94
|
-
# init MonitorMixin
|
95
|
-
super()
|
96
96
|
end
|
97
97
|
|
98
98
|
##
|
@@ -28,6 +28,9 @@ module Google
|
|
28
28
|
attr_reader :items, :ordering_key
|
29
29
|
|
30
30
|
def initialize publisher, ordering_key
|
31
|
+
# init MonitorMixin
|
32
|
+
super()
|
33
|
+
|
31
34
|
@publisher = publisher
|
32
35
|
@ordering_key = ordering_key
|
33
36
|
@items = []
|
@@ -37,9 +40,6 @@ module Google
|
|
37
40
|
@publishing = false
|
38
41
|
@stopping = false
|
39
42
|
@canceled = false
|
40
|
-
|
41
|
-
# init MonitorMixin
|
42
|
-
super()
|
43
43
|
end
|
44
44
|
|
45
45
|
##
|
@@ -80,6 +80,8 @@ module Google
|
|
80
80
|
def initialize subscription_name, callback, deadline: nil,
|
81
81
|
message_ordering: nil, streams: nil, inventory: nil,
|
82
82
|
threads: {}, service: nil
|
83
|
+
super() # to init MonitorMixin
|
84
|
+
|
83
85
|
@callback = callback
|
84
86
|
@error_callbacks = []
|
85
87
|
@subscription_name = subscription_name
|
@@ -102,8 +104,6 @@ module Google
|
|
102
104
|
@stream_pool = stream_pool.map(&:value)
|
103
105
|
|
104
106
|
@buffer = TimedUnaryBuffer.new self
|
105
|
-
|
106
|
-
super() # to init MonitorMixin
|
107
107
|
end
|
108
108
|
|
109
109
|
##
|
@@ -32,10 +32,10 @@ module Google
|
|
32
32
|
def initialize &block
|
33
33
|
raise ArgumentError if block.nil?
|
34
34
|
|
35
|
+
super() # to init MonitorMixin
|
36
|
+
|
35
37
|
@seq_hash = Hash.new { |hash, key| hash[key] = [] }
|
36
38
|
@process_callback = block
|
37
|
-
|
38
|
-
super() # to init MonitorMixin
|
39
39
|
end
|
40
40
|
|
41
41
|
##
|
@@ -49,6 +49,8 @@ module Google
|
|
49
49
|
##
|
50
50
|
# @private Create an empty Subscriber::Stream object.
|
51
51
|
def initialize subscriber
|
52
|
+
super() # to init MonitorMixin
|
53
|
+
|
52
54
|
@subscriber = subscriber
|
53
55
|
|
54
56
|
@request_queue = nil
|
@@ -68,8 +70,6 @@ module Google
|
|
68
70
|
# push empty request every 30 seconds to keep stream alive
|
69
71
|
push Google::Cloud::PubSub::V1::StreamingPullRequest.new unless inventory.empty?
|
70
72
|
end.execute
|
71
|
-
|
72
|
-
super() # to init MonitorMixin
|
73
73
|
end
|
74
74
|
|
75
75
|
def start
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-pubsub
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Moore
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2019-
|
12
|
+
date: 2019-12-20 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: concurrent-ruby
|