Sha256: 7816062e04c44b3912b0035b118680a7f3c7032b57f945f891c3f9722d1f7566
Contents?: true
Size: 883 Bytes
Versions: 4
Compression:
Stored size: 883 Bytes
Contents
# frozen_string_literal: true 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.exist?(File.join(Gem.bindir, "shoes-stub")) && !File.exist?(File.join(Gem.bindir, "shoes-stub.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 # Everybody potentially has a generated backend file in their bin puts "Removing shoes-backend" backend = File.join(Gem.bindir, "shoes-backend") FileUtils.rm(backend) if File.exist?(backend) end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
shoes-4.0.0.pre12 | lib/rubygems_plugin.rb |
shoes-4.0.0.pre11 | lib/rubygems_plugin.rb |
shoes-4.0.0.pre10 | lib/rubygems_plugin.rb |
shoes-4.0.0.pre9 | lib/rubygems_plugin.rb |