On Oct 13, 2007, at 12:20 , Luis Lavena wrote:
> On 13 oct, 11:07, Nobuyoshi Nakada <n... / ruby-lang.org> wrote:
>> At Sat, 13 Oct 2007 14:24:24 +0900,
>> Eric Hodel wrote in [ruby-talk:273919]:
>>
>>> RubyGems 0.9.4.5 is a beta release for the upcoming 0.9.5 which adds
>>> several new features and fixes several bugs.
>>
>> Regarding rubygems/installer.rb, if you use .cmd always on
>> Windows, you could make it in one file as:
>>
>>   @#{Gem.ruby.gsub(File::SEPARATOR, File::ALT_SEPARATOR)} -x "%0" %*
>>   @exit /b %ERRORLEVEL%
>>   #!ruby -options
>>   # ruby code succeeds...
>
> I see a problem with that:
>
> Most IDEs (example, NetBeans) is looking for "gem" file, not gem.cmd
> (to actually use the interpreter and the script file).
>
> Doing this (like the approach One-Click-Installer is doing) will brake
> that functionality.
>
> And so, there will be reported issues on NetBeans tracker :-P

It think Nobu is talking specifically about installed bin stubs, not  
about the gem command itself.  On windows platforms, RubyGems  
installs both "bin_name" and "bin_name.cmd".  Would this change be  
acceptable then?

Also, what versions of Windows does %* work on?  I see that setup.rb  
is still using "%1 %2 ... %9" when it installs "gem.cmd".

--
Poor workers blame their tools. Good workers build better tools. The
best workers get their tools to do the work for them. -- Syndicate Wars