gem "before" and "after" filters?

  • Thread starter Pau Garcia i Quiles
  • Start date
P

Pau Garcia i Quiles

--nextPart1495269.fW4IQGULCc
Content-Type: text/plain;
charset="iso-8859-15"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Hello,

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

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

Thank you.

=2D-=20
Pau Garcia i Quiles
http://www.elpauer.org
(Due to the amount of work, I usually need 10 days to answer)

--nextPart1495269.fW4IQGULCc
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)

iD8DBQBFNWll/DzYv9iGJzsRAu9mAKCZiWfrT8/LEKCcYItqbZJHtWbyCQCg0F9E
IBr0fPsFyvUuUPO1VGD6ZhA=
=Ge37
-----END PGP SIGNATURE-----

--nextPart1495269.fW4IQGULCc--
 
A

Austin Ziegler

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top