Sha256: 30a3b1338d09366e7339d32c0c1ab95e8e1a689cc6eaf80879caf402d63acb11
Contents?: true
Size: 934 Bytes
Versions: 1
Compression:
Stored size: 934 Bytes
Contents
Gem.post_install { # accomodate for when they install more than one at a time... # a straight require won't cut it... @recreate_proc ||= at_exit { print 'because of new gem installation ' load "faster_rubygems/create_cache_for_all.rb" } } Gem.post_uninstall { @recreate_proc ||= at_exit { print 'because of gem uninstallation ' load "faster_rubygems/create_cache_for_all.rb" } } Gem.pre_uninstall { |gem_installer_instance| if gem_installer_instance.spec.name == 'faster_rubygems' && RUBY_VERSION[0..2] == '1.8' puts 'removing faster_rubygems as the default for require rubygems...' begin # don't need load here since...doing it once is enough require "faster_rubygems/unoverride" # just in case rescue Errno::ENOENT puts 'warning: unable to unoverride faster_rubygems--might be expected if you had several versions installed' end end }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
faster_rubygems-0.12.6 | lib/rubygems_plugin.rb |