qiita-markdown 0.40.1 → 0.41.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/.github/workflows/test.yml +3 -8
- data/.rubocop.yml +9 -3
- data/.rubocop_todo.yml +224 -36
- data/CHANGELOG.md +6 -0
- data/lib/qiita/markdown/version.rb +1 -1
- data/qiita-markdown.gemspec +3 -3
- metadata +12 -12
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2814dd1584a985b5aba7cb261d93b8ce30500911432143b3fd75eac4b64b30ee
|
|
4
|
+
data.tar.gz: 00e04020a944e3be12ec75f6865c4a578620799ae56e6eaa456021a529873549
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8a1b124118e6f2c79169e757896a2099aed7239d3f029083ba7acf08c8b91f9352f54f79e5d16f737d160639660461ec1f764f4dbb2dc4b846f91736b87962cc
|
|
7
|
+
data.tar.gz: 58e0fa409e266d22bdc5416404870d2fcaa9851aa665fd27c051f88c0663a7baef8f1da24a8e6c11e8f6a03a6dcd67211f64673ea259cd2e48e58c0e4b719459
|
data/.github/workflows/test.yml
CHANGED
|
@@ -15,18 +15,13 @@ jobs:
|
|
|
15
15
|
strategy:
|
|
16
16
|
fail-fast: false
|
|
17
17
|
matrix:
|
|
18
|
-
os: ['ubuntu-18.04', 'macos-latest']
|
|
19
|
-
ruby: ['2.
|
|
18
|
+
os: ['ubuntu-18.04', 'ubuntu-latest', 'macos-latest']
|
|
19
|
+
ruby: ['2.6', '2.7']
|
|
20
20
|
experimental: [false]
|
|
21
21
|
include:
|
|
22
|
-
- os: 'ubuntu-
|
|
22
|
+
- os: 'ubuntu-latest'
|
|
23
23
|
ruby: 'head'
|
|
24
24
|
experimental: true
|
|
25
|
-
exclude:
|
|
26
|
-
- os: 'ubuntu-18.04'
|
|
27
|
-
ruby: '2.2' # Rugged uses the wrong openssl version on CI and segfaults (similar to https://github.com/libgit2/rugged/issues/718)
|
|
28
|
-
- os: 'ubuntu-18.04'
|
|
29
|
-
ruby: '2.3' # Rugged uses the wrong openssl version on CI and segfaults (similar to https://github.com/libgit2/rugged/issues/718)
|
|
30
25
|
runs-on: ${{ matrix.os }}
|
|
31
26
|
continue-on-error: ${{ matrix.experimental }}
|
|
32
27
|
steps:
|
data/.rubocop.yml
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
inherit_from: .rubocop_todo.yml
|
|
2
2
|
|
|
3
|
+
AllCops:
|
|
4
|
+
NewCops: enable
|
|
5
|
+
|
|
3
6
|
Metrics/ClassLength:
|
|
4
7
|
Enabled: false
|
|
5
8
|
|
|
@@ -17,7 +20,7 @@ Style/GuardClause:
|
|
|
17
20
|
Enabled: false
|
|
18
21
|
|
|
19
22
|
Style/PredicateName:
|
|
20
|
-
|
|
23
|
+
ForbiddenPrefixes:
|
|
21
24
|
- is_
|
|
22
25
|
|
|
23
26
|
Style/StringLiterals:
|
|
@@ -26,10 +29,13 @@ Style/StringLiterals:
|
|
|
26
29
|
Style/TrailingCommaInArguments:
|
|
27
30
|
EnforcedStyleForMultiline: comma
|
|
28
31
|
|
|
29
|
-
Style/
|
|
32
|
+
Style/TrailingCommaInHashLiteral:
|
|
33
|
+
EnforcedStyleForMultiline: comma
|
|
34
|
+
|
|
35
|
+
Style/TrailingCommaInArrayLiteral:
|
|
30
36
|
EnforcedStyleForMultiline: comma
|
|
31
37
|
|
|
32
|
-
Style/
|
|
38
|
+
Style/RedundantPercentQ:
|
|
33
39
|
Enabled: false
|
|
34
40
|
|
|
35
41
|
Metrics/LineLength:
|
data/.rubocop_todo.yml
CHANGED
|
@@ -1,85 +1,233 @@
|
|
|
1
1
|
# This configuration was generated by
|
|
2
|
-
# `rubocop --auto-gen-config`
|
|
3
|
-
# on
|
|
2
|
+
# `rubocop --auto-gen-config --exclude-limit 99999`
|
|
3
|
+
# on 2022-03-29 10:59:09 UTC using RuboCop version 1.7.0.
|
|
4
4
|
# The point is for the user to remove these configuration records
|
|
5
5
|
# one by one as the offenses are removed from the code base.
|
|
6
6
|
# Note that changes in the inspected code, or installation of new
|
|
7
7
|
# versions of RuboCop, may require this file to be generated again.
|
|
8
8
|
|
|
9
|
-
# Offense count:
|
|
9
|
+
# Offense count: 3
|
|
10
|
+
# Cop supports --auto-correct.
|
|
11
|
+
# Configuration parameters: TreatCommentsAsGroupSeparators, ConsiderPunctuation, Include.
|
|
12
|
+
# Include: **/*.gemspec
|
|
13
|
+
Gemspec/OrderedDependencies:
|
|
14
|
+
Exclude:
|
|
15
|
+
- 'qiita-markdown.gemspec'
|
|
16
|
+
|
|
17
|
+
# Offense count: 1
|
|
18
|
+
# Cop supports --auto-correct.
|
|
19
|
+
Layout/ClosingHeredocIndentation:
|
|
20
|
+
Exclude:
|
|
21
|
+
- 'spec/qiita/markdown/processor_spec.rb'
|
|
22
|
+
|
|
23
|
+
# Offense count: 9
|
|
24
|
+
# Cop supports --auto-correct.
|
|
25
|
+
Layout/EmptyLineAfterGuardClause:
|
|
26
|
+
Exclude:
|
|
27
|
+
- 'lib/qiita/markdown/filters/custom_block.rb'
|
|
28
|
+
- 'lib/qiita/markdown/filters/external_link.rb'
|
|
29
|
+
- 'lib/qiita/markdown/filters/footnote.rb'
|
|
30
|
+
- 'lib/qiita/markdown/filters/mention.rb'
|
|
31
|
+
- 'lib/qiita/markdown/filters/simplify.rb'
|
|
32
|
+
- 'lib/qiita/markdown/transformers/filter_attributes.rb'
|
|
33
|
+
|
|
34
|
+
# Offense count: 22
|
|
35
|
+
# Cop supports --auto-correct.
|
|
36
|
+
# Configuration parameters: AllowMultipleStyles, EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
|
|
37
|
+
# SupportedHashRocketStyles: key, separator, table
|
|
38
|
+
# SupportedColonStyles: key, separator, table
|
|
39
|
+
# SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit
|
|
40
|
+
Layout/HashAlignment:
|
|
41
|
+
Exclude:
|
|
42
|
+
- 'lib/qiita/markdown/filters/user_input_sanitizer.rb'
|
|
43
|
+
|
|
44
|
+
# Offense count: 1
|
|
45
|
+
# Cop supports --auto-correct.
|
|
46
|
+
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBrackets.
|
|
47
|
+
# SupportedStyles: space, no_space, compact
|
|
48
|
+
# SupportedStylesForEmptyBrackets: space, no_space
|
|
49
|
+
Layout/SpaceInsideArrayLiteralBrackets:
|
|
50
|
+
Exclude:
|
|
51
|
+
- 'lib/qiita/markdown/transformers/filter_iframe.rb'
|
|
52
|
+
|
|
53
|
+
# Offense count: 5
|
|
54
|
+
# Configuration parameters: IgnoredMethods, CountRepeatedAttributes.
|
|
10
55
|
Metrics/AbcSize:
|
|
11
|
-
Max:
|
|
56
|
+
Max: 22
|
|
12
57
|
|
|
13
|
-
# Offense count:
|
|
14
|
-
# Configuration parameters: CountComments.
|
|
58
|
+
# Offense count: 10
|
|
59
|
+
# Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods.
|
|
15
60
|
Metrics/MethodLength:
|
|
16
61
|
Max: 20
|
|
17
62
|
|
|
18
63
|
# Offense count: 1
|
|
19
|
-
|
|
20
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
21
|
-
# SupportedStyles: always, conditionals
|
|
22
|
-
Style/AndOr:
|
|
64
|
+
Naming/ConstantName:
|
|
23
65
|
Exclude:
|
|
24
|
-
- 'lib/qiita/markdown/filters/
|
|
66
|
+
- 'lib/qiita/markdown/filters/mention.rb'
|
|
67
|
+
|
|
68
|
+
# Offense count: 1
|
|
69
|
+
# Configuration parameters: ExpectMatchingDefinition, CheckDefinitionPathHierarchy, Regex, IgnoreExecutableScripts, AllowedAcronyms.
|
|
70
|
+
# AllowedAcronyms: CLI, DSL, ACL, API, ASCII, CPU, CSS, DNS, EOF, GUID, HTML, HTTP, HTTPS, ID, IP, JSON, LHS, QPS, RAM, RHS, RPC, SLA, SMTP, SQL, SSH, TCP, TLS, TTL, UDP, UI, UID, UUID, URI, URL, UTF8, VM, XML, XMPP, XSRF, XSS
|
|
71
|
+
Naming/FileName:
|
|
72
|
+
Exclude:
|
|
73
|
+
- 'lib/qiita-markdown.rb'
|
|
74
|
+
|
|
75
|
+
# Offense count: 33
|
|
76
|
+
# Configuration parameters: ForbiddenDelimiters.
|
|
77
|
+
# ForbiddenDelimiters: (?-mix:(^|\s)(EO[A-Z]{1}|END)(\s|$))
|
|
78
|
+
Naming/HeredocDelimiterNaming:
|
|
79
|
+
Exclude:
|
|
80
|
+
- 'spec/qiita/markdown/greenmat/html_toc_renderer_spec.rb'
|
|
81
|
+
- 'spec/qiita/markdown/summary_processor_spec.rb'
|
|
82
|
+
|
|
83
|
+
# Offense count: 3
|
|
84
|
+
# Configuration parameters: EnforcedStyleForLeadingUnderscores.
|
|
85
|
+
# SupportedStylesForLeadingUnderscores: disallowed, required, optional
|
|
86
|
+
Naming/MemoizedInstanceVariableName:
|
|
87
|
+
Exclude:
|
|
88
|
+
- 'benchmark/heading_anchor_rendering.rb'
|
|
89
|
+
- 'lib/qiita/markdown/filters/greenmat.rb'
|
|
90
|
+
- 'lib/qiita/markdown/greenmat/heading_rendering.rb'
|
|
91
|
+
|
|
92
|
+
# Offense count: 1
|
|
93
|
+
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
|
|
94
|
+
# AllowedNames: at, by, db, id, in, io, ip, of, on, os, pp, to
|
|
95
|
+
Naming/MethodParameterName:
|
|
96
|
+
Exclude:
|
|
97
|
+
- 'lib/qiita/markdown/filters/footnote.rb'
|
|
25
98
|
|
|
26
99
|
# Offense count: 3
|
|
27
100
|
# Cop supports --auto-correct.
|
|
28
|
-
# Configuration parameters: EnforcedStyle
|
|
101
|
+
# Configuration parameters: EnforcedStyle.
|
|
29
102
|
# SupportedStyles: percent_q, bare_percent
|
|
30
103
|
Style/BarePercentLiterals:
|
|
31
104
|
Exclude:
|
|
32
105
|
- 'lib/qiita/markdown/filters/syntax_highlight.rb'
|
|
33
106
|
|
|
34
107
|
# Offense count: 1
|
|
35
|
-
|
|
108
|
+
# Cop supports --auto-correct.
|
|
109
|
+
Style/ExpandPathArguments:
|
|
36
110
|
Exclude:
|
|
37
|
-
- '
|
|
111
|
+
- 'qiita-markdown.gemspec'
|
|
38
112
|
|
|
39
|
-
# Offense count:
|
|
40
|
-
|
|
113
|
+
# Offense count: 47
|
|
114
|
+
# Cop supports --auto-correct.
|
|
115
|
+
# Configuration parameters: EnforcedStyle.
|
|
116
|
+
# SupportedStyles: always, always_true, never
|
|
117
|
+
Style/FrozenStringLiteralComment:
|
|
41
118
|
Exclude:
|
|
119
|
+
- 'Gemfile'
|
|
120
|
+
- 'Rakefile'
|
|
42
121
|
- 'benchmark/heading_anchor_rendering.rb'
|
|
122
|
+
- 'lib/qiita-markdown.rb'
|
|
123
|
+
- 'lib/qiita/markdown.rb'
|
|
124
|
+
- 'lib/qiita/markdown/base_processor.rb'
|
|
125
|
+
- 'lib/qiita/markdown/embed/asciinema.rb'
|
|
126
|
+
- 'lib/qiita/markdown/embed/code_pen.rb'
|
|
127
|
+
- 'lib/qiita/markdown/embed/google_slide.rb'
|
|
128
|
+
- 'lib/qiita/markdown/embed/slide_share.rb'
|
|
129
|
+
- 'lib/qiita/markdown/embed/speeker_deck.rb'
|
|
130
|
+
- 'lib/qiita/markdown/embed/tweet.rb'
|
|
131
|
+
- 'lib/qiita/markdown/embed/youtube.rb'
|
|
43
132
|
- 'lib/qiita/markdown/filters/checkbox.rb'
|
|
133
|
+
- 'lib/qiita/markdown/filters/code_block.rb'
|
|
134
|
+
- 'lib/qiita/markdown/filters/custom_block.rb'
|
|
135
|
+
- 'lib/qiita/markdown/filters/emoji.rb'
|
|
136
|
+
- 'lib/qiita/markdown/filters/external_link.rb'
|
|
137
|
+
- 'lib/qiita/markdown/filters/final_sanitizer.rb'
|
|
138
|
+
- 'lib/qiita/markdown/filters/footnote.rb'
|
|
139
|
+
- 'lib/qiita/markdown/filters/greenmat.rb'
|
|
140
|
+
- 'lib/qiita/markdown/filters/group_mention.rb'
|
|
141
|
+
- 'lib/qiita/markdown/filters/image_link.rb'
|
|
142
|
+
- 'lib/qiita/markdown/filters/inline_code_color.rb'
|
|
143
|
+
- 'lib/qiita/markdown/filters/mention.rb'
|
|
144
|
+
- 'lib/qiita/markdown/filters/simplify.rb'
|
|
145
|
+
- 'lib/qiita/markdown/filters/syntax_highlight.rb'
|
|
146
|
+
- 'lib/qiita/markdown/filters/toc.rb'
|
|
147
|
+
- 'lib/qiita/markdown/filters/truncate.rb'
|
|
148
|
+
- 'lib/qiita/markdown/filters/user_input_sanitizer.rb'
|
|
149
|
+
- 'lib/qiita/markdown/greenmat/heading_rendering.rb'
|
|
150
|
+
- 'lib/qiita/markdown/greenmat/html_renderer.rb'
|
|
151
|
+
- 'lib/qiita/markdown/greenmat/html_toc_renderer.rb'
|
|
152
|
+
- 'lib/qiita/markdown/processor.rb'
|
|
153
|
+
- 'lib/qiita/markdown/summary_processor.rb'
|
|
154
|
+
- 'lib/qiita/markdown/transformers/filter_attributes.rb'
|
|
155
|
+
- 'lib/qiita/markdown/transformers/filter_iframe.rb'
|
|
156
|
+
- 'lib/qiita/markdown/transformers/filter_script.rb'
|
|
157
|
+
- 'lib/qiita/markdown/transformers/strip_invalid_node.rb'
|
|
158
|
+
- 'lib/qiita/markdown/version.rb'
|
|
159
|
+
- 'qiita-markdown.gemspec'
|
|
160
|
+
- 'spec/qiita/markdown/filters/greenmat_spec.rb'
|
|
161
|
+
- 'spec/qiita/markdown/filters/inline_code_color_spec.rb'
|
|
162
|
+
- 'spec/qiita/markdown/greenmat/html_toc_renderer_spec.rb'
|
|
163
|
+
- 'spec/qiita/markdown/processor_spec.rb'
|
|
164
|
+
- 'spec/qiita/markdown/summary_processor_spec.rb'
|
|
165
|
+
- 'spec/spec_helper.rb'
|
|
44
166
|
|
|
45
|
-
# Offense count:
|
|
46
|
-
#
|
|
47
|
-
Style/
|
|
167
|
+
# Offense count: 2
|
|
168
|
+
# Cop supports --auto-correct.
|
|
169
|
+
Style/IfUnlessModifier:
|
|
48
170
|
Exclude:
|
|
49
|
-
- 'lib/qiita
|
|
171
|
+
- 'lib/qiita/markdown/filters/truncate.rb'
|
|
172
|
+
- 'lib/qiita/markdown/transformers/strip_invalid_node.rb'
|
|
50
173
|
|
|
51
|
-
# Offense count:
|
|
174
|
+
# Offense count: 17
|
|
52
175
|
# Cop supports --auto-correct.
|
|
176
|
+
# Configuration parameters: EnforcedStyle.
|
|
177
|
+
# SupportedStyles: literals, strict
|
|
53
178
|
Style/MutableConstant:
|
|
54
179
|
Exclude:
|
|
55
180
|
- 'lib/qiita/markdown/embed/code_pen.rb'
|
|
56
181
|
- 'lib/qiita/markdown/embed/tweet.rb'
|
|
57
182
|
- 'lib/qiita/markdown/filters/checkbox.rb'
|
|
58
183
|
- 'lib/qiita/markdown/filters/code_block.rb'
|
|
59
|
-
- 'lib/qiita/markdown/filters/
|
|
184
|
+
- 'lib/qiita/markdown/filters/group_mention.rb'
|
|
185
|
+
- 'lib/qiita/markdown/filters/inline_code_color.rb'
|
|
186
|
+
- 'lib/qiita/markdown/filters/mention.rb'
|
|
60
187
|
- 'lib/qiita/markdown/filters/simplify.rb'
|
|
61
188
|
- 'lib/qiita/markdown/filters/syntax_highlight.rb'
|
|
62
|
-
- 'lib/qiita/markdown/processor.rb'
|
|
63
|
-
- 'lib/qiita/markdown/summary_processor.rb'
|
|
64
189
|
- 'lib/qiita/markdown/version.rb'
|
|
65
190
|
|
|
66
191
|
# Offense count: 2
|
|
67
192
|
# Cop supports --auto-correct.
|
|
68
|
-
# Configuration parameters: EnforcedStyle, MinBodyLength
|
|
193
|
+
# Configuration parameters: EnforcedStyle, MinBodyLength.
|
|
69
194
|
# SupportedStyles: skip_modifier_ifs, always
|
|
70
195
|
Style/Next:
|
|
71
196
|
Exclude:
|
|
72
197
|
- 'lib/qiita/markdown/filters/code_block.rb'
|
|
73
198
|
- 'lib/qiita/markdown/filters/image_link.rb'
|
|
74
199
|
|
|
75
|
-
# Offense count:
|
|
200
|
+
# Offense count: 5
|
|
201
|
+
# Cop supports --auto-correct.
|
|
202
|
+
# Configuration parameters: EnforcedStyle, IgnoredMethods.
|
|
203
|
+
# SupportedStyles: predicate, comparison
|
|
204
|
+
Style/NumericPredicate:
|
|
205
|
+
Exclude:
|
|
206
|
+
- 'spec/**/*'
|
|
207
|
+
- 'benchmark/heading_anchor_rendering.rb'
|
|
208
|
+
- 'lib/qiita/markdown/greenmat/heading_rendering.rb'
|
|
209
|
+
- 'lib/qiita/markdown/greenmat/html_toc_renderer.rb'
|
|
210
|
+
|
|
211
|
+
# Offense count: 1
|
|
212
|
+
# Configuration parameters: AllowedMethods.
|
|
213
|
+
# AllowedMethods: respond_to_missing?
|
|
214
|
+
Style/OptionalBooleanParameter:
|
|
215
|
+
Exclude:
|
|
216
|
+
- 'lib/qiita/markdown/greenmat/heading_rendering.rb'
|
|
217
|
+
|
|
218
|
+
# Offense count: 1
|
|
219
|
+
# Cop supports --auto-correct.
|
|
220
|
+
Style/OrAssignment:
|
|
221
|
+
Exclude:
|
|
222
|
+
- 'lib/qiita/markdown/greenmat/html_toc_renderer.rb'
|
|
223
|
+
|
|
224
|
+
# Offense count: 9
|
|
76
225
|
# Cop supports --auto-correct.
|
|
77
226
|
# Configuration parameters: PreferredDelimiters.
|
|
78
227
|
Style/PercentLiteralDelimiters:
|
|
79
228
|
Exclude:
|
|
80
229
|
- 'benchmark/heading_anchor_rendering.rb'
|
|
81
230
|
- 'lib/qiita/markdown/filters/mention.rb'
|
|
82
|
-
- 'lib/qiita/markdown/filters/sanitize.rb'
|
|
83
231
|
- 'lib/qiita/markdown/filters/syntax_highlight.rb'
|
|
84
232
|
- 'spec/qiita/markdown/processor_spec.rb'
|
|
85
233
|
- 'spec/qiita/markdown/summary_processor_spec.rb'
|
|
@@ -92,34 +240,74 @@ Style/PerlBackrefs:
|
|
|
92
240
|
|
|
93
241
|
# Offense count: 1
|
|
94
242
|
# Cop supports --auto-correct.
|
|
95
|
-
# Configuration parameters:
|
|
243
|
+
# Configuration parameters: Methods.
|
|
244
|
+
Style/RedundantArgument:
|
|
245
|
+
Exclude:
|
|
246
|
+
- 'lib/qiita/markdown/filters/custom_block.rb'
|
|
247
|
+
|
|
248
|
+
# Offense count: 1
|
|
249
|
+
# Cop supports --auto-correct.
|
|
250
|
+
Style/RedundantRegexpCharacterClass:
|
|
251
|
+
Exclude:
|
|
252
|
+
- 'lib/qiita/markdown/filters/mention.rb'
|
|
253
|
+
|
|
254
|
+
# Offense count: 9
|
|
255
|
+
# Cop supports --auto-correct.
|
|
256
|
+
Style/RedundantRegexpEscape:
|
|
257
|
+
Exclude:
|
|
258
|
+
- 'lib/qiita/markdown/filters/group_mention.rb'
|
|
259
|
+
- 'lib/qiita/markdown/filters/inline_code_color.rb'
|
|
260
|
+
|
|
261
|
+
# Offense count: 4
|
|
262
|
+
# Cop supports --auto-correct.
|
|
263
|
+
# Configuration parameters: EnforcedStyle, AllowInnerSlashes.
|
|
96
264
|
# SupportedStyles: slashes, percent_r, mixed
|
|
97
265
|
Style/RegexpLiteral:
|
|
98
266
|
Exclude:
|
|
99
|
-
- 'lib/qiita/markdown/filters/mention.rb'
|
|
100
267
|
- 'lib/qiita/markdown/filters/inline_code_color.rb'
|
|
268
|
+
- 'lib/qiita/markdown/filters/mention.rb'
|
|
269
|
+
|
|
270
|
+
# Offense count: 1
|
|
271
|
+
# Cop supports --auto-correct.
|
|
272
|
+
# Configuration parameters: EnforcedStyle.
|
|
273
|
+
# SupportedStyles: implicit, explicit
|
|
274
|
+
Style/RescueStandardError:
|
|
275
|
+
Exclude:
|
|
276
|
+
- 'lib/qiita/markdown/filters/syntax_highlight.rb'
|
|
277
|
+
|
|
278
|
+
# Offense count: 2
|
|
279
|
+
# Cop supports --auto-correct.
|
|
280
|
+
# Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods.
|
|
281
|
+
# AllowedMethods: present?, blank?, presence, try, try!
|
|
282
|
+
Style/SafeNavigation:
|
|
283
|
+
Exclude:
|
|
284
|
+
- 'lib/qiita/markdown/filters/custom_block.rb'
|
|
285
|
+
- 'lib/qiita/markdown/filters/toc.rb'
|
|
101
286
|
|
|
102
287
|
# Offense count: 3
|
|
103
288
|
# Cop supports --auto-correct.
|
|
104
|
-
# Configuration parameters: EnforcedStyle
|
|
289
|
+
# Configuration parameters: EnforcedStyle.
|
|
105
290
|
# SupportedStyles: only_raise, only_fail, semantic
|
|
106
291
|
Style/SignalException:
|
|
107
292
|
Exclude:
|
|
108
293
|
- 'lib/qiita/markdown/greenmat/heading_rendering.rb'
|
|
109
294
|
- 'spec/qiita/markdown/summary_processor_spec.rb'
|
|
110
295
|
|
|
111
|
-
# Offense count:
|
|
296
|
+
# Offense count: 13
|
|
112
297
|
# Cop supports --auto-correct.
|
|
113
|
-
# Configuration parameters: EnforcedStyleForMultiline
|
|
114
|
-
#
|
|
298
|
+
# Configuration parameters: EnforcedStyleForMultiline.
|
|
299
|
+
# SupportedStylesForMultiline: comma, consistent_comma, no_comma
|
|
115
300
|
Style/TrailingCommaInArguments:
|
|
116
301
|
Exclude:
|
|
117
302
|
- 'lib/qiita/markdown/filters/mention.rb'
|
|
118
303
|
- 'spec/qiita/markdown/processor_spec.rb'
|
|
119
304
|
|
|
120
|
-
# Offense count:
|
|
305
|
+
# Offense count: 12
|
|
121
306
|
# Cop supports --auto-correct.
|
|
122
|
-
# Configuration parameters: EnforcedStyle,
|
|
307
|
+
# Configuration parameters: EnforcedStyle, MinSize, WordRegex.
|
|
123
308
|
# SupportedStyles: percent, brackets
|
|
124
309
|
Style/WordArray:
|
|
125
|
-
|
|
310
|
+
Exclude:
|
|
311
|
+
- 'lib/qiita/markdown/filters/final_sanitizer.rb'
|
|
312
|
+
- 'lib/qiita/markdown/transformers/filter_script.rb'
|
|
313
|
+
- 'spec/qiita/markdown/processor_spec.rb'
|
data/CHANGELOG.md
CHANGED
data/qiita-markdown.gemspec
CHANGED
|
@@ -16,14 +16,14 @@ Gem::Specification.new do |spec|
|
|
|
16
16
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
|
17
17
|
spec.require_paths = ["lib"]
|
|
18
18
|
|
|
19
|
-
spec.required_ruby_version = ">= 2.
|
|
19
|
+
spec.required_ruby_version = ">= 2.6.0"
|
|
20
20
|
|
|
21
21
|
spec.add_dependency "gemoji"
|
|
22
22
|
spec.add_dependency "github-linguist", "~> 4.0"
|
|
23
23
|
spec.add_dependency "html-pipeline", "~> 2.0"
|
|
24
24
|
spec.add_dependency "mem"
|
|
25
25
|
spec.add_dependency "rouge", "3.26.0"
|
|
26
|
-
spec.add_dependency "greenmat", "3.5.1.
|
|
26
|
+
spec.add_dependency "greenmat", "3.5.1.3"
|
|
27
27
|
spec.add_dependency "sanitize"
|
|
28
28
|
spec.add_dependency "addressable"
|
|
29
29
|
spec.add_development_dependency "activesupport", "4.2.6"
|
|
@@ -34,5 +34,5 @@ Gem::Specification.new do |spec|
|
|
|
34
34
|
spec.add_development_dependency "pry"
|
|
35
35
|
spec.add_development_dependency "rake", "~> 10.0"
|
|
36
36
|
spec.add_development_dependency "rspec", "~> 3.1"
|
|
37
|
-
spec.add_development_dependency "rubocop", "
|
|
37
|
+
spec.add_development_dependency "rubocop", "1.7.0"
|
|
38
38
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: qiita-markdown
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.41.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ryo Nakamura
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-
|
|
11
|
+
date: 2022-04-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: gemoji
|
|
@@ -86,14 +86,14 @@ dependencies:
|
|
|
86
86
|
requirements:
|
|
87
87
|
- - '='
|
|
88
88
|
- !ruby/object:Gem::Version
|
|
89
|
-
version: 3.5.1.
|
|
89
|
+
version: 3.5.1.3
|
|
90
90
|
type: :runtime
|
|
91
91
|
prerelease: false
|
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
|
93
93
|
requirements:
|
|
94
94
|
- - '='
|
|
95
95
|
- !ruby/object:Gem::Version
|
|
96
|
-
version: 3.5.1.
|
|
96
|
+
version: 3.5.1.3
|
|
97
97
|
- !ruby/object:Gem::Dependency
|
|
98
98
|
name: sanitize
|
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -282,15 +282,15 @@ dependencies:
|
|
|
282
282
|
requirements:
|
|
283
283
|
- - '='
|
|
284
284
|
- !ruby/object:Gem::Version
|
|
285
|
-
version:
|
|
285
|
+
version: 1.7.0
|
|
286
286
|
type: :development
|
|
287
287
|
prerelease: false
|
|
288
288
|
version_requirements: !ruby/object:Gem::Requirement
|
|
289
289
|
requirements:
|
|
290
290
|
- - '='
|
|
291
291
|
- !ruby/object:Gem::Version
|
|
292
|
-
version:
|
|
293
|
-
description:
|
|
292
|
+
version: 1.7.0
|
|
293
|
+
description:
|
|
294
294
|
email:
|
|
295
295
|
- r7kamura@gmail.com
|
|
296
296
|
executables: []
|
|
@@ -357,7 +357,7 @@ homepage: https://github.com/increments/qiita-markdown
|
|
|
357
357
|
licenses:
|
|
358
358
|
- MIT
|
|
359
359
|
metadata: {}
|
|
360
|
-
post_install_message:
|
|
360
|
+
post_install_message:
|
|
361
361
|
rdoc_options: []
|
|
362
362
|
require_paths:
|
|
363
363
|
- lib
|
|
@@ -365,15 +365,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
365
365
|
requirements:
|
|
366
366
|
- - ">="
|
|
367
367
|
- !ruby/object:Gem::Version
|
|
368
|
-
version: 2.
|
|
368
|
+
version: 2.6.0
|
|
369
369
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
370
370
|
requirements:
|
|
371
371
|
- - ">="
|
|
372
372
|
- !ruby/object:Gem::Version
|
|
373
373
|
version: '0'
|
|
374
374
|
requirements: []
|
|
375
|
-
rubygems_version: 3.1
|
|
376
|
-
signing_key:
|
|
375
|
+
rubygems_version: 3.0.3.1
|
|
376
|
+
signing_key:
|
|
377
377
|
specification_version: 4
|
|
378
378
|
summary: Qiita-specified markdown processor.
|
|
379
379
|
test_files:
|