Extract page dir from latest changes. Fix #1388 (#1395)

* Strip off page_dir prefix from latest changes urls
* Rename spurious next and previous_link
* New format for LatestChanges#versions: detect renames
This commit is contained in:
Dawa Ometto
2019-09-18 18:10:09 +02:00
committed by GitHub
parent 41d7cf75c5
commit 88c624877e
7 changed files with 81 additions and 29 deletions
+5 -1
View File
@@ -19,7 +19,11 @@ $LOAD_PATH.unshift(dir)
module Gollum
end
Gollum::GIT_ADAPTER = ENV['GIT_ADAPTER'] if ENV['GIT_ADAPTER']
if ENV['GIT_ADAPTER']
Gollum::GIT_ADAPTER = ENV['GIT_ADAPTER']
else
Gollum::GIT_ADAPTER = RUBY_PLATFORM == 'java' ? 'rjgit' : 'rugged'
end
ENV['RACK_ENV'] = 'test'
require 'gollum'