rubygems-update 1.8.4 → 1.8.5

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

Potentially problematic release.


This version of rubygems-update might be problematic. Click here for more details.

@@ -1,4 +1,16 @@
1
- === 1.8.4 / 2011-05-25
1
+ === 1.8.5 / 2011-05-31
2
+
3
+ * 2 minor enhancement:
4
+
5
+ * The -u option to 'update local source cache' is official deprecated.
6
+ * Remove has_rdoc deprecations from Specification.
7
+
8
+ * 2 bug fixes:
9
+
10
+ * Handle bad specs more gracefully.
11
+ * Reset any Gem paths changed in the installer.
12
+
13
+ === 1.8.4 / 2011-05-25
2
14
 
3
15
  * 1 minor enhancement:
4
16
 
@@ -120,7 +120,7 @@ require "rubygems/deprecate"
120
120
  # -The RubyGems Team
121
121
 
122
122
  module Gem
123
- VERSION = '1.8.4'
123
+ VERSION = '1.8.5'
124
124
 
125
125
  ##
126
126
  # Raised when RubyGems is unable to load or activate a gem. Contains the
@@ -141,8 +141,11 @@ class Gem::Installer
141
141
  # specifications/<gem-version>.gemspec #=> the Gem::Specification
142
142
 
143
143
  def install
144
+ current_home = Gem.dir
145
+ current_path = Gem.paths.path
146
+
144
147
  verify_gem_home(options[:unpack])
145
- Gem.use_paths gem_home, Gem.paths.path # HACK: shouldn't need Gem.paths.path
148
+ Gem.use_paths gem_home, current_path # HACK: shouldn't need Gem.paths.path
146
149
 
147
150
  # If we're forcing the install then disable security unless the security
148
151
  # policy says that we only install signed gems.
@@ -210,6 +213,11 @@ class Gem::Installer
210
213
  return spec
211
214
  rescue Zlib::GzipFile::Error
212
215
  raise Gem::InstallError, "gzip error installing #{gem}"
216
+ ensure
217
+ # conditional since we might be here because we're erroring out early.
218
+ if current_path
219
+ Gem.use_paths current_home, current_path
220
+ end
213
221
  end
214
222
 
215
223
  ##
@@ -117,7 +117,7 @@ module Gem::LocalRemoteOptions
117
117
  # Add the --update-sources option
118
118
 
119
119
  def add_update_sources_option
120
- add_option(:"Local/Remote", '-u', '--[no-]update-sources',
120
+ add_option(:Deprecated, '-u', '--[no-]update-sources',
121
121
  'Update local source cache') do |value, options|
122
122
  Gem.configuration.update_sources = value
123
123
  end
@@ -262,11 +262,18 @@ class Gem::Specification
262
262
 
263
263
  def self._all # :nodoc:
264
264
  unless defined?(@@all) && @@all then
265
- @@all = self.dirs.reverse.map { |dir|
266
- Dir[File.join(dir, "*.gemspec")].map { |path|
267
- Gem::Specification.load path
265
+ specs = []
266
+
267
+ self.dirs.reverse_each { |dir|
268
+ Dir[File.join(dir, "*.gemspec")].each { |path|
269
+ spec = Gem::Specification.load path.untaint
270
+ # #load returns nil if the spec is bad, so we just ignore
271
+ # it at this stage
272
+ specs << spec if spec
268
273
  }
269
- }.flatten
274
+ }
275
+
276
+ @@all = specs
270
277
  _resort!
271
278
  end
272
279
  @@all
@@ -2098,15 +2105,15 @@ class Gem::Specification
2098
2105
 
2099
2106
  deprecate :test_suite_file, :test_file, 2011, 10
2100
2107
  deprecate :test_suite_file=, :test_file=, 2011, 10
2101
- deprecate :has_rdoc, :none, 2011, 10
2102
- deprecate :has_rdoc?, :none, 2011, 10
2103
- deprecate :has_rdoc=, :none, 2011, 10
2104
2108
  deprecate :loaded, :activated, 2011, 10
2105
2109
  deprecate :loaded?, :activated?, 2011, 10
2106
2110
  deprecate :loaded=, :activated=, 2011, 10
2107
2111
  deprecate :installation_path, :base_dir, 2011, 10
2108
2112
  deprecate :cache_gem, :cache_file, 2011, 10
2109
2113
  # TODO:
2114
+ # deprecate :has_rdoc, :none, 2011, 10
2115
+ # deprecate :has_rdoc?, :none, 2011, 10
2116
+ # deprecate :has_rdoc=, :none, 2011, 10
2110
2117
  # deprecate :default_executable, :none, 2011, 10
2111
2118
  # deprecate :default_executable=, :none, 2011, 10
2112
2119
  # deprecate :spec_name, :spec_file, 2011, 10
@@ -683,6 +683,8 @@ load Gem.bin_path('a', 'executable', version)
683
683
 
684
684
  @installer = Gem::Installer.new @gem, :install_dir => gemhome2
685
685
 
686
+ gem_home = Gem.dir
687
+
686
688
  build_rake_in do
687
689
  use_ui @ui do
688
690
  @installer.install
@@ -690,6 +692,7 @@ load Gem.bin_path('a', 'executable', version)
690
692
  end
691
693
 
692
694
  assert File.exist?(File.join(gemhome2, 'gems', @spec.full_name))
695
+ assert_equal gem_home, Gem.dir
693
696
  end
694
697
 
695
698
  def test_install_force
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubygems-update
3
3
  version: !ruby/object:Gem::Version
4
- hash: 63
4
+ hash: 61
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 8
9
- - 4
10
- version: 1.8.4
9
+ - 5
10
+ version: 1.8.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jim Weirich
@@ -15,30 +15,10 @@ authors:
15
15
  - Eric Hodel
16
16
  autorequire:
17
17
  bindir: bin
18
- cert_chain:
19
- - |
20
- -----BEGIN CERTIFICATE-----
21
- MIIDNjCCAh6gAwIBAgIBADANBgkqhkiG9w0BAQUFADBBMRAwDgYDVQQDDAdkcmJy
22
- YWluMRgwFgYKCZImiZPyLGQBGRYIc2VnbWVudDcxEzARBgoJkiaJk/IsZAEZFgNu
23
- ZXQwHhcNMDcxMjIxMDIwNDE0WhcNMDgxMjIwMDIwNDE0WjBBMRAwDgYDVQQDDAdk
24
- cmJyYWluMRgwFgYKCZImiZPyLGQBGRYIc2VnbWVudDcxEzARBgoJkiaJk/IsZAEZ
25
- FgNuZXQwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCbbgLrGLGIDE76
26
- LV/cvxdEzCuYuS3oG9PrSZnuDweySUfdp/so0cDq+j8bqy6OzZSw07gdjwFMSd6J
27
- U5ddZCVywn5nnAQ+Ui7jMW54CYt5/H6f2US6U0hQOjJR6cpfiymgxGdfyTiVcvTm
28
- Gj/okWrQl0NjYOYBpDi+9PPmaH2RmLJu0dB/NylsDnW5j6yN1BEI8MfJRR+HRKZY
29
- mUtgzBwF1V4KIZQ8EuL6I/nHVu07i6IkrpAgxpXUfdJQJi0oZAqXurAV3yTxkFwd
30
- g62YrrW26mDe+pZBzR6bpLE+PmXCzz7UxUq3AE0gPHbiMXie3EFE0oxnsU3lIduh
31
- sCANiQ8BAgMBAAGjOTA3MAkGA1UdEwQCMAAwCwYDVR0PBAQDAgSwMB0GA1UdDgQW
32
- BBS5k4Z75VSpdM0AclG2UvzFA/VW5DANBgkqhkiG9w0BAQUFAAOCAQEAHagT4lfX
33
- kP/hDaiwGct7XPuVGbrOsKRVD59FF5kETBxEc9UQ1clKWngf8JoVuEoKD774dW19
34
- bU0GOVWO+J6FMmT/Cp7nuFJ79egMf/gy4gfUfQMuvfcr6DvZUPIs9P/TlK59iMYF
35
- DIOQ3DxdF3rMzztNUCizN4taVscEsjCcgW6WkUJnGdqlu3OHWpQxZBJkBTjPCoc6
36
- UW6on70SFPmAy/5Cq0OJNGEWBfgD9q7rrs/X8GGwUWqXb85RXnUVi/P8Up75E0ag
37
- 14jEc90kN+C7oI/AGCBN0j6JnEtYIEJZibjjDJTSMWlUKKkj30kq7hlUC2CepJ4v
38
- x52qPcexcYZR7w==
39
- -----END CERTIFICATE-----
18
+ cert_chain: []
40
19
 
41
- date: 2011-05-26 00:00:00 Z
20
+ date: 2011-05-31 00:00:00 -07:00
21
+ default_executable:
42
22
  dependencies:
43
23
  - !ruby/object:Gem::Dependency
44
24
  name: minitest
@@ -51,9 +31,9 @@ dependencies:
51
31
  hash: 11
52
32
  segments:
53
33
  - 2
34
+ - 1
54
35
  - 0
55
- - 2
56
- version: 2.0.2
36
+ version: 2.1.0
57
37
  type: :development
58
38
  version_requirements: *id001
59
39
  - !ruby/object:Gem::Dependency
@@ -399,6 +379,7 @@ files:
399
379
  - util/CL2notes
400
380
  - util/gem_prelude.rb
401
381
  - .gemtest
382
+ has_rdoc: true
402
383
  homepage: http://rubygems.org
403
384
  licenses: []
404
385
 
@@ -406,7 +387,7 @@ post_install_message:
406
387
  rdoc_options:
407
388
  - --main
408
389
  - README.rdoc
409
- - --title=RubyGems 1.8.4 Documentation
390
+ - --title=RubyGems 1.8.5 Documentation
410
391
  require_paths:
411
392
  - hide_lib_for_update
412
393
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -432,7 +413,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
432
413
  requirements: []
433
414
 
434
415
  rubyforge_project: rubygems
435
- rubygems_version: 1.8.2
416
+ rubygems_version: 1.4.2
436
417
  signing_key:
437
418
  specification_version: 3
438
419
  summary: RubyGems is a package management framework for Ruby
data.tar.gz.sig DELETED
@@ -1,2 +0,0 @@
1
- /��u�Ġ$��;�����2�ۼ��Мr.Qg����{��K^�\2�S���S�R`�V�<�Ŗ�GQ �����P�[8-�_����i@�J�̐z��w!J�9(�!��� �b�p���� �$*kЩ;m���;�#�Ԅ�P�=�V�w�kS��s���`��`K�!�M��Yۗ��>cAG)#5��|PG�k
2
- !!~��Ӆ��3����ӌ�9s�,[�;�sЮ9Y�v
metadata.gz.sig DELETED
Binary file