gitlab_kramdown 0.6.0 → 0.11.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cd0ca6d723ef2cfbc3cc3ec87d184561abea8d451172a0bb4a3a9a136e243eb7
4
- data.tar.gz: 8e322c9cda56f6f730a0cae0823cf27ad2bf3092f33ef5bba04760b725e64cdc
3
+ metadata.gz: 4cb65c38f5c2b3874971ea5d06871cd88e66461665292431117b24800319f9e8
4
+ data.tar.gz: 1824f2bb612c8b161231646161bb2c9e05f167fbc2d3879d6a5701bdc1e194b5
5
5
  SHA512:
6
- metadata.gz: f31f20474eabfe807f33e33a36cedf1487f44c0cec1a4298c7852fe68237fb7638130fdb1603e790b60a60eb1db9c0e5a2af30509b25cb387346c22247cd5a03
7
- data.tar.gz: 7cf6232f7840fd12e17c294e332213b226cdbe6bcee554ccc6e6ec9e30c12333b185bdc2746cf28d3d91f97a284f63fe8583aeee0cfed9afdcb8fe26130be906
6
+ metadata.gz: be2d78979f965235916159f56fe2c33be32d71f749cc7028542b462e7664879f2796a4824ad6b1ac8c87b4ce0a4702d433d6c17f41509064d43693a9f52bb74a
7
+ data.tar.gz: abc999da7070bcd89bc807453d430cfa2dcf02a2fa866fa12ab3886454edb52d88a2fd40b2e66d3416a084eafa4decb4ebd007459a26b4bc6745582e666820e9
@@ -0,0 +1,134 @@
1
+ # Changelog
2
+ All notable changes to this project will be documented in this file.
3
+
4
+ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
5
+ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
6
+
7
+ ## [Unreleased]
8
+
9
+ ## [0.11.0] - 2021-01-25
10
+
11
+ ### Changed
12
+
13
+ - Update Gem dependencies.
14
+ - Update minimum required Ruby to 2.7.x.
15
+
16
+ ## [0.10.0] - 2020-08-27
17
+
18
+ - Update Gem dependencies
19
+
20
+ ## [0.9.0] - 2019-10-17
21
+
22
+ ### Fixed
23
+
24
+ - Fix very long IDs for headers that include links.
25
+
26
+ ### Added
27
+
28
+ - Images should be clickable and linked to itself
29
+ - Clickable images behavior is configurable
30
+
31
+ ## [0.8.0] - 2019-10-14
32
+
33
+ ### Changed
34
+
35
+ - Revert "Fix very long IDs for headers that include links"
36
+
37
+ ## [0.7.0] - 2019-10-11
38
+
39
+ ### Added
40
+
41
+ - Add support for PlantUML
42
+
43
+ ### Changed
44
+
45
+ - Ruby 2.4 support is dropped.
46
+ - Fix very long IDs for headers that include links.
47
+
48
+ ## [0.6.0] - 2019-05-07
49
+
50
+ ### Changed
51
+
52
+ - URL Autolinks are now disabled by default (you can re-enable with `autolink: true` configuration param)
53
+
54
+ ### Added
55
+
56
+ - Added support for rendering Mermaid when their JS is available
57
+
58
+ ## [0.5.0] - 2019-04-09
59
+
60
+ ### Added
61
+
62
+ - Strikethrough support
63
+
64
+ ## [0.4.2] - 2018-11-21
65
+
66
+ ### Changed
67
+
68
+ - URL autolinks will not execute inside `[]()` or `[]` blocks
69
+ - Freezing `kramdown` version to allow only patchlevel changes
70
+
71
+ ## [0.4.1] - 2018-11-02
72
+
73
+ ### Added
74
+
75
+ - Codebase now have a benchmark utility to compare with plain Kramdown
76
+
77
+ ### Changed
78
+
79
+ - Many performance improvements on existing RegExp rules
80
+ - Improve gemspec metadata and include only needed files on gem
81
+
82
+ ## [0.4.0] - 2018-04-12
83
+
84
+ ### Added
85
+
86
+ - URL auto-linking support
87
+
88
+ ### Changed
89
+
90
+ - Fixed many inconsistencies in references autolink
91
+
92
+ ## [0.3.0] - 2018-03-23
93
+
94
+ ### Added
95
+
96
+ - Headers will include by default an anchor tag (you can disable with `linkable_headers: false`)
97
+
98
+ ### Changed
99
+
100
+ - Fixed multiline blockquote delimiter
101
+ - GitLab URL is not customizable with `gitlab_url: 'http://yourcustomgitlab.com'`
102
+
103
+ ## [0.2.0] - 2018-03-19
104
+
105
+ ### Added
106
+
107
+ - Syntax highlighter uses `` ``` `` or `~~~`
108
+
109
+ ### Changed
110
+
111
+ - Requires Ruby 2.4
112
+ - Requires rouge `~> 3.0`
113
+
114
+ ## [0.1.0] - 2018-03-17
115
+
116
+ ### Added
117
+
118
+ - The initial version of the Gem
119
+ - Special GitLab References
120
+ - Multiline Blockquote
121
+
122
+ [0.11.0]: https://gitlab.com/gitlab-org/gitlab_kramdown/compare/v0.10.0...v0.11.0
123
+ [0.10.0]: https://gitlab.com/gitlab-org/gitlab_kramdown/compare/v0.9.0...v0.10.0
124
+ [0.9.0]: https://gitlab.com/gitlab-org/gitlab_kramdown/compare/v0.8.0...v0.9.0
125
+ [0.8.0]: https://gitlab.com/gitlab-org/gitlab_kramdown/compare/v0.7.0...v0.8.0
126
+ [0.7.0]: https://gitlab.com/gitlab-org/gitlab_kramdown/compare/v0.6.0...v0.7.0
127
+ [0.6.0]: https://gitlab.com/gitlab-org/gitlab_kramdown/compare/v0.5.0...v0.6.0
128
+ [0.5.0]: https://gitlab.com/gitlab-org/gitlab_kramdown/compare/v0.4.2...v0.5.0
129
+ [0.4.2]: https://gitlab.com/gitlab-org/gitlab_kramdown/compare/v0.4.1...v0.4.2
130
+ [0.4.1]: https://gitlab.com/gitlab-org/gitlab_kramdown/compare/v0.4.0...v0.4.1
131
+ [0.4.0]: https://gitlab.com/gitlab-org/gitlab_kramdown/compare/v0.3.0...v0.4.0
132
+ [0.3.0]: https://gitlab.com/gitlab-org/gitlab_kramdown/compare/v0.2.0...v0.3.0
133
+ [0.2.0]: https://gitlab.com/gitlab-org/gitlab_kramdown/compare/v0.1.0...v0.2.0
134
+ [0.1.0]: https://gitlab.com/gitlab-org/gitlab_kramdown/compare/15b5e4b46aa0e42974ec2e5ee36c68d97219736f...v0.1.0
@@ -1,20 +1,21 @@
1
+ The MIT License (MIT)
2
+
1
3
  Copyright (c) 2018-2019 Gabriel Mazetto
2
4
 
3
- Permission is hereby granted, free of charge, to any person obtaining
4
- a copy of this software and associated documentation files (the
5
- "Software"), to deal in the Software without restriction, including
6
- without limitation the rights to use, copy, modify, merge, publish,
7
- distribute, sublicense, and/or sell copies of the Software, and to
8
- permit persons to whom the Software is furnished to do so, subject to
9
- the following conditions:
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
10
11
 
11
- The above copyright notice and this permission notice shall be
12
- included in all copies or substantial portions of the Software.
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
13
14
 
14
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md CHANGED
@@ -26,6 +26,7 @@ This is a list of GitLab Flavored Markdown (GFM) extensions and their status of
26
26
  | [Math] | No |
27
27
  | [Colors] | No |
28
28
  | [Mermaid] | **Yes** |
29
+ | [PlantUML] | **Yes** |
29
30
 
30
31
  > **Note**: Extensions marked as `Kramdown` in the `Implemented?` means behavior already exists
31
32
  in Kramdown flavor.
@@ -36,7 +37,8 @@ This is a list of GitLab Flavored Markdown (GFM) extensions and their status of
36
37
  | :------------------| :------------------: | -------------------------------------------- |
37
38
  | `gitlab_url` | `https://gitlab.com` | GitLab instance URL to build reference links |
38
39
  | `linkable_headers` | true | Generate anchor tags with headers? |
39
- | `autolink` | false | Converts URLs to HTML links (can be slow) |
40
+ | `autolink` | false | Converts URLs to HTML links (can be slow) |
41
+ | `clickable_images` | true | Autolink images to themselves |
40
42
 
41
43
  ## Usage example
42
44
 
@@ -69,6 +71,10 @@ To have also syntax highlighting using the same engine GitLab use, you need to d
69
71
  Kramdown::Document.new(source, input: 'GitlabKramdown', syntax_highlighter: :rouge).to_html
70
72
  ```
71
73
 
74
+ ## Supported and tested Ruby versions
75
+
76
+ - Ruby 2.7
77
+
72
78
  ## Contributing to gitlab_kramdown
73
79
 
74
80
  * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
@@ -102,3 +108,4 @@ further details.
102
108
  [Math]: https://docs.gitlab.com/ee/user/markdown.html#math
103
109
  [Colors]: https://docs.gitlab.com/ee/user/markdown.html#colors
104
110
  [Mermaid]: https://docs.gitlab.com/ee/user/markdown.html#mermaid
111
+ [PlantUML]: https://docs.gitlab.com/ee/administration/integration/plantuml.html#creating-diagrams
@@ -1,6 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'kramdown/converter/html'
4
+ require 'nokogiri'
5
+ require 'asciidoctor-plantuml'
4
6
 
5
7
  module GitlabKramdown
6
8
  module Converter
@@ -8,17 +10,64 @@ module GitlabKramdown
8
10
  #
9
11
  # This includes GitLab custom elements from GitLab Flavored Markdown syntax
10
12
  module GitlabHtml
13
+ # Initializes a GitLab custom HTML converter with a given document
14
+ #
15
+ # It accepts all existing options for HTML converter with our custom ones:
16
+ #
17
+ # * +clickable_images+ (default: true) - whether images will have a link to itself
18
+ #
19
+ # @param [Kramdown::Document] root
20
+ # @param [Hash] options
21
+ def initialize(root, options)
22
+ super(root, options)
23
+
24
+ @clickable_images = options[:clickable_images] != false
25
+ end
26
+
11
27
  # Codeblock is customized in order to implement a different output to Mermaid
12
28
  #
13
29
  # Mermaid requires `<div class="mermaid"></div>` surrounding the content in order
14
30
  # to trigger the unobtrusive JS.
15
31
  def convert_codeblock(element, opts)
16
- if element.options[:lang] == 'mermaid'
32
+ case element.options[:lang]
33
+ when 'mermaid'
17
34
  %(<div class="mermaid">#{element.value}</div>\n)
35
+ when 'plantuml'
36
+ plantuml_setup
37
+
38
+ img_tag = Nokogiri::HTML::DocumentFragment.parse(
39
+ Asciidoctor::PlantUml::Processor.plantuml_content(element.value, {})
40
+ )
41
+
42
+ %(#{img_tag}\n)
18
43
  else
19
44
  super
20
45
  end
21
46
  end
47
+
48
+ def plantuml_setup
49
+ Asciidoctor::PlantUml.configure do |conf|
50
+ conf.url = 'https://plantuml.gitlab-static.net'
51
+ conf.png_enable = true
52
+ conf.svg_enable = false
53
+ conf.txt_enable = false
54
+ end
55
+ end
56
+
57
+ # Images can have a link to themselves when configuration allows
58
+ #
59
+ # We don't autolink when image is already linked to something-else
60
+ #
61
+ # @param [Kramdown::Element] element
62
+ # @param [Integer] _indent
63
+ def convert_img(element, _indent)
64
+ return super unless @clickable_images
65
+ return super if @stack.last.type == :a
66
+
67
+ href = element.attr['src']
68
+
69
+ %(<a href="#{href}" target="_blank" rel="noopener noreferrer">#{super}</a>)
70
+ end
22
71
  end
23
72
  end
24
73
  end
@@ -8,7 +8,7 @@ module GitlabKramdown
8
8
  #
9
9
  # Based on Kramdown GFM implementation
10
10
  module Escape
11
- ESCAPED_CHARS_GFM = /\\([\\.*_+`<>()\[\]{}#!:\|"'\$=\-~])/.freeze
11
+ ESCAPED_CHARS_GFM = /\\([\\.*_+`<>()\[\]{}#!:|"'$=\-~])/.freeze
12
12
 
13
13
  def self.included(klass)
14
14
  klass.define_parser(:escape_chars_gitlab, ESCAPED_CHARS_GFM, '\\\\', :parse_escaped_chars)
@@ -15,8 +15,8 @@ module GitlabKramdown
15
15
  #
16
16
  # @see https://docs.gitlab.com/ee/user/markdown.html#code-and-syntax-highlighting
17
17
  module FencedCodeblock
18
- FENCED_CODEBLOCK_START = /^[ ]{0,3}[~`]{3,}/.freeze
19
- FENCED_CODEBLOCK_MATCH = /^[ ]{0,3}(([~`]){3,})\s*?((\S+?)(?:\?\S*)?)?\s*?\n(.*?)^[ ]{0,3}\1\2*\s*?\n/m.freeze
18
+ FENCED_CODEBLOCK_START = /^ {0,3}[~`]{3,}/.freeze
19
+ FENCED_CODEBLOCK_MATCH = /^ {0,3}(([~`]){3,})\s*?((\S+?)(?:\?\S*)?)?\s*?\n(.*?)^ {0,3}\1\2*\s*?\n/m.freeze
20
20
 
21
21
  def self.included(klass)
22
22
  klass.define_parser(:codeblock_fenced_gitlab, FENCED_CODEBLOCK_START, nil, 'parse_codeblock_fenced')
@@ -73,9 +73,11 @@ module GitlabKramdown
73
73
  end
74
74
 
75
75
  NON_WORD_RE = /[^\p{Word}\- \t]/.freeze
76
+ MARKDOWN_LINK_TEXT = /\[(?<link_text>[^\]]+)\]\((?<link_url>[^)]+)\)/.freeze
76
77
 
77
78
  def generate_header_id(text)
78
79
  result = text.downcase
80
+ result.gsub!(MARKDOWN_LINK_TEXT) { |s| MARKDOWN_LINK_TEXT.match(s)[:link_text].gsub(NON_WORD_RE, '') }
79
81
  result.gsub!(NON_WORD_RE, '')
80
82
  result.tr!(" \t", '-')
81
83
  @id_counter[result] += 1
@@ -9,7 +9,7 @@ module GitlabKramdown
9
9
  #
10
10
  # @see https://docs.gitlab.com/ee/user/markdown.html#special-gitlab-references
11
11
  module Reference
12
- PATH_REGEX = /[a-zA-Z0-9_\.][a-zA-Z0-9_\-\.]+/.freeze
12
+ PATH_REGEX = /[a-zA-Z0-9_.][a-zA-Z0-9_\-.]+/.freeze
13
13
 
14
14
  NAMESPACE_FORMAT_REGEX = %r{
15
15
  (?:#{PATH_REGEX}[a-zA-Z0-9_\-])
@@ -62,7 +62,7 @@ module GitlabKramdown
62
62
  (?<namespace>#{ALWAYS_FULL_NAMESPACE_FORMAT_REGEX})
63
63
  #{Regexp.escape('~')}
64
64
  (?<label>
65
- [A-Za-z0-9_\-\?\.&]+ | # String-based single-word label title, or
65
+ [A-Za-z0-9_\-?.&]+ | # String-based single-word label title, or
66
66
  ".+?" # String-based multi-word label surrounded in quotes
67
67
  )
68
68
  }x.freeze
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GitlabKramdown
4
- VERSION = '0.6.0'
4
+ VERSION = '0.11.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitlab_kramdown
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriel Mazetto
8
8
  autorequire:
9
- bindir: bin
9
+ bindir: exe
10
10
  cert_chain: []
11
- date: 2019-05-07 00:00:00.000000000 Z
11
+ date: 2021-01-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: kramdown
@@ -16,58 +16,86 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 1.16.2
19
+ version: 2.3.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 1.16.2
26
+ version: 2.3.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rouge
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '3.0'
33
+ version: 3.26.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '3.0'
40
+ version: 3.26.0
41
41
  - !ruby/object:Gem::Dependency
42
- name: rdoc
42
+ name: nokogiri
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '3.12'
47
+ version: 1.11.0
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: 1.11.0
55
+ - !ruby/object:Gem::Dependency
56
+ name: asciidoctor-plantuml
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - '='
60
+ - !ruby/object:Gem::Version
61
+ version: 0.0.13
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - '='
67
+ - !ruby/object:Gem::Version
68
+ version: 0.0.13
69
+ - !ruby/object:Gem::Dependency
70
+ name: rake
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: 13.0.0
48
76
  type: :development
49
77
  prerelease: false
50
78
  version_requirements: !ruby/object:Gem::Requirement
51
79
  requirements:
52
80
  - - "~>"
53
81
  - !ruby/object:Gem::Version
54
- version: '3.12'
82
+ version: 13.0.0
55
83
  - !ruby/object:Gem::Dependency
56
- name: bundler
84
+ name: rdoc
57
85
  requirement: !ruby/object:Gem::Requirement
58
86
  requirements:
59
87
  - - "~>"
60
88
  - !ruby/object:Gem::Version
61
- version: '1.0'
89
+ version: 6.3.0
62
90
  type: :development
63
91
  prerelease: false
64
92
  version_requirements: !ruby/object:Gem::Requirement
65
93
  requirements:
66
94
  - - "~>"
67
95
  - !ruby/object:Gem::Version
68
- version: '1.0'
96
+ version: 6.3.0
69
97
  - !ruby/object:Gem::Dependency
70
- name: juwelier
98
+ name: bundler
71
99
  requirement: !ruby/object:Gem::Requirement
72
100
  requirements:
73
101
  - - "~>"
@@ -84,81 +112,81 @@ dependencies:
84
112
  name: simplecov
85
113
  requirement: !ruby/object:Gem::Requirement
86
114
  requirements:
87
- - - ">="
115
+ - - "~>"
88
116
  - !ruby/object:Gem::Version
89
- version: '0'
117
+ version: 0.21.0
90
118
  type: :development
91
119
  prerelease: false
92
120
  version_requirements: !ruby/object:Gem::Requirement
93
121
  requirements:
94
- - - ">="
122
+ - - "~>"
95
123
  - !ruby/object:Gem::Version
96
- version: '0'
124
+ version: 0.21.0
97
125
  - !ruby/object:Gem::Dependency
98
126
  name: rubocop
99
127
  requirement: !ruby/object:Gem::Requirement
100
128
  requirements:
101
- - - ">="
129
+ - - "~>"
102
130
  - !ruby/object:Gem::Version
103
- version: '0'
131
+ version: 1.8.0
104
132
  type: :development
105
133
  prerelease: false
106
134
  version_requirements: !ruby/object:Gem::Requirement
107
135
  requirements:
108
- - - ">="
136
+ - - "~>"
109
137
  - !ruby/object:Gem::Version
110
- version: '0'
138
+ version: 1.8.0
111
139
  - !ruby/object:Gem::Dependency
112
140
  name: rspec
113
141
  requirement: !ruby/object:Gem::Requirement
114
142
  requirements:
115
- - - ">="
143
+ - - "~>"
116
144
  - !ruby/object:Gem::Version
117
- version: '0'
145
+ version: 3.10.0
118
146
  type: :development
119
147
  prerelease: false
120
148
  version_requirements: !ruby/object:Gem::Requirement
121
149
  requirements:
122
- - - ">="
150
+ - - "~>"
123
151
  - !ruby/object:Gem::Version
124
- version: '0'
152
+ version: 3.10.0
125
153
  - !ruby/object:Gem::Dependency
126
154
  name: rspec_junit_formatter
127
155
  requirement: !ruby/object:Gem::Requirement
128
156
  requirements:
129
- - - ">="
157
+ - - "~>"
130
158
  - !ruby/object:Gem::Version
131
- version: '0'
159
+ version: 0.4.0
132
160
  type: :development
133
161
  prerelease: false
134
162
  version_requirements: !ruby/object:Gem::Requirement
135
163
  requirements:
136
- - - ">="
164
+ - - "~>"
137
165
  - !ruby/object:Gem::Version
138
- version: '0'
166
+ version: 0.4.0
139
167
  - !ruby/object:Gem::Dependency
140
168
  name: benchmark-ips
141
169
  requirement: !ruby/object:Gem::Requirement
142
170
  requirements:
143
171
  - - "~>"
144
172
  - !ruby/object:Gem::Version
145
- version: '2.7'
173
+ version: 2.8.0
146
174
  type: :development
147
175
  prerelease: false
148
176
  version_requirements: !ruby/object:Gem::Requirement
149
177
  requirements:
150
178
  - - "~>"
151
179
  - !ruby/object:Gem::Version
152
- version: '2.7'
180
+ version: 2.8.0
153
181
  description: GitLab Flavored Markdown extensions on top of Kramdown markup. Tries
154
182
  to be as close as possible to existing extensions.
155
- email: brodock@gmail.com
183
+ email:
184
+ - brodock@gmail.com
156
185
  executables: []
157
186
  extensions: []
158
- extra_rdoc_files:
159
- - LICENSE.txt
160
- - README.md
187
+ extra_rdoc_files: []
161
188
  files:
189
+ - CHANGELOG.md
162
190
  - LICENSE.txt
163
191
  - README.md
164
192
  - lib/gitlab_kramdown.rb
@@ -173,31 +201,30 @@ files:
173
201
  - lib/gitlab_kramdown/parser/strikethrough.rb
174
202
  - lib/gitlab_kramdown/version.rb
175
203
  - lib/kramdown/parser/gitlab_kramdown.rb
176
- homepage: http://gitlab.com/gitlab-org/gitlab_kramdown
204
+ homepage: https://gitlab.com/gitlab-org/gitlab_kramdown
177
205
  licenses:
178
206
  - MIT
179
207
  metadata:
180
- bug_tracker_uri: http://gitlab.com/gitlab-org/gitlab_kramdown/issues
181
- changelog_uri: http://gitlab.com/gitlab-org/gitlab_kramdown/blob/master/CHANGELOG.md
182
- homepage_uri: http://gitlab.com/gitlab-org/gitlab_kramdown
183
- source_code_uri: http://gitlab.com/gitlab-org/gitlab_kramdown
208
+ homepage_uri: https://gitlab.com/gitlab-org/gitlab_kramdown
209
+ source_code_uri: https://gitlab.com/gitlab-org/gitlab_kramdown
210
+ changelog_uri: https://gitlab.com/gitlab-org/gitlab_kramdown/blob/master/CHANGELOG.md
211
+ bug_tracker_uri: https://gitlab.com/gitlab-org/gitlab_kramdown/-/issues
184
212
  post_install_message:
185
213
  rdoc_options: []
186
214
  require_paths:
187
215
  - lib
188
216
  required_ruby_version: !ruby/object:Gem::Requirement
189
217
  requirements:
190
- - - "~>"
218
+ - - ">="
191
219
  - !ruby/object:Gem::Version
192
- version: '2.4'
220
+ version: 2.7.2
193
221
  required_rubygems_version: !ruby/object:Gem::Requirement
194
222
  requirements:
195
223
  - - ">="
196
224
  - !ruby/object:Gem::Version
197
225
  version: '0'
198
226
  requirements: []
199
- rubyforge_project:
200
- rubygems_version: 2.7.6.2
227
+ rubygems_version: 3.1.4
201
228
  signing_key:
202
229
  specification_version: 4
203
230
  summary: GitLab Flavored Kramdown