Sha256: f5ff12acde3c69ff874b9d4707d8dfd2c6c976b7f8d37737d09e77ac2914be57
Contents?: true
Size: 647 Bytes
Versions: 1
Compression:
Stored size: 647 Bytes
Contents
require 'rubygems' require 'fileutils' # See ext/install/Rakefile for why this cleanup is our responsibility. # Decide if user uninstalled executables based on our actual Ruby script. Gem.post_uninstall do |gem| uninstalling_shoes = gem.spec.name == "shoes" missing_executable = !File.exists?(File.join(Gem.bindir, "ruby-shoes")) && !File.exists?(File.join(Gem.bindir, "ruby-shoes.bat")) if uninstalling_shoes && missing_executable puts "Removing shoes" if Gem.win_platform? FileUtils.rm(File.join(Gem.bindir, "shoes.bat")) else FileUtils.rm(File.join(Gem.bindir, "shoes")) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
shoes-4.0.0.pre1 | lib/rubygems_plugin.rb |