gitlab-gollum-lib 1.0.2 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG +2 -0
- data/README.md +0 -47
- data/VERSION +1 -0
- data/gollum-lib.gemspec +2 -2
- data/lib/gollum-lib/markup.rb +1 -11
- metadata +5 -18
- data/HISTORY.md +0 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 857716d6a1f16207ab19e636ad813203a3fbb114
|
4
|
+
data.tar.gz: fc61538a081a5613cc9f4ac7a32a8d92def82017
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fc11dbb64bd056a4e8f4abb27b564c1acd467bf5f8b9a6948fa396206b4a768e01401fb7f6dcf5ed53734d998b05405c1f292a59c8e248dc8fcb39ac8d4d1e10
|
7
|
+
data.tar.gz: ab6744fb685b1fdd58f15f780b3551a2171cc8eb0c127425a26194f4e6745b71442f41d26abeb9c93fe64149cfdd2b5c9da6af29c8bb948ad63d185afaeee7df
|
data/CHANGELOG
ADDED
data/README.md
CHANGED
@@ -314,53 +314,6 @@ table of contents at the top of all your wiki pages if it is enabled:
|
|
314
314
|
Gollum::Wiki.new("my-gollum-repo.git", {:universal_toc => true})
|
315
315
|
```
|
316
316
|
|
317
|
-
## SYNTAX HIGHLIGHTING
|
318
|
-
|
319
|
-
In page files you can get automatic syntax highlighting for a wide range of
|
320
|
-
languages (courtesy of [Pygments](http://pygments.org/) - must install
|
321
|
-
separately) by using the following syntax:
|
322
|
-
|
323
|
-
```ruby
|
324
|
-
def foo
|
325
|
-
puts 'bar'
|
326
|
-
end
|
327
|
-
```
|
328
|
-
|
329
|
-
The block must start with three backticks, at the beginning of a line or
|
330
|
-
indented with any number of spaces or tabs.
|
331
|
-
After that comes the name of the language that is contained by the
|
332
|
-
block. The language must be one of the `short name` lexer strings supported by
|
333
|
-
Pygments. See the [list of lexers](http://pygments.org/docs/lexers/) for valid
|
334
|
-
options.
|
335
|
-
|
336
|
-
The block contents should be indented at the same level than the opening backticks.
|
337
|
-
If the block contents are indented with an additional two spaces or one tab,
|
338
|
-
then that whitespace will be ignored (this makes the blocks easier to read in plaintext).
|
339
|
-
|
340
|
-
The block must end with three backticks indented at the same level than the opening
|
341
|
-
backticks.
|
342
|
-
|
343
|
-
### GITHUB SYNTAX HIGHLIGHTING
|
344
|
-
|
345
|
-
As an extra feature, you can syntax highlight a file from your repository, allowing
|
346
|
-
you keep some of your sample code in the main repository. The code-snippet is
|
347
|
-
updated when the wiki is rebuilt. You include github code like this:
|
348
|
-
|
349
|
-
```html:github:gollum/gollum-lib/master/test/file_view/1_file.txt```
|
350
|
-
|
351
|
-
This will make the builder look at the **gollum user**, in the **gollum-lib project**,
|
352
|
-
in the **master branch**, at path **test/file_view/1_file.txt**. It will be
|
353
|
-
rewritten to:
|
354
|
-
|
355
|
-
```html
|
356
|
-
<ol class="tree">
|
357
|
-
<li class="file"><a href="0">0</a></li>
|
358
|
-
</ol>
|
359
|
-
```
|
360
|
-
|
361
|
-
Which will be parsed as HTML code during the Pygments run, and thereby coloured
|
362
|
-
appropriately.
|
363
|
-
|
364
317
|
## MATHEMATICAL EQUATIONS
|
365
318
|
|
366
319
|
Start gollum with the `--mathjax` flag. Read more about [MathJax](http://docs.mathjax.org/en/latest/index.html) on the web. Gollum uses the `TeX-AMS-MML_HTMLorMML` config with the `autoload-all` extension.
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
1.1.0
|
data/gollum-lib.gemspec
CHANGED
@@ -22,7 +22,6 @@ Gem::Specification.new do |s|
|
|
22
22
|
s.extra_rdoc_files = %w[README.md LICENSE]
|
23
23
|
|
24
24
|
s.add_dependency('gitlab-grit', '~> 2.6.1')
|
25
|
-
s.add_dependency('gitlab-pygments.rb', '~> 0.5.4')
|
26
25
|
s.add_dependency('github-markup', ['>= 0.7.5', '< 1.0.0'])
|
27
26
|
s.add_dependency('github-markdown', '~> 0.5.3')
|
28
27
|
s.add_dependency('sanitize', '~> 2.0.3')
|
@@ -43,8 +42,9 @@ Gem::Specification.new do |s|
|
|
43
42
|
|
44
43
|
# = MANIFEST =
|
45
44
|
s.files = %w[
|
45
|
+
VERSION
|
46
46
|
Gemfile
|
47
|
-
|
47
|
+
CHANGELOG
|
48
48
|
LICENSE
|
49
49
|
README.md
|
50
50
|
Rakefile
|
data/lib/gollum-lib/markup.rb
CHANGED
@@ -1,15 +1,11 @@
|
|
1
1
|
# ~*~ encoding: utf-8 ~*~
|
2
2
|
require 'digest/sha1'
|
3
3
|
require 'cgi'
|
4
|
-
require 'pygments'
|
5
4
|
require 'base64'
|
6
5
|
|
7
6
|
require File.expand_path '../helpers', __FILE__
|
8
7
|
require File.expand_path '../remote_code', __FILE__
|
9
8
|
|
10
|
-
# initialize Pygments
|
11
|
-
Pygments.start
|
12
|
-
|
13
9
|
module Gollum
|
14
10
|
|
15
11
|
class Markup
|
@@ -580,13 +576,7 @@ module Gollum
|
|
580
576
|
highlighted = []
|
581
577
|
blocks.each do |lang, code|
|
582
578
|
encoding ||= 'utf-8'
|
583
|
-
|
584
|
-
# must set startinline to true for php to be highlighted without <?
|
585
|
-
# http://pygments.org/docs/lexers/
|
586
|
-
hl_code = Pygments.highlight(code, :lexer => lang, :options => {:encoding => encoding.to_s, :startinline => true})
|
587
|
-
rescue
|
588
|
-
hl_code = code
|
589
|
-
end
|
579
|
+
hl_code = code
|
590
580
|
highlighted << hl_code
|
591
581
|
end
|
592
582
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gitlab-gollum-lib
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tom Preston-Werner
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2014-01-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: gitlab-grit
|
@@ -25,20 +25,6 @@ dependencies:
|
|
25
25
|
- - ~>
|
26
26
|
- !ruby/object:Gem::Version
|
27
27
|
version: 2.6.1
|
28
|
-
- !ruby/object:Gem::Dependency
|
29
|
-
name: gitlab-pygments.rb
|
30
|
-
requirement: !ruby/object:Gem::Requirement
|
31
|
-
requirements:
|
32
|
-
- - ~>
|
33
|
-
- !ruby/object:Gem::Version
|
34
|
-
version: 0.5.4
|
35
|
-
type: :runtime
|
36
|
-
prerelease: false
|
37
|
-
version_requirements: !ruby/object:Gem::Requirement
|
38
|
-
requirements:
|
39
|
-
- - ~>
|
40
|
-
- !ruby/object:Gem::Version
|
41
|
-
version: 0.5.4
|
42
28
|
- !ruby/object:Gem::Dependency
|
43
29
|
name: github-markup
|
44
30
|
requirement: !ruby/object:Gem::Requirement
|
@@ -263,8 +249,9 @@ extra_rdoc_files:
|
|
263
249
|
- README.md
|
264
250
|
- LICENSE
|
265
251
|
files:
|
252
|
+
- VERSION
|
266
253
|
- Gemfile
|
267
|
-
-
|
254
|
+
- CHANGELOG
|
268
255
|
- LICENSE
|
269
256
|
- README.md
|
270
257
|
- Rakefile
|
@@ -308,7 +295,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
308
295
|
version: '0'
|
309
296
|
requirements: []
|
310
297
|
rubyforge_project: gollum-lib
|
311
|
-
rubygems_version: 2.
|
298
|
+
rubygems_version: 2.1.11
|
312
299
|
signing_key:
|
313
300
|
specification_version: 2
|
314
301
|
summary: A simple, Git-powered wiki.
|
data/HISTORY.md
DELETED