I have the exact same problem. It does not only appear with hpricot,
but with all gems containing "mswin32" in the version string. is there
an "official" fix for this?

Cheers,

Matthias

On 1 Jan., 22:03, Mikael Rudberg <[email protected]>
wrote:
> I found a workaround sort of. I changed the regexp in the
> vendor_gem_source_index.rb
>
> from
>     def version_for_dir(d)
>       matches = /-([^-]+)$/.match(d)
>       matches.to_a.each { | x | puts "Match {#{x}}" }
>       Gem::Version.new(matches[1]) if matches
>     end
>
> to
>     def version_for_dir(d)
>       matches = /-(\d+\.\d+\.\d+)/.match(d)
>       matches.to_a.each { | x | puts "Match {#{x}}" }
>       Gem::Version.new(matches[1]) if matches
>     end
>
> Seems to load the gems fine now. However having very limited skill in
> crafting regexp I don't know if this will work in all cases so if anyone
> have a better one i'm all ears :)
>
> --
> Posted viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to