Skip to content

Commit

Permalink
more descriptive end user messages
Browse files Browse the repository at this point in the history
  • Loading branch information
rdp committed Jul 1, 2010
1 parent 8d7a852 commit c7583dc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/rubygems_plugin.rb
@@ -1,21 +1,23 @@
Gem.post_install {
# accomodate for when they install more than one at a time...
# a straight require won't cut it...
print 'because of new gem installation '
success = require "faster_rubygems/create_cache_for_all"
if !success
Gem.create_cache_for_all!
end
}

Gem.post_uninstall {
print 'because of gem uninstallation '
success = require "faster_rubygems/create_cache_for_all"
if !success
Gem.create_cache_for_all!
end
}

Gem.pre_uninstall { |gem_installer_instance|

puts 'removing faster_rubygems as the default for require rubygems...'
if gem_installer_instance.spec.name == 'faster_rubygems' && RUBY_VERSION[0..2] == '1.8'
begin
require "faster_rubygems/unoverride" # just in case
Expand Down

0 comments on commit c7583dc

Please sign in to comment.