diff options
author | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-08-05 20:18:14 +0000 |
---|---|---|
committer | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-08-05 20:18:14 +0000 |
commit | e8ad0a3e1e82953c5408838ca34e9f87cb029cda (patch) | |
tree | 8acb01f6a8fd92c243e74d9d96cfeeba43dd3341 /lib/rubygems.rb | |
parent | 1b0ff275e0ec9de339daf39dafa65e5170637e19 (diff) |
* lib/rdoc: Update to 3.9.1. Fixes === lines in verbatim sections.
Fixes :nodoc: on class aliases. Fixes :stopdoc: creating references
to Object. Fixes spacing when class comments are merged in ri.
Fixes `ri []` crash. Fixes bug report URL when rdoc crashes. Adds
:doc: and :nodoc: to allow hiding of implementation details in ruby.
Makes `rdoc` and `ri` gem-aware.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@32865 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. " \ |