Sha256: c6084852c9278db70dbcb8c31024f2730f0c53f02047778e7d9d32305733113e
Contents?: true
Size: 671 Bytes
Versions: 11
Compression:
Stored size: 671 Bytes
Contents
require "manpages" require "rubygems/command_manager" require "rubygems/version_option" Gem::CommandManager.instance.register_command :manpages Gem.post_install do |installer| source_dir = installer.spec.gem_dir target_dir = File.expand_path("#{installer.bin_dir}/../share/man") Manpages::Install.new(installer.spec, source_dir, target_dir).install_manpages end Gem.pre_uninstall do |uninstaller| bin_dir = uninstaller.bin_dir || Gem.bindir(uninstaller.spec.base_dir) source_dir = uninstaller.spec.gem_dir target_dir = File.expand_path("#{bin_dir}/../share/man") Manpages::Uninstall.new(uninstaller.spec, source_dir, target_dir).uninstall_manpages end
Version data entries
11 entries across 11 versions & 3 rubygems