lib/rubygems_plugin.rb in rubygems_ssl-client-certs-0.0.2.pre.alpha.pre.51 vs lib/rubygems_plugin.rb in rubygems_ssl-client-certs-0.0.2.pre.alpha.pre.52
- old
+ new
@@ -2,18 +2,10 @@
$stderr.puts "rubygems ssl client certs plugin loading"
if Gem::Version.new(Gem::VERSION) < Gem::Version.new('2.1.0') then
- class Gem::Version
-
- def self.correct? version
- version.to_s =~ /\A\s*([0-9]+(?>\.[0-9a-zA-Z]+)*(-[0-9A-Za-z-]+(\.[0-9A-Za-z-]+)*)?)?\s*\z/
- end
-
- end
-
class Gem::ConfigFile
attr_reader :ssl_client_cert
attr_reader :ssl_verify_mode
@@ -21,9 +13,10 @@
attr_reader :ssl_ca_cert
$stderr.puts "loading Gem::ConfigFile monkey patch"
class << self
unless self.method_defined? :__new__
+ $stderr.puts "aliasing new to __new__"
alias_method :__new__, :new
end
def new(*args)
$stderr.puts "instantiating new Gem::ConfigFile with patch"
config = __new__(*args)