Sha256: 93f2077f81cf6c158291cc90561c653c0d8a5ba9d74266b02594085a10de8a66

Contents?: true

Size: 645 Bytes

Versions: 39

Compression:

Stored size: 645 Bytes

Contents

# This is patch related to the autoloading and ruby
#
# The fix exist in jruby 9k but not in the current jruby, not sure when or it will be backported
# https://github.com/jruby/jruby/issues/3645
#
# AWS is doing tricky name discovery in the module to generate the correct error class and
# this strategy is bogus in jruby and `eager_autoload` don't fix this issue.
#
# This will be a short lived patch since AWS is removing the need.
# see: https://github.com/aws/aws-sdk-ruby/issues/1301#issuecomment-261115960
old_stderr = $stderr

$stderr = StringIO.new
begin
  module Aws
    const_set(:S3, Aws::S3)
  end
ensure
  $stderr = old_stderr
end

Version data entries

39 entries across 39 versions & 7 rubygems

Version Path
logstash-input-s3-r2-3.8.6 lib/logstash/inputs/s3/patch.rb
logstash-input-s3-cos-3.8.5 lib/logstash/inputs/s3/patch.rb
logstash-input-s3-cloudian-1.0.0 lib/logstash/inputs/s3/patch.rb
logstash-input-s3-3.8.4 lib/logstash/inputs/s3/patch.rb
logstash-input-s3-3.8.3 lib/logstash/inputs/s3/patch.rb
logstash-input-s3-3.8.2 lib/logstash/inputs/s3/patch.rb
logstash-input-s3-3.8.1 lib/logstash/inputs/s3/patch.rb
logstash-input-s3-3.8.0 lib/logstash/inputs/s3/patch.rb
logstash-input-s3-3.7.0 lib/logstash/inputs/s3/patch.rb
logstash-input-s3-3.6.0 lib/logstash/inputs/s3/patch.rb
logstash-input-s3-sdk-3-4.0.0 lib/logstash/inputs/s3/patch.rb
logstash-input-s3-test-4.0.0 lib/logstash/inputs/s3/patch.rb
logstash-input-s3-3.5.0 lib/logstash/inputs/s3/patch.rb
logstash-input-s3-3.4.1 lib/logstash/inputs/s3/patch.rb
logstash-input-s3-3.4.0 lib/logstash/inputs/s3/patch.rb
logstash-input-s3-3.3.7 lib/logstash/inputs/s3/patch.rb
logstash-input-s3-3.3.6 lib/logstash/inputs/s3/patch.rb
logstash-input-s3-local-3.4.1 lib/logstash/inputs/s3l/patch.rb
logstash-input-s3-local-3.4.0 lib/logstash/inputs/s3l/patch.rb
logstash-input-s3-local-3.3.9 lib/logstash/inputs/s3l/patch.rb