Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 792abae07e | |||
| 74ce648c59 |
+1
-1
@@ -5,7 +5,7 @@ Gem::Specification.new do |s|
|
|||||||
s.required_ruby_version = ">= 1.8.7"
|
s.required_ruby_version = ">= 1.8.7"
|
||||||
|
|
||||||
s.name = 'gollum'
|
s.name = 'gollum'
|
||||||
s.version = '2.3.8'
|
s.version = '2.3.9'
|
||||||
s.date = '2012-11-07'
|
s.date = '2012-11-07'
|
||||||
s.rubyforge_project = 'gollum'
|
s.rubyforge_project = 'gollum'
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -23,7 +23,7 @@ require File.expand_path('../gollum/web_sequence_diagram', __FILE__)
|
|||||||
require File.expand_path('../gollum/frontend/uri_encode_component', __FILE__)
|
require File.expand_path('../gollum/frontend/uri_encode_component', __FILE__)
|
||||||
|
|
||||||
module Gollum
|
module Gollum
|
||||||
VERSION = '2.3.8'
|
VERSION = '2.3.9'
|
||||||
|
|
||||||
def self.assets_path
|
def self.assets_path
|
||||||
::File.expand_path('gollum/frontend/public', ::File.dirname(__FILE__))
|
::File.expand_path('gollum/frontend/public', ::File.dirname(__FILE__))
|
||||||
|
|||||||
+25
-20
@@ -166,26 +166,31 @@ module Gollum
|
|||||||
options[:access] = path
|
options[:access] = path
|
||||||
path = path.path
|
path = path.path
|
||||||
end
|
end
|
||||||
@path = path
|
|
||||||
@repo_is_bare = options[:repo_is_bare]
|
# Use .fetch instead of ||
|
||||||
@page_file_dir = options[:page_file_dir]
|
#
|
||||||
@access = options[:access] || GitAccess.new(path, @page_file_dir, @repo_is_bare)
|
# o = { :a => false }
|
||||||
@base_path = options[:base_path] || "/"
|
# o[:a] || true # => true
|
||||||
@page_class = options[:page_class] || self.class.page_class
|
# o.fetch :a, true # => false
|
||||||
@file_class = options[:file_class] || self.class.file_class
|
|
||||||
@markup_classes = options[:markup_classes] || self.class.markup_classes
|
@path = path
|
||||||
@repo = @access.repo
|
@repo_is_bare = options.fetch :repo_is_bare, nil
|
||||||
@ref = options[:ref] || self.class.default_ref
|
@page_file_dir = options.fetch :page_file_dir, nil
|
||||||
@sanitization = options[:sanitization] || self.class.sanitization
|
@access = options.fetch :access, GitAccess.new(path, @page_file_dir, @repo_is_bare)
|
||||||
@ws_subs = options[:ws_subs] ||
|
@base_path = options.fetch :base_path, "/"
|
||||||
self.class.default_ws_subs
|
@page_class = options.fetch :page_class, self.class.page_class
|
||||||
@history_sanitization = options[:history_sanitization] ||
|
@file_class = options.fetch :file_class, self.class.file_class
|
||||||
self.class.history_sanitization
|
@markup_classes = options.fetch :markup_classes, self.class.markup_classes
|
||||||
@live_preview = options[:live_preview] || true
|
@repo = @access.repo
|
||||||
@universal_toc = options[:universal_toc] || false
|
@ref = options.fetch :ref, self.class.default_ref
|
||||||
@mathjax = options[:mathjax] || false
|
@sanitization = options.fetch :sanitization, self.class.sanitization
|
||||||
@show_all = options[:show_all] || false
|
@ws_subs = options.fetch :ws_subs, self.class.default_ws_subs
|
||||||
@collapse_tree = options[:collapse_tree] || false
|
@history_sanitization = options.fetch :history_sanitization, self.class.history_sanitization
|
||||||
|
@live_preview = options.fetch :live_preview, true
|
||||||
|
@universal_toc = options.fetch :universal_toc, false
|
||||||
|
@mathjax = options.fetch :mathjax, false
|
||||||
|
@show_all = options.fetch :show_all, false
|
||||||
|
@collapse_tree = options.fetch :collapse_tree, false
|
||||||
end
|
end
|
||||||
|
|
||||||
# Public: check whether the wiki's git repo exists on the filesystem.
|
# Public: check whether the wiki's git repo exists on the filesystem.
|
||||||
|
|||||||
Reference in New Issue
Block a user