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

Version Path
ric-0.14.2 vendor/bundle/ruby/2.7.0/gems/manpages-0.6.1/lib/rubygems_plugin.rb
ric-0.14.1 vendor/bundle/ruby/2.7.0/gems/manpages-0.6.1/lib/rubygems_plugin.rb
ric-0.14.0 vendor/bundle/ruby/2.7.0/gems/manpages-0.6.1/lib/rubygems_plugin.rb
pokedex-terminal-0.2.8 vendor/bundle/ruby/2.7.0/gems/manpages-0.6.1/lib/rubygems_plugin.rb
pokedex-terminal-0.2.7 vendor/bundle/ruby/2.7.0/gems/manpages-0.6.1/lib/rubygems_plugin.rb
pokedex-terminal-0.2.6 vendor/bundle/ruby/2.7.0/gems/manpages-0.6.1/lib/rubygems_plugin.rb
pokedex-terminal-0.2.5 vendor/bundle/ruby/2.7.0/gems/manpages-0.6.1/lib/rubygems_plugin.rb
pokedex-terminal-0.2.4 vendor/bundle/ruby/2.7.0/gems/manpages-0.6.1/lib/rubygems_plugin.rb
manpages-0.6.1 lib/rubygems_plugin.rb
manpages-0.6.0 lib/rubygems_plugin.rb
manpages-0.5.2 lib/rubygems_plugin.rb