utopia 0.9.21 → 0.9.22

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.
@@ -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 File.join(@controller.root, path.components)
300
+ return root.join(*path.components)
300
301
  else
301
302
  base ||= uri_path.dirname
302
- return File.join(@controller.root, (base + path).components)
303
+ return root.join(*(base + path).components)
303
304
  end
304
305
  end
305
306
 
@@ -17,7 +17,7 @@ module Utopia
17
17
  module VERSION #:nodoc:
18
18
  MAJOR = 0
19
19
  MINOR = 9
20
- TINY = 21
20
+ TINY = 22
21
21
 
22
22
  STRING = [MAJOR, MINOR, TINY].join('.')
23
23
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 9
8
- - 21
9
- version: 0.9.21
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-26 00:00:00 +13:00
17
+ date: 2010-03-30 00:00:00 +13:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency