diff options
Diffstat (limited to 'jni/ruby/test/rubygems/fix_openssl_warnings.rb')
-rw-r--r-- | jni/ruby/test/rubygems/fix_openssl_warnings.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/jni/ruby/test/rubygems/fix_openssl_warnings.rb b/jni/ruby/test/rubygems/fix_openssl_warnings.rb new file mode 100644 index 0000000..66d6cdf --- /dev/null +++ b/jni/ruby/test/rubygems/fix_openssl_warnings.rb @@ -0,0 +1,12 @@ +## +# HACK: this drives me BONKERS + +if defined? OpenSSL then + class OpenSSL::X509::ExtensionFactory + alias :old_create_ext :create_ext + def create_ext(*args) + @config ||= nil + old_create_ext(*args) + end + end +end if RUBY_VERSION < "1.9" |