[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

gem "before" and "after" filters?

Pau Garcia i Quiles

10/17/2006 11:38:00 PM

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.

--
Pau Garcia i Quiles
http://www.e...
(Due to the amount of work, I usually need 10 days to answer)
1 Answer

Austin Ziegler

10/17/2006 11:55:00 PM

0

On 10/17/06, Pau Garcia i Quiles <pgquiles@elpauer.org> 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
--
Austin Ziegler * halostatue@gmail.com * http://www.halo...
* austin@halostatue.ca * http://www.halo...feed/
* austin@zieglers.ca