gitlab-markup 1.9.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitlab-ci.yml +11 -33
- data/CODEOWNERS +2 -0
- data/CONTRIBUTING.md +4 -4
- data/Gemfile +2 -2
- data/HISTORY.md +10 -1
- data/README.md +4 -4
- data/gitlab-markup.gemspec +4 -1
- data/lib/github-markup.rb +1 -1
- data/test/markups/README.rst.html +3 -4
- data/test/markups/README.toc.rst.html +1 -1
- metadata +48 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 88d9c1213bd85e97379757f6c6175797dbdbd08e4556af4bdce30ee1a0ba3b12
|
4
|
+
data.tar.gz: 0e7c30ed327a2b67b1acfae30825fa296258fcd667685d802e825b626e513692
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bcf5fd0070cb797b347af706122617cebbb2509170dcdbc3aaf9c443f1a4c167044a87778e53fea10a7048d6624af7acc530f1ca37e88e93e4b6e0913c37b486
|
7
|
+
data.tar.gz: 48003af3cedd6635b86513751c02c9566d2c530c1d96a1583e6cab7c45e1321b40dd779c01bcf7c399430a4e473567456b7d018c4c030451f68315918eccc946
|
data/.gitlab-ci.yml
CHANGED
@@ -26,9 +26,11 @@ workflow:
|
|
26
26
|
- vendor/ruby
|
27
27
|
before_script:
|
28
28
|
- apt update
|
29
|
-
- apt install python3 python3-pip git build-essential -y
|
29
|
+
- apt install python3 python3-pip python3-venv git build-essential -y
|
30
30
|
- apt remove python -y
|
31
|
-
-
|
31
|
+
- python3 -m venv /tmp/venv
|
32
|
+
- source /tmp/venv/bin/activate
|
33
|
+
- pip3 install docutils==$DOCUTILS_VERSION
|
32
34
|
- bundle install --jobs $(nproc)
|
33
35
|
script:
|
34
36
|
- echo "Testing without posix-spawn..."
|
@@ -41,37 +43,13 @@ workflow:
|
|
41
43
|
- bundle install
|
42
44
|
- bundle exec rake test
|
43
45
|
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
ruby-27-du16:
|
53
|
-
image: ruby:2.7
|
54
|
-
extends:
|
55
|
-
- .docutils-016
|
56
|
-
- .specs
|
57
|
-
|
58
|
-
ruby-30-du16:
|
59
|
-
image: ruby:3.0
|
60
|
-
extends:
|
61
|
-
- .docutils-016
|
62
|
-
- .specs
|
63
|
-
|
64
|
-
ruby-27-du19:
|
65
|
-
image: ruby:2.7
|
66
|
-
extends:
|
67
|
-
- .docutils-019
|
68
|
-
- .specs
|
69
|
-
|
70
|
-
ruby-30-du19:
|
71
|
-
image: ruby:3.0
|
72
|
-
extends:
|
73
|
-
- .docutils-019
|
74
|
-
- .specs
|
46
|
+
ruby-docutils-spec:
|
47
|
+
image: ruby:$RUBY_VERSION
|
48
|
+
extends: .specs
|
49
|
+
parallel:
|
50
|
+
matrix:
|
51
|
+
- RUBY_VERSION: ['3.0', '3.1', '3.2', '3.3', '3.4']
|
52
|
+
DOCUTILS_VERSION: ['0.21.2']
|
75
53
|
|
76
54
|
# Dependency Scanning
|
77
55
|
gemnasium-dependency_scanning:
|
data/CODEOWNERS
ADDED
data/CONTRIBUTING.md
CHANGED
@@ -8,10 +8,10 @@ This library's only job is to decide which markup format to use and call out to
|
|
8
8
|
|
9
9
|
## Developer Certificate of Origin + License
|
10
10
|
|
11
|
-
By contributing to GitLab
|
12
|
-
conditions for Your present and future Contributions submitted to GitLab
|
13
|
-
Except for the license granted herein to GitLab
|
14
|
-
distributed by GitLab
|
11
|
+
By contributing to GitLab Inc., You accept and agree to the following terms and
|
12
|
+
conditions for Your present and future Contributions submitted to GitLab Inc.
|
13
|
+
Except for the license granted herein to GitLab Inc. and recipients of software
|
14
|
+
distributed by GitLab Inc., You reserve all right, title, and interest in and to
|
15
15
|
Your Contributions. All Contributions are subject to the following DCO + License
|
16
16
|
terms.
|
17
17
|
|
data/Gemfile
CHANGED
@@ -4,9 +4,9 @@ gemspec
|
|
4
4
|
gem "redcarpet", :platforms => :ruby
|
5
5
|
gem "kramdown", :platforms => :jruby
|
6
6
|
gem "RedCloth"
|
7
|
-
gem "rdoc", "~>
|
7
|
+
gem "rdoc", "~> 6.12"
|
8
8
|
gem "org-ruby", "~> 0.9"
|
9
9
|
gem "creole", "~>0.5.0"
|
10
10
|
gem "wikicloth", "=0.8.1", :platforms => :ruby
|
11
|
-
gem "asciidoctor", "
|
11
|
+
gem "asciidoctor", "~> 2.0"
|
12
12
|
gem "rake"
|
data/HISTORY.md
CHANGED
@@ -1,8 +1,17 @@
|
|
1
|
+
# History
|
2
|
+
|
3
|
+
## 2.0.0 (2025-02-26)
|
4
|
+
|
5
|
+
* [Add support for docutils 0.21.2, remove support for 0.16/0.19](https://gitlab.com/gitlab-org/gitlab-markup/-/merge_requests/50)
|
6
|
+
|
7
|
+
## 1.10.0 (2025-02-25)
|
8
|
+
|
9
|
+
* [Add support for Ruby 3.3, and 3.4, remove support for 2.7](https://gitlab.com/gitlab-org/gitlab-markup/-/merge_requests/49)
|
10
|
+
|
1
11
|
## 1.9.0 (2023-01-11)
|
2
12
|
|
3
13
|
* [Add support for docutils 0.19, remove support for 0.14/0.15](https://gitlab.com/gitlab-org/gitlab-markup/-/merge_requests/42)
|
4
14
|
|
5
|
-
|
6
15
|
## 1.8.1 (2022-09-16)
|
7
16
|
|
8
17
|
* [Fix compatibility with Busybox timeout](https://gitlab.com/gitlab-org/gitlab-markup/-/merge_requests/37)
|
data/README.md
CHANGED
@@ -19,21 +19,21 @@ Markups
|
|
19
19
|
The following markups are supported. The dependencies listed are required if
|
20
20
|
you wish to run the library. You can also run `script/bootstrap` to fetch them all (Python 3 required).
|
21
21
|
|
22
|
-
* [.markdown, .mdown, .mkdn, .md](http://daringfireball.net/projects/markdown/) -- `gem install redcarpet` (https://github.com/vmg/redcarpet)
|
22
|
+
* [.markdown, .mdown, .mkdn, .md](http://daringfireball.net/projects/markdown/) -- `gem install redcarpet` (<https://github.com/vmg/redcarpet>)
|
23
23
|
* [.textile](http://www.textism.com/tools/textile/) -- `gem install RedCloth`
|
24
|
-
* [.rdoc](https://ruby.github.io/rdoc/) -- `gem install rdoc -v
|
24
|
+
* [.rdoc](https://ruby.github.io/rdoc/) -- `gem install rdoc -v 6.12`
|
25
25
|
* [.org](http://orgmode.org/) -- `gem install org-ruby`
|
26
26
|
* [.creole](http://wikicreole.org/) -- `gem install creole`
|
27
27
|
* [.mediawiki, .wiki](http://www.mediawiki.org/wiki/Help:Formatting) -- `gem install wikicloth`
|
28
28
|
* [.rst](https://docutils.sourceforge.io/rst.html) -- `pip install docutils`
|
29
|
-
* [.asciidoc, .adoc, .asc](http://asciidoc.org/) -- `gem install asciidoctor` (http://asciidoctor.org)
|
29
|
+
* [.asciidoc, .adoc, .asc](http://asciidoc.org/) -- `gem install asciidoctor` (<http://asciidoctor.org>)
|
30
30
|
* [.pod](http://search.cpan.org/dist/perl/pod/perlpod.pod) -- `Pod::Simple::HTML`
|
31
31
|
comes with Perl >= 5.10. Lower versions should install [Pod::Simple](http://search.cpan.org/~dwheeler/Pod-Simple-3.28/lib/Pod/Simple.pod) from CPAN.
|
32
32
|
|
33
33
|
Installation
|
34
34
|
-----------
|
35
35
|
|
36
|
-
Ruby
|
36
|
+
Ruby 3.1+ is highly recommended (Ruby 3.0 is still supported).
|
37
37
|
|
38
38
|
```shell
|
39
39
|
gem install gitlab-markup
|
data/gitlab-markup.gemspec
CHANGED
@@ -23,8 +23,11 @@ Gem::Specification.new do |s|
|
|
23
23
|
|
24
24
|
s.add_development_dependency 'activesupport', '~> 4.0'
|
25
25
|
s.add_development_dependency 'html-pipeline', '~> 1.0'
|
26
|
+
s.add_development_dependency 'logger', '~> 1.6.6'
|
26
27
|
s.add_development_dependency 'minitest', '~> 5.4.3'
|
28
|
+
s.add_development_dependency 'mutex_m', '~> 0.3.0'
|
27
29
|
s.add_development_dependency 'nokogiri', '~> 1.13.8'
|
28
30
|
s.add_development_dependency 'nokogiri-diff', '~> 0.2.0'
|
29
|
-
s.add_development_dependency '
|
31
|
+
s.add_development_dependency 'rdoc', '~> 6.12'
|
32
|
+
s.add_development_dependency 'sanitize', '~> 6.0.0'
|
30
33
|
end
|
data/lib/github-markup.rb
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
<h2>Subtitle</h2>
|
3
3
|
<p>Example text.</p>
|
4
4
|
<div>
|
5
|
-
<p>Table of Contents</p>
|
5
|
+
<p><a href="#top">Table of Contents</a></p>
|
6
6
|
<ul>
|
7
7
|
<li><a href="#header-2">Header 2</a></li>
|
8
8
|
<li><a href="#field-list">Field list</a></li>
|
@@ -91,7 +91,8 @@ Things that are Awesome (on a scale of 1-11)
|
|
91
91
|
</tr>
|
92
92
|
</tbody>
|
93
93
|
</table>
|
94
|
-
<a href="https://scan.coverity.com/projects/621"
|
94
|
+
<a href="https://scan.coverity.com/projects/621">
|
95
|
+
<img alt="Coverity Scan Build Status" src="https://scan.coverity.com/projects/621/badge.svg">
|
95
96
|
</a>
|
96
97
|
<img alt="Coverity Scan Build Status" src="https://scan.coverity.com/projects/621/badge.svg">
|
97
98
|
<a name="field-list"></a>
|
@@ -120,9 +121,7 @@ but no problem!</td>
|
|
120
121
|
</tr>
|
121
122
|
</tbody>
|
122
123
|
</table>
|
123
|
-
|
124
124
|
<p><a href="mailto:someone@somewhere.org">someone@somewhere.org</a></p>
|
125
|
-
|
126
125
|
<p>Press <kbd>Ctrl+C</kbd> to quit</p>
|
127
126
|
<pre>
|
128
127
|
<code lang="plantuml">Bob -> Alice: hello
|
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gitlab-markup
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Wanstrath
|
8
|
-
autorequire:
|
9
8
|
bindir: bin
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 2025-02-26 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: activesupport
|
@@ -38,6 +37,20 @@ dependencies:
|
|
38
37
|
- - "~>"
|
39
38
|
- !ruby/object:Gem::Version
|
40
39
|
version: '1.0'
|
40
|
+
- !ruby/object:Gem::Dependency
|
41
|
+
name: logger
|
42
|
+
requirement: !ruby/object:Gem::Requirement
|
43
|
+
requirements:
|
44
|
+
- - "~>"
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: 1.6.6
|
47
|
+
type: :development
|
48
|
+
prerelease: false
|
49
|
+
version_requirements: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - "~>"
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: 1.6.6
|
41
54
|
- !ruby/object:Gem::Dependency
|
42
55
|
name: minitest
|
43
56
|
requirement: !ruby/object:Gem::Requirement
|
@@ -52,6 +65,20 @@ dependencies:
|
|
52
65
|
- - "~>"
|
53
66
|
- !ruby/object:Gem::Version
|
54
67
|
version: 5.4.3
|
68
|
+
- !ruby/object:Gem::Dependency
|
69
|
+
name: mutex_m
|
70
|
+
requirement: !ruby/object:Gem::Requirement
|
71
|
+
requirements:
|
72
|
+
- - "~>"
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: 0.3.0
|
75
|
+
type: :development
|
76
|
+
prerelease: false
|
77
|
+
version_requirements: !ruby/object:Gem::Requirement
|
78
|
+
requirements:
|
79
|
+
- - "~>"
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
version: 0.3.0
|
55
82
|
- !ruby/object:Gem::Dependency
|
56
83
|
name: nokogiri
|
57
84
|
requirement: !ruby/object:Gem::Requirement
|
@@ -80,20 +107,34 @@ dependencies:
|
|
80
107
|
- - "~>"
|
81
108
|
- !ruby/object:Gem::Version
|
82
109
|
version: 0.2.0
|
110
|
+
- !ruby/object:Gem::Dependency
|
111
|
+
name: rdoc
|
112
|
+
requirement: !ruby/object:Gem::Requirement
|
113
|
+
requirements:
|
114
|
+
- - "~>"
|
115
|
+
- !ruby/object:Gem::Version
|
116
|
+
version: '6.12'
|
117
|
+
type: :development
|
118
|
+
prerelease: false
|
119
|
+
version_requirements: !ruby/object:Gem::Requirement
|
120
|
+
requirements:
|
121
|
+
- - "~>"
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
version: '6.12'
|
83
124
|
- !ruby/object:Gem::Dependency
|
84
125
|
name: sanitize
|
85
126
|
requirement: !ruby/object:Gem::Requirement
|
86
127
|
requirements:
|
87
128
|
- - "~>"
|
88
129
|
- !ruby/object:Gem::Version
|
89
|
-
version:
|
130
|
+
version: 6.0.0
|
90
131
|
type: :development
|
91
132
|
prerelease: false
|
92
133
|
version_requirements: !ruby/object:Gem::Requirement
|
93
134
|
requirements:
|
94
135
|
- - "~>"
|
95
136
|
- !ruby/object:Gem::Version
|
96
|
-
version:
|
137
|
+
version: 6.0.0
|
97
138
|
description: This gem is used by GitLab to render any non Markdown markup
|
98
139
|
email: chris@ozmm.org
|
99
140
|
executables:
|
@@ -105,6 +146,7 @@ files:
|
|
105
146
|
- ".gitlab-ci.yml"
|
106
147
|
- ".kick"
|
107
148
|
- ".travis.yml"
|
149
|
+
- CODEOWNERS
|
108
150
|
- CONTRIBUTING.md
|
109
151
|
- Gemfile
|
110
152
|
- HISTORY.md
|
@@ -165,7 +207,6 @@ metadata:
|
|
165
207
|
bug_tracker_uri: https://gitlab.com/gitlab-org/gitlab-markup/issues
|
166
208
|
changelog_uri: https://gitlab.com/gitlab-org/gitlab-markup/blob/master/HISTORY.md
|
167
209
|
source_code_uri: https://gitlab.com/gitlab-org/gitlab-markup
|
168
|
-
post_install_message:
|
169
210
|
rdoc_options: []
|
170
211
|
require_paths:
|
171
212
|
- lib
|
@@ -180,8 +221,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
180
221
|
- !ruby/object:Gem::Version
|
181
222
|
version: '0'
|
182
223
|
requirements: []
|
183
|
-
rubygems_version: 3.
|
184
|
-
signing_key:
|
224
|
+
rubygems_version: 3.6.2
|
185
225
|
specification_version: 4
|
186
226
|
summary: Fork from github-markup GitLab uses to render non markdown content
|
187
227
|
test_files:
|