Sha256: 045d027c65740709c8b701224640d8f83b234ffd4f19f662dc586a7aee62bb0f
Contents?: true
Size: 592 Bytes
Versions: 1
Compression:
Stored size: 592 Bytes
Contents
Gem.post_install { |gem_installer_instance| require 'os' 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' 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.4 | lib/rubygems_plugin.rb |