rubygems_ssl-client-certs 0.0.2.pre.alpha.pre.54 → 0.0.2.pre.alpha.pre.55
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/rubygems_plugin.rb +7 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MzU1MTZlNzFmYTA0NTZkYjY1NWM1ODQxOGU2ZjQ0OTUxNDA0NjRiMQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZWM3MTg0YzJhZTYyYmRmYWYyNGNhN2I4NjI4NjNiYzE1NGMzNWJlNA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MDg4NzA5NTU1ZGNkODI5YTc3ZjZlYTcyMGIwYjM2YTI4ZTg5MGFkMTdjODNh
|
10
|
+
MjgwZTU4ZjBmYjA5NmY0MDIyYzk5MThjY2I3MmY3YzE3YmQxMzFmZGNkY2I2
|
11
|
+
MmU4YjA0YWZjNDlhNzZjMTQxZTllY2RmYjg5ZGFiNzc1NmQyZTA=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YzEyMzUxM2YyNzUxM2JjZDQxMDViNjhmNzMxMjZiYzZlYTQxYzUyNGM0NTI3
|
14
|
+
OTIzNWMxYTY1NDI4NDE3NmNhODg3YWI4ZjI1MjcxNjJlOWM5ZjNmZDA5YzNi
|
15
|
+
MWI0MzJiZGVlYjkwNzYxMmU3YmRmZjEzOGYzODA0NDQ5OWE3MWQ=
|
data/lib/rubygems_plugin.rb
CHANGED
@@ -18,16 +18,14 @@ if Gem::Version.new(Gem::VERSION) < Gem::Version.new('2.1.0') then
|
|
18
18
|
$stderr.puts "aliasing new to __new__"
|
19
19
|
alias_method :__new__, :new
|
20
20
|
end
|
21
|
-
|
22
|
-
$stderr.puts "forcing a reload of the Gem configuration"
|
23
|
-
Gem.configuration = Gem::ConfigFile.new []
|
24
|
-
end
|
21
|
+
|
25
22
|
def new(*args)
|
26
23
|
$stderr.puts "instantiating new Gem::ConfigFile with patch"
|
27
24
|
config = __new__(*args)
|
28
25
|
config.set_ssl_vars
|
29
26
|
return config
|
30
27
|
end
|
28
|
+
|
31
29
|
end
|
32
30
|
|
33
31
|
def set_ssl_vars
|
@@ -39,6 +37,11 @@ if Gem::Version.new(Gem::VERSION) < Gem::Version.new('2.1.0') then
|
|
39
37
|
@ssl_client_cert = ENV['BUNDLE_SSL_CLIENT_CERT'] unless @ssl_client_cert
|
40
38
|
end
|
41
39
|
|
40
|
+
if Gem.instance_variable_get(:@configuration) then
|
41
|
+
$stderr.puts "forcing a reload of the Gem configuration"
|
42
|
+
Gem.configuration = nil
|
43
|
+
end
|
44
|
+
|
42
45
|
end
|
43
46
|
|
44
47
|
class Gem::RemoteFetcher
|