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 via http://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
-~----------~----~----~----~------~----~------~--~---