Permalink
Browse files

Add #gem_home, #bin_dir to (un)installer.

git-svn-id: http://rubygems.rubyforge.org/svn/trunk@1833 3d4018f9-ac1a-0410-99e9-8a154d859a19
  • Loading branch information...
1 parent 1a201ca commit 5a9e6dc5326ee74709535d1d004dd0c9eac3ad2c drbrain committed Jul 1, 2008
Showing with 32 additions and 1 deletion.
  1. +5 −0 ChangeLog
  2. +15 −0 lib/rubygems/installer.rb
  3. +12 −1 lib/rubygems/uninstaller.rb
View
@@ -1,4 +1,9 @@
# -*- coding: utf-8 -*-
+2008-07-01 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/installer.rb: Add #gem_home, #bin_dir for hooks.
+ * lib/rubygems/uninstaller.rb: Add #gem_home, #bin_dir for hooks.
+
2008-06-30 Eric Hodel <drbrain@segment7.net>
* test/test_ext_configure_builder.rb: Locale-free patch by Yusuke
View
@@ -32,6 +32,21 @@ class ExtensionBuildError < Gem::InstallError; end
include Gem::RequirePathsBuilder
+ ##
+ # The directory a gem's executables will be installed into
+
+ attr_reader :bin_dir
+
+ ##
+ # The gem repository the gem will be installed into
+
+ attr_reader :gem_home
+
+ ##
+ # The Gem::Specification for the gem being installed
+
+ attr_reader :spec
+
class << self
attr_writer :exec_format
@@ -18,7 +18,18 @@ class Gem::Uninstaller
include Gem::UserInteraction
##
- # Spec currently being uninstalled. Only set during #uninstall_gem
+ # The directory a gem's executables will be installed into
+
+ attr_reader :bin_dir
+
+ ##
+ # The gem repository the gem will be installed into
+
+ attr_reader :gem_home
+
+ ##
+ # The Gem::Specification for the gem being uninstalled, only set during
+ # #uninstall_gem
attr_reader :spec

0 comments on commit 5a9e6dc

Please sign in to comment.