gollum 2.3.8 → 2.3.9
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.
- data/gollum.gemspec +1 -1
- data/lib/gollum.rb +1 -1
- data/lib/gollum/wiki.rb +25 -20
- metadata +1 -1
data/gollum.gemspec
CHANGED
data/lib/gollum.rb
CHANGED
|
@@ -23,7 +23,7 @@ require File.expand_path('../gollum/web_sequence_diagram', __FILE__)
|
|
|
23
23
|
require File.expand_path('../gollum/frontend/uri_encode_component', __FILE__)
|
|
24
24
|
|
|
25
25
|
module Gollum
|
|
26
|
-
VERSION = '2.3.
|
|
26
|
+
VERSION = '2.3.9'
|
|
27
27
|
|
|
28
28
|
def self.assets_path
|
|
29
29
|
::File.expand_path('gollum/frontend/public', ::File.dirname(__FILE__))
|
data/lib/gollum/wiki.rb
CHANGED
|
@@ -166,26 +166,31 @@ module Gollum
|
|
|
166
166
|
options[:access] = path
|
|
167
167
|
path = path.path
|
|
168
168
|
end
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
@
|
|
177
|
-
@
|
|
178
|
-
@
|
|
179
|
-
@
|
|
180
|
-
@
|
|
181
|
-
|
|
182
|
-
@
|
|
183
|
-
|
|
184
|
-
@
|
|
185
|
-
@
|
|
186
|
-
@
|
|
187
|
-
@
|
|
188
|
-
@
|
|
169
|
+
|
|
170
|
+
# Use .fetch instead of ||
|
|
171
|
+
#
|
|
172
|
+
# o = { :a => false }
|
|
173
|
+
# o[:a] || true # => true
|
|
174
|
+
# o.fetch :a, true # => false
|
|
175
|
+
|
|
176
|
+
@path = path
|
|
177
|
+
@repo_is_bare = options.fetch :repo_is_bare, nil
|
|
178
|
+
@page_file_dir = options.fetch :page_file_dir, nil
|
|
179
|
+
@access = options.fetch :access, GitAccess.new(path, @page_file_dir, @repo_is_bare)
|
|
180
|
+
@base_path = options.fetch :base_path, "/"
|
|
181
|
+
@page_class = options.fetch :page_class, self.class.page_class
|
|
182
|
+
@file_class = options.fetch :file_class, self.class.file_class
|
|
183
|
+
@markup_classes = options.fetch :markup_classes, self.class.markup_classes
|
|
184
|
+
@repo = @access.repo
|
|
185
|
+
@ref = options.fetch :ref, self.class.default_ref
|
|
186
|
+
@sanitization = options.fetch :sanitization, self.class.sanitization
|
|
187
|
+
@ws_subs = options.fetch :ws_subs, self.class.default_ws_subs
|
|
188
|
+
@history_sanitization = options.fetch :history_sanitization, self.class.history_sanitization
|
|
189
|
+
@live_preview = options.fetch :live_preview, true
|
|
190
|
+
@universal_toc = options.fetch :universal_toc, false
|
|
191
|
+
@mathjax = options.fetch :mathjax, false
|
|
192
|
+
@show_all = options.fetch :show_all, false
|
|
193
|
+
@collapse_tree = options.fetch :collapse_tree, false
|
|
189
194
|
end
|
|
190
195
|
|
|
191
196
|
# Public: check whether the wiki's git repo exists on the filesystem.
|