rack_dav 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -145,14 +145,15 @@ module RackDAV
145
145
  names = resource.property_names
146
146
  else
147
147
  names = request_match("/propfind/prop/*").map { |e| e.name }
148
- names = resource.property_names
148
+ names = resource.property_names if names.empty?
149
149
  raise BadRequest if names.empty?
150
150
  end
151
151
 
152
152
  multistatus do |xml|
153
153
  for resource in find_resources
154
+ resource.path.gsub!(/\/\//, '/')
154
155
  xml.response do
155
- xml.href "http://#{host}#{url_escape resource.path}"
156
+ xml.href "http://#{host}#{url_escape resource.path}"
156
157
  propstats xml, get_properties(resource, names)
157
158
  end
158
159
  end
data/rack_dav.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'rack_dav'
3
- s.version = '0.1.2'
3
+ s.version = '0.1.3'
4
4
  s.summary = 'WebDAV handler for Rack'
5
5
  s.author = 'Matthias Georgi'
6
6
  s.email = 'matti.georgi@gmail.com'
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack_dav
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 29
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 2
10
- version: 0.1.2
9
+ - 3
10
+ version: 0.1.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Matthias Georgi
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-10-17 00:00:00 -07:00
18
+ date: 2010-10-23 00:00:00 -07:00
19
19
  default_executable:
20
20
  dependencies: []
21
21