rubygems_ssl-client-certs 0.0.3.pre.alpha.pre.58 → 0.0.3.pre.alpha.pre.59
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 +6 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NDYwOWMzZWUyMDIyNDZhNTgzYzNkZmRkNjZmYWY3MDcxOTlkMGUzOQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YzdmY2Q2YzdmMGRlMGIzMjZjNTIzNjUxYjM0Njg0ZTgwNjAwMGU4Nw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZWRlNGQwNzJhZjRkMDVmMmVmNTY1YmEyOTdjMTJiZjA1ZTgxODFmYjRmNGQx
|
10
|
+
YzQ0M2RhYTk0MmE0M2MyNjFlZTM4ZTQ2NDBjMDhlZTE5MGRhZmE2NjU3Yzc1
|
11
|
+
M2U4ZmY5Mzk5MDg3ODk1OTNiZGExNWI5NWNlNTJiMzFlZTAzMTI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MThjZjdmNDZhMWI1YzZlYjM1NTliYjE4ODU4Yjk0YmM1YmIxN2NhNmJiM2Ez
|
14
|
+
NzdjMzViNzQ2ODg1NzNkZTc5NmQ4YmJkNjFmZmZhODViZWFhZGMxYmFjODNl
|
15
|
+
YWU1MWNkNWIzYWEyZDI3MTZlZmEzNzU0MTVjMWJjMGQ5NWNiMGI=
|
data/lib/rubygems_plugin.rb
CHANGED
@@ -41,6 +41,7 @@ if Gem::Version.new(Gem::VERSION) < Gem::Version.new('2.1.0') then
|
|
41
41
|
|
42
42
|
def connection_for(uri)
|
43
43
|
net_http_args = [uri.host, uri.port]
|
44
|
+
$stdout.puts "running patched connection_for"
|
44
45
|
|
45
46
|
if @proxy_uri and not no_proxy?(uri.host) then
|
46
47
|
net_http_args += [
|
@@ -75,18 +76,23 @@ if Gem::Version.new(Gem::VERSION) < Gem::Version.new('2.1.0') then
|
|
75
76
|
store = OpenSSL::X509::Store.new
|
76
77
|
|
77
78
|
if Gem.configuration.ssl_client_cert
|
79
|
+
$stdout.puts "configuring client ssl cert"
|
78
80
|
pem = File.read(Gem.configuration.ssl_client_cert)
|
79
81
|
connection.cert = OpenSSL::X509::Certificate.new(pem)
|
80
82
|
connection.key = OpenSSL::PKey::RSA.new(pem)
|
83
|
+
else
|
84
|
+
$stdout.puts "no client cert given"
|
81
85
|
end
|
82
86
|
|
83
87
|
if Gem.configuration.ssl_ca_cert
|
88
|
+
$stdout.puts "configuring ca certs"
|
84
89
|
if File.directory? Gem.configuration.ssl_ca_cert
|
85
90
|
store.add_path Gem.configuration.ssl_ca_cert
|
86
91
|
else
|
87
92
|
store.add_file Gem.configuration.ssl_ca_cert
|
88
93
|
end
|
89
94
|
else
|
95
|
+
$stdout.puts "using default ca certs"
|
90
96
|
store.set_default_paths
|
91
97
|
add_rubygems_trusted_certs(store)
|
92
98
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubygems_ssl-client-certs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.3.pre.alpha.pre.
|
4
|
+
version: 0.0.3.pre.alpha.pre.59
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aaron Moses
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-01-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -108,7 +108,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
108
108
|
version: 1.3.1
|
109
109
|
requirements: []
|
110
110
|
rubyforge_project:
|
111
|
-
rubygems_version: 2.1
|
111
|
+
rubygems_version: 2.2.1
|
112
112
|
signing_key:
|
113
113
|
specification_version: 4
|
114
114
|
summary: Fix ssl client cert behavior in rubygems
|