yoshiki 10.1.0 → 11.0.0.pre.3
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/.rubocop-defaults-rails.yml +8 -8
- data/.rubocop-defaults-rspec.yml +4 -0
- data/.rubocop-defaults.yml +33 -1
- data/.rubocop.yml +1 -1
- data/.yoshiki-rails.yml +0 -2
- data/.yoshiki-rspec.yml +1 -1
- data/.yoshiki-ruby.yml +2 -2
- data/Gemfile +7 -0
- data/Gemfile.lock +36 -33
- data/README.md +30 -9
- data/lib/yoshiki/examples.rb +2 -2
- data/lib/yoshiki/version.rb +1 -1
- data/yoshiki.gemspec +1 -6
- metadata +5 -75
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d01732ca4c3c488735cbae8a348bb21d8140d64ee7dca01e347495c1b9c6cae6
|
|
4
|
+
data.tar.gz: 261f93c2055618d6ed55568e398a441ee1945e626798ffbf3d0dac2e6700aed0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ec414e0754df7e78589a92f28e6a6876a4efaa3edc92ad214cbaa7043f9066b49d54da9a41b831088ba4bd6b5a5690ed4fce6b732a19a517f93afaa5100c6a75
|
|
7
|
+
data.tar.gz: cb0f5dc7a6b8da813024339296f2e8db6be87c5bf826468e4a660fc28209108154eaba877ef1f88fd1d1a940c1cbd8da645b5c757e3e92e7d034ea76ca63326d
|
data/.rubocop-defaults-rails.yml
CHANGED
|
@@ -16,23 +16,23 @@ Rails:
|
|
|
16
16
|
|
|
17
17
|
Capybara/FindAllFirst: # new in 2.22
|
|
18
18
|
Enabled: true
|
|
19
|
-
Capybara/MatchStyle: # new in 2.17
|
|
20
|
-
Enabled: true
|
|
21
|
-
Capybara/NegationMatcher: # new in 2.14
|
|
22
|
-
Enabled: true
|
|
23
|
-
Capybara/NegationMatcherAfterVisit: # new in 2.22
|
|
24
|
-
Enabled: true
|
|
25
19
|
Capybara/RedundantWithinFind: # new in 2.20
|
|
26
20
|
Enabled: true
|
|
27
21
|
Capybara/SpecificActions: # new in 2.14
|
|
28
22
|
Enabled: true
|
|
29
|
-
Capybara/SpecificMatcher: # new in 2.12
|
|
30
|
-
Enabled: true
|
|
31
23
|
|
|
32
24
|
# https://docs.rubocop.org/rubocop-capybara/cops_capybara_rspec.html
|
|
33
25
|
|
|
34
26
|
Capybara/RSpec/HaveSelector: # new in 2.19
|
|
35
27
|
Enabled: true
|
|
28
|
+
Capybara/RSpec/MatchStyle: # new in 2.17
|
|
29
|
+
Enabled: true
|
|
30
|
+
Capybara/RSpec/NegationMatcher: # new in 2.14
|
|
31
|
+
Enabled: true
|
|
32
|
+
Capybara/RSpec/NegationMatcherAfterVisit: # new in 2.22
|
|
33
|
+
Enabled: true
|
|
34
|
+
Capybara/RSpec/SpecificMatcher: # new in 2.12
|
|
35
|
+
Enabled: true
|
|
36
36
|
|
|
37
37
|
# https://docs.rubocop.org/rubocop-factory_bot/cops_factory_bot.html
|
|
38
38
|
|
data/.rubocop-defaults-rspec.yml
CHANGED
|
@@ -15,6 +15,8 @@ RSpec/ClassCheck: # new in 2.13
|
|
|
15
15
|
Enabled: true
|
|
16
16
|
RSpec/ContainExactly: # new in 2.19
|
|
17
17
|
Enabled: true
|
|
18
|
+
RSpec/DiscardedMatcher: # new in 3.10
|
|
19
|
+
Enabled: true
|
|
18
20
|
RSpec/DuplicatedMetadata: # new in 2.16
|
|
19
21
|
Enabled: true
|
|
20
22
|
RSpec/EmptyMetadata: # new in 2.24
|
|
@@ -33,6 +35,8 @@ RSpec/LeakyLocalVariable: # new in 3.8
|
|
|
33
35
|
Enabled: true
|
|
34
36
|
RSpec/MatchArray: # new in 2.19
|
|
35
37
|
Enabled: true
|
|
38
|
+
RSpec/MatchWithSimpleRegex: # new in 3.10
|
|
39
|
+
Enabled: true
|
|
36
40
|
RSpec/MetadataStyle: # new in 2.24
|
|
37
41
|
Enabled: true
|
|
38
42
|
RSpec/ReceiveMessages: # new in 2.23
|
data/.rubocop-defaults.yml
CHANGED
|
@@ -46,6 +46,8 @@ Lint/ConstantReassignment: # new in 1.70
|
|
|
46
46
|
Enabled: true
|
|
47
47
|
Lint/CopDirectiveSyntax: # new in 1.72
|
|
48
48
|
Enabled: true
|
|
49
|
+
Lint/DataDefineOverride: # new in 1.85
|
|
50
|
+
Enabled: true
|
|
49
51
|
Lint/DeprecatedConstants: # new in 1.8
|
|
50
52
|
Enabled: true
|
|
51
53
|
Lint/DuplicateBranch: # new in 1.3
|
|
@@ -114,6 +116,8 @@ Lint/UnexpectedBlockArity: # new in 1.5
|
|
|
114
116
|
Enabled: true
|
|
115
117
|
Lint/UnmodifiedReduceAccumulator: # new in 1.1
|
|
116
118
|
Enabled: true
|
|
119
|
+
Lint/UnreachablePatternBranch: # new in 1.85
|
|
120
|
+
Enabled: true
|
|
117
121
|
Lint/UselessConstantScoping: # new in 1.72
|
|
118
122
|
Enabled: true
|
|
119
123
|
Lint/UselessDefined: # new in 1.69
|
|
@@ -221,6 +225,8 @@ Style/DirEmpty: # new in 1.48
|
|
|
221
225
|
Enabled: true
|
|
222
226
|
Style/DocumentDynamicEvalDefinition: # new in 1.1
|
|
223
227
|
Enabled: true
|
|
228
|
+
Style/EmptyClassDefinition: # new in 1.84
|
|
229
|
+
Enabled: true
|
|
224
230
|
Style/EmptyHeredoc: # new in 1.32
|
|
225
231
|
Enabled: true
|
|
226
232
|
Style/EmptyStringInsideInterpolation: # new in 1.76
|
|
@@ -235,6 +241,8 @@ Style/FileEmpty: # new in 1.48
|
|
|
235
241
|
Enabled: true
|
|
236
242
|
Style/FileNull: # new in 1.69
|
|
237
243
|
Enabled: true
|
|
244
|
+
Style/FileOpen: # new in 1.85
|
|
245
|
+
Enabled: true
|
|
238
246
|
Style/FileRead: # new in 1.24
|
|
239
247
|
Enabled: true
|
|
240
248
|
Style/FileTouch: # new in 1.69
|
|
@@ -249,6 +257,8 @@ Style/HashFetchChain: # new in 1.75
|
|
|
249
257
|
Enabled: true
|
|
250
258
|
Style/HashSlice: # new in 1.71
|
|
251
259
|
Enabled: true
|
|
260
|
+
Style/HashSyntax: # updated in 1.67
|
|
261
|
+
Enabled: true
|
|
252
262
|
Style/IfWithBooleanLiteralBranches: # new in 1.9
|
|
253
263
|
Enabled: true
|
|
254
264
|
Style/InPatternThen: # new in 1.16
|
|
@@ -265,6 +275,8 @@ Style/MapCompactWithConditionalBlock: # new in 1.30
|
|
|
265
275
|
Enabled: true
|
|
266
276
|
Style/MapIntoArray: # new in 1.63
|
|
267
277
|
Enabled: true
|
|
278
|
+
Style/MapJoin: # new in 1.85
|
|
279
|
+
Enabled: true
|
|
268
280
|
Style/MapToHash: # new in 1.24
|
|
269
281
|
Enabled: true
|
|
270
282
|
Style/MapToSet: # new in 1.42
|
|
@@ -277,18 +289,28 @@ Style/MultilineInPatternThen: # new in 1.16
|
|
|
277
289
|
Enabled: true
|
|
278
290
|
Style/NegatedIfElseCondition: # new in 1.2
|
|
279
291
|
Enabled: true
|
|
292
|
+
Style/NegativeArrayIndex: # new in 1.84
|
|
293
|
+
Enabled: true
|
|
280
294
|
Style/NestedFileDirname: # new in 1.26
|
|
281
295
|
Enabled: true
|
|
282
296
|
Style/NilLambda: # new in 1.3
|
|
283
297
|
Enabled: true
|
|
284
298
|
Style/ObjectThen: # new in 1.28
|
|
285
299
|
Enabled: true
|
|
300
|
+
Style/OneClassPerFile: # new in 1.85
|
|
301
|
+
Enabled: true
|
|
286
302
|
Style/OpenStructUse: # new in 1.23
|
|
287
303
|
Enabled: true
|
|
288
304
|
Style/OperatorMethodCall: # new in 1.37
|
|
289
305
|
Enabled: true
|
|
306
|
+
Style/PartitionInsteadOfDoubleSelect: # new in 1.85
|
|
307
|
+
Enabled: true
|
|
308
|
+
Style/PredicateWithKind: # new in 1.85
|
|
309
|
+
Enabled: true
|
|
290
310
|
Style/QuotedSymbols: # new in 1.16
|
|
291
311
|
Enabled: true
|
|
312
|
+
Style/ReduceToHash: # new in 1.85
|
|
313
|
+
Enabled: true
|
|
292
314
|
Style/RedundantArgument: # new in 1.4
|
|
293
315
|
Enabled: true
|
|
294
316
|
Style/RedundantArrayConstructor: # new in 1.52
|
|
@@ -315,7 +337,7 @@ Style/RedundantInterpolationUnfreeze: # new in 1.66
|
|
|
315
337
|
Enabled: true
|
|
316
338
|
Style/RedundantLineContinuation: # new in 1.49
|
|
317
339
|
Enabled: true
|
|
318
|
-
Style/
|
|
340
|
+
Style/RedundantMinMaxBy: # new in 1.85
|
|
319
341
|
Enabled: true
|
|
320
342
|
Style/RedundantRegexpArgument: # new in 1.53
|
|
321
343
|
Enabled: true
|
|
@@ -325,8 +347,16 @@ Style/RedundantSelfAssignmentBranch: # new in 1.19
|
|
|
325
347
|
Enabled: true
|
|
326
348
|
Style/RedundantStringEscape: # new in 1.37
|
|
327
349
|
Enabled: true
|
|
350
|
+
Style/ReturnNilInPredicateMethodDefinition: # new in 1.53
|
|
351
|
+
Enabled: true
|
|
352
|
+
Style/ReverseFind: # new in 1.84
|
|
353
|
+
Enabled: true
|
|
328
354
|
Style/SafeNavigationChainLength: # new in 1.68
|
|
329
355
|
Enabled: true
|
|
356
|
+
Style/SelectByKind: # new in 1.85
|
|
357
|
+
Enabled: true
|
|
358
|
+
Style/SelectByRange: # new in 1.85
|
|
359
|
+
Enabled: true
|
|
330
360
|
Style/SendWithLiteralMethodName: # new in 1.64
|
|
331
361
|
Enabled: true
|
|
332
362
|
Style/SelectByRegexp: # new in 1.22
|
|
@@ -341,5 +371,7 @@ Style/SuperWithArgsParentheses: # new in 1.58
|
|
|
341
371
|
Enabled: false
|
|
342
372
|
Style/SwapValues: # new in 1.1
|
|
343
373
|
Enabled: true
|
|
374
|
+
Style/TallyMethod: # new in 1.85
|
|
375
|
+
Enabled: true
|
|
344
376
|
Style/YAMLFileRead: # new in 1.53
|
|
345
377
|
Enabled: true
|
data/.rubocop.yml
CHANGED
data/.yoshiki-rails.yml
CHANGED
data/.yoshiki-rspec.yml
CHANGED
data/.yoshiki-ruby.yml
CHANGED
|
@@ -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
CHANGED
|
@@ -7,3 +7,10 @@ gem 'pry'
|
|
|
7
7
|
gem 'psych'
|
|
8
8
|
gem 'rake'
|
|
9
9
|
gem 'rspec'
|
|
10
|
+
|
|
11
|
+
# For developing optional configs (not runtime deps of the gem)
|
|
12
|
+
gem 'rubocop-capybara', '3.0.0'
|
|
13
|
+
gem 'rubocop-factory_bot', '2.28.0'
|
|
14
|
+
gem 'rubocop-rails', '2.36.0'
|
|
15
|
+
gem 'rubocop-rspec', '3.10.2'
|
|
16
|
+
gem 'rubocop-rspec_rails', '2.32.0'
|
data/Gemfile.lock
CHANGED
|
@@ -1,20 +1,15 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
yoshiki (
|
|
5
|
-
rubocop (= 1.
|
|
6
|
-
rubocop-capybara (= 2.22.1)
|
|
7
|
-
rubocop-factory_bot (= 2.28.0)
|
|
4
|
+
yoshiki (11.0.0.pre.3)
|
|
5
|
+
rubocop (= 1.88.2)
|
|
8
6
|
rubocop-performance (= 1.26.1)
|
|
9
|
-
rubocop-rails (= 2.34.3)
|
|
10
7
|
rubocop-rake (= 0.7.1)
|
|
11
|
-
rubocop-rspec (= 3.9.0)
|
|
12
|
-
rubocop-rspec_rails (= 2.32.0)
|
|
13
8
|
|
|
14
9
|
GEM
|
|
15
10
|
remote: https://rubygems.org/
|
|
16
11
|
specs:
|
|
17
|
-
activesupport (8.1.
|
|
12
|
+
activesupport (8.1.3)
|
|
18
13
|
base64
|
|
19
14
|
bigdecimal
|
|
20
15
|
concurrent-ruby (~> 1.0, >= 1.3.1)
|
|
@@ -29,40 +24,41 @@ GEM
|
|
|
29
24
|
uri (>= 0.13.1)
|
|
30
25
|
ast (2.4.3)
|
|
31
26
|
base64 (0.3.0)
|
|
32
|
-
bigdecimal (4.
|
|
27
|
+
bigdecimal (4.1.2)
|
|
33
28
|
coderay (1.1.3)
|
|
34
|
-
concurrent-ruby (1.3.
|
|
29
|
+
concurrent-ruby (1.3.7)
|
|
35
30
|
connection_pool (3.0.2)
|
|
36
31
|
date (3.5.1)
|
|
37
32
|
diff-lcs (1.6.2)
|
|
38
33
|
drb (2.2.3)
|
|
39
|
-
i18n (1.
|
|
34
|
+
i18n (1.15.2)
|
|
40
35
|
concurrent-ruby (~> 1.0)
|
|
41
36
|
io-console (0.8.2)
|
|
42
|
-
json (2.
|
|
43
|
-
language_server-protocol (3.17.0.
|
|
37
|
+
json (2.21.0)
|
|
38
|
+
language_server-protocol (3.17.0.6)
|
|
44
39
|
lint_roller (1.1.0)
|
|
45
40
|
logger (1.7.0)
|
|
46
41
|
method_source (1.1.0)
|
|
47
|
-
minitest (6.0.
|
|
42
|
+
minitest (6.0.6)
|
|
43
|
+
drb (~> 2.0)
|
|
48
44
|
prism (~> 1.5)
|
|
49
|
-
parallel (1.
|
|
50
|
-
parser (3.3.
|
|
45
|
+
parallel (2.1.0)
|
|
46
|
+
parser (3.3.11.1)
|
|
51
47
|
ast (~> 2.4.1)
|
|
52
48
|
racc
|
|
53
|
-
prism (1.
|
|
49
|
+
prism (1.9.0)
|
|
54
50
|
pry (0.16.0)
|
|
55
51
|
coderay (~> 1.1)
|
|
56
52
|
method_source (~> 1.0)
|
|
57
53
|
reline (>= 0.6.0)
|
|
58
|
-
psych (5.
|
|
54
|
+
psych (5.4.0)
|
|
59
55
|
date
|
|
60
56
|
stringio
|
|
61
57
|
racc (1.8.1)
|
|
62
|
-
rack (3.2.
|
|
58
|
+
rack (3.2.6)
|
|
63
59
|
rainbow (3.1.1)
|
|
64
|
-
rake (13.
|
|
65
|
-
regexp_parser (2.
|
|
60
|
+
rake (13.4.2)
|
|
61
|
+
regexp_parser (2.12.0)
|
|
66
62
|
reline (0.6.3)
|
|
67
63
|
io-console (~> 0.5)
|
|
68
64
|
rspec (3.13.2)
|
|
@@ -74,27 +70,27 @@ GEM
|
|
|
74
70
|
rspec-expectations (3.13.5)
|
|
75
71
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
76
72
|
rspec-support (~> 3.13.0)
|
|
77
|
-
rspec-mocks (3.13.
|
|
73
|
+
rspec-mocks (3.13.8)
|
|
78
74
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
79
75
|
rspec-support (~> 3.13.0)
|
|
80
|
-
rspec-support (3.13.
|
|
81
|
-
rubocop (1.
|
|
76
|
+
rspec-support (3.13.7)
|
|
77
|
+
rubocop (1.88.2)
|
|
82
78
|
json (~> 2.3)
|
|
83
79
|
language_server-protocol (~> 3.17.0.2)
|
|
84
80
|
lint_roller (~> 1.1.0)
|
|
85
|
-
parallel (
|
|
81
|
+
parallel (>= 1.10)
|
|
86
82
|
parser (>= 3.3.0.2)
|
|
87
83
|
rainbow (>= 2.2.2, < 4.0)
|
|
88
84
|
regexp_parser (>= 2.9.3, < 3.0)
|
|
89
|
-
rubocop-ast (>= 1.
|
|
85
|
+
rubocop-ast (>= 1.49.0, < 2.0)
|
|
90
86
|
ruby-progressbar (~> 1.7)
|
|
91
87
|
unicode-display_width (>= 2.4.0, < 4.0)
|
|
92
|
-
rubocop-ast (1.
|
|
88
|
+
rubocop-ast (1.50.0)
|
|
93
89
|
parser (>= 3.3.7.2)
|
|
94
90
|
prism (~> 1.7)
|
|
95
|
-
rubocop-capybara (
|
|
91
|
+
rubocop-capybara (3.0.0)
|
|
96
92
|
lint_roller (~> 1.1)
|
|
97
|
-
rubocop (~> 1.
|
|
93
|
+
rubocop (~> 1.81)
|
|
98
94
|
rubocop-factory_bot (2.28.0)
|
|
99
95
|
lint_roller (~> 1.1)
|
|
100
96
|
rubocop (~> 1.72, >= 1.72.1)
|
|
@@ -102,7 +98,7 @@ GEM
|
|
|
102
98
|
lint_roller (~> 1.1)
|
|
103
99
|
rubocop (>= 1.75.0, < 2.0)
|
|
104
100
|
rubocop-ast (>= 1.47.1, < 2.0)
|
|
105
|
-
rubocop-rails (2.
|
|
101
|
+
rubocop-rails (2.36.0)
|
|
106
102
|
activesupport (>= 4.2.0)
|
|
107
103
|
lint_roller (~> 1.1)
|
|
108
104
|
rack (>= 1.1)
|
|
@@ -111,9 +107,10 @@ GEM
|
|
|
111
107
|
rubocop-rake (0.7.1)
|
|
112
108
|
lint_roller (~> 1.1)
|
|
113
109
|
rubocop (>= 1.72.1)
|
|
114
|
-
rubocop-rspec (3.
|
|
110
|
+
rubocop-rspec (3.10.2)
|
|
115
111
|
lint_roller (~> 1.1)
|
|
116
|
-
|
|
112
|
+
regexp_parser (>= 2.0)
|
|
113
|
+
rubocop (~> 1.86, >= 1.86.2)
|
|
117
114
|
rubocop-rspec_rails (2.32.0)
|
|
118
115
|
lint_roller (~> 1.1)
|
|
119
116
|
rubocop (~> 1.72, >= 1.72.1)
|
|
@@ -130,13 +127,19 @@ GEM
|
|
|
130
127
|
|
|
131
128
|
PLATFORMS
|
|
132
129
|
arm64-darwin-24
|
|
130
|
+
arm64-darwin-25
|
|
133
131
|
|
|
134
132
|
DEPENDENCIES
|
|
135
133
|
pry
|
|
136
134
|
psych
|
|
137
135
|
rake
|
|
138
136
|
rspec
|
|
137
|
+
rubocop-capybara (= 3.0.0)
|
|
138
|
+
rubocop-factory_bot (= 2.28.0)
|
|
139
|
+
rubocop-rails (= 2.36.0)
|
|
140
|
+
rubocop-rspec (= 3.10.2)
|
|
141
|
+
rubocop-rspec_rails (= 2.32.0)
|
|
139
142
|
yoshiki!
|
|
140
143
|
|
|
141
144
|
BUNDLED WITH
|
|
142
|
-
|
|
145
|
+
4.0.9
|
data/README.md
CHANGED
|
@@ -17,32 +17,53 @@ Make it so.
|
|
|
17
17
|
|
|
18
18
|
## Usage
|
|
19
19
|
|
|
20
|
-
In your
|
|
21
|
-
|
|
22
|
-
`gem 'yoshiki'`
|
|
20
|
+
In your Gemfile:
|
|
23
21
|
|
|
22
|
+
```ruby
|
|
23
|
+
gem 'yoshiki'
|
|
24
|
+
```
|
|
24
25
|
|
|
25
|
-
|
|
26
|
+
Just ruby (the only config that needs no extra plugins):
|
|
26
27
|
|
|
27
|
-
```
|
|
28
|
+
```yaml
|
|
28
29
|
inherit_gem:
|
|
29
|
-
yoshiki: .yoshiki.yml
|
|
30
|
+
yoshiki: .yoshiki-ruby.yml
|
|
30
31
|
```
|
|
31
32
|
|
|
32
|
-
|
|
33
|
+
Rspec — add the plugin, then inherit:
|
|
33
34
|
|
|
35
|
+
```ruby
|
|
36
|
+
gem 'rubocop-rspec'
|
|
34
37
|
```
|
|
38
|
+
|
|
39
|
+
```yaml
|
|
35
40
|
inherit_gem:
|
|
36
|
-
yoshiki:
|
|
41
|
+
yoshiki:
|
|
42
|
+
- .yoshiki-ruby.yml
|
|
43
|
+
- .yoshiki-rspec.yml
|
|
37
44
|
```
|
|
38
45
|
|
|
39
|
-
|
|
46
|
+
Rails — add the Rails RuboCop plugins, then inherit:
|
|
40
47
|
|
|
48
|
+
```ruby
|
|
49
|
+
gem 'rubocop-rails'
|
|
50
|
+
gem 'rubocop-capybara'
|
|
51
|
+
gem 'rubocop-factory_bot'
|
|
52
|
+
gem 'rubocop-rspec_rails'
|
|
41
53
|
```
|
|
54
|
+
|
|
55
|
+
```yaml
|
|
42
56
|
inherit_gem:
|
|
43
57
|
yoshiki: .yoshiki-rails.yml
|
|
44
58
|
```
|
|
45
59
|
|
|
60
|
+
Full stack (ruby + rails + rspec) — declare all of the plugins above, then:
|
|
61
|
+
|
|
62
|
+
```yaml
|
|
63
|
+
inherit_gem:
|
|
64
|
+
yoshiki: .yoshiki.yml
|
|
65
|
+
```
|
|
66
|
+
|
|
46
67
|
## Ruby compatibility
|
|
47
68
|
|
|
48
69
|
- ruby 4.0+, use [~> 10.1][10.1]
|
data/lib/yoshiki/examples.rb
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
# Code here should not cause rubocop to nag
|
|
2
2
|
class Examples
|
|
3
3
|
|
|
4
|
-
# rubocop:disable
|
|
4
|
+
# rubocop:disable Style/AccessModifierDeclarations
|
|
5
5
|
private def example_for_layout_def_end_alignment
|
|
6
6
|
# this method is *not* empty
|
|
7
7
|
end
|
|
8
|
-
# rubocop:enable
|
|
8
|
+
# rubocop:enable Style/AccessModifierDeclarations
|
|
9
9
|
|
|
10
10
|
def example_for_layout_else_alignment
|
|
11
11
|
if example_for_layout_def_end_alignment
|
data/lib/yoshiki/version.rb
CHANGED
data/yoshiki.gemspec
CHANGED
|
@@ -20,12 +20,7 @@ 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.22.1'
|
|
25
|
-
spec.add_dependency 'rubocop-factory_bot', '2.28.0'
|
|
23
|
+
spec.add_dependency 'rubocop', '1.88.2'
|
|
26
24
|
spec.add_dependency 'rubocop-performance', '1.26.1'
|
|
27
|
-
spec.add_dependency 'rubocop-rails', '2.34.3'
|
|
28
25
|
spec.add_dependency 'rubocop-rake', '0.7.1'
|
|
29
|
-
spec.add_dependency 'rubocop-rspec', '3.9.0'
|
|
30
|
-
spec.add_dependency 'rubocop-rspec_rails', '2.32.0'
|
|
31
26
|
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:
|
|
4
|
+
version: 11.0.0.pre.3
|
|
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,42 +15,14 @@ dependencies:
|
|
|
15
15
|
requirements:
|
|
16
16
|
- - '='
|
|
17
17
|
- !ruby/object:Gem::Version
|
|
18
|
-
version: 1.
|
|
18
|
+
version: 1.88.2
|
|
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.
|
|
26
|
-
- !ruby/object:Gem::Dependency
|
|
27
|
-
name: rubocop-capybara
|
|
28
|
-
requirement: !ruby/object:Gem::Requirement
|
|
29
|
-
requirements:
|
|
30
|
-
- - '='
|
|
31
|
-
- !ruby/object:Gem::Version
|
|
32
|
-
version: 2.22.1
|
|
33
|
-
type: :runtime
|
|
34
|
-
prerelease: false
|
|
35
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
36
|
-
requirements:
|
|
37
|
-
- - '='
|
|
38
|
-
- !ruby/object:Gem::Version
|
|
39
|
-
version: 2.22.1
|
|
40
|
-
- !ruby/object:Gem::Dependency
|
|
41
|
-
name: rubocop-factory_bot
|
|
42
|
-
requirement: !ruby/object:Gem::Requirement
|
|
43
|
-
requirements:
|
|
44
|
-
- - '='
|
|
45
|
-
- !ruby/object:Gem::Version
|
|
46
|
-
version: 2.28.0
|
|
47
|
-
type: :runtime
|
|
48
|
-
prerelease: false
|
|
49
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
50
|
-
requirements:
|
|
51
|
-
- - '='
|
|
52
|
-
- !ruby/object:Gem::Version
|
|
53
|
-
version: 2.28.0
|
|
25
|
+
version: 1.88.2
|
|
54
26
|
- !ruby/object:Gem::Dependency
|
|
55
27
|
name: rubocop-performance
|
|
56
28
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -65,20 +37,6 @@ dependencies:
|
|
|
65
37
|
- - '='
|
|
66
38
|
- !ruby/object:Gem::Version
|
|
67
39
|
version: 1.26.1
|
|
68
|
-
- !ruby/object:Gem::Dependency
|
|
69
|
-
name: rubocop-rails
|
|
70
|
-
requirement: !ruby/object:Gem::Requirement
|
|
71
|
-
requirements:
|
|
72
|
-
- - '='
|
|
73
|
-
- !ruby/object:Gem::Version
|
|
74
|
-
version: 2.34.3
|
|
75
|
-
type: :runtime
|
|
76
|
-
prerelease: false
|
|
77
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
78
|
-
requirements:
|
|
79
|
-
- - '='
|
|
80
|
-
- !ruby/object:Gem::Version
|
|
81
|
-
version: 2.34.3
|
|
82
40
|
- !ruby/object:Gem::Dependency
|
|
83
41
|
name: rubocop-rake
|
|
84
42
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -93,34 +51,6 @@ dependencies:
|
|
|
93
51
|
- - '='
|
|
94
52
|
- !ruby/object:Gem::Version
|
|
95
53
|
version: 0.7.1
|
|
96
|
-
- !ruby/object:Gem::Dependency
|
|
97
|
-
name: rubocop-rspec
|
|
98
|
-
requirement: !ruby/object:Gem::Requirement
|
|
99
|
-
requirements:
|
|
100
|
-
- - '='
|
|
101
|
-
- !ruby/object:Gem::Version
|
|
102
|
-
version: 3.9.0
|
|
103
|
-
type: :runtime
|
|
104
|
-
prerelease: false
|
|
105
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
106
|
-
requirements:
|
|
107
|
-
- - '='
|
|
108
|
-
- !ruby/object:Gem::Version
|
|
109
|
-
version: 3.9.0
|
|
110
|
-
- !ruby/object:Gem::Dependency
|
|
111
|
-
name: rubocop-rspec_rails
|
|
112
|
-
requirement: !ruby/object:Gem::Requirement
|
|
113
|
-
requirements:
|
|
114
|
-
- - '='
|
|
115
|
-
- !ruby/object:Gem::Version
|
|
116
|
-
version: 2.32.0
|
|
117
|
-
type: :runtime
|
|
118
|
-
prerelease: false
|
|
119
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
120
|
-
requirements:
|
|
121
|
-
- - '='
|
|
122
|
-
- !ruby/object:Gem::Version
|
|
123
|
-
version: 2.32.0
|
|
124
54
|
description: Dev Fu! Style for rubocop.
|
|
125
55
|
email:
|
|
126
56
|
- me@bm5k.com
|
|
@@ -170,7 +100,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
170
100
|
- !ruby/object:Gem::Version
|
|
171
101
|
version: '0'
|
|
172
102
|
requirements: []
|
|
173
|
-
rubygems_version:
|
|
103
|
+
rubygems_version: 4.0.9
|
|
174
104
|
specification_version: 4
|
|
175
105
|
summary: Dev Fu! Style
|
|
176
106
|
test_files: []
|