On Thu, Jun 15, 2006 at 11:03:24AM -0700, Ryan King
wrote:> It appears that for vCard properties with can have URI values, the
> vpim library will use the open-uri Uri class and try to connect and
> retrieve the resource. If the resource doesn''t exist (esp. if the
> host doesn''t exist), the library fails with an uncaught exception:
>
> /usr/local/lib/ruby/1.8/net/http.rb:562:in `initialize'':
Connection
> refused - connect(2) (Errno::ECONNREFUSED)
> from /usr/local/lib/ruby/1.8/net/http.rb:562:in `connect''
> from /usr/local/lib/ruby/1.8/timeout.rb:48:in `timeout''
> from /usr/local/lib/ruby/1.8/timeout.rb:76:in `timeout''
> from /usr/local/lib/ruby/1.8/net/http.rb:562:in `connect''
> from /usr/local/lib/ruby/1.8/net/http.rb:555:in
`do_start''
> from /usr/local/lib/ruby/1.8/net/http.rb:544:in `start''
> from /usr/local/lib/ruby/1.8/open-uri.rb:245:in
`open_http''
> from /usr/local/lib/ruby/1.8/open-uri.rb:629:in
`buffer_open''
> ... 7 levels...
>
> Two questions:
>
> 1. Is there a way to turn this off and do an "offline mode"? I
really
> only care about the URL, not the resource.
Yes, modify Vcard to correctly use Vpim::Attachment::Uri (send me the
patches) and then use the Uri#uri method:
http://vpim.rubyforge.org/classes/Vpim/Attachment/Uri.html
> 2. Is there a public repository for the code?
No. rubyforge had no svn support for the first years of development, and
I have tired of cvs.
When I get enough patches from somebody that integrating the patches
locally becomes more painful than moving the code to rubyforge (assuming
it has svn now, I think it does) and giving them commit access, I will
move the code.
Btw, if you are hoping my local repository is more cutting-edge but
basically useful, as is common on projects whose maintainers are
actively working on it, you would be dissappointed. vpim is in pieces
here, and I haven''t the time to put it back together.
Sam