diff options
author | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-08-05 01:00:01 +0000 |
---|---|---|
committer | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-08-05 01:00:01 +0000 |
commit | 3434676e9e3c87c39fe4a8c411a041449efc7446 (patch) | |
tree | 1dabd9705561ef803bb9f62e6d8e3eaf0618a1cb /lib/rubygems.rb | |
parent | d24997cce12d27cec767ca7091a076df1b2319db (diff) | |
download | ruby-3434676e9e3c87c39fe4a8c411a041449efc7446.tar.gz |
* lib/rubygems: Import RubyGems 1.8.7:
Added missing require for `gem uninstall --format-executable`.
The correct name of the executable being uninstalled is now displayed
with --format-executable.
Fixed `gem unpack uninstalled_gem` default version picker.
RubyGems no longer claims a nonexistent gem can be uninstalled.
`gem which` no longer claims directories are requirable files.
`gem cleanup` continues cleaning up gems if one can't be uninstalled
due to permissions. Issue #82.
Gem repository directories are no longer created world-writable.
Patch by Sakuro OZAWA. [Ruby 1.9 - Bug #4930]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32852 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rubygems.rb')
-rw-r--r-- | lib/rubygems.rb | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/rubygems.rb b/lib/rubygems.rb index 9316a2569f..eda59ef725 100644 --- a/lib/rubygems.rb +++ b/lib/rubygems.rb @@ -118,7 +118,7 @@ require "rubygems/deprecate" # -The RubyGems Team module Gem - VERSION = '1.8.6.1' + VERSION = '1.8.7' ## # Raised when RubyGems is unable to load or activate a gem. Contains the @@ -444,11 +444,16 @@ module Gem def self.ensure_gem_subdirectories dir = Gem.dir require 'fileutils' + old_umask = File.umask + File.umask old_umask | 022 + %w[cache doc gems specifications].each do |name| subdir = File.join dir, name next if File.exist? subdir FileUtils.mkdir_p subdir rescue nil # in case of perms issues -- lame end + ensure + File.umask old_umask end ## @@ -1206,7 +1211,7 @@ end # Otherwise return a path to the share area as define by # "#{ConfigMap[:datadir]}/#{package_name}". -def RbConfig.datadir(package_name) +def RbConfig.datadir(package_name) # :nodoc: warn "#{Gem.location_of_caller.join ':'}:Warning: " \ "RbConfig.datadir is deprecated and will be removed on or after " \ "August 2011. " \ |