gollum-lib 4.1.0 → 4.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -13
- data/HISTORY.md +9 -0
- data/gemspec.rb +5 -3
- data/gollum-lib_java.gemspec +1 -1
- data/lib/gollum-lib/committer.rb +1 -1
- data/lib/gollum-lib/filter/code.rb +22 -24
- data/lib/gollum-lib/filter/tags.rb +1 -1
- data/lib/gollum-lib/filter/toc.rb +48 -23
- data/lib/gollum-lib/macro/global_toc.rb +1 -1
- data/lib/gollum-lib/macro/navigation.rb +20 -0
- data/lib/gollum-lib/page.rb +8 -0
- data/lib/gollum-lib/version.rb +1 -1
- data/lib/gollum-lib/wiki.rb +2 -1
- metadata +115 -100
checksums.yaml
CHANGED
@@ -1,15 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
YjY4ZTA4ZmI3YTQxYTBkNDk3Mzg2OGRjYTI2ODU1OTZhNmRlNjgzMQ==
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: a294b6b9d60f9379a4389ac98b5660e5c965c04e
|
4
|
+
data.tar.gz: bd8e30f4cf7ba476ad5712b8388975380f198abf
|
7
5
|
SHA512:
|
8
|
-
metadata.gz:
|
9
|
-
|
10
|
-
MDIwNjI5MWQyZmYzYWEyYjY0NTJiY2M0MzY5M2M5NTc1NjIxYWE3NjEwNWNj
|
11
|
-
ZWIwOWQ2YjBmMDlhMjAxODI1NmM4Y2MxMGJjOWZlMDE3ODQxNmE=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
NTU0MDMzMjEzYWJiMzA3ZmExZTgzYmUxY2E5M2M5ZmFlYzdjZDhlNTJmNDQ1
|
14
|
-
ODM4YjY5Mzk5NzVmM2IzMDE5ZmEwYTdmMGFjZDc3OTYyZTVmMmI3ODEzZTcx
|
15
|
-
ZGRiNDYzMDMwOGM3Y2U3OTEwOThhZDIwNWI1MmE0MGM5NWZjYjQ=
|
6
|
+
metadata.gz: e350bf73778f21f747da34f53dc3a34d58307899f290eb0142d477f69186fa12c5fc71a905d0c61af4b31b779acd4af1521c81f2af6f24531f147287350f4cec
|
7
|
+
data.tar.gz: b20db36a2633fb6d7fc012c658cb12bfae50662d2971bf8f355c92787e9a7ddde4fae3e01fc2f97b3aed3f510ca456365e3cc61e09ad414e4f76c4a0df57d305
|
data/HISTORY.md
CHANGED
@@ -1,3 +1,12 @@
|
|
1
|
+
# v4.2.0
|
2
|
+
|
3
|
+
* Changes since v4.1.0:
|
4
|
+
** Various performance improvements
|
5
|
+
** Dependency updates
|
6
|
+
** Bugfixes
|
7
|
+
** New Macro for listing contents of (sub)directories: `Navigation()`
|
8
|
+
** Table of Contents now supports setting max heading level
|
9
|
+
|
1
10
|
# v4.0.2 /2015-0119
|
2
11
|
|
3
12
|
* Bugfixes
|
data/gemspec.rb
CHANGED
@@ -8,7 +8,7 @@ def specification(version, default_adapter, platform = nil)
|
|
8
8
|
s.name = 'gollum-lib'
|
9
9
|
s.version = version
|
10
10
|
s.platform = platform if platform
|
11
|
-
s.date = '
|
11
|
+
s.date = '2016-02-21'
|
12
12
|
s.rubyforge_project = 'gollum-lib'
|
13
13
|
s.license = 'MIT'
|
14
14
|
|
@@ -25,11 +25,11 @@ def specification(version, default_adapter, platform = nil)
|
|
25
25
|
s.extra_rdoc_files = %w(README.md LICENSE)
|
26
26
|
|
27
27
|
s.add_dependency *default_adapter
|
28
|
-
s.add_dependency 'rouge', '~> 1.
|
28
|
+
s.add_dependency 'rouge', '~> 1.10'
|
29
29
|
s.add_dependency 'nokogiri', '~> 1.6.4'
|
30
30
|
s.add_dependency 'stringex', '~> 2.5.1'
|
31
31
|
s.add_dependency 'sanitize', '~> 2.1.0'
|
32
|
-
s.add_dependency 'github-markup', '~> 1.
|
32
|
+
s.add_dependency 'github-markup', '~> 1.4.0'
|
33
33
|
|
34
34
|
s.add_development_dependency 'org-ruby', '~> 0.9.9'
|
35
35
|
s.add_development_dependency 'kramdown', '~> 1.6.0'
|
@@ -42,6 +42,7 @@ def specification(version, default_adapter, platform = nil)
|
|
42
42
|
# required by pry
|
43
43
|
s.add_development_dependency 'rb-readline', '~> 0.5.1'
|
44
44
|
# updating minitest-reporters requires a new minitest which fails with gollum's tests.
|
45
|
+
s.add_development_dependency 'test-unit', '~> 3.1.5'
|
45
46
|
s.add_development_dependency 'minitest-reporters', '~> 0.14.16'
|
46
47
|
s.add_development_dependency 'nokogiri-diff', '~> 0.2.0'
|
47
48
|
# required by guard
|
@@ -86,6 +87,7 @@ def specification(version, default_adapter, platform = nil)
|
|
86
87
|
lib/gollum-lib/macro.rb
|
87
88
|
lib/gollum-lib/macro/all_pages.rb
|
88
89
|
lib/gollum-lib/macro/global_toc.rb
|
90
|
+
lib/gollum-lib/macro/navigation.rb
|
89
91
|
lib/gollum-lib/macro/series.rb
|
90
92
|
lib/gollum-lib/markup.rb
|
91
93
|
lib/gollum-lib/markups.rb
|
data/gollum-lib_java.gemspec
CHANGED
@@ -1,4 +1,4 @@
|
|
1
1
|
require File.join(File.dirname(__FILE__), 'gemspec.rb')
|
2
2
|
require File.join(File.dirname(__FILE__), 'lib', 'gollum-lib', 'version.rb')
|
3
|
-
default_adapter = ['gollum-rjgit_adapter', '~> 0.
|
3
|
+
default_adapter = ['gollum-rjgit_adapter', '~> 0.3']
|
4
4
|
Gem::Specification.new &specification(Gollum::Lib::VERSION, default_adapter, "java")
|
data/lib/gollum-lib/committer.rb
CHANGED
@@ -94,7 +94,7 @@ module Gollum
|
|
94
94
|
|
95
95
|
dir = '/' if dir.strip.empty?
|
96
96
|
|
97
|
-
fullpath = ::File.join(*[
|
97
|
+
fullpath = ::File.join(*[dir, path])
|
98
98
|
fullpath = fullpath[1..-1] if fullpath =~ /^\//
|
99
99
|
|
100
100
|
if index.current_tree && (tree = index.current_tree / (@wiki.page_file_dir || '/'))
|
@@ -21,22 +21,24 @@ class Gollum::Filter::Code < Gollum::Filter
|
|
21
21
|
data.gsub!(/^#{org_headers}#{org_name}#{org_begin}(.+?)#{org_end}$/mi) do
|
22
22
|
cache_codeblock(Regexp.last_match[3], Regexp.last_match[4])
|
23
23
|
end
|
24
|
+
when :markdown
|
25
|
+
data.gsub!(/^([ \t]*)(~~~+) ?([^\r\n]+)?\r?\n(.+?)\r?\n\1(~~~+)[ \t\r]*$/m) do
|
26
|
+
m_indent = Regexp.last_match[1]
|
27
|
+
m_start = Regexp.last_match[2] # ~~~
|
28
|
+
m_lang = Regexp.last_match[3]
|
29
|
+
m_code = Regexp.last_match[4]
|
30
|
+
m_end = Regexp.last_match[5] # ~~~
|
31
|
+
# start and finish tilde fence must be the same length
|
32
|
+
next '' if m_start.length != m_end.length
|
33
|
+
lang = m_lang ? m_lang.strip : nil
|
34
|
+
if lang
|
35
|
+
lang = lang.match(/\.([^}\s]+)/)
|
36
|
+
lang = lang[1] unless lang.nil?
|
37
|
+
end
|
38
|
+
"#{m_indent}#{cache_codeblock(lang, m_code, m_indent)}"
|
39
|
+
end
|
24
40
|
end
|
25
|
-
|
26
|
-
m_indent = Regexp.last_match[1]
|
27
|
-
m_start = Regexp.last_match[2] # ~~~
|
28
|
-
m_lang = Regexp.last_match[3]
|
29
|
-
m_code = Regexp.last_match[4]
|
30
|
-
m_end = Regexp.last_match[5] # ~~~
|
31
|
-
# start and finish tilde fence must be the same length
|
32
|
-
next '' if m_start.length != m_end.length
|
33
|
-
lang = m_lang ? m_lang.strip : nil
|
34
|
-
if lang
|
35
|
-
lang = lang.match(/\.([^}\s]+)/)
|
36
|
-
lang = lang[1] unless lang.nil?
|
37
|
-
end
|
38
|
-
"#{m_indent}#{cache_codeblock(lang, m_code, m_indent)}"
|
39
|
-
end
|
41
|
+
|
40
42
|
|
41
43
|
data.gsub!(/^([ \t]*)``` ?([^\r\n]+)?\r?\n(.+?)\r?\n\1```[ \t]*\r?$/m) do
|
42
44
|
"#{Regexp.last_match[1]}#{cache_codeblock(Regexp.last_match[2].to_s.strip, Regexp.last_match[3], Regexp.last_match[1])}" # print the SHA1 ID with the proper indentation
|
@@ -72,16 +74,12 @@ class Gollum::Filter::Code < Gollum::Filter
|
|
72
74
|
encoding = @markup.encoding || 'utf-8'
|
73
75
|
|
74
76
|
if defined? Pygments
|
75
|
-
#
|
76
|
-
|
77
|
-
|
78
|
-
else
|
79
|
-
# Set the default lexer to 'text' to prevent #153
|
80
|
-
lexer = Pygments::Lexer[(lang)] || Pygments::Lexer['text']
|
77
|
+
# Set the default lexer to 'text' to prevent #153 and #154
|
78
|
+
lang = lang || 'text'
|
79
|
+
lexer = Pygments::Lexer[(lang)] || Pygments::Lexer['text']
|
81
80
|
|
82
|
-
|
83
|
-
|
84
|
-
end
|
81
|
+
# must set startinline to true for php to be highlighted without <?
|
82
|
+
hl_code = lexer.highlight(code, :options => { :encoding => encoding.to_s, :startinline => true })
|
85
83
|
else # Rouge
|
86
84
|
begin
|
87
85
|
# if `lang` was not defined then assume plaintext
|
@@ -7,12 +7,13 @@ class Gollum::Filter::TOC < Gollum::Filter
|
|
7
7
|
def process(data)
|
8
8
|
|
9
9
|
@doc = Nokogiri::HTML::DocumentFragment.parse(data)
|
10
|
-
@
|
10
|
+
@toc_doc = nil
|
11
11
|
@anchor_names = {}
|
12
12
|
@current_ancestors = []
|
13
13
|
|
14
|
+
toc_str = ''
|
14
15
|
if @markup.sub_page && @markup.parent_page
|
15
|
-
|
16
|
+
toc_str = @markup.parent_page.toc_data
|
16
17
|
else
|
17
18
|
@doc.css('h1,h2,h3,h4,h5,h6').each_with_index do |header, i|
|
18
19
|
next if header.content.empty?
|
@@ -24,16 +25,37 @@ class Gollum::Filter::TOC < Gollum::Filter
|
|
24
25
|
add_anchor_to_header header, anchor_name
|
25
26
|
add_entry_to_toc header, anchor_name
|
26
27
|
end
|
28
|
+
if not @toc_doc.nil?
|
29
|
+
toc_str = @toc_doc.to_xml(@markup.to_xml_opts)
|
30
|
+
end
|
27
31
|
|
28
|
-
@toc = @toc.to_xml(@markup.to_xml_opts) if @toc != nil
|
29
32
|
data = @doc.to_xml(@markup.to_xml_opts)
|
30
|
-
|
31
33
|
end
|
32
|
-
|
33
|
-
@markup.toc =
|
34
|
-
|
35
|
-
|
34
|
+
|
35
|
+
@markup.toc = toc_str
|
36
|
+
|
37
|
+
data.gsub!(/\[\[_TOC_(.*?)\]\]/) do
|
38
|
+
levels = nil
|
39
|
+
levels_match = Regexp.last_match[1].match /\|\s*levels\s*=\s*(\d+)/
|
40
|
+
if levels_match
|
41
|
+
levels = levels_match[1].to_i
|
42
|
+
end
|
43
|
+
|
44
|
+
if levels.nil? || toc_str.empty?
|
45
|
+
toc_str
|
46
|
+
else
|
47
|
+
@toc_doc ||= Nokogiri::HTML::DocumentFragment.parse(toc_str)
|
48
|
+
toc_clone = @toc_doc.clone
|
49
|
+
toc_clone.traverse do |e|
|
50
|
+
if e.name == 'ul' and e.ancestors('ul').length > levels - 1
|
51
|
+
e.remove
|
52
|
+
end
|
53
|
+
end
|
54
|
+
toc_clone.to_xml(@markup.to_xml_opts)
|
55
|
+
end
|
36
56
|
end
|
57
|
+
|
58
|
+
data
|
37
59
|
end
|
38
60
|
|
39
61
|
private
|
@@ -78,26 +100,29 @@ class Gollum::Filter::TOC < Gollum::Filter
|
|
78
100
|
# Adds an entry to the TOC for the given header. The generated entry
|
79
101
|
# is a link to the given anchor name
|
80
102
|
def add_entry_to_toc(header, name)
|
81
|
-
@
|
82
|
-
tail ||= @
|
83
|
-
tail_level ||= 0
|
103
|
+
@toc_doc ||= Nokogiri::XML::DocumentFragment.parse('<div class="toc"><div class="toc-title">Table of Contents</div></div>')
|
104
|
+
@tail ||= @toc_doc.child
|
105
|
+
@tail_level ||= 0
|
84
106
|
|
85
107
|
level = header.name.gsub(/[hH]/, '').to_i
|
86
108
|
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
tail_level
|
109
|
+
if @tail_level < level
|
110
|
+
while @tail_level < level
|
111
|
+
list = Nokogiri::XML::Node.new('ul', @doc)
|
112
|
+
@tail.add_child(list)
|
113
|
+
@tail = list.add_child(Nokogiri::XML::Node.new('li', @doc))
|
114
|
+
@tail_level += 1
|
115
|
+
end
|
116
|
+
else
|
117
|
+
while @tail_level > level
|
118
|
+
@tail = @tail.parent.parent
|
119
|
+
@tail_level -= 1
|
120
|
+
end
|
121
|
+
@tail = @tail.parent.add_child(Nokogiri::XML::Node.new('li', @doc))
|
96
122
|
end
|
97
|
-
|
123
|
+
|
98
124
|
# % -> %25 so anchors work on Firefox. See issue #475
|
99
|
-
|
100
|
-
tail.add_child(node)
|
125
|
+
@tail.add_child(%Q{<a href="##{name}">#{header.content}</a>})
|
101
126
|
end
|
102
127
|
|
103
128
|
# Increments the number of anchors with the given name
|
@@ -3,7 +3,7 @@ module Gollum
|
|
3
3
|
class GlobalTOC < Gollum::Macro
|
4
4
|
def render(title = "Global Table of Contents")
|
5
5
|
if @wiki.pages.size > 0
|
6
|
-
result = '<ul>' + @wiki.pages.map { |p| "<li><a href=\"
|
6
|
+
result = '<ul>' + @wiki.pages.map { |p| "<li><a href=\"/#{p.url_path}\">#{p.url_path_display}</a></li>" }.join + '</ul>'
|
7
7
|
end
|
8
8
|
"<div class=\"toc\"><div class=\"toc-title\">#{title}</div>#{result}</div>"
|
9
9
|
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
module Gollum
|
2
|
+
class Macro
|
3
|
+
class Navigation < Gollum::Macro
|
4
|
+
|
5
|
+
def render(title = "Navigate in the TOC", toc_root_path = ::File.dirname(@page.path), full_path = false)
|
6
|
+
if @wiki.pages.size > 0
|
7
|
+
list_items = @wiki.pages.map do |page|
|
8
|
+
if page.url_path.start_with?(toc_root_path)
|
9
|
+
path_display = full_path ? page.url_path_display : page.url_path_display.sub(toc_root_path,"").sub(/^\//,'')
|
10
|
+
"<li><a href=\"/#{page.url_path}\">#{path_display}</a></li>"
|
11
|
+
end
|
12
|
+
end
|
13
|
+
result = "<ul>#{list_items.join}</ul>"
|
14
|
+
end
|
15
|
+
"<div class=\"toc\"><div class=\"toc-title\">#{title}</div>#{result}</div>"
|
16
|
+
end
|
17
|
+
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
data/lib/gollum-lib/page.rb
CHANGED
@@ -281,6 +281,14 @@ module Gollum
|
|
281
281
|
@wiki.repo.git.versions_for_path(@path, @wiki.ref, log_pagination_options(options))
|
282
282
|
end
|
283
283
|
|
284
|
+
# Public: The last version that has touched the Page. Can be nil.
|
285
|
+
#
|
286
|
+
# Returns Gollum::Git::Commit, or nil.
|
287
|
+
def last_version
|
288
|
+
return @last_version if defined? @last_version
|
289
|
+
@last_version = @wiki.repo.git.versions_for_path(@path, @wiki.ref, {:max_count => 1}).first
|
290
|
+
end
|
291
|
+
|
284
292
|
# Public: The first 7 characters of the current version.
|
285
293
|
#
|
286
294
|
# Returns the first 7 characters of the current version.
|
data/lib/gollum-lib/version.rb
CHANGED
data/lib/gollum-lib/wiki.rb
CHANGED
@@ -310,7 +310,7 @@ module Gollum
|
|
310
310
|
name = @page_class.cname(name) + '.' + ext
|
311
311
|
blob = OpenStruct.new(:name => name, :data => data, :is_symlink => false)
|
312
312
|
page.populate(blob)
|
313
|
-
page.version = @access.commit(
|
313
|
+
page.version = @access.commit(@ref)
|
314
314
|
page
|
315
315
|
end
|
316
316
|
|
@@ -337,6 +337,7 @@ module Gollum
|
|
337
337
|
# spaces must be dashes
|
338
338
|
sanitized_name = name.gsub(' ', '-')
|
339
339
|
sanitized_dir = dir.gsub(' ', '-')
|
340
|
+
sanitized_dir = ::File.join([@page_file_dir, sanitized_dir].compact)
|
340
341
|
|
341
342
|
multi_commit = !!commit[:committer]
|
342
343
|
committer = multi_commit ? commit[:committer] : Committer.new(self, commit)
|
metadata
CHANGED
@@ -1,338 +1,352 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gollum-lib
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tom Preston-Werner
|
8
8
|
- Rick Olson
|
9
|
-
autorequire:
|
9
|
+
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2016-02-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: gollum-grit_adapter
|
16
|
-
|
16
|
+
version_requirements: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
18
|
- - ~>
|
19
19
|
- !ruby/object:Gem::Version
|
20
20
|
version: '1.0'
|
21
|
-
|
22
|
-
prerelease: false
|
23
|
-
version_requirements: !ruby/object:Gem::Requirement
|
21
|
+
requirement: !ruby/object:Gem::Requirement
|
24
22
|
requirements:
|
25
23
|
- - ~>
|
26
24
|
- !ruby/object:Gem::Version
|
27
25
|
version: '1.0'
|
26
|
+
prerelease: false
|
27
|
+
type: :runtime
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: rouge
|
30
|
+
version_requirements: !ruby/object:Gem::Requirement
|
31
|
+
requirements:
|
32
|
+
- - ~>
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: '1.10'
|
30
35
|
requirement: !ruby/object:Gem::Requirement
|
31
36
|
requirements:
|
32
37
|
- - ~>
|
33
38
|
- !ruby/object:Gem::Version
|
34
|
-
version: '1.
|
35
|
-
type: :runtime
|
39
|
+
version: '1.10'
|
36
40
|
prerelease: false
|
41
|
+
type: :runtime
|
42
|
+
- !ruby/object:Gem::Dependency
|
43
|
+
name: nokogiri
|
37
44
|
version_requirements: !ruby/object:Gem::Requirement
|
38
45
|
requirements:
|
39
46
|
- - ~>
|
40
47
|
- !ruby/object:Gem::Version
|
41
|
-
version:
|
42
|
-
- !ruby/object:Gem::Dependency
|
43
|
-
name: nokogiri
|
48
|
+
version: 1.6.4
|
44
49
|
requirement: !ruby/object:Gem::Requirement
|
45
50
|
requirements:
|
46
51
|
- - ~>
|
47
52
|
- !ruby/object:Gem::Version
|
48
53
|
version: 1.6.4
|
49
|
-
type: :runtime
|
50
54
|
prerelease: false
|
55
|
+
type: :runtime
|
56
|
+
- !ruby/object:Gem::Dependency
|
57
|
+
name: stringex
|
51
58
|
version_requirements: !ruby/object:Gem::Requirement
|
52
59
|
requirements:
|
53
60
|
- - ~>
|
54
61
|
- !ruby/object:Gem::Version
|
55
|
-
version:
|
56
|
-
- !ruby/object:Gem::Dependency
|
57
|
-
name: stringex
|
62
|
+
version: 2.5.1
|
58
63
|
requirement: !ruby/object:Gem::Requirement
|
59
64
|
requirements:
|
60
65
|
- - ~>
|
61
66
|
- !ruby/object:Gem::Version
|
62
67
|
version: 2.5.1
|
63
|
-
type: :runtime
|
64
68
|
prerelease: false
|
69
|
+
type: :runtime
|
70
|
+
- !ruby/object:Gem::Dependency
|
71
|
+
name: sanitize
|
65
72
|
version_requirements: !ruby/object:Gem::Requirement
|
66
73
|
requirements:
|
67
74
|
- - ~>
|
68
75
|
- !ruby/object:Gem::Version
|
69
|
-
version: 2.
|
70
|
-
- !ruby/object:Gem::Dependency
|
71
|
-
name: sanitize
|
76
|
+
version: 2.1.0
|
72
77
|
requirement: !ruby/object:Gem::Requirement
|
73
78
|
requirements:
|
74
79
|
- - ~>
|
75
80
|
- !ruby/object:Gem::Version
|
76
81
|
version: 2.1.0
|
77
|
-
type: :runtime
|
78
82
|
prerelease: false
|
83
|
+
type: :runtime
|
84
|
+
- !ruby/object:Gem::Dependency
|
85
|
+
name: github-markup
|
79
86
|
version_requirements: !ruby/object:Gem::Requirement
|
80
87
|
requirements:
|
81
88
|
- - ~>
|
82
89
|
- !ruby/object:Gem::Version
|
83
|
-
version:
|
84
|
-
- !ruby/object:Gem::Dependency
|
85
|
-
name: github-markup
|
90
|
+
version: 1.4.0
|
86
91
|
requirement: !ruby/object:Gem::Requirement
|
87
92
|
requirements:
|
88
93
|
- - ~>
|
89
94
|
- !ruby/object:Gem::Version
|
90
|
-
version: 1.
|
91
|
-
type: :runtime
|
95
|
+
version: 1.4.0
|
92
96
|
prerelease: false
|
97
|
+
type: :runtime
|
98
|
+
- !ruby/object:Gem::Dependency
|
99
|
+
name: org-ruby
|
93
100
|
version_requirements: !ruby/object:Gem::Requirement
|
94
101
|
requirements:
|
95
102
|
- - ~>
|
96
103
|
- !ruby/object:Gem::Version
|
97
|
-
version:
|
98
|
-
- !ruby/object:Gem::Dependency
|
99
|
-
name: org-ruby
|
104
|
+
version: 0.9.9
|
100
105
|
requirement: !ruby/object:Gem::Requirement
|
101
106
|
requirements:
|
102
107
|
- - ~>
|
103
108
|
- !ruby/object:Gem::Version
|
104
109
|
version: 0.9.9
|
105
|
-
type: :development
|
106
110
|
prerelease: false
|
111
|
+
type: :development
|
112
|
+
- !ruby/object:Gem::Dependency
|
113
|
+
name: kramdown
|
107
114
|
version_requirements: !ruby/object:Gem::Requirement
|
108
115
|
requirements:
|
109
116
|
- - ~>
|
110
117
|
- !ruby/object:Gem::Version
|
111
|
-
version:
|
112
|
-
- !ruby/object:Gem::Dependency
|
113
|
-
name: kramdown
|
118
|
+
version: 1.6.0
|
114
119
|
requirement: !ruby/object:Gem::Requirement
|
115
120
|
requirements:
|
116
121
|
- - ~>
|
117
122
|
- !ruby/object:Gem::Version
|
118
123
|
version: 1.6.0
|
119
|
-
type: :development
|
120
124
|
prerelease: false
|
125
|
+
type: :development
|
126
|
+
- !ruby/object:Gem::Dependency
|
127
|
+
name: RedCloth
|
121
128
|
version_requirements: !ruby/object:Gem::Requirement
|
122
129
|
requirements:
|
123
130
|
- - ~>
|
124
131
|
- !ruby/object:Gem::Version
|
125
|
-
version:
|
126
|
-
- !ruby/object:Gem::Dependency
|
127
|
-
name: RedCloth
|
132
|
+
version: 4.2.9
|
128
133
|
requirement: !ruby/object:Gem::Requirement
|
129
134
|
requirements:
|
130
135
|
- - ~>
|
131
136
|
- !ruby/object:Gem::Version
|
132
137
|
version: 4.2.9
|
133
|
-
type: :development
|
134
138
|
prerelease: false
|
139
|
+
type: :development
|
140
|
+
- !ruby/object:Gem::Dependency
|
141
|
+
name: mocha
|
135
142
|
version_requirements: !ruby/object:Gem::Requirement
|
136
143
|
requirements:
|
137
144
|
- - ~>
|
138
145
|
- !ruby/object:Gem::Version
|
139
|
-
version:
|
140
|
-
- !ruby/object:Gem::Dependency
|
141
|
-
name: mocha
|
146
|
+
version: 1.1.0
|
142
147
|
requirement: !ruby/object:Gem::Requirement
|
143
148
|
requirements:
|
144
149
|
- - ~>
|
145
150
|
- !ruby/object:Gem::Version
|
146
151
|
version: 1.1.0
|
147
|
-
type: :development
|
148
152
|
prerelease: false
|
153
|
+
type: :development
|
154
|
+
- !ruby/object:Gem::Dependency
|
155
|
+
name: shoulda
|
149
156
|
version_requirements: !ruby/object:Gem::Requirement
|
150
157
|
requirements:
|
151
158
|
- - ~>
|
152
159
|
- !ruby/object:Gem::Version
|
153
|
-
version:
|
154
|
-
- !ruby/object:Gem::Dependency
|
155
|
-
name: shoulda
|
160
|
+
version: 3.5.0
|
156
161
|
requirement: !ruby/object:Gem::Requirement
|
157
162
|
requirements:
|
158
163
|
- - ~>
|
159
164
|
- !ruby/object:Gem::Version
|
160
165
|
version: 3.5.0
|
161
|
-
type: :development
|
162
166
|
prerelease: false
|
167
|
+
type: :development
|
168
|
+
- !ruby/object:Gem::Dependency
|
169
|
+
name: wikicloth
|
163
170
|
version_requirements: !ruby/object:Gem::Requirement
|
164
171
|
requirements:
|
165
172
|
- - ~>
|
166
173
|
- !ruby/object:Gem::Version
|
167
|
-
version:
|
168
|
-
- !ruby/object:Gem::Dependency
|
169
|
-
name: wikicloth
|
174
|
+
version: 0.8.3
|
170
175
|
requirement: !ruby/object:Gem::Requirement
|
171
176
|
requirements:
|
172
177
|
- - ~>
|
173
178
|
- !ruby/object:Gem::Version
|
174
179
|
version: 0.8.3
|
175
|
-
type: :development
|
176
180
|
prerelease: false
|
181
|
+
type: :development
|
182
|
+
- !ruby/object:Gem::Dependency
|
183
|
+
name: rake
|
177
184
|
version_requirements: !ruby/object:Gem::Requirement
|
178
185
|
requirements:
|
179
186
|
- - ~>
|
180
187
|
- !ruby/object:Gem::Version
|
181
|
-
version:
|
182
|
-
- !ruby/object:Gem::Dependency
|
183
|
-
name: rake
|
188
|
+
version: 10.4.0
|
184
189
|
requirement: !ruby/object:Gem::Requirement
|
185
190
|
requirements:
|
186
191
|
- - ~>
|
187
192
|
- !ruby/object:Gem::Version
|
188
193
|
version: 10.4.0
|
189
|
-
type: :development
|
190
194
|
prerelease: false
|
195
|
+
type: :development
|
196
|
+
- !ruby/object:Gem::Dependency
|
197
|
+
name: pry
|
191
198
|
version_requirements: !ruby/object:Gem::Requirement
|
192
199
|
requirements:
|
193
200
|
- - ~>
|
194
201
|
- !ruby/object:Gem::Version
|
195
|
-
version: 10.
|
196
|
-
- !ruby/object:Gem::Dependency
|
197
|
-
name: pry
|
202
|
+
version: 0.10.1
|
198
203
|
requirement: !ruby/object:Gem::Requirement
|
199
204
|
requirements:
|
200
205
|
- - ~>
|
201
206
|
- !ruby/object:Gem::Version
|
202
207
|
version: 0.10.1
|
203
|
-
type: :development
|
204
208
|
prerelease: false
|
209
|
+
type: :development
|
210
|
+
- !ruby/object:Gem::Dependency
|
211
|
+
name: rb-readline
|
205
212
|
version_requirements: !ruby/object:Gem::Requirement
|
206
213
|
requirements:
|
207
214
|
- - ~>
|
208
215
|
- !ruby/object:Gem::Version
|
209
|
-
version: 0.
|
210
|
-
- !ruby/object:Gem::Dependency
|
211
|
-
name: rb-readline
|
216
|
+
version: 0.5.1
|
212
217
|
requirement: !ruby/object:Gem::Requirement
|
213
218
|
requirements:
|
214
219
|
- - ~>
|
215
220
|
- !ruby/object:Gem::Version
|
216
221
|
version: 0.5.1
|
217
|
-
type: :development
|
218
222
|
prerelease: false
|
223
|
+
type: :development
|
224
|
+
- !ruby/object:Gem::Dependency
|
225
|
+
name: test-unit
|
219
226
|
version_requirements: !ruby/object:Gem::Requirement
|
220
227
|
requirements:
|
221
228
|
- - ~>
|
222
229
|
- !ruby/object:Gem::Version
|
223
|
-
version:
|
224
|
-
- !ruby/object:Gem::Dependency
|
225
|
-
name: minitest-reporters
|
230
|
+
version: 3.1.5
|
226
231
|
requirement: !ruby/object:Gem::Requirement
|
227
232
|
requirements:
|
228
233
|
- - ~>
|
229
234
|
- !ruby/object:Gem::Version
|
230
|
-
version:
|
231
|
-
type: :development
|
235
|
+
version: 3.1.5
|
232
236
|
prerelease: false
|
237
|
+
type: :development
|
238
|
+
- !ruby/object:Gem::Dependency
|
239
|
+
name: minitest-reporters
|
233
240
|
version_requirements: !ruby/object:Gem::Requirement
|
234
241
|
requirements:
|
235
242
|
- - ~>
|
236
243
|
- !ruby/object:Gem::Version
|
237
244
|
version: 0.14.16
|
238
|
-
- !ruby/object:Gem::Dependency
|
239
|
-
name: nokogiri-diff
|
240
245
|
requirement: !ruby/object:Gem::Requirement
|
241
246
|
requirements:
|
242
247
|
- - ~>
|
243
248
|
- !ruby/object:Gem::Version
|
244
|
-
version: 0.
|
245
|
-
type: :development
|
249
|
+
version: 0.14.16
|
246
250
|
prerelease: false
|
251
|
+
type: :development
|
252
|
+
- !ruby/object:Gem::Dependency
|
253
|
+
name: nokogiri-diff
|
247
254
|
version_requirements: !ruby/object:Gem::Requirement
|
248
255
|
requirements:
|
249
256
|
- - ~>
|
250
257
|
- !ruby/object:Gem::Version
|
251
258
|
version: 0.2.0
|
252
|
-
- !ruby/object:Gem::Dependency
|
253
|
-
name: guard
|
254
259
|
requirement: !ruby/object:Gem::Requirement
|
255
260
|
requirements:
|
256
261
|
- - ~>
|
257
262
|
- !ruby/object:Gem::Version
|
258
|
-
version: 2.
|
259
|
-
type: :development
|
263
|
+
version: 0.2.0
|
260
264
|
prerelease: false
|
265
|
+
type: :development
|
266
|
+
- !ruby/object:Gem::Dependency
|
267
|
+
name: guard
|
261
268
|
version_requirements: !ruby/object:Gem::Requirement
|
262
269
|
requirements:
|
263
270
|
- - ~>
|
264
271
|
- !ruby/object:Gem::Version
|
265
272
|
version: 2.8.2
|
266
|
-
- !ruby/object:Gem::Dependency
|
267
|
-
name: guard-minitest
|
268
273
|
requirement: !ruby/object:Gem::Requirement
|
269
274
|
requirements:
|
270
275
|
- - ~>
|
271
276
|
- !ruby/object:Gem::Version
|
272
|
-
version: 2.
|
273
|
-
type: :development
|
277
|
+
version: 2.8.2
|
274
278
|
prerelease: false
|
279
|
+
type: :development
|
280
|
+
- !ruby/object:Gem::Dependency
|
281
|
+
name: guard-minitest
|
275
282
|
version_requirements: !ruby/object:Gem::Requirement
|
276
283
|
requirements:
|
277
284
|
- - ~>
|
278
285
|
- !ruby/object:Gem::Version
|
279
286
|
version: 2.3.2
|
280
|
-
- !ruby/object:Gem::Dependency
|
281
|
-
name: rb-inotify
|
282
287
|
requirement: !ruby/object:Gem::Requirement
|
283
288
|
requirements:
|
284
289
|
- - ~>
|
285
290
|
- !ruby/object:Gem::Version
|
286
|
-
version:
|
287
|
-
type: :development
|
291
|
+
version: 2.3.2
|
288
292
|
prerelease: false
|
293
|
+
type: :development
|
294
|
+
- !ruby/object:Gem::Dependency
|
295
|
+
name: rb-inotify
|
289
296
|
version_requirements: !ruby/object:Gem::Requirement
|
290
297
|
requirements:
|
291
298
|
- - ~>
|
292
299
|
- !ruby/object:Gem::Version
|
293
300
|
version: 0.9.3
|
294
|
-
- !ruby/object:Gem::Dependency
|
295
|
-
name: rb-fsevent
|
296
301
|
requirement: !ruby/object:Gem::Requirement
|
297
302
|
requirements:
|
298
303
|
- - ~>
|
299
304
|
- !ruby/object:Gem::Version
|
300
|
-
version: 0.9.
|
301
|
-
type: :development
|
305
|
+
version: 0.9.3
|
302
306
|
prerelease: false
|
307
|
+
type: :development
|
308
|
+
- !ruby/object:Gem::Dependency
|
309
|
+
name: rb-fsevent
|
303
310
|
version_requirements: !ruby/object:Gem::Requirement
|
304
311
|
requirements:
|
305
312
|
- - ~>
|
306
313
|
- !ruby/object:Gem::Version
|
307
314
|
version: 0.9.4
|
308
|
-
- !ruby/object:Gem::Dependency
|
309
|
-
name: rb-fchange
|
310
315
|
requirement: !ruby/object:Gem::Requirement
|
311
316
|
requirements:
|
312
317
|
- - ~>
|
313
318
|
- !ruby/object:Gem::Version
|
314
|
-
version: 0.
|
315
|
-
type: :development
|
319
|
+
version: 0.9.4
|
316
320
|
prerelease: false
|
321
|
+
type: :development
|
322
|
+
- !ruby/object:Gem::Dependency
|
323
|
+
name: rb-fchange
|
317
324
|
version_requirements: !ruby/object:Gem::Requirement
|
318
325
|
requirements:
|
319
326
|
- - ~>
|
320
327
|
- !ruby/object:Gem::Version
|
321
328
|
version: 0.0.6
|
322
|
-
- !ruby/object:Gem::Dependency
|
323
|
-
name: twitter_cldr
|
324
329
|
requirement: !ruby/object:Gem::Requirement
|
325
330
|
requirements:
|
326
331
|
- - ~>
|
327
332
|
- !ruby/object:Gem::Version
|
328
|
-
version:
|
329
|
-
type: :development
|
333
|
+
version: 0.0.6
|
330
334
|
prerelease: false
|
335
|
+
type: :development
|
336
|
+
- !ruby/object:Gem::Dependency
|
337
|
+
name: twitter_cldr
|
331
338
|
version_requirements: !ruby/object:Gem::Requirement
|
332
339
|
requirements:
|
333
340
|
- - ~>
|
334
341
|
- !ruby/object:Gem::Version
|
335
342
|
version: 3.1.0
|
343
|
+
requirement: !ruby/object:Gem::Requirement
|
344
|
+
requirements:
|
345
|
+
- - ~>
|
346
|
+
- !ruby/object:Gem::Version
|
347
|
+
version: 3.1.0
|
348
|
+
prerelease: false
|
349
|
+
type: :development
|
336
350
|
description: A simple, Git-powered wiki with a sweet API and local frontend.
|
337
351
|
email: tom@github.com
|
338
352
|
executables: []
|
@@ -374,6 +388,7 @@ files:
|
|
374
388
|
- lib/gollum-lib/macro.rb
|
375
389
|
- lib/gollum-lib/macro/all_pages.rb
|
376
390
|
- lib/gollum-lib/macro/global_toc.rb
|
391
|
+
- lib/gollum-lib/macro/navigation.rb
|
377
392
|
- lib/gollum-lib/macro/series.rb
|
378
393
|
- lib/gollum-lib/markup.rb
|
379
394
|
- lib/gollum-lib/markups.rb
|
@@ -387,25 +402,25 @@ homepage: http://github.com/gollum/gollum-lib
|
|
387
402
|
licenses:
|
388
403
|
- MIT
|
389
404
|
metadata: {}
|
390
|
-
post_install_message:
|
405
|
+
post_install_message:
|
391
406
|
rdoc_options:
|
392
407
|
- --charset=UTF-8
|
393
408
|
require_paths:
|
394
409
|
- lib
|
395
410
|
required_ruby_version: !ruby/object:Gem::Requirement
|
396
411
|
requirements:
|
397
|
-
- -
|
412
|
+
- - '>='
|
398
413
|
- !ruby/object:Gem::Version
|
399
414
|
version: '1.9'
|
400
415
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
401
416
|
requirements:
|
402
|
-
- -
|
417
|
+
- - '>='
|
403
418
|
- !ruby/object:Gem::Version
|
404
419
|
version: '0'
|
405
420
|
requirements: []
|
406
421
|
rubyforge_project: gollum-lib
|
407
|
-
rubygems_version: 2.4.
|
408
|
-
signing_key:
|
422
|
+
rubygems_version: 2.4.5
|
423
|
+
signing_key:
|
409
424
|
specification_version: 2
|
410
425
|
summary: A simple, Git-powered wiki.
|
411
426
|
test_files: []
|