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.
- data/lib/rack_dav/controller.rb +3 -2
- data/rack_dav.gemspec +1 -1
- metadata +4 -4
data/lib/rack_dav/controller.rb
CHANGED
|
@@ -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
|
-
|
|
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
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:
|
|
4
|
+
hash: 29
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 1
|
|
9
|
-
-
|
|
10
|
-
version: 0.1.
|
|
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-
|
|
18
|
+
date: 2010-10-23 00:00:00 -07:00
|
|
19
19
|
default_executable:
|
|
20
20
|
dependencies: []
|
|
21
21
|
|