Sha256: 5ed485300fcde9510ecddd1c0bae0e8def0f788328975b9b50dc59df517119d6
Contents?: true
Size: 708 Bytes
Versions: 1
Compression:
Stored size: 708 Bytes
Contents
require "manpages" require "rubygems/command_manager" require "rubygems/version_option" require "rubygems/gem/specification" 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
manpages-0.5.1 | lib/rubygems_plugin.rb |