Skip to content

Commit 1ba793b

Browse files
author
chrisroberts
committed
Use correct File in interceptor
1 parent 02bc19d commit 1ba793b

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

CHANGELOG.rdoc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
=== v0.1.7
2+
* Fix in interceptor to use correct File
3+
14
=== v0.1.6
25
* Add DAV4Rack::File that overloads just enough of Rack::File to allow explicit path setting
36

@@ -29,7 +32,6 @@
2932
* Simplify Interceptor mappings (provide options in hash instead of explicit :options)
3033

3134
=== v0.1.0
32-
3335
* Callbacks available for resources
3436
* RemoteFile more aligned with Rack::File
3537
* Return multistatus responses PUT MKCOL and COPY/MOVE

lib/dav4rack/controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module DAV4Rack
1+
module DAV4Rack
22

33
class Controller
44
include DAV4Rack::HTTPStatus

lib/dav4rack/interceptor_resource.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,11 @@ def ==(other)
8181
end
8282

8383
def name
84-
File.basename(path)
84+
::File.basename(path)
8585
end
8686

8787
def display_name
88-
File.basename(path.to_s)
88+
::File.basename(path.to_s)
8989
end
9090

9191
def child(name, option={})

lib/dav4rack/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module DAV4Rack
2-
VERSION = '0.1.6'
2+
VERSION = '0.1.7'
33
end

0 commit comments

Comments
 (0)