gollum-lib 5.0.a.4-java → 5.0.1-java

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +2 -1
  3. data/README.md +12 -7
  4. data/Rakefile +7 -7
  5. data/adapter_dependencies.rb +7 -0
  6. data/gemspec.rb +18 -10
  7. data/gollum-lib.gemspec +2 -6
  8. data/gollum-lib_java.gemspec +2 -2
  9. data/lib/gollum-lib.rb +9 -9
  10. data/lib/gollum-lib/blob_entry.rb +2 -8
  11. data/lib/gollum-lib/committer.rb +22 -60
  12. data/lib/gollum-lib/file.rb +105 -82
  13. data/lib/gollum-lib/file_view.rb +8 -4
  14. data/lib/gollum-lib/filter.rb +12 -0
  15. data/lib/gollum-lib/filter/code.rb +9 -13
  16. data/lib/gollum-lib/filter/critic_markup.rb +97 -0
  17. data/lib/gollum-lib/filter/emoji.rb +10 -8
  18. data/lib/gollum-lib/filter/macro.rb +5 -2
  19. data/lib/gollum-lib/filter/plantuml.rb +1 -1
  20. data/lib/gollum-lib/filter/remote_code.rb +3 -2
  21. data/lib/gollum-lib/filter/render.rb +25 -2
  22. data/lib/gollum-lib/filter/sanitize.rb +1 -8
  23. data/lib/gollum-lib/filter/tags.rb +57 -47
  24. data/lib/gollum-lib/filter/toc.rb +17 -21
  25. data/lib/gollum-lib/filter/yaml.rb +1 -1
  26. data/lib/gollum-lib/git_access.rb +0 -25
  27. data/lib/gollum-lib/helpers.rb +13 -3
  28. data/lib/gollum-lib/macro/audio.rb +9 -0
  29. data/lib/gollum-lib/macro/global_toc.rb +2 -1
  30. data/lib/gollum-lib/macro/navigation.rb +8 -6
  31. data/lib/gollum-lib/macro/note.rb +19 -0
  32. data/lib/gollum-lib/macro/octicon.rb +12 -0
  33. data/lib/gollum-lib/macro/warn.rb +11 -0
  34. data/lib/gollum-lib/markup.rb +17 -32
  35. data/lib/gollum-lib/markups.rb +11 -7
  36. data/lib/gollum-lib/page.rb +79 -165
  37. data/lib/gollum-lib/pagination.rb +7 -6
  38. data/lib/gollum-lib/redirects.rb +38 -0
  39. data/lib/gollum-lib/sanitization.rb +32 -357
  40. data/lib/gollum-lib/version.rb +1 -1
  41. data/lib/gollum-lib/wiki.rb +216 -404
  42. metadata +125 -79
  43. data/ROADMAP +0 -6
metadata CHANGED
@@ -1,403 +1,443 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gollum-lib
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.a.4
4
+ version: 5.0.1
5
5
  platform: java
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
12
  date: 2017-04-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
- name: gollum-rjgit_adapter
16
15
  requirement: !ruby/object:Gem::Requirement
17
16
  requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: 0.5.1
18
20
  - - "~>"
19
21
  - !ruby/object:Gem::Version
20
- version: '0.3'
21
- type: :runtime
22
+ version: 0.5.1
23
+ name: gollum-rjgit_adapter
22
24
  prerelease: false
25
+ type: :runtime
23
26
  version_requirements: !ruby/object:Gem::Requirement
24
27
  requirements:
28
+ - - ">="
29
+ - !ruby/object:Gem::Version
30
+ version: 0.5.1
25
31
  - - "~>"
26
32
  - !ruby/object:Gem::Version
27
- version: '0.3'
33
+ version: 0.5.1
28
34
  - !ruby/object:Gem::Dependency
29
- name: rouge
30
35
  requirement: !ruby/object:Gem::Requirement
31
36
  requirements:
32
37
  - - "~>"
33
38
  - !ruby/object:Gem::Version
34
39
  version: '3.1'
35
- type: :runtime
40
+ name: rouge
36
41
  prerelease: false
42
+ type: :runtime
37
43
  version_requirements: !ruby/object:Gem::Requirement
38
44
  requirements:
39
45
  - - "~>"
40
46
  - !ruby/object:Gem::Version
41
47
  version: '3.1'
42
48
  - !ruby/object:Gem::Dependency
43
- name: nokogiri
44
49
  requirement: !ruby/object:Gem::Requirement
45
50
  requirements:
46
51
  - - "~>"
47
52
  - !ruby/object:Gem::Version
48
53
  version: '1.8'
49
- type: :runtime
54
+ name: nokogiri
50
55
  prerelease: false
56
+ type: :runtime
51
57
  version_requirements: !ruby/object:Gem::Requirement
52
58
  requirements:
53
59
  - - "~>"
54
60
  - !ruby/object:Gem::Version
55
61
  version: '1.8'
56
62
  - !ruby/object:Gem::Dependency
57
- name: stringex
58
63
  requirement: !ruby/object:Gem::Requirement
59
64
  requirements:
60
65
  - - "~>"
61
66
  - !ruby/object:Gem::Version
62
- version: '2.6'
63
- type: :runtime
67
+ version: '2.3'
68
+ name: loofah
64
69
  prerelease: false
70
+ type: :runtime
65
71
  version_requirements: !ruby/object:Gem::Requirement
66
72
  requirements:
67
73
  - - "~>"
68
74
  - !ruby/object:Gem::Version
69
- version: '2.6'
75
+ version: '2.3'
70
76
  - !ruby/object:Gem::Dependency
71
- name: sanitize
72
77
  requirement: !ruby/object:Gem::Requirement
73
78
  requirements:
74
79
  - - "~>"
75
80
  - !ruby/object:Gem::Version
76
- version: '2.1'
77
- type: :runtime
81
+ version: '3.0'
82
+ name: github-markup
78
83
  prerelease: false
84
+ type: :runtime
79
85
  version_requirements: !ruby/object:Gem::Requirement
80
86
  requirements:
81
87
  - - "~>"
82
88
  - !ruby/object:Gem::Version
83
- version: '2.1'
89
+ version: '3.0'
84
90
  - !ruby/object:Gem::Dependency
85
- name: github-markup
86
91
  requirement: !ruby/object:Gem::Requirement
87
92
  requirements:
88
93
  - - "~>"
89
94
  - !ruby/object:Gem::Version
90
- version: '1.6'
91
- type: :runtime
95
+ version: '4.1'
96
+ name: gemojione
92
97
  prerelease: false
98
+ type: :runtime
93
99
  version_requirements: !ruby/object:Gem::Requirement
94
100
  requirements:
95
101
  - - "~>"
96
102
  - !ruby/object:Gem::Version
97
- version: '1.6'
103
+ version: '4.1'
98
104
  - !ruby/object:Gem::Dependency
99
- name: gemojione
100
105
  requirement: !ruby/object:Gem::Requirement
101
106
  requirements:
102
107
  - - "~>"
103
108
  - !ruby/object:Gem::Version
104
- version: '3.2'
105
- type: :runtime
109
+ version: '8.5'
110
+ name: octicons
106
111
  prerelease: false
112
+ type: :runtime
107
113
  version_requirements: !ruby/object:Gem::Requirement
108
114
  requirements:
109
115
  - - "~>"
110
116
  - !ruby/object:Gem::Version
111
- version: '3.2'
117
+ version: '8.5'
112
118
  - !ruby/object:Gem::Dependency
113
- name: twitter-text
114
119
  requirement: !ruby/object:Gem::Requirement
115
120
  requirements:
116
121
  - - '='
117
122
  - !ruby/object:Gem::Version
118
123
  version: 1.14.7
119
- type: :runtime
124
+ name: twitter-text
120
125
  prerelease: false
126
+ type: :runtime
121
127
  version_requirements: !ruby/object:Gem::Requirement
122
128
  requirements:
123
129
  - - '='
124
130
  - !ruby/object:Gem::Version
125
131
  version: 1.14.7
126
132
  - !ruby/object:Gem::Dependency
127
- name: org-ruby
128
133
  requirement: !ruby/object:Gem::Requirement
129
134
  requirements:
130
135
  - - "~>"
131
136
  - !ruby/object:Gem::Version
132
137
  version: 0.9.9
133
- type: :development
138
+ name: org-ruby
134
139
  prerelease: false
140
+ type: :development
135
141
  version_requirements: !ruby/object:Gem::Requirement
136
142
  requirements:
137
143
  - - "~>"
138
144
  - !ruby/object:Gem::Version
139
145
  version: 0.9.9
140
146
  - !ruby/object:Gem::Dependency
141
- name: kramdown
142
147
  requirement: !ruby/object:Gem::Requirement
143
148
  requirements:
144
149
  - - "~>"
145
150
  - !ruby/object:Gem::Version
146
- version: '1.13'
151
+ version: 2.1.0
152
+ name: kramdown
153
+ prerelease: false
147
154
  type: :development
155
+ version_requirements: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - "~>"
158
+ - !ruby/object:Gem::Version
159
+ version: 2.1.0
160
+ - !ruby/object:Gem::Dependency
161
+ requirement: !ruby/object:Gem::Requirement
162
+ requirements:
163
+ - - "~>"
164
+ - !ruby/object:Gem::Version
165
+ version: 1.1.0
166
+ name: kramdown-parser-gfm
148
167
  prerelease: false
168
+ type: :development
149
169
  version_requirements: !ruby/object:Gem::Requirement
150
170
  requirements:
151
171
  - - "~>"
152
172
  - !ruby/object:Gem::Version
153
- version: '1.13'
173
+ version: 1.1.0
154
174
  - !ruby/object:Gem::Dependency
155
- name: RedCloth
156
175
  requirement: !ruby/object:Gem::Requirement
157
176
  requirements:
158
177
  - - "~>"
159
178
  - !ruby/object:Gem::Version
160
179
  version: 4.2.9
161
- type: :development
180
+ name: RedCloth
162
181
  prerelease: false
182
+ type: :development
163
183
  version_requirements: !ruby/object:Gem::Requirement
164
184
  requirements:
165
185
  - - "~>"
166
186
  - !ruby/object:Gem::Version
167
187
  version: 4.2.9
168
188
  - !ruby/object:Gem::Dependency
169
- name: mocha
170
189
  requirement: !ruby/object:Gem::Requirement
171
190
  requirements:
172
191
  - - "~>"
173
192
  - !ruby/object:Gem::Version
174
193
  version: 1.2.0
175
- type: :development
194
+ name: mocha
176
195
  prerelease: false
196
+ type: :development
177
197
  version_requirements: !ruby/object:Gem::Requirement
178
198
  requirements:
179
199
  - - "~>"
180
200
  - !ruby/object:Gem::Version
181
201
  version: 1.2.0
182
202
  - !ruby/object:Gem::Dependency
183
- name: shoulda
184
203
  requirement: !ruby/object:Gem::Requirement
185
204
  requirements:
186
205
  - - "~>"
187
206
  - !ruby/object:Gem::Version
188
207
  version: 3.5.0
189
- type: :development
208
+ name: shoulda
190
209
  prerelease: false
210
+ type: :development
191
211
  version_requirements: !ruby/object:Gem::Requirement
192
212
  requirements:
193
213
  - - "~>"
194
214
  - !ruby/object:Gem::Version
195
215
  version: 3.5.0
196
216
  - !ruby/object:Gem::Dependency
197
- name: wikicloth
198
217
  requirement: !ruby/object:Gem::Requirement
199
218
  requirements:
200
219
  - - "~>"
201
220
  - !ruby/object:Gem::Version
202
221
  version: 0.8.3
203
- type: :development
222
+ name: wikicloth
204
223
  prerelease: false
224
+ type: :development
205
225
  version_requirements: !ruby/object:Gem::Requirement
206
226
  requirements:
207
227
  - - "~>"
208
228
  - !ruby/object:Gem::Version
209
229
  version: 0.8.3
210
230
  - !ruby/object:Gem::Dependency
211
- name: bibtex-ruby
212
231
  requirement: !ruby/object:Gem::Requirement
213
232
  requirements:
214
233
  - - "~>"
215
234
  - !ruby/object:Gem::Version
216
235
  version: '4.3'
217
- type: :development
236
+ name: bibtex-ruby
218
237
  prerelease: false
238
+ type: :development
219
239
  version_requirements: !ruby/object:Gem::Requirement
220
240
  requirements:
221
241
  - - "~>"
222
242
  - !ruby/object:Gem::Version
223
243
  version: '4.3'
224
244
  - !ruby/object:Gem::Dependency
225
- name: citeproc-ruby
226
245
  requirement: !ruby/object:Gem::Requirement
227
246
  requirements:
228
247
  - - "~>"
229
248
  - !ruby/object:Gem::Version
230
249
  version: '1.1'
231
- type: :development
250
+ name: citeproc-ruby
232
251
  prerelease: false
252
+ type: :development
233
253
  version_requirements: !ruby/object:Gem::Requirement
234
254
  requirements:
235
255
  - - "~>"
236
256
  - !ruby/object:Gem::Version
237
257
  version: '1.1'
238
258
  - !ruby/object:Gem::Dependency
239
- name: rake
240
259
  requirement: !ruby/object:Gem::Requirement
241
260
  requirements:
242
261
  - - "~>"
243
262
  - !ruby/object:Gem::Version
244
- version: 10.4.0
263
+ version: 1.4.0
264
+ name: unicode_utils
265
+ prerelease: false
245
266
  type: :development
267
+ version_requirements: !ruby/object:Gem::Requirement
268
+ requirements:
269
+ - - "~>"
270
+ - !ruby/object:Gem::Version
271
+ version: 1.4.0
272
+ - !ruby/object:Gem::Dependency
273
+ requirement: !ruby/object:Gem::Requirement
274
+ requirements:
275
+ - - "~>"
276
+ - !ruby/object:Gem::Version
277
+ version: '12.3'
278
+ - - ">="
279
+ - !ruby/object:Gem::Version
280
+ version: 12.3.3
281
+ name: rake
246
282
  prerelease: false
283
+ type: :development
247
284
  version_requirements: !ruby/object:Gem::Requirement
248
285
  requirements:
249
286
  - - "~>"
250
287
  - !ruby/object:Gem::Version
251
- version: 10.4.0
288
+ version: '12.3'
289
+ - - ">="
290
+ - !ruby/object:Gem::Version
291
+ version: 12.3.3
252
292
  - !ruby/object:Gem::Dependency
253
- name: pry
254
293
  requirement: !ruby/object:Gem::Requirement
255
294
  requirements:
256
295
  - - "~>"
257
296
  - !ruby/object:Gem::Version
258
297
  version: 0.10.1
259
- type: :development
298
+ name: pry
260
299
  prerelease: false
300
+ type: :development
261
301
  version_requirements: !ruby/object:Gem::Requirement
262
302
  requirements:
263
303
  - - "~>"
264
304
  - !ruby/object:Gem::Version
265
305
  version: 0.10.1
266
306
  - !ruby/object:Gem::Dependency
267
- name: rb-readline
268
307
  requirement: !ruby/object:Gem::Requirement
269
308
  requirements:
270
309
  - - "~>"
271
310
  - !ruby/object:Gem::Version
272
311
  version: 0.5.1
273
- type: :development
312
+ name: rb-readline
274
313
  prerelease: false
314
+ type: :development
275
315
  version_requirements: !ruby/object:Gem::Requirement
276
316
  requirements:
277
317
  - - "~>"
278
318
  - !ruby/object:Gem::Version
279
319
  version: 0.5.1
280
320
  - !ruby/object:Gem::Dependency
281
- name: test-unit
282
321
  requirement: !ruby/object:Gem::Requirement
283
322
  requirements:
284
323
  - - "~>"
285
324
  - !ruby/object:Gem::Version
286
325
  version: 3.1.5
287
- type: :development
326
+ name: test-unit
288
327
  prerelease: false
328
+ type: :development
289
329
  version_requirements: !ruby/object:Gem::Requirement
290
330
  requirements:
291
331
  - - "~>"
292
332
  - !ruby/object:Gem::Version
293
333
  version: 3.1.5
294
334
  - !ruby/object:Gem::Dependency
295
- name: minitest-reporters
296
335
  requirement: !ruby/object:Gem::Requirement
297
336
  requirements:
298
337
  - - "~>"
299
338
  - !ruby/object:Gem::Version
300
- version: 0.14.16
301
- type: :development
339
+ version: '1.4'
340
+ name: minitest-reporters
302
341
  prerelease: false
342
+ type: :development
303
343
  version_requirements: !ruby/object:Gem::Requirement
304
344
  requirements:
305
345
  - - "~>"
306
346
  - !ruby/object:Gem::Version
307
- version: 0.14.16
347
+ version: '1.4'
308
348
  - !ruby/object:Gem::Dependency
309
- name: nokogiri-diff
310
349
  requirement: !ruby/object:Gem::Requirement
311
350
  requirements:
312
351
  - - "~>"
313
352
  - !ruby/object:Gem::Version
314
353
  version: 0.2.0
315
- type: :development
354
+ name: nokogiri-diff
316
355
  prerelease: false
356
+ type: :development
317
357
  version_requirements: !ruby/object:Gem::Requirement
318
358
  requirements:
319
359
  - - "~>"
320
360
  - !ruby/object:Gem::Version
321
361
  version: 0.2.0
322
362
  - !ruby/object:Gem::Dependency
323
- name: guard
324
363
  requirement: !ruby/object:Gem::Requirement
325
364
  requirements:
326
365
  - - "~>"
327
366
  - !ruby/object:Gem::Version
328
367
  version: 2.8.2
329
- type: :development
368
+ name: guard
330
369
  prerelease: false
370
+ type: :development
331
371
  version_requirements: !ruby/object:Gem::Requirement
332
372
  requirements:
333
373
  - - "~>"
334
374
  - !ruby/object:Gem::Version
335
375
  version: 2.8.2
336
376
  - !ruby/object:Gem::Dependency
337
- name: guard-minitest
338
377
  requirement: !ruby/object:Gem::Requirement
339
378
  requirements:
340
379
  - - "~>"
341
380
  - !ruby/object:Gem::Version
342
381
  version: 2.3.2
343
- type: :development
382
+ name: guard-minitest
344
383
  prerelease: false
384
+ type: :development
345
385
  version_requirements: !ruby/object:Gem::Requirement
346
386
  requirements:
347
387
  - - "~>"
348
388
  - !ruby/object:Gem::Version
349
389
  version: 2.3.2
350
390
  - !ruby/object:Gem::Dependency
351
- name: rb-inotify
352
391
  requirement: !ruby/object:Gem::Requirement
353
392
  requirements:
354
393
  - - "~>"
355
394
  - !ruby/object:Gem::Version
356
395
  version: 0.9.3
357
- type: :development
396
+ name: rb-inotify
358
397
  prerelease: false
398
+ type: :development
359
399
  version_requirements: !ruby/object:Gem::Requirement
360
400
  requirements:
361
401
  - - "~>"
362
402
  - !ruby/object:Gem::Version
363
403
  version: 0.9.3
364
404
  - !ruby/object:Gem::Dependency
365
- name: rb-fsevent
366
405
  requirement: !ruby/object:Gem::Requirement
367
406
  requirements:
368
407
  - - "~>"
369
408
  - !ruby/object:Gem::Version
370
409
  version: 0.9.4
371
- type: :development
410
+ name: rb-fsevent
372
411
  prerelease: false
412
+ type: :development
373
413
  version_requirements: !ruby/object:Gem::Requirement
374
414
  requirements:
375
415
  - - "~>"
376
416
  - !ruby/object:Gem::Version
377
417
  version: 0.9.4
378
418
  - !ruby/object:Gem::Dependency
379
- name: rb-fchange
380
419
  requirement: !ruby/object:Gem::Requirement
381
420
  requirements:
382
421
  - - "~>"
383
422
  - !ruby/object:Gem::Version
384
423
  version: 0.0.6
385
- type: :development
424
+ name: rb-fchange
386
425
  prerelease: false
426
+ type: :development
387
427
  version_requirements: !ruby/object:Gem::Requirement
388
428
  requirements:
389
429
  - - "~>"
390
430
  - !ruby/object:Gem::Version
391
431
  version: 0.0.6
392
432
  - !ruby/object:Gem::Dependency
393
- name: twitter_cldr
394
433
  requirement: !ruby/object:Gem::Requirement
395
434
  requirements:
396
435
  - - "~>"
397
436
  - !ruby/object:Gem::Version
398
437
  version: 3.1.0
399
- type: :development
438
+ name: twitter_cldr
400
439
  prerelease: false
440
+ type: :development
401
441
  version_requirements: !ruby/object:Gem::Requirement
402
442
  requirements:
403
443
  - - "~>"
@@ -415,8 +455,8 @@ files:
415
455
  - HISTORY.md
416
456
  - LICENSE
417
457
  - README.md
418
- - ROADMAP
419
458
  - Rakefile
459
+ - adapter_dependencies.rb
420
460
  - docs/sanitization.md
421
461
  - gemspec.rb
422
462
  - gollum-lib.gemspec
@@ -429,6 +469,7 @@ files:
429
469
  - lib/gollum-lib/filter.rb
430
470
  - lib/gollum-lib/filter/bibtex.rb
431
471
  - lib/gollum-lib/filter/code.rb
472
+ - lib/gollum-lib/filter/critic_markup.rb
432
473
  - lib/gollum-lib/filter/emoji.rb
433
474
  - lib/gollum-lib/filter/macro.rb
434
475
  - lib/gollum-lib/filter/pandoc_bib.rb
@@ -445,14 +486,19 @@ files:
445
486
  - lib/gollum-lib/hook.rb
446
487
  - lib/gollum-lib/macro.rb
447
488
  - lib/gollum-lib/macro/all_pages.rb
489
+ - lib/gollum-lib/macro/audio.rb
448
490
  - lib/gollum-lib/macro/global_toc.rb
449
491
  - lib/gollum-lib/macro/navigation.rb
492
+ - lib/gollum-lib/macro/note.rb
493
+ - lib/gollum-lib/macro/octicon.rb
450
494
  - lib/gollum-lib/macro/series.rb
451
495
  - lib/gollum-lib/macro/video.rb
496
+ - lib/gollum-lib/macro/warn.rb
452
497
  - lib/gollum-lib/markup.rb
453
498
  - lib/gollum-lib/markups.rb
454
499
  - lib/gollum-lib/page.rb
455
500
  - lib/gollum-lib/pagination.rb
501
+ - lib/gollum-lib/redirects.rb
456
502
  - lib/gollum-lib/sanitization.rb
457
503
  - lib/gollum-lib/version.rb
458
504
  - lib/gollum-lib/wiki.rb
@@ -461,7 +507,7 @@ homepage: http://github.com/gollum/gollum-lib
461
507
  licenses:
462
508
  - MIT
463
509
  metadata: {}
464
- post_install_message:
510
+ post_install_message:
465
511
  rdoc_options:
466
512
  - "--charset=UTF-8"
467
513
  require_paths:
@@ -470,16 +516,16 @@ required_ruby_version: !ruby/object:Gem::Requirement
470
516
  requirements:
471
517
  - - ">="
472
518
  - !ruby/object:Gem::Version
473
- version: '2.1'
519
+ version: '2.4'
474
520
  required_rubygems_version: !ruby/object:Gem::Requirement
475
521
  requirements:
476
- - - ">"
522
+ - - ">="
477
523
  - !ruby/object:Gem::Version
478
- version: 1.3.1
524
+ version: '0'
479
525
  requirements: []
480
526
  rubyforge_project: gollum-lib
481
- rubygems_version: 2.7.7
482
- signing_key:
527
+ rubygems_version: 2.7.10
528
+ signing_key:
483
529
  specification_version: 2
484
530
  summary: A simple, Git-powered wiki.
485
531
  test_files: []