[Rubygems-developers] executable wrapper not working for some gems?

Eric Hodel drbrain at segment7.net
Wed Dec 19 05:45:40 EST 2007


On Dec 19, 2007, at 02:32 AM, Chad Woolley wrote:
> Not sure if this is a problem with the rubygems trunk or not, but
> reporting anyway...
>
> When I install the rspec 1.1.1 gem using rubygems trunk, the 'spec'
> binary in /usr/local/bin/spec doesn't have the rubygems wrapper code.
> In other words, it is exactly the same as the rspec source executable,
> without the shebang or require 'rubygems', etc.
>
> I tried another gem (geminstaller) and it did get the exec wrapper
> generated correctly, so not sure what's up, if this is a rubygems or
> an rspec problem.
>
> This was with the latest trunk rubygems, on mac.

I added code to omit the wrapper for files that don't have a #! line.   
spec doesn't have one of these.

I think I will roll back this change, and add some code to  
Gem::Builder to complain about such files for now.


More information about the Rubygems-developers mailing list