logstash-input-cloudwatch_logs 0.9.3 → 0.9.4

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
  SHA1:
3
- metadata.gz: 1b2fb5a223094df174a00cf0c7625ff7238e9735
4
- data.tar.gz: 26e048c069797d8a63038c27b11142913ab04bf1
3
+ metadata.gz: 339654ac7148de2451f7af090306b642adf378c4
4
+ data.tar.gz: 97ebff4e4493b1d5b329befc15dc24c48f84e32f
5
5
  SHA512:
6
- metadata.gz: 2f57a85b64d18ac051c65017f16a9016800a59f112168213edcd40046af5a794fd3d48ccff1cbd1009fa032e2d586044a2ee447ecc466de5d3c46f3c8a4211af
7
- data.tar.gz: 94e793a7ae29fef5683367fb431559ccb1a5a2695107aa4933012fd8be0b3bcc06d94a9cf3e04c8b2a5a9904d9731abb88aab8b4ebabb9410659e051bd1c60fa
6
+ metadata.gz: 4534bd8fa2f9d75ae3b8fbf4b1bceefd4e0d90a276934ed38c36b201fe91d9b3caaf41fcbd518f068802ca93564e03bf9efba148c2cc3fc59ad41c0433ba8fcd
7
+ data.tar.gz: 37e8b58c2203be326587abb04739057f81f84d2c6e9059696b902d8088a0211904ab566a796f14c142f6eef8a319441e32a696136ff54b4f37d9452b8fe43cf1
@@ -0,0 +1,20 @@
1
+ # This is patch related to the autoloading and ruby
2
+ #
3
+ # The fix exist in jruby 9k but not in the current jruby, not sure when or it will be backported
4
+ # https://github.com/jruby/jruby/issues/3645
5
+ #
6
+ # AWS is doing tricky name discovery in the module to generate the correct error class and
7
+ # this strategy is bogus in jruby and `eager_autoload` don't fix this issue.
8
+ #
9
+ # This will be a short lived patch since AWS is removing the need.
10
+ # see: https://github.com/aws/aws-sdk-ruby/issues/1301#issuecomment-261115960
11
+ old_stderr = $stderr
12
+
13
+ $stderr = StringIO.new
14
+ begin
15
+ module Aws
16
+ const_set(:CloudWatchLogs, Aws::CloudWatchLogs)
17
+ end
18
+ ensure
19
+ $stderr = old_stderr
20
+ end
@@ -7,6 +7,9 @@ require "time"
7
7
  require "tmpdir"
8
8
  require "stud/interval"
9
9
  require "stud/temporary"
10
+ require "logstash/inputs/cloudwatch/patch"
11
+
12
+ Aws.eager_autoload!
10
13
 
11
14
  # Stream events from ClougWatch Logs streams.
12
15
  #
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
 
3
3
  s.name = 'logstash-input-cloudwatch_logs'
4
- s.version = '0.9.3'
4
+ s.version = '0.9.4'
5
5
  s.licenses = ['Apache License (2.0)']
6
6
  s.summary = 'Stream events from CloudWatch Logs.'
7
7
  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'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-input-cloudwatch_logs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.3
4
+ version: 0.9.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luke Waite
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-22 00:00:00.000000000 Z
11
+ date: 2017-03-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -84,6 +84,7 @@ files:
84
84
  - LICENSE
85
85
  - NOTICE.TXT
86
86
  - README.md
87
+ - lib/logstash/inputs/cloudwatch/patch.rb
87
88
  - lib/logstash/inputs/cloudwatch_logs.rb
88
89
  - logstash-input-cloudwatch_logs.gemspec
89
90
  - spec/inputs/cloudwatch_logs_spec.rb