Sha256: 093d1d0f8f81a43c72b53d15de60ecb3c4bc7e57f2a599acc9602e810ecc197a

Contents?: true

Size: 1.15 KB

Versions: 7

Compression:

Stored size: 1.15 KB

Contents

Net::Dav library, in the style of Net::HTTP

== Install

Installing the gem:

  gem install net_dav

and if you want acceleration for large files (from 4MB/s to 20MB/s in my setup):

  gem install curb

If you're having install issues with nokogiri on Mac OS X read
http://wiki.github.com/tenderlove/nokogiri/what-to-do-if-libxml2-is-being-a-jerk

== Usage

  Net::DAV.start("https://localhost.localdomain/xyz/") { |dav|
    find('.', :recursive => true) do | item |
       item.content = item.content.gsub(/silly/i, "funny")
    end
  end

(Note that if you want to use "." to refer to the origin URL, it should
end with a slash, otherwise it is assumed that the last component is a file
and "." will refer to the parent.)

== Performance

This should be threadsafe if you use a different Net::DAV object
for each thread.
Check out script/multi-test for a multi-threaded application.

Installing the +curb+ gem will gain speedup with large files, but currently
is much slower doing many small +get+ operations. If your usecase is the
latter and you have +curb+ installed, you can disable its use by passing the 
 :curl => false
option to Net::DAV::start or Net::DAV::new .

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
net_dav-0.4.0 README.rdoc
net_dav-0.3.3 README.rdoc
net_dav-0.3.2 README.rdoc
net_dav-0.3.1 README.rdoc
net_dav-0.3.0 README.rdoc
net_dav-0.2.2 README.rdoc
net_dav-0.2.1 README.rdoc