just a question: Is it possible to define a command for automatic
execution after the user has installed a gem with gem install xyz?
I haven't read about this possibility. But maybe there is a tweak in the
gemspec.
just a question: Is it possible to define a command for automatic
execution after the user has installed a gem with gem install xyz?
there is a `Gem.post_install_hooks` [1]. However, I don't know whether this is
something that can be defined from a gemspec. HTH.
Scary to think that there would be a way to run an arbitrary command, but come
to think of it, there's plenty of room for that with any software
build/distribution method.
To my knowledge, RubyGems does only support post-install messages for
“ordinary” gems. However, by abusing the C extension building facility,
you can trick it into running arbitrary Ruby code.
I have not tested this, but I’ve read that here on Ruby-Talk ages ago...
To my knowledge, RubyGems does only support post-install messages for
“ordinary” gems. However, by abusing the C extension building facility,
you can trick it into running arbitrary Ruby code.
I have not tested this, but I’ve read that here on Ruby-Talk ages ago...
I'm thinking the use of post-install message should be the right for
this job.
- --
Yours sincerly
Sascha Manns