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 CHANGED
@@ -5,7 +5,7 @@ Gem::Specification.new do |s|
5
5
  s.required_ruby_version = ">= 1.8.7"
6
6
 
7
7
  s.name = 'gollum'
8
- s.version = '2.4.8'
8
+ s.version = '2.4.9'
9
9
  s.date = '2012-12-20'
10
10
  s.rubyforge_project = 'gollum'
11
11
 
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.8'
31
+ VERSION = '2.4.9'
32
32
 
33
33
  def self.assets_path
34
34
  ::File.expand_path('gollum/frontend/public', ::File.dirname(__FILE__))
@@ -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
- @path = @path.sub(page_dir, '/') if @path.start_with? page_dir
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gollum
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.8
4
+ version: 2.4.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: