https://github.com/rvm/executable-hooks
https://github.com/rvm/executable-hooks
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/rvm/executable-hooks
- Owner: rvm
- License: other
- Created: 2013-07-10T10:47:26.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2024-01-07T21:10:03.000Z (about 2 years ago)
- Last Synced: 2025-03-24T19:47:19.686Z (10 months ago)
- Language: Ruby
- Size: 66.4 KB
- Stars: 22
- Watchers: 18
- Forks: 11
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# 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