Sha256: 732113417cf8a806cefbe870a49c23fcab833e17b7bad7bf0efa60bdd1760627
Contents?: true
Size: 612 Bytes
Versions: 1
Compression:
Stored size: 612 Bytes
Contents
Gem.post_install { |gem_installer_instance| require 'sane' require 'faster_gem_scripts' all = gem_installer_instance.spec.files.select{|file| file.start_with? "bin" } bin_dir = OS.ruby_bin.split('/')[0..-3].join('/') if all.length > 0 FasterGemScripts.clear_caches! all.each{|script_name| name = bin_dir + '/' + script_name FasterGemScripts.overwrite name } end } Gem.post_uninstall { require 'faster_gem_scripts' require 'sane' FasterGemScripts.clear_caches! if (gem_installer_instance.spec.files.select{|file| file.start_with? "bin" }.length > 0) }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
faster_gem_script-0.1.5 | lib/rubygems_plugin.rb |