lib/rubygems_plugin.rb in faster_rubygems-0.9.2 vs lib/rubygems_plugin.rb in faster_rubygems-0.11.1

- old
+ new

@@ -1,7 +1,14 @@ -Gem.post_install { |gem_installer_instance| - require File.dirname(__FILE__) + "/faster_rubygems/create_cache_for_all" +Gem.post_install { + require "faster_rubygems/create_cache_for_all" } Gem.post_uninstall { - require File.dirname(__FILE__) + "/faster_rubygems/create_cache_for_all" + require "faster_rubygems/create_cache_for_all" +} + +Gem.pre_uninstall { |gem_installer_instance, gem_spec| + + if gem_installer_instance.spec.name == 'faster_rubygems' && RUBY_VERSION[0..2] == '1.8' + require "faster_rubygems/unoverride" # just in case + end } \ No newline at end of file