[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: One-Click Ruby Installer for Windows: 185-22 RC3

Joe Swatosh

2/6/2007 5:33:00 PM

Hi,

On Feb 5, 11:13 am, "Curt Hibbs" <ml.chi...@gmail.com> wrote:
> RC3 upgrades RubyGems to 0.9.2, and includes the correct openssl.so file
> (RC2 had the wrong file), and running rake no longer closes the console
> window.
>

I wouldn't classify it as a show stopper, but it would be nice if
rake.bat was modified to use 'gem' instead of 'require_gem' to
eliminate warnings about 'require_gem' being obsolete.

Thanks
--
Joe


4 Answers

Joe Swatosh

2/7/2007 1:25:00 AM

0

Hi Curt,

On Feb 6, 11:18 am, "Curt Hibbs" <ml.chi...@gmail.com> wrote:
> On 2/6/07, Joe <joe.swat...@gmail.com> wrote:
>

> > Hi,
>
> > On Feb 5, 11:13 am, "Curt Hibbs" <ml.chi...@gmail.com> wrote:

>
> Curt

Sorry to do this too you so late, but while I've got your ear, you may
want to consider rubygems 0.9.2 to avoid questions from the rails
crowd when their rake package tasks start failing....
--
Joe


Joe Swatosh

2/7/2007 2:05:00 AM

0

Hi Curt,

On Feb 6, 5:39 pm, "Curt Hibbs" <ml.chi...@gmail.com> wrote:

> It already does include RubyGems 0.9.2.
>
> Curt- Hide quoted text -
>
> - Show quoted text -

Hmm, must have missed that (didn't see any mention of it in the svn
wc, and we're still working with RC2). Anyway that's great news!
Thanks,
--
Joe


Joe Swatosh

2/7/2007 5:03:00 PM

0

Hi,

On Feb 6, 5:39 pm, "Curt Hibbs" <ml.chi...@gmail.com> wrote:
> On 2/6/07, Joe <joe.swat...@gmail.com> wrote:
>


>
> It already does include RubyGems 0.9.2.
>

So it does. But you may want to update the version release notes.
--
Joe


Joe Swatosh

2/7/2007 11:01:00 PM

0

Hi Curt,

On Feb 7, 10:48 am, "Curt Hibbs" <ml.chi...@gmail.com> wrote:
> On 2/7/07, Joe <joe.swat...@gmail.com> wrote:
>


> Thanks... I hadn't noticed it still list 0.9.1 !
>
> Curt

rake.bat is still not working quite right for me. The error status
isn't properly being propagated from a child process. To make it
work, I had to conspire to make the ruby command the last in the batch
file (at least for NT, I don't have a non-NT box to test with.
Actually, I'm not sure what a non-NT system will do with the "exit /b"
but that's another problem). The file now looks like this:

<ruby.bat>
@echo off
goto endofruby
#!/bin/ruby
#
# This file was generated by RubyGems.
#
# The application 'rake' is installed as part of a gem, and
# this file is here to facilitate running it.
#

require 'rubygems'
version = "> 0"
if ARGV.size > 0 && ARGV[0][0]==95 && ARGV[0][-1]==95
if Gem::Version.correct?(ARGV[0][1..-2])
version = ARGV[0][1..-2]
ARGV.shift
end
end
gem 'rake', version
load 'rake'

__END__
:endofruby
if not "%~f0" == "~f0" goto WinNT
ruby -Sx "%0" %1 %2 %3 %4 %5 %6 %7 %8 %9
exit /b %ERRORLEVEL%
:WinNT
"%~d0%~p0ruby" -x "%~f0" %*
</ruby.bat>

I have not tested this extensively, but it is working here.

Another alternative might be to do the same as rake now does and
create a rake.cmd that invokes a rake directly. I noticed this after
doing a gem update rake.
--
Joe