On 10/20/07, Daniel Berger <[EMAIL PROTECTED]> wrote:
> NAKAMURA, Hiroshi wrote:
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> >
> > Hi,
> >
> > Luis Lavena wrote:
> >> The only thing that failed is using --source with a file:// URL ...
> >> URI cannot parse the drive letter and path correctly, but can live
> >> with that ;-)
> >
> > Here's a code from soap4r that tries to fetch the resource pointed by a
> > given URI object. (variable 'location')
> > http://dev.ctor.org/soap4r/browser/trunk/lib/wsdl/xmlSchema/importer.rb#L52
> > Ugly workaround but it works for soap4r users.
>
> require 'windows/path'
> include Windows::Path
>
> buf = 0.chr * 260
> len = [buf.length].pack('L')
> PathCreateFromUrl('file://c:/foo/bar', buf, len, nil)
> buf.strip
>
> => "c:\\foo\\bar"
>

The problem with that is that "windows" isn't part of standard ruby
distro, so you must install it after rubygems... anyway, the problem
was raised since one of the file:// test was looking for
C:/nonexistant instead of D:/nonexistant (D: is the drive I checkout
all the code).

Thank you for your suggestion.

Regards,

-- 
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