gollum-lib 3.0.0 → 4.0.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of gollum-lib might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/README.md +7 -7
- data/gollum-lib.gemspec +17 -15
- data/lib/gollum-lib.rb +10 -11
- data/lib/gollum-lib/blob_entry.rb +4 -4
- data/lib/gollum-lib/committer.rb +7 -7
- data/lib/gollum-lib/file.rb +3 -3
- data/lib/gollum-lib/filter/code.rb +5 -1
- data/lib/gollum-lib/filter/macro.rb +56 -0
- data/lib/gollum-lib/filter/tags.rb +70 -43
- data/lib/gollum-lib/filter/toc.rb +98 -47
- data/lib/gollum-lib/filter/wsd.rb +1 -1
- data/lib/gollum-lib/git_access.rb +6 -12
- data/lib/gollum-lib/macro.rb +43 -0
- data/lib/gollum-lib/macro/all_pages.rb +11 -0
- data/lib/gollum-lib/markup.rb +5 -1
- data/lib/gollum-lib/page.rb +25 -25
- data/lib/gollum-lib/wiki.rb +61 -42
- metadata +30 -28
- data/lib/gollum-lib/grit_ext.rb +0 -20
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gollum-lib
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 4.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tom Preston-Werner
|
@@ -9,50 +9,50 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-
|
12
|
+
date: 2014-11-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
|
-
name:
|
15
|
+
name: gollum-grit_adapter
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
18
|
- - "~>"
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version:
|
20
|
+
version: 0.1.0
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
25
|
- - "~>"
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version:
|
27
|
+
version: 0.1.0
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: rouge
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
32
|
- - "~>"
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version: 1.
|
34
|
+
version: 1.7.4
|
35
35
|
type: :runtime
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
39
|
- - "~>"
|
40
40
|
- !ruby/object:Gem::Version
|
41
|
-
version: 1.
|
41
|
+
version: 1.7.4
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: nokogiri
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
45
45
|
requirements:
|
46
46
|
- - "~>"
|
47
47
|
- !ruby/object:Gem::Version
|
48
|
-
version: 1.6.
|
48
|
+
version: 1.6.4
|
49
49
|
type: :runtime
|
50
50
|
prerelease: false
|
51
51
|
version_requirements: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
53
|
- - "~>"
|
54
54
|
- !ruby/object:Gem::Version
|
55
|
-
version: 1.6.
|
55
|
+
version: 1.6.4
|
56
56
|
- !ruby/object:Gem::Dependency
|
57
57
|
name: stringex
|
58
58
|
requirement: !ruby/object:Gem::Requirement
|
@@ -87,42 +87,42 @@ dependencies:
|
|
87
87
|
requirements:
|
88
88
|
- - "~>"
|
89
89
|
- !ruby/object:Gem::Version
|
90
|
-
version: 1.1
|
90
|
+
version: 1.3.1
|
91
91
|
type: :runtime
|
92
92
|
prerelease: false
|
93
93
|
version_requirements: !ruby/object:Gem::Requirement
|
94
94
|
requirements:
|
95
95
|
- - "~>"
|
96
96
|
- !ruby/object:Gem::Version
|
97
|
-
version: 1.1
|
97
|
+
version: 1.3.1
|
98
98
|
- !ruby/object:Gem::Dependency
|
99
99
|
name: org-ruby
|
100
100
|
requirement: !ruby/object:Gem::Requirement
|
101
101
|
requirements:
|
102
102
|
- - "~>"
|
103
103
|
- !ruby/object:Gem::Version
|
104
|
-
version: 0.9.
|
104
|
+
version: 0.9.9
|
105
105
|
type: :development
|
106
106
|
prerelease: false
|
107
107
|
version_requirements: !ruby/object:Gem::Requirement
|
108
108
|
requirements:
|
109
109
|
- - "~>"
|
110
110
|
- !ruby/object:Gem::Version
|
111
|
-
version: 0.9.
|
111
|
+
version: 0.9.9
|
112
112
|
- !ruby/object:Gem::Dependency
|
113
113
|
name: github-markdown
|
114
114
|
requirement: !ruby/object:Gem::Requirement
|
115
115
|
requirements:
|
116
116
|
- - "~>"
|
117
117
|
- !ruby/object:Gem::Version
|
118
|
-
version: 0.6.
|
118
|
+
version: 0.6.7
|
119
119
|
type: :development
|
120
120
|
prerelease: false
|
121
121
|
version_requirements: !ruby/object:Gem::Requirement
|
122
122
|
requirements:
|
123
123
|
- - "~>"
|
124
124
|
- !ruby/object:Gem::Version
|
125
|
-
version: 0.6.
|
125
|
+
version: 0.6.7
|
126
126
|
- !ruby/object:Gem::Dependency
|
127
127
|
name: RedCloth
|
128
128
|
requirement: !ruby/object:Gem::Requirement
|
@@ -143,14 +143,14 @@ dependencies:
|
|
143
143
|
requirements:
|
144
144
|
- - "~>"
|
145
145
|
- !ruby/object:Gem::Version
|
146
|
-
version: 1.
|
146
|
+
version: 1.1.0
|
147
147
|
type: :development
|
148
148
|
prerelease: false
|
149
149
|
version_requirements: !ruby/object:Gem::Requirement
|
150
150
|
requirements:
|
151
151
|
- - "~>"
|
152
152
|
- !ruby/object:Gem::Version
|
153
|
-
version: 1.
|
153
|
+
version: 1.1.0
|
154
154
|
- !ruby/object:Gem::Dependency
|
155
155
|
name: shoulda
|
156
156
|
requirement: !ruby/object:Gem::Requirement
|
@@ -185,28 +185,28 @@ dependencies:
|
|
185
185
|
requirements:
|
186
186
|
- - "~>"
|
187
187
|
- !ruby/object:Gem::Version
|
188
|
-
version: 10.
|
188
|
+
version: 10.4.0
|
189
189
|
type: :development
|
190
190
|
prerelease: false
|
191
191
|
version_requirements: !ruby/object:Gem::Requirement
|
192
192
|
requirements:
|
193
193
|
- - "~>"
|
194
194
|
- !ruby/object:Gem::Version
|
195
|
-
version: 10.
|
195
|
+
version: 10.4.0
|
196
196
|
- !ruby/object:Gem::Dependency
|
197
197
|
name: pry
|
198
198
|
requirement: !ruby/object:Gem::Requirement
|
199
199
|
requirements:
|
200
200
|
- - "~>"
|
201
201
|
- !ruby/object:Gem::Version
|
202
|
-
version: 0.
|
202
|
+
version: 0.10.1
|
203
203
|
type: :development
|
204
204
|
prerelease: false
|
205
205
|
version_requirements: !ruby/object:Gem::Requirement
|
206
206
|
requirements:
|
207
207
|
- - "~>"
|
208
208
|
- !ruby/object:Gem::Version
|
209
|
-
version: 0.
|
209
|
+
version: 0.10.1
|
210
210
|
- !ruby/object:Gem::Dependency
|
211
211
|
name: rb-readline
|
212
212
|
requirement: !ruby/object:Gem::Requirement
|
@@ -255,28 +255,28 @@ dependencies:
|
|
255
255
|
requirements:
|
256
256
|
- - "~>"
|
257
257
|
- !ruby/object:Gem::Version
|
258
|
-
version: 2.
|
258
|
+
version: 2.8.2
|
259
259
|
type: :development
|
260
260
|
prerelease: false
|
261
261
|
version_requirements: !ruby/object:Gem::Requirement
|
262
262
|
requirements:
|
263
263
|
- - "~>"
|
264
264
|
- !ruby/object:Gem::Version
|
265
|
-
version: 2.
|
265
|
+
version: 2.8.2
|
266
266
|
- !ruby/object:Gem::Dependency
|
267
267
|
name: guard-minitest
|
268
268
|
requirement: !ruby/object:Gem::Requirement
|
269
269
|
requirements:
|
270
270
|
- - "~>"
|
271
271
|
- !ruby/object:Gem::Version
|
272
|
-
version: 2.2
|
272
|
+
version: 2.3.2
|
273
273
|
type: :development
|
274
274
|
prerelease: false
|
275
275
|
version_requirements: !ruby/object:Gem::Requirement
|
276
276
|
requirements:
|
277
277
|
- - "~>"
|
278
278
|
- !ruby/object:Gem::Version
|
279
|
-
version: 2.2
|
279
|
+
version: 2.3.2
|
280
280
|
- !ruby/object:Gem::Dependency
|
281
281
|
name: rb-inotify
|
282
282
|
requirement: !ruby/object:Gem::Requirement
|
@@ -325,14 +325,14 @@ dependencies:
|
|
325
325
|
requirements:
|
326
326
|
- - "~>"
|
327
327
|
- !ruby/object:Gem::Version
|
328
|
-
version:
|
328
|
+
version: 3.1.0
|
329
329
|
type: :development
|
330
330
|
prerelease: false
|
331
331
|
version_requirements: !ruby/object:Gem::Requirement
|
332
332
|
requirements:
|
333
333
|
- - "~>"
|
334
334
|
- !ruby/object:Gem::Version
|
335
|
-
version:
|
335
|
+
version: 3.1.0
|
336
336
|
description: A simple, Git-powered wiki with a sweet API and local frontend.
|
337
337
|
email: tom@github.com
|
338
338
|
executables: []
|
@@ -355,6 +355,7 @@ files:
|
|
355
355
|
- lib/gollum-lib/file_view.rb
|
356
356
|
- lib/gollum-lib/filter.rb
|
357
357
|
- lib/gollum-lib/filter/code.rb
|
358
|
+
- lib/gollum-lib/filter/macro.rb
|
358
359
|
- lib/gollum-lib/filter/metadata.rb
|
359
360
|
- lib/gollum-lib/filter/plain_text.rb
|
360
361
|
- lib/gollum-lib/filter/remote_code.rb
|
@@ -365,9 +366,10 @@ files:
|
|
365
366
|
- lib/gollum-lib/filter/wsd.rb
|
366
367
|
- lib/gollum-lib/git_access.rb
|
367
368
|
- lib/gollum-lib/gitcode.rb
|
368
|
-
- lib/gollum-lib/grit_ext.rb
|
369
369
|
- lib/gollum-lib/helpers.rb
|
370
370
|
- lib/gollum-lib/hook.rb
|
371
|
+
- lib/gollum-lib/macro.rb
|
372
|
+
- lib/gollum-lib/macro/all_pages.rb
|
371
373
|
- lib/gollum-lib/markup.rb
|
372
374
|
- lib/gollum-lib/markups.rb
|
373
375
|
- lib/gollum-lib/page.rb
|
data/lib/gollum-lib/grit_ext.rb
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
# ~*~ encoding: utf-8 ~*~
|
2
|
-
|
3
|
-
module Grit
|
4
|
-
class Blob
|
5
|
-
def is_symlink
|
6
|
-
self.mode == 0120000
|
7
|
-
end
|
8
|
-
|
9
|
-
def symlink_target(base_path = nil)
|
10
|
-
target = self.data
|
11
|
-
new_path = File.expand_path(File.join('..', target), base_path)
|
12
|
-
|
13
|
-
if File.file? new_path
|
14
|
-
return new_path
|
15
|
-
end
|
16
|
-
end
|
17
|
-
|
18
|
-
nil
|
19
|
-
end
|
20
|
-
end
|