bundler 1.7.5 → 1.7.6

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of bundler might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9e75dd119f8eabf59f5c68cef3dd64a4e2a9f4a0
4
- data.tar.gz: 8f006a5f437e186e4f1cfc5a986dd908c9936f19
3
+ metadata.gz: ced74899cff274adbec06e5601be3abc4c20c45c
4
+ data.tar.gz: aad3f866ca2062e2cacf71949d1d72bddc496a5d
5
5
  SHA512:
6
- metadata.gz: 242f567f89e891e7a2a349b9150d699ed7779cc66d3c5d35f43d859a8c927dcbe2ba45275c9bab6fb152d59eea92b4d5e2969e733557448ef5d58f609dae3b66
7
- data.tar.gz: 2528f7c7d1141b5932431712e54f2e2a71d5093aea94c4c7f86819c99ec6de1429c99f12b1140a93898fb9679fa47a89427edcc4381914db40d816251c018abf
6
+ metadata.gz: 5732a5f69f62662e3f47c51a2e31858a478202e6ed49eb4d5b2f1eefc6eddc452f6924a755efba2d61b348fd0ccd8d4b8a4c84ac5e6587475aaa7757c3e99d99
7
+ data.tar.gz: 5a1d0fbd3f34682bf03a340e40db6f8a547634b24a4c8c845921ef9bb6fabc222ab3d12f2606cf15b7b155c6fa3ede6e1e2abe3b2f0ac5e85bb3f916b93938e8
@@ -1,3 +1,9 @@
1
+ ## 1.7.6 (2014-11-11)
2
+
3
+ Bugfixes:
4
+
5
+ - CA certificates that work with all OpenSSLs (@luislavena, @indirect)
6
+
1
7
  ## 1.7.5 (2014-11-10)
2
8
 
3
9
  Bugfixes:
data/Rakefile CHANGED
@@ -129,7 +129,7 @@ begin
129
129
  end
130
130
 
131
131
  task "clone_rubygems_#{rg}" do
132
- unless File.directory?("tmp/rubygems")
132
+ unless File.directory?(RUBYGEMS_REPO)
133
133
  system("git clone https://github.com/rubygems/rubygems.git tmp/rubygems")
134
134
  end
135
135
  hash = nil
@@ -0,0 +1,25 @@
1
+ -----BEGIN C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xMdQWRkVHJ1c3QgRXh0ZXJuYWwgVFRQIE5ldHdvcmsx
18
+ IjAgBgNVBAMTGUFkZFRydXN0IEV4dGVybmFsIENBIFJvb3SCAQEwDQYJKoZIhvcN
19
+ AQEFBQADggEBALCb4IUlwtYj4g+WBpKdQZic2YR5gdkeWxQHIzZlj7DYd7usQWxH
20
+ YINRsPkyPef89iYTx4AWpb9a/IfPeHmJIZriTAcKhjW88t5RxNKWt9x+Tu5w/Rw5
21
+ 6wwCURQtjr0W4MHfRnXnJK3s9EK0hZNwEGe6nQY1ShjTK3rMUUKhemPR5ruhxSvC
22
+ Nr4TDea9Y355e6cJDUCrat2PisP29owaQgVR1EX1n6diIWgVIEM8med8vSTYqZEX
23
+ c4g/VhsxOBi0cQ+azcgOno4uG+GMmIPLHzHxREzGBHNJdmAPx/i9F4BrLunMTA5a
24
+ mnkPIAou1Z5jJh5VkpTYghdae9C8x49OhgQ=
25
+ -----END CERTIFICATE-----
@@ -1,4 +1,6 @@
1
1
  require 'fileutils'
2
+ require 'net/https'
3
+ require 'openssl'
2
4
 
3
5
  module Bundler
4
6
  module SSLCerts
@@ -9,9 +11,11 @@ module Bundler
9
11
  new(rubygems_path).update!
10
12
  end
11
13
 
12
- def initialize(rubygems_path)
13
- rubygems_certs = File.join(rubygems_path, 'lib/rubygems/ssl_certs')
14
- @rubygems_certs = certificates_in(rubygems_certs)
14
+ def initialize(rubygems_path = nil)
15
+ if rubygems_path
16
+ rubygems_cert_path = File.join(rubygems_path, 'lib/rubygems/ssl_certs')
17
+ @rubygems_certs = certificates_in(rubygems_cert_path)
18
+ end
15
19
 
16
20
  @bundler_cert_path = File.expand_path("..", __FILE__)
17
21
  @bundler_certs = certificates_in(bundler_cert_path)
@@ -32,12 +36,30 @@ module Bundler
32
36
  FileUtils.cp rubygems_certs, bundler_cert_path
33
37
  end
34
38
 
39
+ def connect_to(host)
40
+ http = Net::HTTP.new(host, 443)
41
+ http.use_ssl = true
42
+ http.verify_mode = OpenSSL::SSL::VERIFY_PEER
43
+ http.cert_store = store
44
+ http.head('/')
45
+ end
46
+
35
47
  private
36
48
 
37
49
  def certificates_in(path)
38
50
  Dir[File.join(path, "*.pem")].sort
39
51
  end
40
52
 
53
+ def store
54
+ @store ||= begin
55
+ store = OpenSSL::X509::Store.new
56
+ bundler_certs.each do |cert|
57
+ store.add_file cert
58
+ end
59
+ store
60
+ end
61
+ end
62
+
41
63
  end
42
64
  end
43
65
  end
@@ -2,5 +2,5 @@ module Bundler
2
2
  # We're doing this because we might write tests that deal
3
3
  # with other versions of bundler and we are unsure how to
4
4
  # handle this better.
5
- VERSION = "1.7.5" unless defined?(::Bundler::VERSION)
5
+ VERSION = "1.7.6" unless defined?(::Bundler::VERSION)
6
6
  end
@@ -1,10 +1,23 @@
1
1
  require 'spec_helper'
2
2
  require 'bundler/ssl_certs/certificate_manager'
3
3
 
4
- describe "SSL Certificates", :if => (ENV['RGV'] == "master") do
4
+ describe "SSL Certificates", :rubygems_master do
5
5
  it "are up to date with Rubygems" do
6
6
  rubygems = File.expand_path("../../../tmp/rubygems", __FILE__)
7
7
  manager = Bundler::SSLCerts::CertificateManager.new(rubygems)
8
8
  expect(manager).to be_up_to_date
9
9
  end
10
+
11
+ hosts = %w(
12
+ d2chzxaqi4y7f8.cloudfront.net
13
+ rubygems.org
14
+ s3.amazonaws.com
15
+ staging.rubygems.org
16
+ )
17
+
18
+ hosts.each do |host|
19
+ it "can securely connect to #{host}", :realworld do
20
+ Bundler::SSLCerts::CertificateManager.new.connect_to(host)
21
+ end
22
+ end
10
23
  end
@@ -76,6 +76,12 @@ RSpec.configure do |config|
76
76
  config.filter_run_excluding :rubygems => "2.2"
77
77
  end
78
78
 
79
+ if ENV['RGV'] == "master"
80
+ config.filter_run :rubygems_master => true
81
+ else
82
+ config.filter_run_excluding :rubygems_master => true
83
+ end
84
+
79
85
  config.filter_run :focused => true unless ENV['CI']
80
86
  config.run_all_when_everything_filtered = true
81
87
  config.alias_example_to :fit, :focused => true
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bundler
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.5
4
+ version: 1.7.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - André Arko
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2014-11-11 00:00:00.000000000 Z
14
+ date: 2014-11-12 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: mustache
@@ -183,9 +183,8 @@ files:
183
183
  - lib/bundler/source_list.rb
184
184
  - lib/bundler/spec_set.rb
185
185
  - lib/bundler/ssl_certs/.document
186
+ - lib/bundler/ssl_certs/AddTrustExternalCARoot-2048.pem
186
187
  - lib/bundler/ssl_certs/AddTrustExternalCARoot.pem
187
- - lib/bundler/ssl_certs/COMODORSACertificationAuthority.pem
188
- - lib/bundler/ssl_certs/COMODORSADomainValidationSecureServer.pem
189
188
  - lib/bundler/ssl_certs/Class3PublicPrimaryCertificationAuthority.pem
190
189
  - lib/bundler/ssl_certs/DigiCertHighAssuranceEVRootCA.pem
191
190
  - lib/bundler/ssl_certs/EntrustnetSecureServerCertificationAuthority.pem
@@ -1,35 +0,0 @@
1
- -----BEGIN CERTIFICATE-----
2
- MIIGCDCCA/CgAwIBAgIQKy5u6tl1NmwUim7bo3yMBzANBgkqhkiG9w0BAQwFADCB
3
- hTELMAkGA1UEBhMCR0IxGzAZBgNVBAgTEkdyZWF0ZXIgTWFuY2hlc3RlcjEQMA4G
4
- A1UEBxMHU2FsZm9yZDEaMBgGA1UEChMRQ09NT0RPIENBIExpbWl0ZWQxKzApBgNV
5
- BAMTIkNPTU9ETyBSU0EgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkwHhcNMTQwMjEy
6
- MDAwMDAwWhcNMjkwMjExMjM1OTU5WjCBkDELMAkGA1UEBhMCR0IxGzAZBgNVBAgT
7
- EkdyZWF0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