gollum 2.4.8 → 2.4.9
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of gollum might be problematic. Click here for more details.
- data/gollum.gemspec +1 -1
- data/lib/gollum.rb +1 -1
- data/lib/gollum/frontend/app.rb +6 -4
- metadata +1 -1
data/gollum.gemspec
CHANGED
data/lib/gollum.rb
CHANGED
@@ -28,7 +28,7 @@ require File.expand_path('../gollum/frontend/uri_encode_component', __FILE__)
|
|
28
28
|
$KCODE = 'U' if RUBY_VERSION[0,3] == '1.8'
|
29
29
|
|
30
30
|
module Gollum
|
31
|
-
VERSION = '2.4.
|
31
|
+
VERSION = '2.4.9'
|
32
32
|
|
33
33
|
def self.assets_path
|
34
34
|
::File.expand_path('gollum/frontend/public', ::File.dirname(__FILE__))
|
data/lib/gollum/frontend/app.rb
CHANGED
@@ -180,11 +180,13 @@ module Precious
|
|
180
180
|
@name = wikip.name.to_url
|
181
181
|
@path = wikip.path
|
182
182
|
|
183
|
-
# --page-file-dir docs
|
184
|
-
# /docs/Home should be created in /Home
|
185
|
-
# not /docs/Home because write_page will append /docs
|
186
183
|
page_dir = settings.wiki_options[:page_file_dir].to_s
|
187
|
-
|
184
|
+
unless page_dir.empty?
|
185
|
+
# --page-file-dir docs
|
186
|
+
# /docs/Home should be created in /Home
|
187
|
+
# not /docs/Home because write_page will append /docs
|
188
|
+
@path = @path.sub(page_dir, '/') if @path.start_with? page_dir
|
189
|
+
end
|
188
190
|
|
189
191
|
page = wikip.page
|
190
192
|
if page
|