mdextab 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/main.yml +29 -0
- data/.gitignore +6 -0
- data/.rubocop.yml +7 -142
- data/.rubocop_todo.yml +270 -20
- data/Gemfile +22 -2
- data/Gemfile.lock +98 -0
- data/Rakefile +27 -4
- data/bin/makemdtab +25 -25
- data/bin/mdextab +1 -1
- data/lib/mdextab/layer.rb +12 -13
- data/lib/mdextab/makemdtab.rb +29 -32
- data/lib/mdextab/table.rb +13 -13
- data/lib/mdextab/tbody.rb +1 -1
- data/lib/mdextab/td.rb +4 -4
- data/lib/mdextab/th.rb +2 -2
- data/lib/mdextab/token.rb +6 -19
- data/lib/mdextab/tr.rb +1 -1
- data/lib/mdextab/version.rb +1 -1
- data/lib/mdextab.rb +30 -33
- data/mdextab.gemspec +21 -16
- metadata +77 -32
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b14650667117faafe24aabe817c67118b7b11079a5c7e2196d33596f6c63d436
|
4
|
+
data.tar.gz: 0f9d887a1b383364a7be5fca5fac6e8b091c973f871892181ec738ec4ae7f9d8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3dfae70f27ebca3acda36c210e0bdf8a33fea5543efee1819a2c325dbdddaa948c0ef8c88da158c896ace06d257828b8c389d411e4c8bc15b408c388b708540f
|
7
|
+
data.tar.gz: 519477c8e3e99cd30c17f9bcfb6deb3504e5fcf1af34091ead0959558c7ac8a91a26924c0a087d3907ba1b51bcf4b531d8ff3fc9ee74943b778252606c4f7cb3
|
@@ -0,0 +1,29 @@
|
|
1
|
+
name: Ruby
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches:
|
6
|
+
- main
|
7
|
+
|
8
|
+
pull_request:
|
9
|
+
|
10
|
+
jobs:
|
11
|
+
build:
|
12
|
+
runs-on: ubuntu-latest
|
13
|
+
name: Ruby ${{ matrix.ruby }}
|
14
|
+
strategy:
|
15
|
+
matrix:
|
16
|
+
ruby:
|
17
|
+
- '2.7'
|
18
|
+
|
19
|
+
env:
|
20
|
+
BUNDLE_WITH: test
|
21
|
+
steps:
|
22
|
+
- uses: actions/checkout@v2
|
23
|
+
- name: Set up Ruby
|
24
|
+
uses: ruby/setup-ruby@v1
|
25
|
+
with:
|
26
|
+
ruby-version: ${{ matrix.ruby }}
|
27
|
+
bundler-cache: true
|
28
|
+
- name: Run the default task
|
29
|
+
run: bundle exec rake
|
data/.gitignore
ADDED
data/.rubocop.yml
CHANGED
@@ -1,150 +1,15 @@
|
|
1
1
|
inherit_from: .rubocop_todo.yml
|
2
2
|
|
3
|
+
require:
|
4
|
+
- rubocop-rake
|
5
|
+
- rubocop-rspec
|
6
|
+
|
3
7
|
AllCops:
|
4
|
-
TargetRubyVersion: 2.
|
8
|
+
TargetRubyVersion: 2.7
|
9
|
+
NewCops: enable
|
10
|
+
|
5
11
|
DisplayCopNames: true
|
6
12
|
#
|
7
13
|
StyleGuideBaseURL: https://github.com/fortissimo1997/ruby-style-guide/blob/japanese/README.ja.md
|
8
14
|
#
|
9
|
-
Exclude:
|
10
|
-
- "Gemfile"
|
11
|
-
- "Rakefile"
|
12
|
-
- "*.gemspec"
|
13
|
-
- "vendor/**/*"
|
14
|
-
- "bin/console"
|
15
|
-
- "bin/setup"
|
16
|
-
- "bin/x.sh"
|
17
|
-
- "bin/x.rb"
|
18
|
-
- "bin"
|
19
|
-
- "bin/erubis"
|
20
|
-
- "bin/md2site"
|
21
|
-
- "bin/ldiff"
|
22
|
-
- "bin/bundle"
|
23
|
-
- "bin/rake"
|
24
|
-
- "bin/htmldiff"
|
25
|
-
- "bin/ruby-parse"
|
26
|
-
- "bin/setup"
|
27
|
-
- "bin/simpleoptparse"
|
28
|
-
- "bin/ruby-rewrite"
|
29
|
-
- "bin/nokogiri"
|
30
|
-
- "bin/mdextab"
|
31
|
-
- "bin/rspec"
|
32
|
-
- "bin/commands"
|
33
|
-
- "bin/rubocop"
|
34
|
-
- "bin/byebug"
|
35
|
-
- "_tmp/*"
|
36
|
-
- "_tmp/*.*"
|
37
|
-
- "_tmp/*/*"
|
38
|
-
- "_tmp/*/*.*"
|
39
|
-
- "_tmp/*/*/*"
|
40
|
-
- "_tmp/*/*/*.*"
|
41
|
-
|
42
|
-
|
43
|
-
Layout/ExtraSpacing:
|
44
|
-
AllowForAlignment: true
|
45
|
-
Layout/SpaceInsideBlockBraces:
|
46
|
-
EnforcedStyle: space
|
47
|
-
SpaceBeforeBlockParameters: false
|
48
|
-
Layout/MultilineMethodCallIndentation:
|
49
|
-
EnforcedStyle: indented
|
50
|
-
Layout/EmptyLineAfterGuardClause:
|
51
|
-
Enabled: false
|
52
|
-
Layout/MultilineOperationIndentation:
|
53
|
-
EnforcedStyle: indented
|
54
|
-
|
55
|
-
Lint/UnderscorePrefixedVariableName:
|
56
|
-
Enabled: false
|
57
|
-
Lint/UnusedMethodArgument:
|
58
|
-
Enabled: false
|
59
|
-
|
60
|
-
Metrics/LineLength:
|
61
|
-
Enabled: false
|
62
|
-
Metrics/ClassLength:
|
63
|
-
Exclude:
|
64
|
-
- "test/**/*.rb"
|
65
|
-
Metrics/ParameterLists:
|
66
|
-
Max: 7
|
67
|
-
Metrics/MethodLength:
|
68
|
-
Max: 30
|
69
|
-
|
70
|
-
Naming/FileName:
|
71
|
-
Enabled: false
|
72
|
-
Naming/UncommunicativeMethodParamName:
|
73
|
-
AllowedNames:
|
74
|
-
- x
|
75
|
-
- y
|
76
|
-
- x0
|
77
|
-
- y0
|
78
|
-
- xm
|
79
|
-
- ym
|
80
|
-
- xx
|
81
|
-
- xy
|
82
|
-
- yx
|
83
|
-
- yy
|
84
15
|
|
85
|
-
Style/AsciiComments:
|
86
|
-
Enabled: false
|
87
|
-
Style/HashSyntax:
|
88
|
-
Exclude:
|
89
|
-
- "**/*.rake"
|
90
|
-
- "Rakefile"
|
91
|
-
Style/EmptyMethod:
|
92
|
-
Enabled: false
|
93
|
-
Style/FrozenStringLiteralComment:
|
94
|
-
Enabled: false
|
95
|
-
Style/NumericLiterals:
|
96
|
-
Enabled: false
|
97
|
-
Style/StringLiterals:
|
98
|
-
EnforcedStyle: double_quotes
|
99
|
-
Style/TrailingCommaInArrayLiteral:
|
100
|
-
Enabled: false
|
101
|
-
Style/TrailingCommaInHashLiteral:
|
102
|
-
Enabled: false
|
103
|
-
Style/TrailingCommaInArguments:
|
104
|
-
Enabled: false
|
105
|
-
Style/Documentation:
|
106
|
-
Enabled: false
|
107
|
-
Style/WordArray:
|
108
|
-
Enabled: false
|
109
|
-
Style/BarePercentLiterals:
|
110
|
-
EnforcedStyle: percent_q
|
111
|
-
Style/BracesAroundHashParameters:
|
112
|
-
Enabled: false
|
113
|
-
Style/PercentQLiterals:
|
114
|
-
Enabled: false
|
115
|
-
Style/UnneededPercentQ:
|
116
|
-
Enabled: false
|
117
|
-
Style/IfUnlessModifier:
|
118
|
-
Enabled: false
|
119
|
-
Style/NumericPredicate:
|
120
|
-
Enabled: false
|
121
|
-
Style/MutableConstant:
|
122
|
-
Enabled: false
|
123
|
-
Style/SymbolArray:
|
124
|
-
Enabled: false
|
125
|
-
Style/FormatString:
|
126
|
-
Enabled: false
|
127
|
-
Style/ConditionalAssignment:
|
128
|
-
Enabled: false
|
129
|
-
Style/WhileUntilModifier:
|
130
|
-
Enabled: false
|
131
|
-
Style/RedundantBegin:
|
132
|
-
Enabled: false
|
133
|
-
Style/YodaCondition:
|
134
|
-
EnforcedStyle: forbid_for_equality_operators_only
|
135
|
-
Style/TernaryParentheses:
|
136
|
-
EnforcedStyle: require_parentheses_when_complex
|
137
|
-
Style/MethodCallWithArgsParentheses:
|
138
|
-
Exclude:
|
139
|
-
- "**/*.rake"
|
140
|
-
- "Rakefile"
|
141
|
-
- "Gemfile"
|
142
|
-
Enabled: true
|
143
|
-
IgnoredMethods:
|
144
|
-
- p
|
145
|
-
- pp
|
146
|
-
- puts
|
147
|
-
- print
|
148
|
-
- printf
|
149
|
-
- raise
|
150
|
-
- require
|
data/.rubocop_todo.yml
CHANGED
@@ -1,48 +1,298 @@
|
|
1
1
|
# This configuration was generated by
|
2
|
-
# `rubocop --auto-gen-config
|
3
|
-
# using RuboCop version
|
2
|
+
# `rubocop --auto-gen-config`
|
3
|
+
# on 2022-10-02 13:24:59 UTC using RuboCop version 1.36.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
|
-
#
|
10
|
-
|
9
|
+
# Offense count: 1
|
10
|
+
# Configuration parameters: Include.
|
11
|
+
# Include: **/*.gemfile, **/Gemfile, **/gems.rb
|
12
|
+
Bundler/DuplicatedGem:
|
11
13
|
Exclude:
|
12
|
-
#
|
14
|
+
# - 'Gemfile'
|
13
15
|
|
14
|
-
#
|
16
|
+
# Offense count: 3
|
17
|
+
# This cop supports safe autocorrection (--autocorrect).
|
18
|
+
# Configuration parameters: TreatCommentsAsGroupSeparators, ConsiderPunctuation, Include.
|
19
|
+
# Include: **/*.gemfile, **/Gemfile, **/gems.rb
|
20
|
+
Bundler/OrderedGems:
|
21
|
+
Exclude:
|
22
|
+
# - 'Gemfile'
|
23
|
+
|
24
|
+
# Offense count: 3
|
25
|
+
# This cop supports safe autocorrection (--autocorrect).
|
26
|
+
# Configuration parameters: TreatCommentsAsGroupSeparators, ConsiderPunctuation, Include.
|
27
|
+
# Include: **/*.gemspec
|
28
|
+
Gemspec/OrderedDependencies:
|
29
|
+
Exclude:
|
30
|
+
# - 'mdextab.gemspec'
|
31
|
+
|
32
|
+
# Offense count: 1
|
33
|
+
# This cop supports safe autocorrection (--autocorrect).
|
34
|
+
# Configuration parameters: Include.
|
35
|
+
# Include: **/*.gemspec
|
36
|
+
Gemspec/RequireMFA:
|
37
|
+
Exclude:
|
38
|
+
# - 'mdextab.gemspec'
|
39
|
+
|
40
|
+
# Offense count: 1
|
41
|
+
# Configuration parameters: Include.
|
42
|
+
# Include: **/*.gemspec
|
43
|
+
Gemspec/RequiredRubyVersion:
|
44
|
+
Exclude:
|
45
|
+
# - 'mdextab.gemspec'
|
46
|
+
|
47
|
+
# Offense count: 1
|
48
|
+
# This cop supports safe autocorrection (--autocorrect).
|
49
|
+
# Configuration parameters: AllowForAlignment.
|
50
|
+
Layout/CommentIndentation:
|
51
|
+
Exclude:
|
52
|
+
# - 'mdextab.gemspec'
|
53
|
+
|
54
|
+
# Offense count: 1
|
55
|
+
# This cop supports safe autocorrection (--autocorrect).
|
56
|
+
Layout/EmptyLineAfterGuardClause:
|
57
|
+
Exclude:
|
58
|
+
# - 'lib/mdextab/layer.rb'
|
59
|
+
|
60
|
+
# Offense count: 1
|
61
|
+
# This cop supports safe autocorrection (--autocorrect).
|
62
|
+
# Configuration parameters: AllowForAlignment, AllowBeforeTrailingComments, ForceEqualSignAlignment.
|
63
|
+
Layout/ExtraSpacing:
|
64
|
+
Exclude:
|
65
|
+
# - 'mdextab.gemspec'
|
66
|
+
|
67
|
+
# Offense count: 1
|
68
|
+
# This cop supports safe autocorrection (--autocorrect).
|
69
|
+
Layout/LeadingEmptyLines:
|
70
|
+
Exclude:
|
71
|
+
# - 'mdextab.gemspec'
|
72
|
+
|
73
|
+
# Offense count: 1
|
74
|
+
# This cop supports safe autocorrection (--autocorrect).
|
75
|
+
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
76
|
+
# SupportedStyles: aligned, indented
|
77
|
+
Layout/LineEndStringConcatenationIndentation:
|
78
|
+
Exclude:
|
79
|
+
# - 'mdextab.gemspec'
|
80
|
+
|
81
|
+
# Offense count: 10
|
82
|
+
# This cop supports safe autocorrection (--autocorrect).
|
15
83
|
# Configuration parameters: .
|
16
84
|
# SupportedStyles: space, no_space
|
17
85
|
Layout/SpaceAroundEqualsInParameterDefault:
|
18
86
|
EnforcedStyle: no_space
|
19
87
|
|
88
|
+
# Offense count: 1
|
89
|
+
# This cop supports safe autocorrection (--autocorrect).
|
90
|
+
# Configuration parameters: AllowForAlignment, EnforcedStyleForExponentOperator.
|
91
|
+
# SupportedStylesForExponentOperator: space, no_space
|
92
|
+
Layout/SpaceAroundOperators:
|
93
|
+
Exclude:
|
94
|
+
# - 'mdextab.gemspec'
|
95
|
+
|
96
|
+
# Offense count: 13
|
97
|
+
# This cop supports safe autocorrection (--autocorrect).
|
98
|
+
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
|
99
|
+
# SupportedStyles: space, no_space
|
100
|
+
# SupportedStylesForEmptyBraces: space, no_space
|
101
|
+
Layout/SpaceInsideBlockBraces:
|
102
|
+
Exclude:
|
103
|
+
# - 'bin/makemdtab'
|
104
|
+
# - 'bin/mdextab'
|
105
|
+
# - 'lib/mdextab/layer.rb'
|
106
|
+
# - 'lib/mdextab/makemdtab.rb'
|
107
|
+
|
108
|
+
# Offense count: 2
|
109
|
+
# Configuration parameters: IgnoreLiteralBranches, IgnoreConstantBranches.
|
110
|
+
Lint/DuplicateBranch:
|
111
|
+
Exclude:
|
112
|
+
- 'lib/mdextab/layer.rb'
|
113
|
+
|
114
|
+
# Offense count: 1
|
115
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
116
|
+
Lint/DuplicateRequire:
|
117
|
+
Exclude:
|
118
|
+
# - 'lib/mdextab.rb'
|
119
|
+
|
120
|
+
# Offense count: 10
|
121
|
+
# This cop supports safe autocorrection (--autocorrect).
|
122
|
+
# Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods, IgnoreNotImplementedMethods.
|
123
|
+
Lint/UnusedMethodArgument:
|
124
|
+
Exclude:
|
125
|
+
# - 'lib/mdextab.rb'
|
126
|
+
# - 'lib/mdextab/token.rb'
|
127
|
+
|
128
|
+
# Offense count: 17
|
129
|
+
# Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods, CountRepeatedAttributes.
|
20
130
|
Metrics/AbcSize:
|
21
|
-
Max:
|
131
|
+
Max: 47
|
22
132
|
|
23
|
-
#
|
133
|
+
# Offense count: 2
|
134
|
+
# Configuration parameters: CountComments, CountAsOne.
|
24
135
|
Metrics/ClassLength:
|
25
|
-
Max:
|
136
|
+
Max: 369
|
26
137
|
|
138
|
+
# Offense count: 8
|
139
|
+
# Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods.
|
27
140
|
Metrics/CyclomaticComplexity:
|
28
141
|
Max: 10
|
29
142
|
|
143
|
+
# Offense count: 23
|
144
|
+
# Configuration parameters: CountComments, CountAsOne, ExcludedMethods, AllowedMethods, AllowedPatterns, IgnoredMethods.
|
145
|
+
Metrics/MethodLength:
|
146
|
+
Max: 30
|
147
|
+
|
148
|
+
# Offense count: 1
|
149
|
+
# Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods.
|
30
150
|
Metrics/PerceivedComplexity:
|
31
151
|
Max: 9
|
32
152
|
|
33
|
-
#
|
34
|
-
|
153
|
+
# Offense count: 1
|
154
|
+
# This cop supports safe autocorrection (--autocorrect).
|
155
|
+
RSpec/BeEq:
|
35
156
|
Exclude:
|
36
|
-
#
|
157
|
+
# - 'spec/mdextab_spec.rb'
|
37
158
|
|
38
|
-
#
|
39
|
-
|
159
|
+
# Offense count: 1
|
160
|
+
# This cop supports safe autocorrection (--autocorrect).
|
161
|
+
# Configuration parameters: EnforcedStyle.
|
162
|
+
# SupportedStyles: be, be_nil
|
163
|
+
RSpec/BeNil:
|
40
164
|
Exclude:
|
41
|
-
#
|
165
|
+
# - 'spec/mdextab_spec.rb'
|
42
166
|
|
43
|
-
#
|
44
|
-
#
|
45
|
-
#
|
46
|
-
|
167
|
+
# Offense count: 10
|
168
|
+
# This cop supports safe autocorrection (--autocorrect).
|
169
|
+
# Configuration parameters: EnforcedStyle.
|
170
|
+
# SupportedStyles: percent_q, bare_percent
|
171
|
+
Style/BarePercentLiterals:
|
47
172
|
Exclude:
|
48
|
-
#
|
173
|
+
# - 'lib/mdextab.rb'
|
174
|
+
# - 'lib/mdextab/table.rb'
|
175
|
+
# - 'lib/mdextab/td.rb'
|
176
|
+
# - 'lib/mdextab/th.rb'
|
177
|
+
|
178
|
+
# Offense count: 10
|
179
|
+
# This cop supports safe autocorrection (--autocorrect).
|
180
|
+
# Configuration parameters: EnforcedStyle, SingleLineConditionsOnly, IncludeTernaryExpressions.
|
181
|
+
# SupportedStyles: assign_to_condition, assign_inside_condition
|
182
|
+
Style/ConditionalAssignment:
|
183
|
+
Exclude:
|
184
|
+
# - 'bin/makemdtab'
|
185
|
+
# - 'lib/mdextab/layer.rb'
|
186
|
+
# - 'lib/mdextab/makemdtab.rb'
|
187
|
+
# - 'lib/mdextab/table.rb'
|
188
|
+
# - 'lib/mdextab/token.rb'
|
189
|
+
|
190
|
+
# Offense count: 1
|
191
|
+
# Configuration parameters: AllowedConstants.
|
192
|
+
Style/Documentation:
|
193
|
+
Exclude:
|
194
|
+
# - 'spec/**/*'
|
195
|
+
# - 'test/**/*'
|
196
|
+
# - 'lib/mdextab/makemdtab.rb'
|
197
|
+
|
198
|
+
# Offense count: 2
|
199
|
+
# This cop supports safe autocorrection (--autocorrect).
|
200
|
+
Style/ExpandPathArguments:
|
201
|
+
Exclude:
|
202
|
+
# - 'mdextab.gemspec'
|
203
|
+
|
204
|
+
# Offense count: 18
|
205
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
206
|
+
# Configuration parameters: EnforcedStyle.
|
207
|
+
# SupportedStyles: always, always_true, never
|
208
|
+
Style/FrozenStringLiteralComment:
|
209
|
+
Enabled: false
|
210
|
+
|
211
|
+
# Offense count: 2
|
212
|
+
# This cop supports safe autocorrection (--autocorrect).
|
213
|
+
Style/IfUnlessModifier:
|
214
|
+
Exclude:
|
215
|
+
# - 'lib/mdextab.rb'
|
216
|
+
# - 'lib/mdextab/layer.rb'
|
217
|
+
|
218
|
+
# Offense count: 1
|
219
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
220
|
+
# Configuration parameters: EnforcedStyle.
|
221
|
+
# SupportedStyles: literals, strict
|
222
|
+
Style/MutableConstant:
|
223
|
+
Exclude:
|
224
|
+
# - 'lib/mdextab/version.rb'
|
225
|
+
|
226
|
+
# Offense count: 1
|
227
|
+
# Configuration parameters: AllowedMethods.
|
228
|
+
# AllowedMethods: respond_to_missing?
|
229
|
+
Style/OptionalBooleanParameter:
|
230
|
+
Exclude:
|
231
|
+
# - 'lib/mdextab/table.rb'
|
232
|
+
|
233
|
+
# Offense count: 2
|
234
|
+
# This cop supports safe autocorrection (--autocorrect).
|
235
|
+
# Configuration parameters: PreferredDelimiters.
|
236
|
+
Style/PercentLiteralDelimiters:
|
237
|
+
Exclude:
|
238
|
+
# - 'mdextab.gemspec'
|
239
|
+
|
240
|
+
# Offense count: 1
|
241
|
+
# This cop supports safe autocorrection (--autocorrect).
|
242
|
+
# Configuration parameters: EnforcedStyle.
|
243
|
+
# SupportedStyles: lower_case_q, upper_case_q
|
244
|
+
Style/PercentQLiterals:
|
245
|
+
Exclude:
|
246
|
+
# - 'lib/mdextab/table.rb'
|
247
|
+
|
248
|
+
# Offense count: 1
|
249
|
+
# This cop supports safe autocorrection (--autocorrect).
|
250
|
+
Style/RedundantAssignment:
|
251
|
+
Exclude:
|
252
|
+
# - 'lib/mdextab/makemdtab.rb'
|
253
|
+
|
254
|
+
# Offense count: 12
|
255
|
+
# This cop supports safe autocorrection (--autocorrect).
|
256
|
+
Style/RedundantPercentQ:
|
257
|
+
Exclude:
|
258
|
+
# - 'lib/mdextab.rb'
|
259
|
+
# - 'lib/mdextab/table.rb'
|
260
|
+
# - 'lib/mdextab/td.rb'
|
261
|
+
# - 'lib/mdextab/th.rb'
|
262
|
+
# - 'mdextab.gemspec'
|
263
|
+
|
264
|
+
# Offense count: 1
|
265
|
+
# This cop supports safe autocorrection (--autocorrect).
|
266
|
+
Style/RedundantRegexpEscape:
|
267
|
+
Exclude:
|
268
|
+
# - 'lib/mdextab/token.rb'
|
269
|
+
|
270
|
+
# Offense count: 17
|
271
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
272
|
+
# Configuration parameters: Mode.
|
273
|
+
Style/StringConcatenation:
|
274
|
+
Exclude:
|
275
|
+
# - 'lib/mdextab.rb'
|
276
|
+
# - 'lib/mdextab/makemdtab.rb'
|
277
|
+
|
278
|
+
# Offense count: 216
|
279
|
+
# This cop supports safe autocorrection (--autocorrect).
|
280
|
+
# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
|
281
|
+
# SupportedStyles: single_quotes, double_quotes
|
282
|
+
Style/StringLiterals:
|
283
|
+
Enabled: false
|
284
|
+
|
285
|
+
# Offense count: 1
|
286
|
+
# This cop supports safe autocorrection (--autocorrect).
|
287
|
+
# Configuration parameters: EnforcedStyleForMultiline.
|
288
|
+
# SupportedStylesForMultiline: comma, consistent_comma, no_comma
|
289
|
+
Style/TrailingCommaInHashLiteral:
|
290
|
+
Exclude:
|
291
|
+
# - 'lib/mdextab.rb'
|
292
|
+
|
293
|
+
# Offense count: 15
|
294
|
+
# This cop supports safe autocorrection (--autocorrect).
|
295
|
+
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns, IgnoredPatterns.
|
296
|
+
# URISchemes: http, https
|
297
|
+
Layout/LineLength:
|
298
|
+
Max: 226
|
data/Gemfile
CHANGED
@@ -1,6 +1,26 @@
|
|
1
1
|
source "https://rubygems.org"
|
2
2
|
|
3
3
|
# Specify your gem's dependencies in mdextab.gemspec
|
4
|
-
#gem "filex", path: "../
|
5
|
-
#gem "messagex", path: "../
|
4
|
+
# gem "filex", path: "../filex-gem"
|
5
|
+
# gem "messagex", path: "../messagex"
|
6
6
|
gemspec
|
7
|
+
|
8
|
+
gem "bundler"
|
9
|
+
gem "debug"
|
10
|
+
gem "erubis"
|
11
|
+
gem "filex"
|
12
|
+
gem "messagex"
|
13
|
+
gem "rake", "~> 13.0"
|
14
|
+
gem "simpleoptparse"
|
15
|
+
|
16
|
+
group :development do
|
17
|
+
gem 'yard'
|
18
|
+
end
|
19
|
+
|
20
|
+
group :test, optional: true do
|
21
|
+
gem "rspec", "~> 3.0"
|
22
|
+
gem "rubocop"
|
23
|
+
gem "rubocop-performance"
|
24
|
+
gem "rubocop-rake"
|
25
|
+
gem "rubocop-rspec"
|
26
|
+
end
|
data/Gemfile.lock
ADDED
@@ -0,0 +1,98 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
mdextab (0.1.9)
|
5
|
+
bundler
|
6
|
+
debug
|
7
|
+
erubis
|
8
|
+
filex
|
9
|
+
messagex
|
10
|
+
rake (~> 13.0)
|
11
|
+
simpleoptparse
|
12
|
+
|
13
|
+
GEM
|
14
|
+
remote: https://rubygems.org/
|
15
|
+
specs:
|
16
|
+
ast (2.4.2)
|
17
|
+
debug (1.6.2)
|
18
|
+
irb (>= 1.3.6)
|
19
|
+
reline (>= 0.3.1)
|
20
|
+
diff-lcs (1.5.0)
|
21
|
+
erubis (2.7.0)
|
22
|
+
filex (0.1.7)
|
23
|
+
erubis
|
24
|
+
messagex
|
25
|
+
io-console (0.5.11)
|
26
|
+
irb (1.4.1)
|
27
|
+
reline (>= 0.3.0)
|
28
|
+
json (2.6.2)
|
29
|
+
messagex (0.1.5)
|
30
|
+
parallel (1.22.1)
|
31
|
+
parser (3.1.2.1)
|
32
|
+
ast (~> 2.4.1)
|
33
|
+
rainbow (3.1.1)
|
34
|
+
rake (13.0.6)
|
35
|
+
regexp_parser (2.6.0)
|
36
|
+
reline (0.3.1)
|
37
|
+
io-console (~> 0.5)
|
38
|
+
rexml (3.2.5)
|
39
|
+
rspec (3.11.0)
|
40
|
+
rspec-core (~> 3.11.0)
|
41
|
+
rspec-expectations (~> 3.11.0)
|
42
|
+
rspec-mocks (~> 3.11.0)
|
43
|
+
rspec-core (3.11.0)
|
44
|
+
rspec-support (~> 3.11.0)
|
45
|
+
rspec-expectations (3.11.1)
|
46
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
47
|
+
rspec-support (~> 3.11.0)
|
48
|
+
rspec-mocks (3.11.1)
|
49
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
50
|
+
rspec-support (~> 3.11.0)
|
51
|
+
rspec-support (3.11.1)
|
52
|
+
rubocop (1.36.0)
|
53
|
+
json (~> 2.3)
|
54
|
+
parallel (~> 1.10)
|
55
|
+
parser (>= 3.1.2.1)
|
56
|
+
rainbow (>= 2.2.2, < 4.0)
|
57
|
+
regexp_parser (>= 1.8, < 3.0)
|
58
|
+
rexml (>= 3.2.5, < 4.0)
|
59
|
+
rubocop-ast (>= 1.20.1, < 2.0)
|
60
|
+
ruby-progressbar (~> 1.7)
|
61
|
+
unicode-display_width (>= 1.4.0, < 3.0)
|
62
|
+
rubocop-ast (1.21.0)
|
63
|
+
parser (>= 3.1.1.0)
|
64
|
+
rubocop-performance (1.15.0)
|
65
|
+
rubocop (>= 1.7.0, < 2.0)
|
66
|
+
rubocop-ast (>= 0.4.0)
|
67
|
+
rubocop-rake (0.6.0)
|
68
|
+
rubocop (~> 1.0)
|
69
|
+
rubocop-rspec (2.13.2)
|
70
|
+
rubocop (~> 1.33)
|
71
|
+
ruby-progressbar (1.11.0)
|
72
|
+
simpleoptparse (0.1.2)
|
73
|
+
unicode-display_width (2.3.0)
|
74
|
+
webrick (1.7.0)
|
75
|
+
yard (0.9.28)
|
76
|
+
webrick (~> 1.7.0)
|
77
|
+
|
78
|
+
PLATFORMS
|
79
|
+
x86_64-linux
|
80
|
+
|
81
|
+
DEPENDENCIES
|
82
|
+
bundler
|
83
|
+
debug
|
84
|
+
erubis
|
85
|
+
filex
|
86
|
+
mdextab!
|
87
|
+
messagex
|
88
|
+
rake (~> 13.0)
|
89
|
+
rspec (~> 3.0)
|
90
|
+
rubocop
|
91
|
+
rubocop-performance
|
92
|
+
rubocop-rake
|
93
|
+
rubocop-rspec
|
94
|
+
simpleoptparse
|
95
|
+
yard
|
96
|
+
|
97
|
+
BUNDLED WITH
|
98
|
+
2.3.17
|
data/Rakefile
CHANGED
@@ -1,6 +1,29 @@
|
|
1
|
-
|
2
|
-
require "rspec/core/rake_task"
|
1
|
+
# frozen_string_literal: true
|
3
2
|
|
4
|
-
|
3
|
+
require "bundler/gem_tasks"
|
5
4
|
|
6
|
-
|
5
|
+
begin
|
6
|
+
require "rspec/core/rake_task"
|
7
|
+
rescue LoadError => e
|
8
|
+
puts e.message
|
9
|
+
end
|
10
|
+
begin
|
11
|
+
RSpec::Core::RakeTask.new(:spec)
|
12
|
+
rescue NameError, LoadError => e
|
13
|
+
puts e.message
|
14
|
+
end
|
15
|
+
begin
|
16
|
+
require "rubocop/rake_task"
|
17
|
+
rescue LoadError => e
|
18
|
+
puts e.message
|
19
|
+
end
|
20
|
+
begin
|
21
|
+
RuboCop::RakeTask.new
|
22
|
+
rescue NameError, LoadError => e
|
23
|
+
puts e.message
|
24
|
+
end
|
25
|
+
begin
|
26
|
+
task default: %i[spec rubocop]
|
27
|
+
rescue LoadError => e
|
28
|
+
puts e.message
|
29
|
+
end
|