github-markup 1.4.7 → 1.4.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +3 -0
- data/Gemfile +2 -1
- data/github-markup.gemspec +3 -3
- data/lib/github-markup.rb +1 -1
- data/lib/github/commands/pod2html +1 -1
- data/lib/github/markup/markdown.rb +1 -1
- data/test/markups/README.litcoffee.html +15 -26
- metadata +12 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 079e97612136f122c4f4d65390b4b7c510224531
|
4
|
+
data.tar.gz: 207db8ce9d4a6d229b03c22113ec4d4423d61c68
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e5597a5f945a0fc346427b8d23cff62344c2592bca272f012e70fdadaf7a422ef7aa624d92a7e33efbbb7df919a49f8860c3ad33050b9d5f85bcd9b8fc487b93
|
7
|
+
data.tar.gz: 7471c4ae95368acbe10fe2dcf96286c845c5c2583c8e006be9b45bbcc08b470dd098203e58e1933d01d7eb7a4e3b5bbd03ec3a24b74c033de4b422be3d9dccbb
|
data/.travis.yml
CHANGED
@@ -11,6 +11,9 @@ git:
|
|
11
11
|
depth: 10
|
12
12
|
before_install:
|
13
13
|
- sudo apt-get install perl
|
14
|
+
- sudo add-apt-repository --yes ppa:kalakris/cmake
|
15
|
+
- sudo apt-get update -qq
|
16
|
+
- sudo apt-get install cmake
|
14
17
|
- curl -L http://cpanmin.us | perl - --sudo App::cpanminus
|
15
18
|
- sudo cpanm --installdeps --notest Pod::Simple
|
16
19
|
- sudo pip install docutils
|
data/Gemfile
CHANGED
@@ -4,7 +4,8 @@ gemspec
|
|
4
4
|
gem "posix-spawn", :platforms => :ruby
|
5
5
|
gem "redcarpet", :platforms => :ruby
|
6
6
|
gem "kramdown", :platforms => :jruby
|
7
|
-
gem "
|
7
|
+
gem "RedCloth"
|
8
|
+
gem "commonmarker", "~> 0.14.12"
|
8
9
|
gem "rdoc", "~>3.6"
|
9
10
|
gem "org-ruby", "= 0.9.9"
|
10
11
|
gem "creole", "~>0.3.6"
|
data/github-markup.gemspec
CHANGED
@@ -16,13 +16,13 @@ Gem::Specification.new do |s|
|
|
16
16
|
s.test_files = s.files.grep(%r{^(test|spec|features)/})
|
17
17
|
s.require_paths = %w[lib]
|
18
18
|
|
19
|
-
s.add_dependency "github-linguist", "~> 5.0", ">= 5.0.
|
20
|
-
s.add_dependency "rinku"
|
19
|
+
s.add_dependency "github-linguist", "~> 5.0", ">= 5.0.8"
|
20
|
+
s.add_dependency "rinku"
|
21
21
|
s.add_development_dependency 'rake', '~> 12'
|
22
22
|
s.add_development_dependency 'activesupport', '~> 4.0'
|
23
23
|
s.add_development_dependency 'minitest', '~> 5.4', '>= 5.4.3'
|
24
24
|
s.add_development_dependency 'html-pipeline', '~> 1.0'
|
25
25
|
s.add_development_dependency 'sanitize', '~> 2.1', '>= 2.1.0'
|
26
|
-
s.add_development_dependency 'nokogiri', '
|
26
|
+
s.add_development_dependency 'nokogiri', '1.6.8.1'
|
27
27
|
s.add_development_dependency 'nokogiri-diff', '~> 0.2.0'
|
28
28
|
end
|
data/lib/github-markup.rb
CHANGED
@@ -6,7 +6,7 @@ use Pod::Simple::XHTML 3.11;
|
|
6
6
|
my $p = Pod::Simple::XHTML->new;
|
7
7
|
$p->html_header('');
|
8
8
|
$p->html_footer('');
|
9
|
-
$p->perldoc_url_prefix('
|
9
|
+
$p->perldoc_url_prefix('https://metacpan.org/pod/');
|
10
10
|
$p->strip_verbatim_indent(sub {
|
11
11
|
my $lines = shift;
|
12
12
|
(my $indent = $lines->[0]) =~ s/\S.*//;
|
@@ -5,7 +5,7 @@ module GitHub
|
|
5
5
|
class Markdown < Implementation
|
6
6
|
MARKDOWN_GEMS = {
|
7
7
|
"commonmarker" => proc { |content|
|
8
|
-
CommonMarker.render_html(content, :
|
8
|
+
CommonMarker.render_html(content, :GITHUB_PRE_LANG, [:tagfilter, :autolink, :table, :strikethrough])
|
9
9
|
},
|
10
10
|
"github/markdown" => proc { |content|
|
11
11
|
GitHub::Markdown.render(content)
|
@@ -1,43 +1,28 @@
|
|
1
1
|
<h2>Literate CoffeeScript Test</h2>
|
2
|
-
|
3
2
|
<blockquote>
|
4
|
-
<p>Taken from https://github.com/jashkenas/coffee-script/blob/master/test/literate.litcoffee</p>
|
3
|
+
<p>Taken from <a href="https://github.com/jashkenas/coffee-script/blob/master/test/literate.litcoffee">https://github.com/jashkenas/coffee-script/blob/master/test/literate.litcoffee</a></p>
|
5
4
|
</blockquote>
|
6
|
-
|
7
5
|
<p>comment comment</p>
|
8
|
-
|
9
6
|
<pre><code>test "basic literate CoffeeScript parsing", ->
|
10
7
|
ok yes
|
11
8
|
</code></pre>
|
12
|
-
|
13
9
|
<p>now with a...</p>
|
14
|
-
|
15
10
|
<pre><code>test "broken up indentation", ->
|
16
11
|
</code></pre>
|
17
|
-
|
18
12
|
<p>... broken up ...</p>
|
19
|
-
|
20
13
|
<pre><code> do ->
|
21
14
|
</code></pre>
|
22
|
-
|
23
15
|
<p>... nested block.</p>
|
24
|
-
|
25
16
|
<pre><code> ok yes
|
26
17
|
</code></pre>
|
27
|
-
|
28
18
|
<p>Code must be separated from text by a blank line.</p>
|
29
|
-
|
30
19
|
<pre><code>test "code blocks must be preceded by a blank line", ->
|
31
20
|
</code></pre>
|
32
|
-
|
33
21
|
<p>The next line is part of the text and will not be executed.
|
34
|
-
|
35
|
-
|
22
|
+
fail()</p>
|
36
23
|
<pre><code> ok yes
|
37
24
|
</code></pre>
|
38
|
-
|
39
25
|
<p>Code in <code>backticks is not parsed</code> and...</p>
|
40
|
-
|
41
26
|
<pre><code>test "comments in indented blocks work", ->
|
42
27
|
do ->
|
43
28
|
do ->
|
@@ -49,18 +34,22 @@
|
|
49
34
|
|
50
35
|
ok yes
|
51
36
|
</code></pre>
|
52
|
-
|
53
37
|
<p>Regular <a href="http://example.com/markdown">Markdown</a> features,
|
54
38
|
like links and unordered lists, are fine:</p>
|
55
|
-
|
56
39
|
<ul>
|
57
|
-
<li
|
58
|
-
<
|
59
|
-
|
60
|
-
<li
|
40
|
+
<li>
|
41
|
+
<p>I</p>
|
42
|
+
</li>
|
43
|
+
<li>
|
44
|
+
<p>Am</p>
|
45
|
+
</li>
|
46
|
+
<li>
|
47
|
+
<p>A</p>
|
48
|
+
</li>
|
49
|
+
<li>
|
50
|
+
<p>List</p>
|
51
|
+
</li>
|
61
52
|
</ul>
|
62
|
-
|
63
53
|
<p>Tabs work too:</p>
|
64
|
-
|
65
54
|
<p>test "tabbed code", ->
|
66
|
-
|
55
|
+
ok yes</p>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: github-markup
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Wanstrath
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-03-
|
11
|
+
date: 2017-03-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: github-linguist
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '5.0'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 5.0.
|
22
|
+
version: 5.0.8
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,21 +29,21 @@ dependencies:
|
|
29
29
|
version: '5.0'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 5.0.
|
32
|
+
version: 5.0.8
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: rinku
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
36
36
|
requirements:
|
37
|
-
- - "
|
37
|
+
- - ">="
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version: '
|
39
|
+
version: '0'
|
40
40
|
type: :runtime
|
41
41
|
prerelease: false
|
42
42
|
version_requirements: !ruby/object:Gem::Requirement
|
43
43
|
requirements:
|
44
|
-
- - "
|
44
|
+
- - ">="
|
45
45
|
- !ruby/object:Gem::Version
|
46
|
-
version: '
|
46
|
+
version: '0'
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: rake
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
@@ -130,22 +130,16 @@ dependencies:
|
|
130
130
|
name: nokogiri
|
131
131
|
requirement: !ruby/object:Gem::Requirement
|
132
132
|
requirements:
|
133
|
-
- -
|
133
|
+
- - '='
|
134
134
|
- !ruby/object:Gem::Version
|
135
|
-
version:
|
136
|
-
- - ">="
|
137
|
-
- !ruby/object:Gem::Version
|
138
|
-
version: 1.6.1
|
135
|
+
version: 1.6.8.1
|
139
136
|
type: :development
|
140
137
|
prerelease: false
|
141
138
|
version_requirements: !ruby/object:Gem::Requirement
|
142
139
|
requirements:
|
143
|
-
- -
|
144
|
-
- !ruby/object:Gem::Version
|
145
|
-
version: '1.6'
|
146
|
-
- - ">="
|
140
|
+
- - '='
|
147
141
|
- !ruby/object:Gem::Version
|
148
|
-
version: 1.6.1
|
142
|
+
version: 1.6.8.1
|
149
143
|
- !ruby/object:Gem::Dependency
|
150
144
|
name: nokogiri-diff
|
151
145
|
requirement: !ruby/object:Gem::Requirement
|