[Rubygems-developers] [rubygems] Build still broken (#1149)

Eric Hodel drbrain at segment7.net
Mon Dec 25 19:36:17 EST 2006

On Dec 25, 2006, at 14:05, Eric Hodel wrote:
> On Dec 25, 2006, at 11:59, Jim Weirich wrote:
>> Anatol Pomozov wrote:
>>> But Rake finishes with return code == 0 on windows even if some  
>>> error
>>> present. I dunno why, better to ask Rake developers.
>> As far as I can tell, Rake is properly returning the exit
>> status code. However on Windows, rake is invoked via a BAT
>> file setup by RubyGems (on Unix systems, a shell script is
>> used). I suspect the exit code is not being properly
>> propagated through the BAT script. Unfortunately, my BAT
>> programming skills are exactly zero. Can someone verify this
>> and suggest a better BAT script for gems that will propagate
>> exit status.
> Yep, I've verified this.
> "c:\ruby\bin\ruby" -x "%~f0" %*
> goto endofruby
> #!/bin/ruby
> abort 'boom'
> __END__
> :endofruby
> Will return an exit code of 0 instead of 1.  I'll ask ruby-talk.

Ok, it seems that this is a problem with the ruby one-click installer  
generating batch files that don't match rubygems'.

Eric Hodel - drbrain at segment7.net - http://blog.segment7.net


More information about the Rubygems-developers mailing list