On 25 Nov 2008, at 11:41, Matt King wrote:

2008/11/25 James Tucker <[EMAIL PROTECTED]>:
Use the rakefile ext builder?

Tried that. It exited out with 'No builder for extension.'

I set this up to allow us to build a 3-platform gem for eventmachine, so an example is sitting in our rakefile:

This part is a hack to get around the fact that there's no way to supply arguments to the rake builder:
http://github.com/eventmachine/eventmachine/tree/master/Rakefile#L42-48

Here you'll need to make sure that the gem manifest includes the Rakefile and that s.extensions reads Rakefile
http://github.com/eventmachine/eventmachine/tree/master/Rakefile#L83-91

HTH


On 25 Nov 2008, at 11:08, Matt King wrote:

Hi all,

I have been looking for a way to execute some Ruby code at the end of installing my gem. I can't seem to find anything that allows me to do
this.

I want to chmod a file in the gem directory. I don't want to have to
tell my users they must do this upon install. I would have it run on
requirement of the gem, but chmod'ing the file will most likely
require sudo rights as well.

Any help appreciated,
-Matt
_______________________________________________
Rubygems-developers mailing list
Rubygems-developers@rubyforge.org
http://rubyforge.org/mailman/listinfo/rubygems-developers

_______________________________________________
Rubygems-developers mailing list
Rubygems-developers@rubyforge.org
http://rubyforge.org/mailman/listinfo/rubygems-developers

Reply via email to