HEX
Server: Apache
System: Linux s198.coreserver.jp 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC 2025 x86_64
User: nagasaki (10062)
PHP: 7.1.33
Disabled: NONE
Upload Files
File: //usr/local/rvm/gems/ruby-2.5.9@global/gems/executable-hooks-1.6.1/README.md
# Rubygems executable hooks

Add next rubygems plugin support for executables.

## Usage

Install the gem:

    gem install executable-hooks

In gem `lib` dir create `rubygems_executable_plugin.rb`:

    Gem.execute do |original_file|
      warn("Executing: #{original_file}")
    end

Generate and install the new gem with executable hook.

Now try it:

    gem install haml
    haml --version

Returns:

    Executing: /home/mpapis/.rvm/gems/ruby-1.8.7-p374-new1/bin/haml
    Haml 4.0.3