rubygems_ssl-client-certs 0.0.3.pre.alpha.pre.62 → 0.0.3.pre.alpha.pre.63
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 +12 -11
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MjI5OGQ5MmNlYzdiNWQ4ZTU0YTgxNWE5NWJlM2NmNWUzMGYwMzA5YQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
OWU0OTQ2ZjNhM2ZlMGJkZDBiNGQzNDQ5ZmFjZThhMTE4Y2MyNmY2Yg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MjgyY2ZjYmQyMmM5OTIzZDJjZjFkMmRlOTg1ZjQ1MzU1YTNmMjM0ZjM5MDY5
|
10
|
+
YWIwNzdjNTQ1OWFiMTE3NzhhM2ZhMTljNjQzYmJjNTFiNmYzMGY3YjMzYmM5
|
11
|
+
NmVlOGYyNmIyZGQ2N2RmODNlZTQyZDM4NTJjYjc2YTI3YTJmNWI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YjI0YzIyNDQ3ZDAyMWIxMTQxZmI5ZmI2N2QyYmRlYTg2YzRjYzQ1MTE5MzRl
|
14
|
+
ZTc4ODg1MjE2YzhmMDc1ZGI1ZmI3NDU0NjFhZDQ3ZDUyYzQ4NjFmZWNlMWJl
|
15
|
+
MWQ1YmEyNmZlMjNhODZjZDMwYmNhY2VkZWU5ZDY1YTc2NmJjMGI=
|
data/lib/rubygems_plugin.rb
CHANGED
@@ -41,6 +41,17 @@ if Gem::Version.new(Gem::VERSION) < Gem::Version.new('2.1.0') then
|
|
41
41
|
|
42
42
|
class Gem::RemoteFetcher
|
43
43
|
|
44
|
+
unless self.method_defined? no_proxy? then
|
45
|
+
def no_proxy? host
|
46
|
+
host = host.downcase
|
47
|
+
get_no_proxy_from_env.each do |pattern|
|
48
|
+
pattern = pattern.downcase
|
49
|
+
return true if host[-pattern.length, pattern.length ] == pattern
|
50
|
+
end
|
51
|
+
return false
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
44
55
|
def connection_for(uri)
|
45
56
|
net_http_args = [uri.host, uri.port]
|
46
57
|
puts "running patched connection_for"
|
@@ -117,16 +128,6 @@ if Gem::Version.new(Gem::VERSION) < Gem::Version.new('2.1.0') then
|
|
117
128
|
def https?(uri)
|
118
129
|
uri.scheme.downcase == 'https'
|
119
130
|
end
|
120
|
-
|
121
|
-
unless self.method_defined? no_proxy? then
|
122
|
-
def no_proxy? host
|
123
|
-
host = host.downcase
|
124
|
-
get_no_proxy_from_env.each do |pattern|
|
125
|
-
pattern = pattern.downcase
|
126
|
-
return true if host[-pattern.length, pattern.length ] == pattern
|
127
|
-
end
|
128
|
-
return false
|
129
|
-
end
|
130
|
-
end
|
131
|
+
|
131
132
|
end
|
132
133
|
end
|