[Rubygems-developers] Latest trunk still misses 'mswin32' as valid platform when installing gems.

Eric Hodel drbrain at segment7.net
Mon Nov 26 18:07:37 EST 2007


On Nov 26, 2007, at 05:39 , Luis Lavena wrote:
> On Nov 25, 2007 8:33 PM, Tom Copeland <tom at infoether.com> wrote:
>> On Sun, 2007-11-25 at 03:38 -0800, Eric Hodel wrote:
>>> I think an index update with the new code will fix it.  Currently  
>>> the
>>> gems all have nil for the cpu field.
>>
>> Cool, done, how's it look now?
>
> Now it install, but the platform thing is still bitching all over...:
>
> This is limited to gems with WIN32 platform
>
> use as reference: mongrel 1.1.1 (platform: mswin32). mongrel-1.1.1- 
> mswin32.gem
> gem install mongrel:
> Bulk updating Gem source index for: http://gems.rubyforge.org
> Successfully installed gem_plugin-0.2.3
> Successfully installed cgi_multipart_eof_fix-2.5.0
> Successfully installed mongrel-1.1.1-x86-mswin32
> 3 gems installed
>
> This looks good, but notice the platform of mongrel: x86-mswin32
>
> Now, irb:
> irb(main):001:0> require 'rubygems'
> => true
> irb(main):002:0> require 'mongrel'
> LoadError: no such file to load -- mongrel
>         from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/ 
> custom_require.rb:27:in
> `gem_original_require'
>         from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/ 
> custom_require.rb:27:in
> `require'
>         from (irb):2
>
> D:\Users\Luis>dir "C:/Ruby/lib/ruby/gems/1.8/gems"
> <DIR>          mongrel-1.1.1-x86-mswin32
>
> If I manually rename the mongrel directory to "mongrel-1.1.1-mswin32"
> it the require works.
> Guess the installer isn't honoring the @original_platform?

Ok.  I will walk through that code again and sprinkle in extra tests  
and make it work later tonight.

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




More information about the Rubygems-developers mailing list