Sha256: e64d2a63573a62396019b65967fb4608ec26b3c0ef37224e8449c28db60dd631

Contents?: true

Size: 647 Bytes

Versions: 37

Compression:

Stored size: 647 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

37 entries across 37 versions & 2 rubygems

Version Path
logstash-output-s3-zst-1.1.0 lib/logstash/outputs/s3/patch.rb
logstash-output-s3-zst-1.0.0 lib/logstash/outputs/s3/patch.rb
logstash-output-s3-4.4.1 lib/logstash/outputs/s3/patch.rb
logstash-output-s3-4.4.0 lib/logstash/outputs/s3/patch.rb
logstash-output-s3-4.3.7 lib/logstash/outputs/s3/patch.rb
logstash-output-s3-4.3.6 lib/logstash/outputs/s3/patch.rb
logstash-output-s3-4.3.5 lib/logstash/outputs/s3/patch.rb
logstash-output-s3-4.3.4 lib/logstash/outputs/s3/patch.rb
logstash-output-s3-4.3.3 lib/logstash/outputs/s3/patch.rb
logstash-output-s3-4.3.2 lib/logstash/outputs/s3/patch.rb
logstash-output-s3-4.3.1 lib/logstash/outputs/s3/patch.rb
logstash-output-s3-4.3.0 lib/logstash/outputs/s3/patch.rb
logstash-output-s3-4.2.0 lib/logstash/outputs/s3/patch.rb
logstash-output-s3-4.1.10 lib/logstash/outputs/s3/patch.rb
logstash-output-s3-4.1.9 lib/logstash/outputs/s3/patch.rb
logstash-output-s3-4.1.8 lib/logstash/outputs/s3/patch.rb
logstash-output-s3-4.1.7 lib/logstash/outputs/s3/patch.rb
logstash-output-s3-4.1.6 lib/logstash/outputs/s3/patch.rb
logstash-output-s3-4.1.5 lib/logstash/outputs/s3/patch.rb
logstash-output-s3-4.1.4 lib/logstash/outputs/s3/patch.rb