rubygems-update 2.0.13 → 2.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of rubygems-update might be problematic. Click here for more details.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/History.txt +14 -0
- data/Manifest.txt +1 -0
- data/lib/rubygems.rb +1 -1
- data/lib/rubygems/dependency_installer.rb +8 -0
- data/lib/rubygems/specification.rb +0 -3
- data/lib/rubygems/ssl_certs/DigiCertHighAssuranceEVRootCA.pem +23 -0
- data/test/rubygems/test_gem_dependency_installer.rb +23 -0
- data/test/rubygems/test_gem_remote_fetcher.rb +46 -44
- data/test/rubygems/test_gem_specification.rb +22 -0
- metadata +3 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1096cb12ca71512da937d865a766f1899852d2b6
|
4
|
+
data.tar.gz: 39b447eaa7e833a07111e3aa54ea063542446b32
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4d083f75c7301777b9208f523d35ab07c76226aeb24b2b06cce8531e8f573d282d752d5267999e2a89b7bf117fda542f12ae41446f7836ad5fd50181afafd331
|
7
|
+
data.tar.gz: a910ac61500aab7ceed9ea843a56d91d719325f79da37e22bf01e284d2e793b4588525fe294a5dcafcb2adfdd2c63af538d4c0c4b41fb3651ba6e12a5c4de881
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/History.txt
CHANGED
@@ -1,5 +1,17 @@
|
|
1
1
|
# coding: UTF-8
|
2
2
|
|
3
|
+
=== 2.0.14 / 2013-11-12
|
4
|
+
|
5
|
+
Bug fixes:
|
6
|
+
|
7
|
+
* Gem::Specification::remove_spec no longer checks for existence of the spec
|
8
|
+
to be removed. Issue #698 by Tiago Macedo.
|
9
|
+
* Restored wildcard handling when installing gems. Issue #697 by Chuck Remes.
|
10
|
+
* Added DigiCert High Assurance EV Root CA certificate for the cloudfront.net
|
11
|
+
certificate change.
|
12
|
+
* The Gem::RemoteFetcher tests now choose the test server port more reliably.
|
13
|
+
Pull Request #706 by akr.
|
14
|
+
|
3
15
|
=== 2.0.13 / 2013-10-24
|
4
16
|
|
5
17
|
Bug fixes:
|
@@ -10,6 +22,8 @@ Bug fixes:
|
|
10
22
|
#689 by Laurence Rowe
|
11
23
|
* Fix updating gems which have multiple platforms. Issue #693 by Ookami
|
12
24
|
Kenrou.
|
25
|
+
* The gem server now uses user-provided directories. Issue #696 by Marcelo
|
26
|
+
Alvim.
|
13
27
|
|
14
28
|
=== 2.0.12 / 2013-10-14
|
15
29
|
|
data/Manifest.txt
CHANGED
@@ -108,6 +108,7 @@ lib/rubygems/spec_fetcher.rb
|
|
108
108
|
lib/rubygems/specification.rb
|
109
109
|
lib/rubygems/ssl_certs/.document
|
110
110
|
lib/rubygems/ssl_certs/Class3PublicPrimaryCertificationAuthority.pem
|
111
|
+
lib/rubygems/ssl_certs/DigiCertHighAssuranceEVRootCA.pem
|
111
112
|
lib/rubygems/ssl_certs/EntrustnetSecureServerCertificationAuthority.pem
|
112
113
|
lib/rubygems/ssl_certs/GeoTrustGlobalCA.pem
|
113
114
|
lib/rubygems/syck_hack.rb
|
data/lib/rubygems.rb
CHANGED
@@ -278,6 +278,14 @@ class Gem::DependencyInstaller
|
|
278
278
|
if gem_name =~ /\.gem$/ and File.file? gem_name then
|
279
279
|
src = Gem::Source::SpecificFile.new(gem_name)
|
280
280
|
set.add src.spec, src
|
281
|
+
elsif gem_name =~ /\.gem$/ then
|
282
|
+
Dir[gem_name].each do |name|
|
283
|
+
begin
|
284
|
+
src = Gem::Source::SpecificFile.new name
|
285
|
+
set.add src.spec, src
|
286
|
+
rescue Gem::Package::FormatError
|
287
|
+
end
|
288
|
+
end
|
281
289
|
else
|
282
290
|
local = Gem::Source::Local.new
|
283
291
|
|
@@ -1027,9 +1027,6 @@ class Gem::Specification
|
|
1027
1027
|
# Removes +spec+ from the known specs.
|
1028
1028
|
|
1029
1029
|
def self.remove_spec spec
|
1030
|
-
# TODO: beat on the tests
|
1031
|
-
raise "wtf: #{spec.full_name} not in #{all_names.inspect}" unless
|
1032
|
-
_all.include? spec
|
1033
1030
|
_all.delete spec
|
1034
1031
|
end
|
1035
1032
|
|
@@ -0,0 +1,23 @@
|
|
1
|
+
-----BEGIN CERTIFICATE-----
|
2
|
+
MIIDxTCCAq2gAwIBAgIQAqxcJmoLQJuPC3nyrkYldzANBgkqhkiG9w0BAQUFADBs
|
3
|
+
MQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3
|
4
|
+
d3cuZGlnaWNlcnQuY29tMSswKQYDVQQDEyJEaWdpQ2VydCBIaWdoIEFzc3VyYW5j
|
5
|
+
ZSBFViBSb290IENBMB4XDTA2MTExMDAwMDAwMFoXDTMxMTExMDAwMDAwMFowbDEL
|
6
|
+
MAkGA1UEBhMCVVMxFTATBgNVBAoTDERpZ2lDZXJ0IEluYzEZMBcGA1UECxMQd3d3
|
7
|
+
LmRpZ2ljZXJ0LmNvbTErMCkGA1UEAxMiRGlnaUNlcnQgSGlnaCBBc3N1cmFuY2Ug
|
8
|
+
RVYgUm9vdCBDQTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMbM5XPm
|
9
|
+
+9S75S0tMqbf5YE/yc0lSbZxKsPVlDRnogocsF9ppkCxxLeyj9CYpKlBWTrT3JTW
|
10
|
+
PNt0OKRKzE0lgvdKpVMSOO7zSW1xkX5jtqumX8OkhPhPYlG++MXs2ziS4wblCJEM
|
11
|
+
xChBVfvLWokVfnHoNb9Ncgk9vjo4UFt3MRuNs8ckRZqnrG0AFFoEt7oT61EKmEFB
|
12
|
+
Ik5lYYeBQVCmeVyJ3hlKV9Uu5l0cUyx+mM0aBhakaHPQNAQTXKFx01p8VdteZOE3
|
13
|
+
hzBWBOURtCmAEvF5OYiiAhF8J2a3iLd48soKqDirCmTCv2ZdlYTBoSUeh10aUAsg
|
14
|
+
EsxBu24LUTi4S8sCAwEAAaNjMGEwDgYDVR0PAQH/BAQDAgGGMA8GA1UdEwEB/wQF
|
15
|
+
MAMBAf8wHQYDVR0OBBYEFLE+w2kD+L9HAdSYJhoIAu9jZCvDMB8GA1UdIwQYMBaA
|
16
|
+
FLE+w2kD+L9HAdSYJhoIAu9jZCvDMA0GCSqGSIb3DQEBBQUAA4IBAQAcGgaX3Nec
|
17
|
+
nzyIZgYIVyHbIUf4KmeqvxgydkAQV8GK83rZEWWONfqe/EW1ntlMMUu4kehDLI6z
|
18
|
+
eM7b41N5cdblIZQB2lWHmiRk9opmzN6cN82oNLFpmyPInngiK3BD41VHMWEZ71jF
|
19
|
+
hS9OMPagMRYjyOfiZRYzy78aG6A9+MpeizGLYAiJLQwGXFK3xPkKmNEVX58Svnw2
|
20
|
+
Yzi9RKR/5CYrCsSXaQ3pjOLAEFe4yHYSkVXySGnYvCoCWw9E1CAx2/S6cCZdkGCe
|
21
|
+
vEsXCS+0yx5DaMkHJ8HSXPfqIbloEpw8nL+e/IBcm2PN7EeqJSdnoDfzAIJ9VNep
|
22
|
+
+OkuE6N36B9K
|
23
|
+
-----END CERTIFICATE-----
|
@@ -854,6 +854,29 @@ class TestGemDependencyInstaller < Gem::TestCase
|
|
854
854
|
assert_equal Gem::Source.new(@gem_repo), s.source
|
855
855
|
end
|
856
856
|
|
857
|
+
def test_find_spec_by_name_and_version_wildcard
|
858
|
+
util_gem 'a', 1
|
859
|
+
FileUtils.mv 'gems/a-1.gem', @tempdir
|
860
|
+
|
861
|
+
FileUtils.touch 'rdoc.gem'
|
862
|
+
|
863
|
+
inst = Gem::DependencyInstaller.new
|
864
|
+
|
865
|
+
available = inst.find_spec_by_name_and_version('*.gem')
|
866
|
+
|
867
|
+
assert_equal %w[a-1], available.all_specs.map { |spec| spec.full_name }
|
868
|
+
end
|
869
|
+
|
870
|
+
def test_find_spec_by_name_and_version_wildcard_bad_gem
|
871
|
+
FileUtils.touch 'rdoc.gem'
|
872
|
+
|
873
|
+
inst = Gem::DependencyInstaller.new
|
874
|
+
|
875
|
+
assert_raises Gem::Package::FormatError do
|
876
|
+
inst.find_spec_by_name_and_version '*.gem'
|
877
|
+
end
|
878
|
+
end
|
879
|
+
|
857
880
|
def test_find_spec_by_name_and_version_bad_gem
|
858
881
|
FileUtils.touch 'rdoc.gem'
|
859
882
|
|
@@ -69,12 +69,6 @@ gems:
|
|
69
69
|
|
70
70
|
PROXY_DATA = SERVER_DATA.gsub(/0.4.11/, '0.4.2')
|
71
71
|
|
72
|
-
# don't let 1.8 and 1.9 autotest collide
|
73
|
-
RUBY_VERSION =~ /(\d+)\.(\d+)\.(\d+)/
|
74
|
-
# don't let parallel runners collide
|
75
|
-
PROXY_PORT = process_based_port + 100 + $1.to_i * 100 + $2.to_i * 10 + $3.to_i
|
76
|
-
SERVER_PORT = process_based_port + 200 + $1.to_i * 100 + $2.to_i * 10 + $3.to_i
|
77
|
-
|
78
72
|
DIR = File.expand_path(File.dirname(__FILE__))
|
79
73
|
|
80
74
|
def setup
|
@@ -87,8 +81,8 @@ gems:
|
|
87
81
|
self.class.enable_yaml = true
|
88
82
|
self.class.enable_zip = false
|
89
83
|
|
90
|
-
base_server_uri = "http://localhost:#{
|
91
|
-
@proxy_uri = "http://localhost:#{
|
84
|
+
base_server_uri = "http://localhost:#{self.class.normal_server_port}"
|
85
|
+
@proxy_uri = "http://localhost:#{self.class.proxy_server_port}"
|
92
86
|
|
93
87
|
@server_uri = base_server_uri + "/yaml"
|
94
88
|
@server_z_uri = base_server_uri + "/yaml.Z"
|
@@ -925,12 +919,20 @@ gems:
|
|
925
919
|
attr_accessor :enable_zip, :enable_yaml
|
926
920
|
|
927
921
|
def start_servers
|
928
|
-
@normal_server ||= start_server(
|
929
|
-
@proxy_server ||= start_server(
|
922
|
+
@normal_server ||= start_server(SERVER_DATA)
|
923
|
+
@proxy_server ||= start_server(PROXY_DATA)
|
930
924
|
@enable_yaml = true
|
931
925
|
@enable_zip = false
|
932
926
|
end
|
933
927
|
|
928
|
+
def normal_server_port
|
929
|
+
@normal_server[:server].config[:Port]
|
930
|
+
end
|
931
|
+
|
932
|
+
def proxy_server_port
|
933
|
+
@proxy_server[:server].config[:Port]
|
934
|
+
end
|
935
|
+
|
934
936
|
DIR = File.expand_path(File.dirname(__FILE__))
|
935
937
|
DH_PARAM = OpenSSL::PKey::DH.new(128)
|
936
938
|
|
@@ -976,45 +978,45 @@ gems:
|
|
976
978
|
|
977
979
|
private
|
978
980
|
|
979
|
-
def start_server(
|
980
|
-
|
981
|
+
def start_server(data)
|
982
|
+
null_logger = NilLog.new
|
983
|
+
s = WEBrick::HTTPServer.new(
|
984
|
+
:Port => 0,
|
985
|
+
:DocumentRoot => nil,
|
986
|
+
:Logger => null_logger,
|
987
|
+
:AccessLog => null_logger
|
988
|
+
)
|
989
|
+
s.mount_proc("/kill") { |req, res| s.shutdown }
|
990
|
+
s.mount_proc("/yaml") { |req, res|
|
991
|
+
if @enable_yaml
|
992
|
+
res.body = data
|
993
|
+
res['Content-Type'] = 'text/plain'
|
994
|
+
res['content-length'] = data.size
|
995
|
+
else
|
996
|
+
res.status = "404"
|
997
|
+
res.body = "<h1>NOT FOUND</h1>"
|
998
|
+
res['Content-Type'] = 'text/html'
|
999
|
+
end
|
1000
|
+
}
|
1001
|
+
s.mount_proc("/yaml.Z") { |req, res|
|
1002
|
+
if @enable_zip
|
1003
|
+
res.body = Zlib::Deflate.deflate(data)
|
1004
|
+
res['Content-Type'] = 'text/plain'
|
1005
|
+
else
|
1006
|
+
res.status = "404"
|
1007
|
+
res.body = "<h1>NOT FOUND</h1>"
|
1008
|
+
res['Content-Type'] = 'text/html'
|
1009
|
+
end
|
1010
|
+
}
|
1011
|
+
th = Thread.new do
|
981
1012
|
begin
|
982
|
-
null_logger = NilLog.new
|
983
|
-
s = WEBrick::HTTPServer.new(
|
984
|
-
:Port => port,
|
985
|
-
:DocumentRoot => nil,
|
986
|
-
:Logger => null_logger,
|
987
|
-
:AccessLog => null_logger
|
988
|
-
)
|
989
|
-
s.mount_proc("/kill") { |req, res| s.shutdown }
|
990
|
-
s.mount_proc("/yaml") { |req, res|
|
991
|
-
if @enable_yaml
|
992
|
-
res.body = data
|
993
|
-
res['Content-Type'] = 'text/plain'
|
994
|
-
res['content-length'] = data.size
|
995
|
-
else
|
996
|
-
res.status = "404"
|
997
|
-
res.body = "<h1>NOT FOUND</h1>"
|
998
|
-
res['Content-Type'] = 'text/html'
|
999
|
-
end
|
1000
|
-
}
|
1001
|
-
s.mount_proc("/yaml.Z") { |req, res|
|
1002
|
-
if @enable_zip
|
1003
|
-
res.body = Zlib::Deflate.deflate(data)
|
1004
|
-
res['Content-Type'] = 'text/plain'
|
1005
|
-
else
|
1006
|
-
res.status = "404"
|
1007
|
-
res.body = "<h1>NOT FOUND</h1>"
|
1008
|
-
res['Content-Type'] = 'text/html'
|
1009
|
-
end
|
1010
|
-
}
|
1011
1013
|
s.start
|
1012
1014
|
rescue Exception => ex
|
1013
|
-
abort ex.message
|
1014
|
-
puts "ERROR during server thread: #{ex.message}"
|
1015
|
+
abort "ERROR during server thread: #{ex.message}"
|
1015
1016
|
end
|
1016
1017
|
end
|
1017
|
-
|
1018
|
+
th[:server] = s
|
1019
|
+
th
|
1018
1020
|
end
|
1019
1021
|
|
1020
1022
|
def cert(filename)
|
@@ -449,6 +449,28 @@ dependencies: []
|
|
449
449
|
assert_equal %w[a], Gem::Specification.outdated
|
450
450
|
end
|
451
451
|
|
452
|
+
def test_self_remove_spec
|
453
|
+
assert_includes Gem::Specification.all_names, 'a-1'
|
454
|
+
|
455
|
+
Gem::Specification.remove_spec @a1
|
456
|
+
|
457
|
+
refute_includes Gem::Specification.all_names, 'a-1'
|
458
|
+
end
|
459
|
+
|
460
|
+
def test_self_remove_spec_removed
|
461
|
+
open @a1.spec_file, 'w' do |io|
|
462
|
+
io.write @a1.to_ruby
|
463
|
+
end
|
464
|
+
|
465
|
+
Gem::Specification.reset
|
466
|
+
|
467
|
+
FileUtils.rm @a1.spec_file # bug #698
|
468
|
+
|
469
|
+
Gem::Specification.remove_spec @a1
|
470
|
+
|
471
|
+
refute_includes Gem::Specification.all_names, 'a-1'
|
472
|
+
end
|
473
|
+
|
452
474
|
DATA_PATH = File.expand_path "../data", __FILE__
|
453
475
|
|
454
476
|
def test_handles_private_null_type
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubygems-update
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jim Weirich
|
@@ -32,7 +32,7 @@ cert_chain:
|
|
32
32
|
KDyY1VIazVgoC8XvR4h/95/iScPiuglzA+DBG1hip1xScAtw05BrXyUNrc9CEMYU
|
33
33
|
wgF94UVoHRp6ywo8I7NP3HcwFQDFNEZPNGXsng==
|
34
34
|
-----END CERTIFICATE-----
|
35
|
-
date: 2013-
|
35
|
+
date: 2013-11-12 00:00:00.000000000 Z
|
36
36
|
dependencies:
|
37
37
|
- !ruby/object:Gem::Dependency
|
38
38
|
name: minitest
|
@@ -283,6 +283,7 @@ files:
|
|
283
283
|
- lib/rubygems/specification.rb
|
284
284
|
- lib/rubygems/ssl_certs/.document
|
285
285
|
- lib/rubygems/ssl_certs/Class3PublicPrimaryCertificationAuthority.pem
|
286
|
+
- lib/rubygems/ssl_certs/DigiCertHighAssuranceEVRootCA.pem
|
286
287
|
- lib/rubygems/ssl_certs/EntrustnetSecureServerCertificationAuthority.pem
|
287
288
|
- lib/rubygems/ssl_certs/GeoTrustGlobalCA.pem
|
288
289
|
- lib/rubygems/syck_hack.rb
|
metadata.gz.sig
CHANGED
Binary file
|