Sha256: ebb64d05360250a04dd305bedae8e396ca6eb2492340c0c818b5275cb851eefd
Contents?: true
Size: 666 Bytes
Versions: 13
Compression:
Stored size: 666 Bytes
Contents
# This patch was stolen from logstash-plugins/logstash-output-sqs#20. # # This patch is a workaround for a JRuby issue which has been fixed in JRuby # 9000, but not in JRuby 1.7. See https://github.com/jruby/jruby/issues/3645 # and https://github.com/jruby/jruby/issues/3920. This is necessary because the # `aws-sdk` is doing tricky name discovery to generate the correct error class. # # As per https://github.com/aws/aws-sdk-ruby/issues/1301#issuecomment-261115960, # this patch may be short-lived anyway. require 'aws-sdk' begin old_stderr = $stderr $stderr = StringIO.new module Aws const_set(:SQS, Aws::SQS) end ensure $stderr = old_stderr end
Version data entries
13 entries across 13 versions & 2 rubygems