Gem "before" and "after" filters?

Hello,

I am trying to build a gem and I need to do some pre-processing
(creating a
file) before I can create my rdoc’s and some cleaning (erasing that
file)
after I create it.

Running something before building the gem is easy (just specify it in
the
gemspec before the Gem::Specification.new), but how do I run something
afterwards? (writing the code at the end or after the end of the
Gem::Specification does not work, because that code is run before the
gem is
built)

Thank you.

On 10/17/06, Pau Garcia i Quiles [email protected] wrote:

I am trying to build a gem and I need to do some pre-processing (creating a
file) before I can create my rdoc’s and some cleaning (erasing that file)
after I create it.

Running something before building the gem is easy (just specify it in the
gemspec before the Gem::Specification.new), but how do I run something
afterwards? (writing the code at the end or after the end of the
Gem::Specification does not work, because that code is run before the gem is
built)

Currently, RubyGems does not allow pre/post processing in the
installation time (this is a security feature), which is when you need
to have what you’re talking about to happen for local documentation.
If you’re talking about official documentation, use Rake.

-austin

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs