diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-01-04 08:07:22 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-01-04 08:07:22 +0000 |
commit | 8af0e113f698ffb59e63f7bdc2f6c79a0cc94e8d (patch) | |
tree | 63b858e2377c62dc8037d0dfbe83c2422f4ba6f1 /instruby.rb | |
parent | a91ce21ec22cec9fbc4c3a05ae8f66d295e54109 (diff) | |
download | ruby-8af0e113f698ffb59e63f7bdc2f6c79a0cc94e8d.tar.gz ruby-8af0e113f698ffb59e63f7bdc2f6c79a0cc94e8d.tar.xz ruby-8af0e113f698ffb59e63f7bdc2f6c79a0cc94e8d.zip |
* lib/rubygems.rb (Gem.set_home, Gem.set_paths): should not create
directories stealthily. [ruby-core:20990]
* lib/rubygems.rb (Gem.find_home): expand_path deals with platform
dependent envirionments.
* lib/rdoc/ri/paths.rb (RDoc::HOMEDIR): ditto.
* instruby.rb (gem): creates gem directories at installation.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21312 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'instruby.rb')
-rwxr-xr-x | instruby.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/instruby.rb b/instruby.rb index 38ed40c52..ea9ef2a58 100755 --- a/instruby.rb +++ b/instruby.rb @@ -409,6 +409,13 @@ install?(:local, :comm, :man) do end end +install?(:local, :comm, :gem) do + puts "creating default gem directories" + + gpath = Gem.default_dir + makedirs Gem::DIRECTORIES.collect {|dir| File.join(gpath, dir)} +end + $install << :local << :ext if $install.empty? $install.each do |inst| if !(procs = $install_procs[inst]) || procs.empty? |