rubygems-update 2.1.10 → 2.1.11

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a483355c383b43daad6f12a1414d56c0f0b0a218
4
- data.tar.gz: 9c4cb27991e51eb7b74c205d4f985b156b15ab39
3
+ metadata.gz: 82168c6212d521d26ab68880159ab12e862140e9
4
+ data.tar.gz: f86bf4836cb35a7f9f88385ab703cb1d1ef53ce9
5
5
  SHA512:
6
- metadata.gz: fa556141e6b125c84ea8f2c678a56b3289c0d1006080f5e6a948b429466e651c395b5dceca429f759493d089bc61b7c2dec0fe304e913d95245c2f5b6545b21b
7
- data.tar.gz: d6066573d049e868179711a1fae2ba9c5aebcfe676167ab2dae4ba1aa364d9d3d6b186003b11536b3a65f4401ffbb86305b1c2e0d4e96a8142723b8592b2eda7
6
+ metadata.gz: 4da012899ccde3d603997351752f45c1174ee10cf193bbbe83b07c683f066fbcdb20755a4f25a74cfc4c01bc49a7cfaa01452ed2527b877a631c1be100472836
7
+ data.tar.gz: 8862f9304744e0ea67c7c6ab1c160f82c5cfc1ff2c2a77392d75147f975fecb7f0f8401d884b3a6342b7f3c713b489b5e8dcbc84893687b4b06d044ce2085f15
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -1,7 +1,21 @@
1
1
  # coding: UTF-8
2
2
 
3
+ === 2.1.11 / 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.1.10 / 2013-10-24
4
16
 
17
+ Bug fixes:
18
+
5
19
  * Use class check instead of :version method check when creating Gem::Version
6
20
  objects. Fixes #674 by jkanywhere.
7
21
  * Fail during `gem update` when an error occurs checking for newer versions.
@@ -208,6 +222,29 @@ Bug fixes:
208
222
  * Fixed credential creation for `gem push` when `--host` is not given. Pull
209
223
  request #622 by Arthur Nogueira Neves
210
224
 
225
+ === 2.0.14 / 2013-11-12
226
+
227
+ Bug fixes:
228
+
229
+ * Gem::Specification::remove_spec no longer checks for existence of the spec
230
+ to be removed. Issue #698 by Tiago Macedo.
231
+ * Restored wildcard handling when installing gems. Issue #697 by Chuck Remes.
232
+ * Added DigiCert High Assurance EV Root CA certificate for the cloudfront.net
233
+ certificate change.
234
+ * The Gem::RemoteFetcher tests now choose the test server port more reliably.
235
+ Pull Request #706 by akr.
236
+
237
+ === 2.0.13 / 2013-10-24
238
+
239
+ Bug fixes:
240
+
241
+ * Use class check instead of :version method check when creating Gem::Version
242
+ objects. Fixes #674 by jkanywhere.
243
+ * Allow installation of gems when the home directory does not exist. Issue
244
+ #689 by Laurence Rowe
245
+ * Fix updating gems which have multiple platforms. Issue #693 by Ookami
246
+ Kenrou.
247
+
211
248
  === 2.0.12 / 2013-10-14
212
249
 
213
250
  Bug fixes:
@@ -126,6 +126,7 @@ lib/rubygems/spec_fetcher.rb
126
126
  lib/rubygems/specification.rb
127
127
  lib/rubygems/ssl_certs/.document
128
128
  lib/rubygems/ssl_certs/Class3PublicPrimaryCertificationAuthority.pem
129
+ lib/rubygems/ssl_certs/DigiCertHighAssuranceEVRootCA.pem
129
130
  lib/rubygems/ssl_certs/EntrustnetSecureServerCertificationAuthority.pem
130
131
  lib/rubygems/ssl_certs/GeoTrustGlobalCA.pem
131
132
  lib/rubygems/stub_specification.rb
@@ -8,7 +8,7 @@
8
8
  require 'rbconfig'
9
9
 
10
10
  module Gem
11
- VERSION = '2.1.10'
11
+ VERSION = '2.1.11'
12
12
  end
13
13
 
14
14
  # Must be first since it unloads the prelude from 1.9.2
@@ -250,6 +250,14 @@ class Gem::DependencyInstaller
250
250
  if gem_name =~ /\.gem$/ and File.file? gem_name then
251
251
  src = Gem::Source::SpecificFile.new(gem_name)
252
252
  set.add src.spec, src
253
+ elsif gem_name =~ /\.gem$/ then
254
+ Dir[gem_name].each do |name|
255
+ begin
256
+ src = Gem::Source::SpecificFile.new name
257
+ set.add src.spec, src
258
+ rescue Gem::Package::FormatError
259
+ end
260
+ end
253
261
  else
254
262
  local = Gem::Source::Local.new
255
263
 
@@ -1083,9 +1083,6 @@ class Gem::Specification < Gem::BasicSpecification
1083
1083
  # Removes +spec+ from the known specs.
1084
1084
 
1085
1085
  def self.remove_spec spec
1086
- # TODO: beat on the tests
1087
- raise "wtf: #{spec.full_name} not in #{all_names.inspect}" unless
1088
- _all.include? spec
1089
1086
  _all.delete spec
1090
1087
  stubs.delete_if { |s| s.full_name == spec.full_name }
1091
1088
  end
@@ -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-----
@@ -880,6 +880,29 @@ class TestGemDependencyInstaller < Gem::TestCase
880
880
  assert_equal Gem::Source.new(@gem_repo), s.source
881
881
  end
882
882
 
883
+ def test_find_spec_by_name_and_version_wildcard
884
+ util_gem 'a', 1
885
+ FileUtils.mv 'gems/a-1.gem', @tempdir
886
+
887
+ FileUtils.touch 'rdoc.gem'
888
+
889
+ inst = Gem::DependencyInstaller.new
890
+
891
+ available = inst.find_spec_by_name_and_version('*.gem')
892
+
893
+ assert_equal %w[a-1], available.each_spec.map { |spec| spec.full_name }
894
+ end
895
+
896
+ def test_find_spec_by_name_and_version_wildcard_bad_gem
897
+ FileUtils.touch 'rdoc.gem'
898
+
899
+ inst = Gem::DependencyInstaller.new
900
+
901
+ assert_raises Gem::Package::FormatError do
902
+ inst.find_spec_by_name_and_version '*.gem'
903
+ end
904
+ end
905
+
883
906
  def test_find_spec_by_name_and_version_bad_gem
884
907
  FileUtils.touch 'rdoc.gem'
885
908
 
@@ -75,12 +75,6 @@ gems:
75
75
 
76
76
  PROXY_DATA = SERVER_DATA.gsub(/0.4.11/, '0.4.2')
77
77
 
78
- # don't let 1.8 and 1.9 autotest collide
79
- RUBY_VERSION =~ /(\d+)\.(\d+)\.(\d+)/
80
- # don't let parallel runners collide
81
- PROXY_PORT = process_based_port + 100 + $1.to_i * 100 + $2.to_i * 10 + $3.to_i
82
- SERVER_PORT = process_based_port + 200 + $1.to_i * 100 + $2.to_i * 10 + $3.to_i
83
-
84
78
  DIR = File.expand_path(File.dirname(__FILE__))
85
79
 
86
80
  def setup
@@ -93,8 +87,8 @@ gems:
93
87
  self.class.enable_yaml = true
94
88
  self.class.enable_zip = false
95
89
 
96
- base_server_uri = "http://localhost:#{SERVER_PORT}"
97
- @proxy_uri = "http://localhost:#{PROXY_PORT}"
90
+ base_server_uri = "http://localhost:#{self.class.normal_server_port}"
91
+ @proxy_uri = "http://localhost:#{self.class.proxy_server_port}"
98
92
 
99
93
  @server_uri = base_server_uri + "/yaml"
100
94
  @server_z_uri = base_server_uri + "/yaml.Z"
@@ -712,12 +706,20 @@ gems:
712
706
  attr_accessor :enable_zip, :enable_yaml
713
707
 
714
708
  def start_servers
715
- @normal_server ||= start_server(SERVER_PORT, SERVER_DATA)
716
- @proxy_server ||= start_server(PROXY_PORT, PROXY_DATA)
709
+ @normal_server ||= start_server(SERVER_DATA)
710
+ @proxy_server ||= start_server(PROXY_DATA)
717
711
  @enable_yaml = true
718
712
  @enable_zip = false
719
713
  end
720
714
 
715
+ def normal_server_port
716
+ @normal_server[:server].config[:Port]
717
+ end
718
+
719
+ def proxy_server_port
720
+ @proxy_server[:server].config[:Port]
721
+ end
722
+
721
723
  DIR = File.expand_path(File.dirname(__FILE__))
722
724
 
723
725
  def start_ssl_server(config = {})
@@ -763,45 +765,45 @@ gems:
763
765
 
764
766
  private
765
767
 
766
- def start_server(port, data)
767
- Thread.new do
768
+ def start_server(data)
769
+ null_logger = NilLog.new
770
+ s = WEBrick::HTTPServer.new(
771
+ :Port => 0,
772
+ :DocumentRoot => nil,
773
+ :Logger => null_logger,
774
+ :AccessLog => null_logger
775
+ )
776
+ s.mount_proc("/kill") { |req, res| s.shutdown }
777
+ s.mount_proc("/yaml") { |req, res|
778
+ if @enable_yaml
779
+ res.body = data
780
+ res['Content-Type'] = 'text/plain'
781
+ res['content-length'] = data.size
782
+ else
783
+ res.status = "404"
784
+ res.body = "<h1>NOT FOUND</h1>"
785
+ res['Content-Type'] = 'text/html'
786
+ end
787
+ }
788
+ s.mount_proc("/yaml.Z") { |req, res|
789
+ if @enable_zip
790
+ res.body = Zlib::Deflate.deflate(data)
791
+ res['Content-Type'] = 'text/plain'
792
+ else
793
+ res.status = "404"
794
+ res.body = "<h1>NOT FOUND</h1>"
795
+ res['Content-Type'] = 'text/html'
796
+ end
797
+ }
798
+ th = Thread.new do
768
799
  begin
769
- null_logger = NilLog.new
770
- s = WEBrick::HTTPServer.new(
771
- :Port => port,
772
- :DocumentRoot => nil,
773
- :Logger => null_logger,
774
- :AccessLog => null_logger
775
- )
776
- s.mount_proc("/kill") { |req, res| s.shutdown }
777
- s.mount_proc("/yaml") { |req, res|
778
- if @enable_yaml
779
- res.body = data
780
- res['Content-Type'] = 'text/plain'
781
- res['content-length'] = data.size
782
- else
783
- res.status = "404"
784
- res.body = "<h1>NOT FOUND</h1>"
785
- res['Content-Type'] = 'text/html'
786
- end
787
- }
788
- s.mount_proc("/yaml.Z") { |req, res|
789
- if @enable_zip
790
- res.body = Zlib::Deflate.deflate(data)
791
- res['Content-Type'] = 'text/plain'
792
- else
793
- res.status = "404"
794
- res.body = "<h1>NOT FOUND</h1>"
795
- res['Content-Type'] = 'text/html'
796
- end
797
- }
798
800
  s.start
799
801
  rescue Exception => ex
800
- abort ex.message
801
- puts "ERROR during server thread: #{ex.message}"
802
+ abort "ERROR during server thread: #{ex.message}"
802
803
  end
803
804
  end
804
- sleep 0.2 # Give the servers time to startup
805
+ th[:server] = s
806
+ th
805
807
  end
806
808
 
807
809
  def cert(filename)
@@ -855,6 +855,31 @@ dependencies: []
855
855
  Gem::Specification.outdated_and_latest_version.to_a
856
856
  end
857
857
 
858
+ def test_self_remove_spec
859
+ assert_includes Gem::Specification.all_names, 'a-1'
860
+ assert_includes Gem::Specification.stubs.map { |s| s.full_name }, 'a-1'
861
+
862
+ Gem::Specification.remove_spec @a1
863
+
864
+ refute_includes Gem::Specification.all_names, 'a-1'
865
+ refute_includes Gem::Specification.stubs.map { |s| s.full_name }, 'a-1'
866
+ end
867
+
868
+ def test_self_remove_spec_removed
869
+ open @a1.spec_file, 'w' do |io|
870
+ io.write @a1.to_ruby
871
+ end
872
+
873
+ Gem::Specification.reset
874
+
875
+ FileUtils.rm @a1.spec_file # bug #698
876
+
877
+ Gem::Specification.remove_spec @a1
878
+
879
+ refute_includes Gem::Specification.all_names, 'a-1'
880
+ refute_includes Gem::Specification.stubs.map { |s| s.full_name }, 'a-1'
881
+ end
882
+
858
883
  DATA_PATH = File.expand_path "../data", __FILE__
859
884
 
860
885
  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.1.10
4
+ version: 2.1.11
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-10-25 00:00:00.000000000 Z
35
+ date: 2013-11-12 00:00:00.000000000 Z
36
36
  dependencies:
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: minitest
@@ -301,6 +301,7 @@ files:
301
301
  - lib/rubygems/specification.rb
302
302
  - lib/rubygems/ssl_certs/.document
303
303
  - lib/rubygems/ssl_certs/Class3PublicPrimaryCertificationAuthority.pem
304
+ - lib/rubygems/ssl_certs/DigiCertHighAssuranceEVRootCA.pem
304
305
  - lib/rubygems/ssl_certs/EntrustnetSecureServerCertificationAuthority.pem
305
306
  - lib/rubygems/ssl_certs/GeoTrustGlobalCA.pem
306
307
  - lib/rubygems/stub_specification.rb
metadata.gz.sig CHANGED
Binary file