Sha256: cbc61c4e71a691852f57e1feba196b10a48c131dcc6c6cb026a4d9ed1a24ce74

Contents?: true

Size: 643 Bytes

Versions: 5

Compression:

Stored size: 643 Bytes

Contents

# Workaround for JRUBY-6970 (https://jira.codehaus.org/browse/JRUBY-6970)
# taken from the Logstash project, see:
# <https://github.com/logstash/logstash/blob/master/lib/logstash/JRUBY-6970-openssl.rb>
class OpenSSL::SSL::SSLContext
  alias_method :ca_path_JRUBY_6970=, :ca_path=
  alias_method :ca_file_JRUBY_6970=, :ca_file=

  def ca_file=(arg)
    if arg =~ /^jar:file:\//
      return ca_file_JRUBY_6970=(arg.gsub(/^jar:/, ""))
    end
    return ca_file_JRUBY_6970=(arg)
  end

  def ca_path=(arg)
    if arg =~ /^jar:file:\//
      return ca_path_JRUBY_6970=(arg.gsub(/^jar:/, ""))
    end
    return ca_path_JRUBY_6970=(arg)
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
lookout-jruby-1.3.1 lib/lookout/jruby/jruby-6970-openssl.rb
lookout-jruby-1.3.0 lib/lookout/jruby/jruby-6970-openssl.rb
lookout-jruby-1.2.4 lib/lookout/jruby/jruby-6970-openssl.rb
lookout-jruby-1.2.3 lib/lookout/jruby/jruby-6970-openssl.rb
lookout-jruby-1.2.1 lib/lookout/jruby/jruby-6970-openssl.rb