utopia 0.9.21 → 0.9.22
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/utopia/middleware/content/node.rb +3 -2
- data/lib/utopia/version.rb +1 -1
- metadata +3 -3
@@ -294,12 +294,13 @@ module Utopia
|
|
294
294
|
|
295
295
|
def local_path(path, base = nil)
|
296
296
|
path = Path.create(path)
|
297
|
+
root = Pathname.new(@controller.root)
|
297
298
|
|
298
299
|
if path.absolute?
|
299
|
-
return
|
300
|
+
return root.join(*path.components)
|
300
301
|
else
|
301
302
|
base ||= uri_path.dirname
|
302
|
-
return
|
303
|
+
return root.join(*(base + path).components)
|
303
304
|
end
|
304
305
|
end
|
305
306
|
|
data/lib/utopia/version.rb
CHANGED
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 9
|
8
|
-
-
|
9
|
-
version: 0.9.
|
8
|
+
- 22
|
9
|
+
version: 0.9.22
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Samuel Williams
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-03-
|
17
|
+
date: 2010-03-30 00:00:00 +13:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|