[Rubygems-developers] RubyGems install plugins

Eric Hodel drbrain at segment7.net
Mon Nov 15 20:59:11 EST 2010

I think we need at least the following hooks:

1) Before install, after download, "pre-install".  I'm not sure what this would be used for.  The hook should be able to abort the install.

2) After files have been written and extensions have been built but before executable stubs have been written or specification is written, "post-build".  This would be used for test tasks.  The hook should be able to abort the install, cleaning up the unpacked files and built extensions.

3) After executable stubs and specification has been written, "post-install".  This could be used for documentation generation.  Gem::DocManager should be rewritten to use this hook.  The hook should not be able to abort the install.

For each hook both the installer and the gemspec from the .gem file should be provided to the callback.

More information about the Rubygems-developers mailing list