useless 0.0.9 → 0.0.10
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.
|
@@ -4,7 +4,7 @@ module Useless
|
|
|
4
4
|
# Useless::Base::Doc just calls .serve on `useless.doc`
|
|
5
5
|
module Doc
|
|
6
6
|
def self.call(env)
|
|
7
|
-
env['useless.doc'].serve File.expand_path('
|
|
7
|
+
env['useless.doc'].serve File.expand_path('../../../../../DOC.html', __FILE__)
|
|
8
8
|
end
|
|
9
9
|
end
|
|
10
10
|
end
|
|
@@ -14,7 +14,7 @@ module Useless
|
|
|
14
14
|
end
|
|
15
15
|
|
|
16
16
|
# The path is relative to the assets directory in the gem root
|
|
17
|
-
path = File.expand_path("
|
|
17
|
+
path = File.expand_path("../../../../../assets#{env['PATH_INFO']}", __FILE__)
|
|
18
18
|
|
|
19
19
|
# If there's a corresponding file:
|
|
20
20
|
if File.exists?(path) and !File.directory?(path)
|
data/lib/useless/version.rb
CHANGED