From: Austin Ziegler Date: 2006-10-18T08:55:23+09:00 Subject: Re: gem "before" and "after" filters? On 10/17/06, Pau Garcia i Quiles 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.halostatue.ca/ * austin@halostatue.ca * http://www.halostatue.ca/feed/ * austin@zieglers.ca