summaryrefslogtreecommitdiff
path: root/test/rubygems/fix_openssl_warnings.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/rubygems/fix_openssl_warnings.rb')
-rw-r--r--test/rubygems/fix_openssl_warnings.rb18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/rubygems/fix_openssl_warnings.rb b/test/rubygems/fix_openssl_warnings.rb
new file mode 100644
index 0000000000..313c63628f
--- /dev/null
+++ b/test/rubygems/fix_openssl_warnings.rb
@@ -0,0 +1,18 @@
+######################################################################
+# This file is imported from the rubygems project.
+# DO NOT make modifications in this repo. They _will_ be reverted!
+# File a patch instead and assign it to Ryan Davis or Eric Hodel.
+######################################################################
+
+##
+# 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"