net_dav 0.3.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/Rakefile +11 -4
  2. data/VERSION +1 -1
  3. data/lib/net/dav.rb +5 -0
  4. data/net_dav.gemspec +3 -3
  5. metadata +3 -3
data/Rakefile CHANGED
@@ -6,7 +6,7 @@ begin
6
6
  Jeweler::Tasks.new do |gem|
7
7
  gem.name = "net_dav"
8
8
  gem.summary = %Q{WebDAV client library in the style of Net::HTTP}
9
- gem.description = %Q{WebDAV client library in the style of Net::HTTP}
9
+ gem.description = %Q{WebDAV client library in the style of Net::HTTP, using Net::HTTP and libcurl, if installed}
10
10
  gem.email = "c1.github@niftybox.net"
11
11
  gem.homepage = "http://github.com/devrandom/net_dav"
12
12
  gem.authors = ["Miron Cuperman"]
@@ -36,11 +36,18 @@ task :spec => :check_dependencies
36
36
 
37
37
  task :default => :spec
38
38
 
39
- task "dist" => [:clean, :release]
39
+ desc "release with no version change"
40
+ task :dist => [:clean, :release]
40
41
 
41
- task "dist:patch" => [:clean, "version:bump:patch", :release]
42
+ namespace :dist do
43
+ desc "release patch"
44
+ task :patch => [:clean, "version:bump:patch", :release]
45
+ desc "release with minor version bump"
46
+ task :minor => [:clean, "version:bump:minor", :release]
47
+ end
42
48
 
43
- task "dist:minor" => [:clean, "version:bump:minor", :release]
49
+ desc "build gem into pkg directory"
50
+ task :gem => [:build]
44
51
 
45
52
  task :clean do
46
53
  Dir.glob("**/*~").each do |file|
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.2
1
+ 0.3.3
data/lib/net/dav.rb CHANGED
@@ -371,6 +371,7 @@ module Net #:nodoc:
371
371
  # end
372
372
  # end
373
373
  def find(path, options = {})
374
+ path = @uri.merge(path).path
374
375
  namespaces = {'x' => "DAV:"}
375
376
  doc = propfind(path)
376
377
  path.sub!(/\/$/, '')
@@ -412,6 +413,7 @@ module Net #:nodoc:
412
413
  # object will *not* contain a (meaningful) body.
413
414
 
414
415
  def get(path, &block)
416
+ path = @uri.merge(path).path
415
417
  body = @handler.request_returning_body(:get, path, nil, &block)
416
418
  body
417
419
  end
@@ -423,6 +425,7 @@ module Net #:nodoc:
423
425
  # dav.put(url.path, stream, File.size(file))
424
426
  # end
425
427
  def put(path, stream, length)
428
+ path = @uri.merge(path).path
426
429
  res = @handler.request_sending_stream(:put, path, stream, length, nil)
427
430
  res.body
428
431
  end
@@ -433,6 +436,7 @@ module Net #:nodoc:
433
436
  # dav.put(url.path, "hello world")
434
437
  #
435
438
  def put_string(path, str)
439
+ path = @uri.merge(path).path
436
440
  res = @handler.request_sending_body(:put, path, str, nil)
437
441
  res.body
438
442
  end
@@ -440,6 +444,7 @@ module Net #:nodoc:
440
444
 
441
445
  # Makes a new directory (collection)
442
446
  def mkdir(path)
447
+ path = @uri.merge(path).path
443
448
  res = @handler.request(:mkcol, path, nil, nil)
444
449
  res.body
445
450
  end
data/net_dav.gemspec CHANGED
@@ -5,13 +5,13 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{net_dav}
8
- s.version = "0.3.2"
8
+ s.version = "0.3.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Miron Cuperman"]
12
- s.date = %q{2009-11-17}
12
+ s.date = %q{2009-11-19}
13
13
  s.default_executable = %q{dav}
14
- s.description = %q{WebDAV client library in the style of Net::HTTP}
14
+ s.description = %q{WebDAV client library in the style of Net::HTTP, using Net::HTTP and libcurl, if installed}
15
15
  s.email = %q{c1.github@niftybox.net}
16
16
  s.executables = ["dav"]
17
17
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: net_dav
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miron Cuperman
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-11-17 00:00:00 -08:00
12
+ date: 2009-11-19 00:00:00 -08:00
13
13
  default_executable: dav
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -32,7 +32,7 @@ dependencies:
32
32
  - !ruby/object:Gem::Version
33
33
  version: 1.2.0
34
34
  version:
35
- description: WebDAV client library in the style of Net::HTTP
35
+ description: WebDAV client library in the style of Net::HTTP, using Net::HTTP and libcurl, if installed
36
36
  email: c1.github@niftybox.net
37
37
  executables:
38
38
  - dav