logstash-input-google_pubsub 1.0.5 → 1.0.6

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: d4d1d534f0cc5d9beca70f86b6f9076e983fbc169171a46b9ac9e7da56e347ac
4
- data.tar.gz: b9ae64633d0fd94bd67a34249351564307fb44e9855978d17c043ceab2725960
3
+ metadata.gz: 59322ce3c386faf1e2ec7b3805bbce3f07b2b9439bc7086a503269178541fb08
4
+ data.tar.gz: 4407b4ed498ef6b5a8289978377c69f9ce0af6c10fec5f7fde04a43580e52c85
5
5
  SHA512:
6
- metadata.gz: ae1d8d858f80d4a8e25fe0cfcd8568d4ebfd5b9caf43863afdb9217e47ed86ffc8ccd9cdb63624d8379670fe3c7f6d3fd169ca21342fe1146058d4f5c89dceab
7
- data.tar.gz: '08187af9f268db6900c60b688ba91cf823056d36176cf35ecf8ae34e2f6f57f8ac997d8e738f42f3f7174d5170e94973747f3cd91be3b3a047fe692abfc312c7'
6
+ metadata.gz: 2b90a0f77e11d12d9733591a69acf2c3842f4dc68f5ff7a9dca951f43fc7cbd337e1bf54e4d0e27d3198a434797e2fc9ea075a80badf74dad4ec83f45b49a99a
7
+ data.tar.gz: cce6661d8c84a268f3bb251cf953774cd6aae6db90efe37ed468ef22b5c12b9b2f6e76ca7e5e1a1a4d0c38efeadd16f5aee0ad4072674bb2ffd752b1bbb9f430
@@ -1,3 +1,6 @@
1
+ ## 1.0.6
2
+ - Ignore acknowledge requests with an empty array of IDs. Fixes [#14](https://github.com/logstash-plugins/logstash-input-google_pubsub/issues/14)
3
+
1
4
  ## 1.0.5
2
5
  - Docs: Set the default_codec doc attribute.
3
6
 
@@ -261,6 +261,8 @@ class LogStash::Inputs::GooglePubSub < LogStash::Inputs::Base
261
261
  end
262
262
 
263
263
  ack_ids = messages.map{ |msg| msg["ackId"] }
264
+ next if ack_ids.empty?
265
+
264
266
  result = request(
265
267
  :api_method => @pubsub.projects.subscriptions.acknowledge,
266
268
  :parameters => {'subscription' => @subscription},
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-input-google_pubsub'
3
- s.version = '1.0.5'
3
+ s.version = '1.0.6'
4
4
  s.licenses = ['Apache-2.0']
5
5
  s.summary = "Consume events from a Google Cloud PubSub service"
6
6
  s.description = "This gem is a Logstash input plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/logstash-plugin install gemname. This gem is not a stand-alone program."
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-input-google_pubsub
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Johnson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-04-06 00:00:00.000000000 Z
11
+ date: 2018-04-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -132,7 +132,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
132
132
  version: '0'
133
133
  requirements: []
134
134
  rubyforge_project:
135
- rubygems_version: 2.6.11
135
+ rubygems_version: 2.6.13
136
136
  signing_key:
137
137
  specification_version: 4
138
138
  summary: Consume events from a Google Cloud PubSub service