rubygems_ssl-client-certs 0.0.1.pre.alpha.pre.25 → 0.0.1.pre.alpha.pre.26
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 +4 -6
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MmM1NTUzZTUzMWZjYjViODE4NTUxZmEwYTZjZWEyNDkwZDIwOTNkZA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZWJiZTM2NzYxZTEzZWZiM2RjMTQ5MTdhMjE2YWMxOTc3N2Q1NWQwMw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
OGFhMDY0YjJmNDVjYWZiMzQ2MjQ1MTFkMmIzZWVlZGZkMzQxZGNkMWNlNTBl
|
10
|
+
OWFhZDIxOGNkOGZhYTQzMWI3Y2MyZDlhMjAyZmIyNmRjNmRmY2EzMmRkY2Y3
|
11
|
+
MGQ0Mzc2MTJlYzY0ZjE3N2U4ZTlkNWUxZWJiYzk2MGEzNzFkNTQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZDRkOTc4ZGFkMzFkMmRhZGNhOTVhMDc1OGYzMWUwYzI1ZWE3ODViODg5Y2U1
|
14
|
+
MzZiMmNjNDFmYTE0NTM2YjUwNGUwOGFhODk0YzVjZTYzNWViMDk2ZjJhN2Ri
|
15
|
+
MDczZDI5ZmZmMTIyZmRiODJiOTQwZjg2MTA4ODY4NzI5YTE4YmY=
|
data/lib/rubygems_plugin.rb
CHANGED
@@ -64,24 +64,22 @@ class Gem::RemoteFetcher
|
|
64
64
|
Gem.configuration.ssl_verify_mode || OpenSSL::SSL::VERIFY_PEER
|
65
65
|
store = OpenSSL::X509::Store.new
|
66
66
|
|
67
|
-
|
68
|
-
if ENV['BUNDLE_SSL_CLIENT_CERT']
|
67
|
+
if Gem.configuration.ssl_client_cert
|
69
68
|
pem = File.read(Gem.configuration.ssl_client_cert)
|
70
69
|
connection.cert = OpenSSL::X509::Certificate.new(pem)
|
71
70
|
connection.key = OpenSSL::PKey::RSA.new(pem)
|
72
71
|
else
|
73
|
-
puts "no Client Cert
|
72
|
+
puts "no Client Cert configured!"
|
74
73
|
end
|
75
74
|
|
76
|
-
|
77
|
-
if ENV['BUNDLE_SSL_CA_CERT']
|
75
|
+
if Gem.configuration.ssl_ca_cert
|
78
76
|
if File.directory? Gem.configuration.ssl_ca_cert
|
79
77
|
store.add_path Gem.configuration.ssl_ca_cert
|
80
78
|
else
|
81
79
|
store.add_file Gem.configuration.ssl_ca_cert
|
82
80
|
end
|
83
81
|
else
|
84
|
-
puts "no CA Cert
|
82
|
+
puts "no CA Cert configured!"
|
85
83
|
store.set_default_paths
|
86
84
|
add_rubygems_trusted_certs(store)
|
87
85
|
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.1.pre.alpha.pre.
|
4
|
+
version: 0.0.1.pre.alpha.pre.26
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aaron Moses
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-11-
|
11
|
+
date: 2013-11-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|