logstash-input-sqs_s3 1.1.4 → 1.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 77670d27cd7b0103afbeb8c084465c3a95e92a40b2f24d96cc4105817b2608c9
4
- data.tar.gz: 2a5845ae220d5d5f1f59794e11d6420d232a5f79e96a3a4c381ad81ba1e6a0bf
3
+ metadata.gz: 54b8c56c9cae55cc5b9d96cb24ff5e64b42c1b1db07369e7b71eff26451e61c6
4
+ data.tar.gz: 9b76d647abed713b99c70abbd050e3483cd53637f93ea1ab4a6ef2345f572ea7
5
5
  SHA512:
6
- metadata.gz: 3234e04ccf0b1df66b06335ae00ebc600ef83ccf9518fb9b7a223d5ba2babbdb9f14c6feeb5be3a826a28f36d3f1cb9bf98403c2f7f3a3996657845325e4d14a
7
- data.tar.gz: d823a944380b2d00d62f321fcc865cbf6fedb348ad8ce800d73e58248671f3b726262546dec943644dea5b43740925921fad2e0c4499d7d4a9a22ebfd7bf431f
6
+ metadata.gz: 2bf22d5c80d5510dc959ba96d4d2e0a17cf40ae2db3bf316f0c9b9e774a6b7ca352a42e20633d2218f0fe61232b3f9b62fe21ec33077288bcb4b563a04fa1678
7
+ data.tar.gz: fabd98107fee4a217445ae34b15e78387bf3c3d8c4f0d33cec31a44bf3f30aae3a3123396d25b4749662ed8b0e7d2e1d233fea98797078d857d458edb4b2305f
@@ -5,6 +5,7 @@ require "logstash/namespace"
5
5
  require "logstash/timestamp"
6
6
  require "logstash/plugin_mixins/aws_config"
7
7
  require "logstash/errors"
8
+ require "logstash/inputs/sqs_s3/patch"
8
9
 
9
10
  # Forcibly load all modules marked to be lazily loaded.
10
11
  #
@@ -0,0 +1,22 @@
1
+ # This patch was stolen from logstash-plugins/logstash-output-sqs#20.
2
+ #
3
+ # This patch is a workaround for a JRuby issue which has been fixed in JRuby
4
+ # 9000, but not in JRuby 1.7. See https://github.com/jruby/jruby/issues/3645
5
+ # and https://github.com/jruby/jruby/issues/3920. This is necessary because the
6
+ # `aws-sdk` is doing tricky name discovery to generate the correct error class.
7
+ #
8
+ # As per https://github.com/aws/aws-sdk-ruby/issues/1301#issuecomment-261115960,
9
+ # this patch may be short-lived anyway.
10
+ require 'aws-sdk'
11
+
12
+ begin
13
+ old_stderr = $stderr
14
+ $stderr = StringIO.new
15
+
16
+ module Aws
17
+ const_set(:SQS, Aws::SQS)
18
+ const_set(:S3, Aws::S3)
19
+ end
20
+ ensure
21
+ $stderr = old_stderr
22
+ end
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-input-sqs_s3'
3
- s.version = '1.1.4'
3
+ s.version = '1.1.5'
4
4
  s.licenses = ['Apache License (2.0)']
5
5
  s.summary = "Get logs from AWS s3 buckets as issued by an object-created event via sqs."
6
6
  s.description = "This gem is a logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/plugin install gemname. This gem is not a stand-alone program. Full credit goes to Heiko Finzel. Republishing this gem to support Logstash 5."
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-input-sqs_s3
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.4
4
+ version: 1.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Heiko Finzel
@@ -89,6 +89,7 @@ files:
89
89
  - README.md
90
90
  - lib/logstash/inputs/sqs_s3.rb
91
91
  - lib/logstash/inputs/sqs_s3.rb.save
92
+ - lib/logstash/inputs/sqs_s3/patch.rb
92
93
  - logstash-input-sqs_s3.gemspec
93
94
  - spec/inputs/sqs_s3_spec.rb
94
95
  - spec/spec_helper.rb