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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1a60a9cf11c66c67011c5b35c44f0a6dd70a1c57dabba5520330ed153c9978a7
4
- data.tar.gz: b904d000b778794cc88f9b2242e616af8aac4a53fae285e3d838717f6c3f09e6
3
+ metadata.gz: 1feb85392aa3adbb0358718fbd2b3f9cfad766c2dd30fa03ffdd93a0ab9199f3
4
+ data.tar.gz: 726f51f0d1851d82de1ee42230da2480a39d1dc18e3ebe418afdb03ce28fa6ea
5
5
  SHA512:
6
- metadata.gz: 24a71018489495e32ffe9d342329d4e2b905461ed165457fcec80395f2a73c493b2bf4223d5af36ae4958f72efab10cd9b44196ee7773868fe0df53a1f0ffbed
7
- data.tar.gz: f23b5eeb43a5d46d0e03be40fd73277df94ffeb69e1ecf900e68f8d9fce8455fdf5a66f16ac74a8f76d2c135d22972ffac41a7d255764b73de0be6308b9e9323
6
+ metadata.gz: 9c9b2ac59f9fac674bb1bfbddf8d5a23cf768986fbd13e0e41128bf86574884b3d46cd88c564f9b28a531dfebaf6ba05bced34d5f6ee50664442876eea601d6a
7
+ data.tar.gz: e3e93f611b142aad3e8323d3aeae2339c810924f31369370e668063da54af64806b0270db81c75b2e6361537ec596d238a5bad4c8cdf79a4d818af08790efc6b
@@ -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
  ##
@@ -27,12 +27,12 @@ module Google
27
27
  attr_reader :stream, :limit
28
28
 
29
29
  def initialize stream, limit
30
+ super()
31
+
30
32
  @stream = stream
31
33
  @limit = limit
32
34
  @_ack_ids = []
33
35
  @wait_cond = new_cond
34
-
35
- super()
36
36
  end
37
37
 
38
38
  def ack_ids
@@ -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
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module PubSub
19
- VERSION = "1.1.2".freeze
19
+ VERSION = "1.1.3".freeze
20
20
  end
21
21
 
22
22
  Pubsub = PubSub unless const_defined? :Pubsub
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.2
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-11-20 00:00:00.000000000 Z
12
+ date: 2019-12-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: concurrent-ruby