On 10/14/07, Daniel Berger <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Ruby 1.8.6 one-click
> Windows XP
>
> I did: gem update --system --source http://segment7.net/
>
> cp gem C:/DOCUME~1/djberge/LOCALS~1/Temp/gem
> install -c -m 0755 C:/DOCUME~1/djberge/LOCALS~1/Temp/gem C:/ruby/bin/gem
> rm C:/DOCUME~1/djberge/LOCALS~1/Temp/gem
> setup.rb:87: undefined method `win_platform?' for Gem:Module (NoMethodError)
>          from setup.rb:69:in `each'
>          from setup.rb:69
>          from setup.rb:66:in `chdir'
>          from setup.rb:66
> RubyGems system software updated
>
> I think it's toast:
>
> C:\Documents and Settings\djberge>gem -v
> C:/ruby/bin/gem.bat:24: uninitialized constant Gem::GemRunner (NameError)
>
> Not sure what the fix is, since Gem.win_platform? does actually exist.
>

I had problems with One-Click due the injecting of "gem" script inside
the .cmd file.

I updated succesfuly, but the generated .cmd file is broken:

D:\Users\Developer>gem
C:/Ruby/bin/ruby.exe: No such file or directory -- gem (LoadError)

D:\Users\Developer>ruby c:\Ruby\bin\gem -v
0.9.4.5

The contents of the generated .cmd file:

@"C:/Ruby/bin/ruby.exe" "gem" %1 %2 %3 %4 %5 %6 %7 %8 %9

Which is wrong, since "gem" will only be found if current directory
(pwd) is C:/Ruby/bin

I'll take a look at the repository and submit a patch for this.

-- 
Luis Lavena
Multimedia systems
-
Leaders are made, they are not born. They are made by hard effort,
which is the price which all of us must pay to achieve any goal that
is worthwhile.
Vince Lombardi
_______________________________________________
Rubygems-developers mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rubygems-developers

Reply via email to