yoshiki 10.0.0 → 10.2.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 +10 -0
- data/.rubocop-defaults-rails.yml +24 -2
- data/.rubocop-defaults-rspec.yml +6 -0
- data/.rubocop-defaults.yml +78 -3
- data/.rubocop.yml +1 -1
- data/.yoshiki-ruby.yml +3 -3
- data/Gemfile.lock +71 -60
- data/README.md +3 -1
- data/lib/yoshiki/version.rb +1 -1
- data/yoshiki.gemspec +7 -7
- metadata +17 -17
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8730edc27325695ab7fc6ff022e5602d606e29605b8d2557881cce952a8275d2
|
|
4
|
+
data.tar.gz: 552be4b16ee6eab583ab3043a121742c8365b09f0e4149373fc0d496907a00b5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7726d5b2f35c20555739bb2b4833406aa6c2368349d3598beba3e5e98bbc827d11bb26566ffec4e12d8216f2971b9a503fb151a669c7c61a9a6229c33fdd6934
|
|
7
|
+
data.tar.gz: cf1e2a91d243cc0eb45766acb217e8446c5947e8887fb91bf546cf64a60b997e046f92c18cc10230729fc9bd726e68039588d6d70b36bfe67e5c0f2ca8857897
|
data/.gitlab-ci.yml
CHANGED
|
@@ -8,6 +8,16 @@ before_script:
|
|
|
8
8
|
- gem update bundler
|
|
9
9
|
- bundle install --jobs $(nproc) --retry=3
|
|
10
10
|
|
|
11
|
+
ruby 4.0:
|
|
12
|
+
cache:
|
|
13
|
+
key: "$CI_BUILD_REF_NAME-3.4"
|
|
14
|
+
paths:
|
|
15
|
+
- vendor/bundle
|
|
16
|
+
image: ruby:4.0
|
|
17
|
+
script:
|
|
18
|
+
- bundle exec rake spec rubocop
|
|
19
|
+
stage: test
|
|
20
|
+
|
|
11
21
|
ruby 3.4:
|
|
12
22
|
cache:
|
|
13
23
|
key: "$CI_BUILD_REF_NAME-3.4"
|
data/.rubocop-defaults-rails.yml
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
plugins:
|
|
2
2
|
- rubocop-rails
|
|
3
|
-
|
|
4
|
-
require:
|
|
5
3
|
- rubocop-capybara
|
|
6
4
|
- rubocop-factory_bot
|
|
7
5
|
- rubocop-rspec_rails
|
|
@@ -9,13 +7,21 @@ require:
|
|
|
9
7
|
AllCops:
|
|
10
8
|
ActiveSupportExtensionsEnabled: true
|
|
11
9
|
|
|
10
|
+
# https://docs.rubocop.org/rubocop-rails/cops_rails.html
|
|
11
|
+
|
|
12
12
|
Rails:
|
|
13
13
|
Enabled: true
|
|
14
14
|
|
|
15
|
+
# https://docs.rubocop.org/rubocop-capybara/cops_capybara.html
|
|
16
|
+
|
|
17
|
+
Capybara/FindAllFirst: # new in 2.22
|
|
18
|
+
Enabled: true
|
|
15
19
|
Capybara/MatchStyle: # new in 2.17
|
|
16
20
|
Enabled: true
|
|
17
21
|
Capybara/NegationMatcher: # new in 2.14
|
|
18
22
|
Enabled: true
|
|
23
|
+
Capybara/NegationMatcherAfterVisit: # new in 2.22
|
|
24
|
+
Enabled: true
|
|
19
25
|
Capybara/RedundantWithinFind: # new in 2.20
|
|
20
26
|
Enabled: true
|
|
21
27
|
Capybara/SpecificActions: # new in 2.14
|
|
@@ -23,9 +29,13 @@ Capybara/SpecificActions: # new in 2.14
|
|
|
23
29
|
Capybara/SpecificMatcher: # new in 2.12
|
|
24
30
|
Enabled: true
|
|
25
31
|
|
|
32
|
+
# https://docs.rubocop.org/rubocop-capybara/cops_capybara_rspec.html
|
|
33
|
+
|
|
26
34
|
Capybara/RSpec/HaveSelector: # new in 2.19
|
|
27
35
|
Enabled: true
|
|
28
36
|
|
|
37
|
+
# https://docs.rubocop.org/rubocop-factory_bot/cops_factory_bot.html
|
|
38
|
+
|
|
29
39
|
FactoryBot/AssociationStyle: # new in 2.23
|
|
30
40
|
Enabled: true
|
|
31
41
|
FactoryBot/ExcessiveCreateList: # new in 2.25
|
|
@@ -43,6 +53,8 @@ FactoryBot/RedundantFactoryOption: # new in 2.23
|
|
|
43
53
|
FactoryBot/SyntaxMethods: # new in 2.7
|
|
44
54
|
Enabled: true
|
|
45
55
|
|
|
56
|
+
# https://docs.rubocop.org/rubocop-rails/cops_rails.html
|
|
57
|
+
|
|
46
58
|
Rails/ActionControllerFlashBeforeRender: # new in 2.16
|
|
47
59
|
Enabled: true
|
|
48
60
|
Rails/ActionControllerTestCase: # new in 2.14
|
|
@@ -83,8 +95,12 @@ Rails/ExpandedDateRange: # new in 2.11
|
|
|
83
95
|
Enabled: true
|
|
84
96
|
Rails/FindById: # new in 2.7
|
|
85
97
|
Enabled: true
|
|
98
|
+
Rails/FindByOrAssignmentMemoization: # new in 2.33
|
|
99
|
+
Enabled: true
|
|
86
100
|
Rails/FreezeTime: # new in 2.16
|
|
87
101
|
Enabled: true
|
|
102
|
+
Rails/HttpStatusNameConsistency: # new in 2.34
|
|
103
|
+
Enabled: true
|
|
88
104
|
Rails/IgnoredColumnsAssignment: # new in 2.17
|
|
89
105
|
Enabled: true
|
|
90
106
|
Rails/I18nLazyLookup: # new in 2.14
|
|
@@ -103,10 +119,14 @@ Rails/MultipleRoutePaths: # new in 2.29
|
|
|
103
119
|
Enabled: true
|
|
104
120
|
Rails/NegateInclude: # new in 2.7
|
|
105
121
|
Enabled: true
|
|
122
|
+
Rails/OrderArguments: # new in 2.33
|
|
123
|
+
Enabled: true
|
|
106
124
|
Rails/Output:
|
|
107
125
|
Enabled: true
|
|
108
126
|
Rails/Pluck: # new in 2.7
|
|
109
127
|
Enabled: true
|
|
128
|
+
Rails/RedirectBackOrTo: # new in 2.34
|
|
129
|
+
Enabled: true
|
|
110
130
|
Rails/RedundantActiveRecordAllMethod: # new in 2.21
|
|
111
131
|
Enabled: true
|
|
112
132
|
Rails/RedundantPresenceValidationOnBelongsTo: # new in 2.13
|
|
@@ -156,6 +176,8 @@ Rails/WhereNotWithMultipleConditions: # new in 2.17
|
|
|
156
176
|
Rails/WhereRange: # new in 2.25
|
|
157
177
|
Enabled: true
|
|
158
178
|
|
|
179
|
+
# https://docs.rubocop.org/rubocop-rspec_rails/cops_rspecrails.html
|
|
180
|
+
|
|
159
181
|
RSpecRails/AvoidSetupHook: # new in 2.4
|
|
160
182
|
Enabled: true
|
|
161
183
|
RSpecRails/HaveHttpStatus: # new in 2.12
|
data/.rubocop-defaults-rspec.yml
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
plugins:
|
|
2
2
|
- rubocop-rspec
|
|
3
3
|
|
|
4
|
+
# https://docs.rubocop.org/rubocop-rspec/cops_rspec.html
|
|
5
|
+
|
|
4
6
|
RSpec/BeEmpty: # new in 2.20
|
|
5
7
|
Enabled: true
|
|
6
8
|
RSpec/BeEq: # new in 2.9.0
|
|
@@ -23,8 +25,12 @@ RSpec/ExcessiveDocstringSpacing: # new in 2.5
|
|
|
23
25
|
Enabled: true
|
|
24
26
|
RSpec/IdenticalEqualityAssertion: # new in 2.4
|
|
25
27
|
Enabled: true
|
|
28
|
+
RSpec/IncludeExamples: # new in 3.6
|
|
29
|
+
Enabled: true
|
|
26
30
|
RSpec/IndexedLet: # new in 2.20
|
|
27
31
|
Enabled: true
|
|
32
|
+
RSpec/LeakyLocalVariable: # new in 3.8
|
|
33
|
+
Enabled: true
|
|
28
34
|
RSpec/MatchArray: # new in 2.19
|
|
29
35
|
Enabled: true
|
|
30
36
|
RSpec/MetadataStyle: # new in 2.24
|
data/.rubocop-defaults.yml
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
plugins:
|
|
2
|
-
- rubocop-performance
|
|
3
|
-
- rubocop-rake
|
|
2
|
+
- rubocop-performance # https://docs.rubocop.org/rubocop-performance/cops_performance.html
|
|
3
|
+
- rubocop-rake # https://docs.rubocop.org/rubocop-rake/cops_rake.html
|
|
4
|
+
|
|
5
|
+
# https://docs.rubocop.org/rubocop/cops_gemspec.html
|
|
4
6
|
|
|
5
7
|
Gemspec/AddRuntimeDependency: # new in 1.65
|
|
6
8
|
Enabled: true
|
|
9
|
+
Gemspec/AttributeAssignment: # new in 1.77
|
|
10
|
+
Enabled: true
|
|
7
11
|
Gemspec/DeprecatedAttributeAssignment: # new in 1.30
|
|
8
12
|
Enabled: true
|
|
9
13
|
Gemspec/DevelopmentDependencies: # new in 1.44
|
|
@@ -11,8 +15,12 @@ Gemspec/DevelopmentDependencies: # new in 1.44
|
|
|
11
15
|
Gemspec/RequireMFA: # new in 1.23
|
|
12
16
|
Enabled: true
|
|
13
17
|
|
|
18
|
+
# https://docs.rubocop.org/rubocop/cops_layout.html
|
|
19
|
+
|
|
14
20
|
Layout/ElseAlignment:
|
|
15
21
|
Enabled: true
|
|
22
|
+
Layout/EmptyLinesAfterModuleInclusion: # new in 1.79
|
|
23
|
+
Enabled: true
|
|
16
24
|
Layout/LineContinuationLeadingSpace: # new in 1.31
|
|
17
25
|
Enabled: true
|
|
18
26
|
Layout/LineContinuationSpacing: # new in 1.31
|
|
@@ -22,6 +30,8 @@ Layout/LineEndStringConcatenationIndentation: # new in 1.18
|
|
|
22
30
|
Layout/SpaceBeforeBrackets: # new in 1.7
|
|
23
31
|
Enabled: true
|
|
24
32
|
|
|
33
|
+
# https://docs.rubocop.org/rubocop/cops_lint.html
|
|
34
|
+
|
|
25
35
|
Lint/AmbiguousAssignment: # new in 1.7
|
|
26
36
|
Enabled: true
|
|
27
37
|
Lint/AmbiguousOperatorPrecedence: # new in 1.21
|
|
@@ -36,6 +46,8 @@ Lint/ConstantReassignment: # new in 1.70
|
|
|
36
46
|
Enabled: true
|
|
37
47
|
Lint/CopDirectiveSyntax: # new in 1.72
|
|
38
48
|
Enabled: true
|
|
49
|
+
Lint/DataDefineOverride: # new in 1.85
|
|
50
|
+
Enabled: true
|
|
39
51
|
Lint/DeprecatedConstants: # new in 1.8
|
|
40
52
|
Enabled: true
|
|
41
53
|
Lint/DuplicateBranch: # new in 1.3
|
|
@@ -104,20 +116,35 @@ Lint/UnexpectedBlockArity: # new in 1.5
|
|
|
104
116
|
Enabled: true
|
|
105
117
|
Lint/UnmodifiedReduceAccumulator: # new in 1.1
|
|
106
118
|
Enabled: true
|
|
119
|
+
Lint/UnreachablePatternBranch: # new in 1.85
|
|
120
|
+
Enabled: true
|
|
107
121
|
Lint/UselessConstantScoping: # new in 1.72
|
|
108
122
|
Enabled: true
|
|
109
123
|
Lint/UselessDefined: # new in 1.69
|
|
110
124
|
Enabled: true
|
|
111
125
|
Lint/UselessNumericOperation: # new in 1.66
|
|
112
126
|
Enabled: true
|
|
127
|
+
Lint/UselessOr: # new in 1.76
|
|
128
|
+
Enabled: true
|
|
129
|
+
Lint/UselessDefaultValueArgument: # new in 1.76
|
|
130
|
+
Enabled: true
|
|
113
131
|
Lint/UselessRescue: # new in 1.43
|
|
114
132
|
Enabled: true
|
|
115
133
|
Lint/UselessRuby2Keywords: # new in 1.23
|
|
116
134
|
Enabled: true
|
|
117
135
|
|
|
136
|
+
# https://docs.rubocop.org/rubocop/cops_metrics.html
|
|
137
|
+
|
|
118
138
|
Metrics/CollectionLiteralLength: # new in 1.47
|
|
119
139
|
Enabled: true
|
|
120
140
|
|
|
141
|
+
# https://docs.rubocop.org/rubocop/cops_naming.html
|
|
142
|
+
|
|
143
|
+
Naming/PredicateMethod: # new in 1.76
|
|
144
|
+
Enabled: true
|
|
145
|
+
|
|
146
|
+
# https://docs.rubocop.org/rubocop-performance/cops_performance.html
|
|
147
|
+
|
|
121
148
|
Performance/AncestorsInclude: # new in 1.7
|
|
122
149
|
Enabled: true
|
|
123
150
|
Performance/BlockGivenWithExplicitBlock: # new in 1.9
|
|
@@ -159,21 +186,31 @@ Performance/Sum: # new in 1.8
|
|
|
159
186
|
Performance/ZipWithoutBlock: # new in 1.24
|
|
160
187
|
Enabled: true
|
|
161
188
|
|
|
189
|
+
# https://docs.rubocop.org/rubocop/cops_security.html
|
|
190
|
+
|
|
162
191
|
Security/CompoundHash: # new in 1.28
|
|
163
192
|
Enabled: true
|
|
164
193
|
Security/IoMethods: # new in 1.22
|
|
165
194
|
Enabled: true
|
|
166
195
|
|
|
196
|
+
# https://docs.rubocop.org/rubocop/cops_style.html
|
|
197
|
+
|
|
167
198
|
Style/AmbiguousEndlessMethodDefinition: # new in 1.68
|
|
168
199
|
Enabled: true
|
|
169
200
|
Style/ArgumentsForwarding: # new in 1.1
|
|
170
201
|
Enabled: true
|
|
171
202
|
Style/ArrayIntersect: # new in 1.40
|
|
172
203
|
Enabled: true
|
|
204
|
+
Style/ArrayIntersectWithSingleElement: # new in 1.81
|
|
205
|
+
Enabled: true
|
|
173
206
|
Style/BitwisePredicate: # new in 1.68
|
|
174
207
|
Enabled: true
|
|
175
208
|
Style/CollectionCompact: # new in 1.2
|
|
176
209
|
Enabled: true
|
|
210
|
+
Style/CollectionQuerying: # new in 1.77
|
|
211
|
+
Enabled: true
|
|
212
|
+
Style/ComparableBetween: # new in 1.74
|
|
213
|
+
Enabled: true
|
|
177
214
|
Style/CombinableDefined: # new in 1.68
|
|
178
215
|
Enabled: true
|
|
179
216
|
Style/ComparableClamp: # new in 1.44
|
|
@@ -188,8 +225,12 @@ Style/DirEmpty: # new in 1.48
|
|
|
188
225
|
Enabled: true
|
|
189
226
|
Style/DocumentDynamicEvalDefinition: # new in 1.1
|
|
190
227
|
Enabled: true
|
|
228
|
+
Style/EmptyClassDefinition: # new in 1.84
|
|
229
|
+
Enabled: true
|
|
191
230
|
Style/EmptyHeredoc: # new in 1.32
|
|
192
231
|
Enabled: true
|
|
232
|
+
Style/EmptyStringInsideInterpolation: # new in 1.76
|
|
233
|
+
Enabled: true
|
|
193
234
|
Style/EnvHome: # new in 1.29
|
|
194
235
|
Enabled: true
|
|
195
236
|
Style/FetchEnvVar: # new in 1.28
|
|
@@ -200,6 +241,8 @@ Style/FileEmpty: # new in 1.48
|
|
|
200
241
|
Enabled: true
|
|
201
242
|
Style/FileNull: # new in 1.69
|
|
202
243
|
Enabled: true
|
|
244
|
+
Style/FileOpen: # new in 1.85
|
|
245
|
+
Enabled: true
|
|
203
246
|
Style/FileRead: # new in 1.24
|
|
204
247
|
Enabled: true
|
|
205
248
|
Style/FileTouch: # new in 1.69
|
|
@@ -210,14 +253,20 @@ Style/HashConversion: # new in 1.10
|
|
|
210
253
|
Enabled: true
|
|
211
254
|
Style/HashExcept: # new in 1.7
|
|
212
255
|
Enabled: true
|
|
256
|
+
Style/HashFetchChain: # new in 1.75
|
|
257
|
+
Enabled: true
|
|
213
258
|
Style/HashSlice: # new in 1.71
|
|
214
259
|
Enabled: true
|
|
260
|
+
Style/HashSyntax: # updated in 1.67
|
|
261
|
+
Enabled: true
|
|
215
262
|
Style/IfWithBooleanLiteralBranches: # new in 1.9
|
|
216
263
|
Enabled: true
|
|
217
264
|
Style/InPatternThen: # new in 1.16
|
|
218
265
|
Enabled: true
|
|
219
266
|
Style/ItAssignment: # new in 1.70
|
|
220
267
|
Enabled: true
|
|
268
|
+
Style/ItBlockParameter: # new in 1.75
|
|
269
|
+
Enabled: true
|
|
221
270
|
Style/KeywordArgumentsMerging: # new in 1.68
|
|
222
271
|
Enabled: true
|
|
223
272
|
Style/MagicCommentFormat: # new in 1.35
|
|
@@ -226,32 +275,48 @@ Style/MapCompactWithConditionalBlock: # new in 1.30
|
|
|
226
275
|
Enabled: true
|
|
227
276
|
Style/MapIntoArray: # new in 1.63
|
|
228
277
|
Enabled: true
|
|
278
|
+
Style/MapJoin: # new in 1.85
|
|
279
|
+
Enabled: true
|
|
229
280
|
Style/MapToHash: # new in 1.24
|
|
230
281
|
Enabled: true
|
|
231
282
|
Style/MapToSet: # new in 1.42
|
|
232
283
|
Enabled: true
|
|
233
284
|
Style/MinMaxComparison: # new in 1.42
|
|
234
285
|
Enabled: true
|
|
286
|
+
Style/ModuleMemberExistenceCheck: # new in 1.82
|
|
287
|
+
Enabled: true
|
|
235
288
|
Style/MultilineInPatternThen: # new in 1.16
|
|
236
289
|
Enabled: true
|
|
237
290
|
Style/NegatedIfElseCondition: # new in 1.2
|
|
238
291
|
Enabled: true
|
|
292
|
+
Style/NegativeArrayIndex: # new in 1.84
|
|
293
|
+
Enabled: true
|
|
239
294
|
Style/NestedFileDirname: # new in 1.26
|
|
240
295
|
Enabled: true
|
|
241
296
|
Style/NilLambda: # new in 1.3
|
|
242
297
|
Enabled: true
|
|
243
298
|
Style/ObjectThen: # new in 1.28
|
|
244
299
|
Enabled: true
|
|
300
|
+
Style/OneClassPerFile: # new in 1.85
|
|
301
|
+
Enabled: true
|
|
245
302
|
Style/OpenStructUse: # new in 1.23
|
|
246
303
|
Enabled: true
|
|
247
304
|
Style/OperatorMethodCall: # new in 1.37
|
|
248
305
|
Enabled: true
|
|
306
|
+
Style/PartitionInsteadOfDoubleSelect: # new in 1.85
|
|
307
|
+
Enabled: true
|
|
308
|
+
Style/PredicateWithKind: # new in 1.85
|
|
309
|
+
Enabled: true
|
|
249
310
|
Style/QuotedSymbols: # new in 1.16
|
|
250
311
|
Enabled: true
|
|
312
|
+
Style/ReduceToHash: # new in 1.85
|
|
313
|
+
Enabled: true
|
|
251
314
|
Style/RedundantArgument: # new in 1.4
|
|
252
315
|
Enabled: true
|
|
253
316
|
Style/RedundantArrayConstructor: # new in 1.52
|
|
254
317
|
Enabled: true
|
|
318
|
+
Style/RedundantArrayFlatten: # new in 1.76
|
|
319
|
+
Enabled: true
|
|
255
320
|
Style/RedundantConstantBase: # new in 1.40
|
|
256
321
|
Enabled: true
|
|
257
322
|
Style/RedundantCurrentDirectoryInPath: # new in 1.53
|
|
@@ -272,7 +337,7 @@ Style/RedundantInterpolationUnfreeze: # new in 1.66
|
|
|
272
337
|
Enabled: true
|
|
273
338
|
Style/RedundantLineContinuation: # new in 1.49
|
|
274
339
|
Enabled: true
|
|
275
|
-
Style/
|
|
340
|
+
Style/RedundantMinMaxBy: # new in 1.85
|
|
276
341
|
Enabled: true
|
|
277
342
|
Style/RedundantRegexpArgument: # new in 1.53
|
|
278
343
|
Enabled: true
|
|
@@ -282,8 +347,16 @@ Style/RedundantSelfAssignmentBranch: # new in 1.19
|
|
|
282
347
|
Enabled: true
|
|
283
348
|
Style/RedundantStringEscape: # new in 1.37
|
|
284
349
|
Enabled: true
|
|
350
|
+
Style/ReturnNilInPredicateMethodDefinition: # new in 1.53
|
|
351
|
+
Enabled: true
|
|
352
|
+
Style/ReverseFind: # new in 1.84
|
|
353
|
+
Enabled: true
|
|
285
354
|
Style/SafeNavigationChainLength: # new in 1.68
|
|
286
355
|
Enabled: true
|
|
356
|
+
Style/SelectByKind: # new in 1.85
|
|
357
|
+
Enabled: true
|
|
358
|
+
Style/SelectByRange: # new in 1.85
|
|
359
|
+
Enabled: true
|
|
287
360
|
Style/SendWithLiteralMethodName: # new in 1.64
|
|
288
361
|
Enabled: true
|
|
289
362
|
Style/SelectByRegexp: # new in 1.22
|
|
@@ -298,5 +371,7 @@ Style/SuperWithArgsParentheses: # new in 1.58
|
|
|
298
371
|
Enabled: false
|
|
299
372
|
Style/SwapValues: # new in 1.1
|
|
300
373
|
Enabled: true
|
|
374
|
+
Style/TallyMethod: # new in 1.85
|
|
375
|
+
Enabled: true
|
|
301
376
|
Style/YAMLFileRead: # new in 1.53
|
|
302
377
|
Enabled: true
|
data/.rubocop.yml
CHANGED
data/.yoshiki-ruby.yml
CHANGED
|
@@ -96,7 +96,7 @@ Naming/BlockForwarding: # new in 1.24
|
|
|
96
96
|
EnforcedStyle: explicit # default is `anonymous`
|
|
97
97
|
Naming/InclusiveLanguage:
|
|
98
98
|
Enabled: false
|
|
99
|
-
Naming/
|
|
99
|
+
Naming/PredicatePrefix:
|
|
100
100
|
NamePrefix:
|
|
101
101
|
- is_
|
|
102
102
|
- has_
|
|
@@ -134,8 +134,6 @@ Style/EndlessMethod: # new in 1.8
|
|
|
134
134
|
Style/FrozenStringLiteralComment:
|
|
135
135
|
EnforcedStyle: never # huzzah for ruby 3.4
|
|
136
136
|
SafeAutoCorrect: true # default is `false`
|
|
137
|
-
Style/HashSyntax:
|
|
138
|
-
EnforcedShorthandSyntax: consistent # default is `always`
|
|
139
137
|
Style/MethodDefParentheses:
|
|
140
138
|
EnforcedStyle: require_no_parentheses
|
|
141
139
|
Style/MixinUsage:
|
|
@@ -166,6 +164,8 @@ Style/PercentLiteralDelimiters:
|
|
|
166
164
|
"%x": "[]"
|
|
167
165
|
Style/PerlBackrefs:
|
|
168
166
|
Enabled: false
|
|
167
|
+
Style/RedundantStructKeywordInit: # new in 1.85
|
|
168
|
+
Enabled: false # keyword_init: true is still "good"
|
|
169
169
|
Style/RescueModifier:
|
|
170
170
|
Enabled: false
|
|
171
171
|
Style/Semicolon:
|
data/Gemfile.lock
CHANGED
|
@@ -1,79 +1,85 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
yoshiki (10.
|
|
5
|
-
rubocop (= 1.
|
|
6
|
-
rubocop-capybara (= 2.
|
|
7
|
-
rubocop-factory_bot (= 2.
|
|
8
|
-
rubocop-performance (= 1.
|
|
9
|
-
rubocop-rails (= 2.
|
|
4
|
+
yoshiki (10.2.0)
|
|
5
|
+
rubocop (= 1.86.0)
|
|
6
|
+
rubocop-capybara (= 2.22.1)
|
|
7
|
+
rubocop-factory_bot (= 2.28.0)
|
|
8
|
+
rubocop-performance (= 1.26.1)
|
|
9
|
+
rubocop-rails (= 2.34.3)
|
|
10
10
|
rubocop-rake (= 0.7.1)
|
|
11
|
-
rubocop-rspec (= 3.
|
|
12
|
-
rubocop-rspec_rails (= 2.
|
|
11
|
+
rubocop-rspec (= 3.9.0)
|
|
12
|
+
rubocop-rspec_rails (= 2.32.0)
|
|
13
13
|
|
|
14
14
|
GEM
|
|
15
15
|
remote: https://rubygems.org/
|
|
16
16
|
specs:
|
|
17
|
-
activesupport (8.
|
|
17
|
+
activesupport (8.1.3)
|
|
18
18
|
base64
|
|
19
|
-
benchmark (>= 0.3)
|
|
20
19
|
bigdecimal
|
|
21
20
|
concurrent-ruby (~> 1.0, >= 1.3.1)
|
|
22
21
|
connection_pool (>= 2.2.5)
|
|
23
22
|
drb
|
|
24
23
|
i18n (>= 1.6, < 2)
|
|
24
|
+
json
|
|
25
25
|
logger (>= 1.4.2)
|
|
26
26
|
minitest (>= 5.1)
|
|
27
27
|
securerandom (>= 0.3)
|
|
28
28
|
tzinfo (~> 2.0, >= 2.0.5)
|
|
29
29
|
uri (>= 0.13.1)
|
|
30
|
-
ast (2.4.
|
|
31
|
-
base64 (0.
|
|
32
|
-
|
|
33
|
-
bigdecimal (3.1.9)
|
|
30
|
+
ast (2.4.3)
|
|
31
|
+
base64 (0.3.0)
|
|
32
|
+
bigdecimal (4.0.1)
|
|
34
33
|
coderay (1.1.3)
|
|
35
|
-
concurrent-ruby (1.3.
|
|
36
|
-
connection_pool (
|
|
37
|
-
date (3.
|
|
38
|
-
diff-lcs (1.
|
|
39
|
-
drb (2.2.
|
|
40
|
-
i18n (1.14.
|
|
34
|
+
concurrent-ruby (1.3.6)
|
|
35
|
+
connection_pool (3.0.2)
|
|
36
|
+
date (3.5.1)
|
|
37
|
+
diff-lcs (1.6.2)
|
|
38
|
+
drb (2.2.3)
|
|
39
|
+
i18n (1.14.8)
|
|
41
40
|
concurrent-ruby (~> 1.0)
|
|
42
|
-
|
|
43
|
-
|
|
41
|
+
io-console (0.8.2)
|
|
42
|
+
json (2.19.3)
|
|
43
|
+
language_server-protocol (3.17.0.5)
|
|
44
44
|
lint_roller (1.1.0)
|
|
45
|
-
logger (1.
|
|
45
|
+
logger (1.7.0)
|
|
46
46
|
method_source (1.1.0)
|
|
47
|
-
minitest (
|
|
48
|
-
|
|
49
|
-
|
|
47
|
+
minitest (6.0.2)
|
|
48
|
+
drb (~> 2.0)
|
|
49
|
+
prism (~> 1.5)
|
|
50
|
+
parallel (1.27.0)
|
|
51
|
+
parser (3.3.11.1)
|
|
50
52
|
ast (~> 2.4.1)
|
|
51
53
|
racc
|
|
52
|
-
|
|
54
|
+
prism (1.9.0)
|
|
55
|
+
pry (0.16.0)
|
|
53
56
|
coderay (~> 1.1)
|
|
54
57
|
method_source (~> 1.0)
|
|
55
|
-
|
|
58
|
+
reline (>= 0.6.0)
|
|
59
|
+
psych (5.3.1)
|
|
56
60
|
date
|
|
57
61
|
stringio
|
|
58
62
|
racc (1.8.1)
|
|
59
|
-
rack (3.
|
|
63
|
+
rack (3.2.5)
|
|
60
64
|
rainbow (3.1.1)
|
|
61
|
-
rake (13.
|
|
62
|
-
regexp_parser (2.
|
|
63
|
-
|
|
65
|
+
rake (13.3.1)
|
|
66
|
+
regexp_parser (2.11.3)
|
|
67
|
+
reline (0.6.3)
|
|
68
|
+
io-console (~> 0.5)
|
|
69
|
+
rspec (3.13.2)
|
|
64
70
|
rspec-core (~> 3.13.0)
|
|
65
71
|
rspec-expectations (~> 3.13.0)
|
|
66
72
|
rspec-mocks (~> 3.13.0)
|
|
67
|
-
rspec-core (3.13.
|
|
73
|
+
rspec-core (3.13.6)
|
|
68
74
|
rspec-support (~> 3.13.0)
|
|
69
|
-
rspec-expectations (3.13.
|
|
75
|
+
rspec-expectations (3.13.5)
|
|
70
76
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
71
77
|
rspec-support (~> 3.13.0)
|
|
72
|
-
rspec-mocks (3.13.
|
|
78
|
+
rspec-mocks (3.13.7)
|
|
73
79
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
74
80
|
rspec-support (~> 3.13.0)
|
|
75
|
-
rspec-support (3.13.
|
|
76
|
-
rubocop (1.
|
|
81
|
+
rspec-support (3.13.6)
|
|
82
|
+
rubocop (1.86.0)
|
|
77
83
|
json (~> 2.3)
|
|
78
84
|
language_server-protocol (~> 3.17.0.2)
|
|
79
85
|
lint_roller (~> 1.1.0)
|
|
@@ -81,46 +87,51 @@ GEM
|
|
|
81
87
|
parser (>= 3.3.0.2)
|
|
82
88
|
rainbow (>= 2.2.2, < 4.0)
|
|
83
89
|
regexp_parser (>= 2.9.3, < 3.0)
|
|
84
|
-
rubocop-ast (>= 1.
|
|
90
|
+
rubocop-ast (>= 1.49.0, < 2.0)
|
|
85
91
|
ruby-progressbar (~> 1.7)
|
|
86
92
|
unicode-display_width (>= 2.4.0, < 4.0)
|
|
87
|
-
rubocop-ast (1.
|
|
88
|
-
parser (>= 3.3.
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
rubocop-factory_bot (2.26.1)
|
|
92
|
-
rubocop (~> 1.61)
|
|
93
|
-
rubocop-performance (1.24.0)
|
|
93
|
+
rubocop-ast (1.49.1)
|
|
94
|
+
parser (>= 3.3.7.2)
|
|
95
|
+
prism (~> 1.7)
|
|
96
|
+
rubocop-capybara (2.22.1)
|
|
94
97
|
lint_roller (~> 1.1)
|
|
95
|
-
rubocop (
|
|
96
|
-
|
|
97
|
-
|
|
98
|
+
rubocop (~> 1.72, >= 1.72.1)
|
|
99
|
+
rubocop-factory_bot (2.28.0)
|
|
100
|
+
lint_roller (~> 1.1)
|
|
101
|
+
rubocop (~> 1.72, >= 1.72.1)
|
|
102
|
+
rubocop-performance (1.26.1)
|
|
103
|
+
lint_roller (~> 1.1)
|
|
104
|
+
rubocop (>= 1.75.0, < 2.0)
|
|
105
|
+
rubocop-ast (>= 1.47.1, < 2.0)
|
|
106
|
+
rubocop-rails (2.34.3)
|
|
98
107
|
activesupport (>= 4.2.0)
|
|
99
108
|
lint_roller (~> 1.1)
|
|
100
109
|
rack (>= 1.1)
|
|
101
|
-
rubocop (>= 1.
|
|
102
|
-
rubocop-ast (>= 1.
|
|
110
|
+
rubocop (>= 1.75.0, < 2.0)
|
|
111
|
+
rubocop-ast (>= 1.44.0, < 2.0)
|
|
103
112
|
rubocop-rake (0.7.1)
|
|
104
113
|
lint_roller (~> 1.1)
|
|
105
114
|
rubocop (>= 1.72.1)
|
|
106
|
-
rubocop-rspec (3.
|
|
115
|
+
rubocop-rspec (3.9.0)
|
|
116
|
+
lint_roller (~> 1.1)
|
|
117
|
+
rubocop (~> 1.81)
|
|
118
|
+
rubocop-rspec_rails (2.32.0)
|
|
107
119
|
lint_roller (~> 1.1)
|
|
108
120
|
rubocop (~> 1.72, >= 1.72.1)
|
|
109
|
-
|
|
110
|
-
rubocop (~> 1.61)
|
|
111
|
-
rubocop-rspec (~> 3, >= 3.0.1)
|
|
121
|
+
rubocop-rspec (~> 3.5)
|
|
112
122
|
ruby-progressbar (1.13.0)
|
|
113
123
|
securerandom (0.4.1)
|
|
114
|
-
stringio (3.
|
|
124
|
+
stringio (3.2.0)
|
|
115
125
|
tzinfo (2.0.6)
|
|
116
126
|
concurrent-ruby (~> 1.0)
|
|
117
|
-
unicode-display_width (3.
|
|
118
|
-
unicode-emoji (~> 4.
|
|
119
|
-
unicode-emoji (4.0
|
|
120
|
-
uri (1.
|
|
127
|
+
unicode-display_width (3.2.0)
|
|
128
|
+
unicode-emoji (~> 4.1)
|
|
129
|
+
unicode-emoji (4.2.0)
|
|
130
|
+
uri (1.1.1)
|
|
121
131
|
|
|
122
132
|
PLATFORMS
|
|
123
133
|
arm64-darwin-24
|
|
134
|
+
arm64-darwin-25
|
|
124
135
|
|
|
125
136
|
DEPENDENCIES
|
|
126
137
|
pry
|
|
@@ -130,4 +141,4 @@ DEPENDENCIES
|
|
|
130
141
|
yoshiki!
|
|
131
142
|
|
|
132
143
|
BUNDLED WITH
|
|
133
|
-
|
|
144
|
+
4.0.9
|
data/README.md
CHANGED
|
@@ -45,6 +45,7 @@ inherit_gem:
|
|
|
45
45
|
|
|
46
46
|
## Ruby compatibility
|
|
47
47
|
|
|
48
|
+
- ruby 4.0+, use [~> 10.1][10.1]
|
|
48
49
|
- ruby 3.4+, use [~> 10.0][10.0]
|
|
49
50
|
- ruby 3.0+, use [~> 9.0][9.0]
|
|
50
51
|
- ruby 2.7, use [~> 8.0][8.0]
|
|
@@ -60,7 +61,8 @@ inherit_gem:
|
|
|
60
61
|
[7.0]: https://gitlab.com/devfu/yoshiki/tags/v7.0.0
|
|
61
62
|
[8.0]: https://gitlab.com/devfu/yoshiki/tags/v8.0.0
|
|
62
63
|
[9.0]: https://gitlab.com/devfu/yoshiki/tags/v9.0.0
|
|
63
|
-
[
|
|
64
|
+
[10.0]: https://gitlab.com/devfu/yoshiki/tags/v10.0.0
|
|
65
|
+
[10.1]: https://gitlab.com/devfu/yoshiki/tags/v10.1.0
|
|
64
66
|
|
|
65
67
|
<!-- images -->
|
|
66
68
|
[ci-image]: https://gitlab.com/devfu/yoshiki/badges/master/pipeline.svg
|
data/lib/yoshiki/version.rb
CHANGED
data/yoshiki.gemspec
CHANGED
|
@@ -20,12 +20,12 @@ Gem::Specification.new do |spec|
|
|
|
20
20
|
|
|
21
21
|
spec.required_ruby_version = '>= 3.4.0'
|
|
22
22
|
|
|
23
|
-
spec.add_dependency 'rubocop', '1.
|
|
24
|
-
spec.add_dependency 'rubocop-capybara', '2.
|
|
25
|
-
spec.add_dependency 'rubocop-factory_bot', '2.
|
|
26
|
-
spec.add_dependency 'rubocop-performance', '1.
|
|
27
|
-
spec.add_dependency 'rubocop-rails', '2.
|
|
23
|
+
spec.add_dependency 'rubocop', '1.86.0'
|
|
24
|
+
spec.add_dependency 'rubocop-capybara', '2.22.1'
|
|
25
|
+
spec.add_dependency 'rubocop-factory_bot', '2.28.0'
|
|
26
|
+
spec.add_dependency 'rubocop-performance', '1.26.1'
|
|
27
|
+
spec.add_dependency 'rubocop-rails', '2.34.3'
|
|
28
28
|
spec.add_dependency 'rubocop-rake', '0.7.1'
|
|
29
|
-
spec.add_dependency 'rubocop-rspec', '3.
|
|
30
|
-
spec.add_dependency 'rubocop-rspec_rails', '2.
|
|
29
|
+
spec.add_dependency 'rubocop-rspec', '3.9.0'
|
|
30
|
+
spec.add_dependency 'rubocop-rspec_rails', '2.32.0'
|
|
31
31
|
end
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: yoshiki
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 10.
|
|
4
|
+
version: 10.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- BM5k
|
|
8
8
|
bindir: exe
|
|
9
9
|
cert_chain: []
|
|
10
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
12
|
- !ruby/object:Gem::Dependency
|
|
13
13
|
name: rubocop
|
|
@@ -15,70 +15,70 @@ dependencies:
|
|
|
15
15
|
requirements:
|
|
16
16
|
- - '='
|
|
17
17
|
- !ruby/object:Gem::Version
|
|
18
|
-
version: 1.
|
|
18
|
+
version: 1.86.0
|
|
19
19
|
type: :runtime
|
|
20
20
|
prerelease: false
|
|
21
21
|
version_requirements: !ruby/object:Gem::Requirement
|
|
22
22
|
requirements:
|
|
23
23
|
- - '='
|
|
24
24
|
- !ruby/object:Gem::Version
|
|
25
|
-
version: 1.
|
|
25
|
+
version: 1.86.0
|
|
26
26
|
- !ruby/object:Gem::Dependency
|
|
27
27
|
name: rubocop-capybara
|
|
28
28
|
requirement: !ruby/object:Gem::Requirement
|
|
29
29
|
requirements:
|
|
30
30
|
- - '='
|
|
31
31
|
- !ruby/object:Gem::Version
|
|
32
|
-
version: 2.
|
|
32
|
+
version: 2.22.1
|
|
33
33
|
type: :runtime
|
|
34
34
|
prerelease: false
|
|
35
35
|
version_requirements: !ruby/object:Gem::Requirement
|
|
36
36
|
requirements:
|
|
37
37
|
- - '='
|
|
38
38
|
- !ruby/object:Gem::Version
|
|
39
|
-
version: 2.
|
|
39
|
+
version: 2.22.1
|
|
40
40
|
- !ruby/object:Gem::Dependency
|
|
41
41
|
name: rubocop-factory_bot
|
|
42
42
|
requirement: !ruby/object:Gem::Requirement
|
|
43
43
|
requirements:
|
|
44
44
|
- - '='
|
|
45
45
|
- !ruby/object:Gem::Version
|
|
46
|
-
version: 2.
|
|
46
|
+
version: 2.28.0
|
|
47
47
|
type: :runtime
|
|
48
48
|
prerelease: false
|
|
49
49
|
version_requirements: !ruby/object:Gem::Requirement
|
|
50
50
|
requirements:
|
|
51
51
|
- - '='
|
|
52
52
|
- !ruby/object:Gem::Version
|
|
53
|
-
version: 2.
|
|
53
|
+
version: 2.28.0
|
|
54
54
|
- !ruby/object:Gem::Dependency
|
|
55
55
|
name: rubocop-performance
|
|
56
56
|
requirement: !ruby/object:Gem::Requirement
|
|
57
57
|
requirements:
|
|
58
58
|
- - '='
|
|
59
59
|
- !ruby/object:Gem::Version
|
|
60
|
-
version: 1.
|
|
60
|
+
version: 1.26.1
|
|
61
61
|
type: :runtime
|
|
62
62
|
prerelease: false
|
|
63
63
|
version_requirements: !ruby/object:Gem::Requirement
|
|
64
64
|
requirements:
|
|
65
65
|
- - '='
|
|
66
66
|
- !ruby/object:Gem::Version
|
|
67
|
-
version: 1.
|
|
67
|
+
version: 1.26.1
|
|
68
68
|
- !ruby/object:Gem::Dependency
|
|
69
69
|
name: rubocop-rails
|
|
70
70
|
requirement: !ruby/object:Gem::Requirement
|
|
71
71
|
requirements:
|
|
72
72
|
- - '='
|
|
73
73
|
- !ruby/object:Gem::Version
|
|
74
|
-
version: 2.
|
|
74
|
+
version: 2.34.3
|
|
75
75
|
type: :runtime
|
|
76
76
|
prerelease: false
|
|
77
77
|
version_requirements: !ruby/object:Gem::Requirement
|
|
78
78
|
requirements:
|
|
79
79
|
- - '='
|
|
80
80
|
- !ruby/object:Gem::Version
|
|
81
|
-
version: 2.
|
|
81
|
+
version: 2.34.3
|
|
82
82
|
- !ruby/object:Gem::Dependency
|
|
83
83
|
name: rubocop-rake
|
|
84
84
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -99,28 +99,28 @@ dependencies:
|
|
|
99
99
|
requirements:
|
|
100
100
|
- - '='
|
|
101
101
|
- !ruby/object:Gem::Version
|
|
102
|
-
version: 3.
|
|
102
|
+
version: 3.9.0
|
|
103
103
|
type: :runtime
|
|
104
104
|
prerelease: false
|
|
105
105
|
version_requirements: !ruby/object:Gem::Requirement
|
|
106
106
|
requirements:
|
|
107
107
|
- - '='
|
|
108
108
|
- !ruby/object:Gem::Version
|
|
109
|
-
version: 3.
|
|
109
|
+
version: 3.9.0
|
|
110
110
|
- !ruby/object:Gem::Dependency
|
|
111
111
|
name: rubocop-rspec_rails
|
|
112
112
|
requirement: !ruby/object:Gem::Requirement
|
|
113
113
|
requirements:
|
|
114
114
|
- - '='
|
|
115
115
|
- !ruby/object:Gem::Version
|
|
116
|
-
version: 2.
|
|
116
|
+
version: 2.32.0
|
|
117
117
|
type: :runtime
|
|
118
118
|
prerelease: false
|
|
119
119
|
version_requirements: !ruby/object:Gem::Requirement
|
|
120
120
|
requirements:
|
|
121
121
|
- - '='
|
|
122
122
|
- !ruby/object:Gem::Version
|
|
123
|
-
version: 2.
|
|
123
|
+
version: 2.32.0
|
|
124
124
|
description: Dev Fu! Style for rubocop.
|
|
125
125
|
email:
|
|
126
126
|
- me@bm5k.com
|
|
@@ -170,7 +170,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
170
170
|
- !ruby/object:Gem::Version
|
|
171
171
|
version: '0'
|
|
172
172
|
requirements: []
|
|
173
|
-
rubygems_version:
|
|
173
|
+
rubygems_version: 4.0.9
|
|
174
174
|
specification_version: 4
|
|
175
175
|
summary: Dev Fu! Style
|
|
176
176
|
test_files: []
|