yoshiki 7.0.0.pre.alpha.2 → 7.0.0.pre.alpha.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bcc4f99d426e483ccc8eea2e73da37e6d9110fcbc2b1959a65e1f8432ac9f4b0
4
- data.tar.gz: 61430030ac33db134ea76d9195fec2571152cce34b06270cd150488f0775356a
3
+ metadata.gz: b454c305c11a6594afe888bfe93137e00e66c672ab71ba6386ed786e9f80b002
4
+ data.tar.gz: f7fd5e30acb4009e0a7cea1d9071888629dadec8c670649ffd99f305c8f78052
5
5
  SHA512:
6
- metadata.gz: 12a39ff5458e447c897d4051d59b4bf0c8f7080c4a0ad933b5c4577fc2c85d8de4cafba001a84f6e54b84437e8e20d17225957a42de4e1ad927468db20dcb259
7
- data.tar.gz: 5bf921c20d90f44f7a1a4cd631126413ee60040aafcefcaaa06869f538476c45ec89c06370c873e5df30294fae8f768e6d37ef115523877be6f69016d4951610
6
+ metadata.gz: 99cc2160cafb28ba2b74dfe4aae072b16cc17fcab8d6acb8044a2fe4ac745350a563bbc58e96db6ae083535884469366c5f141af042799506d5ace62b1013be2
7
+ data.tar.gz: beeb6f342eec9cc922bb0bdf8e86b2bb7a7ba07b097294dd53692829c31c4c714d11df6692a9993d27d939ec0eb24d924f42027de1916b8deba98212b76624d9
data/.devfu-rubocop.yml CHANGED
@@ -18,6 +18,15 @@ AllCops:
18
18
  Rails:
19
19
  Enabled: true
20
20
 
21
+ Gemspec/DateAssignment: # new in 1.10
22
+ Enabled: true
23
+
24
+ Gemspec/DeprecatedAttributeAssignment: # new in 1.30
25
+ Enabled: true
26
+
27
+ Gemspec/RequireMFA: # new in 1.23
28
+ Enabled: true
29
+
21
30
  Layout/AccessModifierIndentation:
22
31
  EnforcedStyle: outdent
23
32
 
@@ -61,6 +70,9 @@ Layout/HashAlignment:
61
70
  EnforcedHashRocketStyle: table
62
71
  EnforcedColonStyle: table
63
72
 
73
+ Layout/LineEndStringConcatenationIndentation: # new in 1.18
74
+ Enabled: true
75
+
64
76
  Layout/LineLength:
65
77
  Max: 120
66
78
  IgnoreCopDirectives: true
@@ -68,6 +80,9 @@ Layout/LineLength:
68
80
  Layout/MultilineOperationIndentation:
69
81
  EnforcedStyle: indented
70
82
 
83
+ Layout/SpaceBeforeBrackets: # new in 1.7
84
+ Enabled: true
85
+
71
86
  Layout/SpaceInsideArrayLiteralBrackets:
72
87
  EnforcedStyle: space
73
88
  EnforcedStyleForEmptyBrackets: no_space
@@ -82,21 +97,91 @@ Layout/SpaceInsideReferenceBrackets:
82
97
  Layout/SpaceInsideStringInterpolation:
83
98
  EnforcedStyle: space
84
99
 
100
+ Lint/AmbiguousAssignment: # new in 1.7
101
+ Enabled: true
102
+
85
103
  Lint/AmbiguousBlockAssociation:
86
104
  Enabled: false
87
105
 
88
106
  Lint/AmbiguousOperator:
89
107
  Enabled: false
90
108
 
109
+ Lint/AmbiguousOperatorPrecedence: # new in 1.21
110
+ Enabled: true
111
+
112
+ Lint/AmbiguousRange: # new in 1.19
113
+ Enabled: true
114
+
91
115
  Lint/AmbiguousRegexpLiteral:
92
116
  Enabled: false
93
117
 
94
118
  Lint/AssignmentInCondition:
95
119
  Enabled: false
96
120
 
121
+ Lint/DeprecatedConstants: # new in 1.8
122
+ Enabled: true
123
+
124
+ Lint/DuplicateBranch: # new in 1.3
125
+ Enabled: true
126
+
127
+ Lint/DuplicateRegexpCharacterClassElement: # new in 1.1
128
+ Enabled: true
129
+
130
+ Lint/EmptyBlock: # new in 1.1
131
+ Enabled: true
132
+
133
+ Lint/EmptyClass: # new in 1.3
134
+ Enabled: true
135
+
136
+ Lint/EmptyInPattern: # new in 1.16
137
+ Enabled: true
138
+
139
+ Lint/IncompatibleIoSelectWithFiberScheduler: # new in 1.21
140
+ Enabled: true
141
+
142
+ Lint/LambdaWithoutLiteralBlock: # new in 1.8
143
+ Enabled: true
144
+
145
+ Lint/NoReturnInBeginEndBlocks: # new in 1.2
146
+ Enabled: true
147
+
148
+ Lint/NumberedParameterAssignment: # new in 1.9
149
+ Enabled: true
150
+
151
+ Lint/OrAssignmentToConstant: # new in 1.9
152
+ Enabled: true
153
+
154
+ # Required Ruby version: 3.1
155
+ Lint/NumberedParameterAssignment: # new in 1.9
156
+ Enabled: false
157
+
158
+ Lint/RedundantDirGlobSort: # new in 1.8
159
+ Enabled: true
160
+
97
161
  Lint/RedundantSplatExpansion:
98
162
  Enabled: false
99
163
 
164
+ Lint/RequireRelativeSelfPath: # new in 1.22
165
+ Enabled: true
166
+
167
+ Lint/SymbolConversion: # new in 1.9
168
+ Enabled: true
169
+
170
+ Lint/ToEnumArguments: # new in 1.1
171
+ Enabled: true
172
+
173
+ Lint/TripleQuotes: # new in 1.9
174
+ Enabled: true
175
+
176
+ Lint/UnexpectedBlockArity: # new in 1.5
177
+ Enabled: true
178
+
179
+ Lint/UnmodifiedReduceAccumulator: # new in 1.1
180
+ Enabled: true
181
+
182
+ Lint/UselessRuby2Keywords: # new in 1.23
183
+ Enabled: true
184
+
100
185
  Lint/Void:
101
186
  Exclude:
102
187
  - spec/**/*.rb
@@ -114,6 +199,17 @@ Metrics/ParameterLists:
114
199
  Naming/AsciiIdentifiers:
115
200
  Enabled: false
116
201
 
202
+ # Required Ruby version: 3.1
203
+ Naming/BlockForwarding: # new in 1.24
204
+ Enabled: false
205
+ EnforcedStyle: explicit
206
+
207
+ Naming/InclusiveLanguage:
208
+ Enabled: false
209
+
210
+ Naming/MemoizedInstanceVariableName:
211
+ EnforcedStyleForLeadingUnderscores: disallowed
212
+
117
213
  Naming/PredicateName:
118
214
  NamePrefix:
119
215
  - is_
@@ -128,20 +224,157 @@ Naming/PredicateName:
128
224
  Naming/VariableNumber:
129
225
  EnforcedStyle: snake_case
130
226
 
227
+ Rails/ActionControllerTestCase: # new in 2.14
228
+ Enabled: true
229
+
230
+ Rails/ActiveRecordCallbacksOrder: # new in 2.7
231
+ Enabled: true
232
+
233
+ Rails/AddColumnIndex: # new in 2.11
234
+ Enabled: true
235
+
236
+ Rails/AfterCommitOverride: # new in 2.8
237
+ Enabled: true
238
+
239
+ Rails/AttributeDefaultBlockValue: # new in 2.9
240
+ Enabled: true
241
+
242
+ Rails/CompactBlank: # new in 2.13
243
+ Enabled: true
244
+
245
+ # Required rails version 6+
246
+ # Rails/DeprecatedActiveModelErrorsMethods: # new in 2.14
247
+ # Enabled: true
248
+
249
+ Rails/DuplicateAssociation: # new in 2.14
250
+ Enabled: true
251
+
252
+ Rails/DuplicateScope: # new in 2.14
253
+ Enabled: true
254
+
255
+ Rails/DurationArithmetic: # new in 2.13
256
+ Enabled: true
257
+
258
+ Rails/EagerEvaluationLogMessage: # new in 2.11
259
+ Enabled: true
260
+
261
+ Rails/ExpandedDateRange: # new in 2.11
262
+ Enabled: true
263
+
264
+ Rails/FindById: # new in 2.7
265
+ Enabled: true
266
+
267
+ Rails/I18nLazyLookup: # new in 2.14
268
+ Enabled: true
269
+
270
+ Rails/I18nLocaleAssignment: # new in 2.11
271
+ Enabled: true
272
+
273
+ Rails/I18nLocaleTexts: # new in 2.14
274
+ Enabled: true
275
+
276
+ Rails/Inquiry: # new in 2.7
277
+ Enabled: false
278
+
279
+ Rails/MailerName: # new in 2.7
280
+ Enabled: true
281
+
282
+ Rails/MatchRoute: # new in 2.7
283
+ Enabled: true
284
+
285
+ Rails/MigrationClassName: # new in 2.14
286
+ Enabled: true
287
+
288
+ Rails/NegateInclude: # new in 2.7
289
+ Enabled: true
290
+
131
291
  Rails/Output:
132
292
  Exclude:
133
293
  - 'config/unicorn.rb'
134
294
 
295
+ Rails/Pluck: # new in 2.7
296
+ Enabled: true
297
+
298
+ Rails/PluckInWhere: # new in 2.7
299
+ Enabled: true
300
+ EnforcedStyle: aggressive
301
+
135
302
  Rails/ReadWriteAttribute:
136
303
  Enabled: false
137
304
 
305
+ Rails/RedundantPresenceValidationOnBelongsTo: # new in 2.13
306
+ Enabled: true
307
+
308
+ Rails/RedundantTravelBack: # new in 2.12
309
+ Enabled: true
310
+
311
+ Rails/RenderInline: # new in 2.7
312
+ Enabled: true
313
+
314
+ Rails/RenderPlainText: # new in 2.7
315
+ Enabled: true
316
+
317
+ Rails/RootJoinChain: # new in 2.13
318
+ Enabled: true
319
+
320
+ Rails/ShortI18n: # new in 2.7
321
+ Enabled: true
322
+ EnforcedStyle: aggressive
323
+
324
+ Rails/SquishedSQLHeredocs: # new in 2.8
325
+ Enabled: true
326
+
138
327
  Rails/SkipsModelValidations:
139
328
  Enabled: false
140
329
 
330
+ Rails/TimeZoneAssignment: # new in 2.10
331
+ Enabled: true
332
+
333
+ Rails/TransactionExitStatement: # new in 2.14
334
+ Enabled: true
335
+
336
+ Rails/UnusedIgnoredColumns: # new in 2.11
337
+ Enabled: true
338
+
339
+ Rails/WhereEquals: # new in 2.9
340
+ Enabled: true
341
+
342
+ Rails/WhereExists: # new in 2.7
343
+ Enabled: true
344
+
345
+ Rails/WhereNot: # new in 2.8
346
+ Enabled: true
347
+
348
+ RSpec/BeEq: # new in 2.9.0
349
+ Enabled: true
350
+
351
+ RSpec/BeNil: # new in 2.9.0
352
+ Enabled: true
353
+ EnforcedStyle: be
354
+
355
+ RSpec/ChangeByZero: # new in 2.11.0
356
+ Enabled: true
357
+
358
+ RSpec/ContextWording:
359
+ Prefixes:
360
+ - as a
361
+ - for
362
+ - if
363
+ - unless
364
+ - when
365
+ - with
366
+ - without
367
+
141
368
  RSpec/DescribeClass:
142
369
  Exclude:
143
370
  - 'spec/features/**/*'
144
371
 
372
+ RSpec/ExcessiveDocstringSpacing: # new in 2.5
373
+ Enabled: true
374
+
375
+ RSpec/IdenticalEqualityAssertion: # new in 2.4
376
+ Enabled: true
377
+
145
378
  RSpec/ImplicitExpect:
146
379
  EnforcedStyle: should
147
380
 
@@ -160,9 +393,34 @@ RSpec/NestedGroups:
160
393
  RSpec/RepeatedExample:
161
394
  Enabled: false
162
395
 
396
+ RSpec/SubjectDeclaration: # new in 2.5
397
+ Enabled: true
398
+
399
+ RSpec/VerifiedDoubleReference: # new in 2.10.0
400
+ Enabled: true
401
+
402
+ RSpec/FactoryBot/FactoryClassName:
403
+ Enabled: false
404
+
405
+ RSpec/FactoryBot/SyntaxMethods: # new in 2.7
406
+ Enabled: true
407
+
408
+ RSpec/Rails/AvoidSetupHook: # new in 2.4
409
+ Enabled: true
410
+
411
+ Security/CompoundHash: # new in 1.28
412
+ Enabled: true
413
+
414
+ Security/IoMethods: # new in 1.22
415
+ Enabled: true
416
+
163
417
  Style/AndOr:
164
418
  Enabled: false
165
419
 
420
+ # Required Ruby version: 2.7
421
+ Style/ArgumentsForwarding: # new in 1.1
422
+ Enabled: false
423
+
166
424
  Style/AsciiComments:
167
425
  Enabled: false
168
426
 
@@ -173,6 +431,9 @@ Style/BlockDelimiters:
173
431
  Exclude:
174
432
  - spec/**/*.rb
175
433
 
434
+ Style/CollectionCompact: # new in 1.2
435
+ Enabled: true
436
+
176
437
  Style/CommandLiteral:
177
438
  EnforcedStyle: mixed
178
439
 
@@ -182,16 +443,58 @@ Style/Documentation:
182
443
  - 'spec/**/*'
183
444
  - 'test/**/*'
184
445
 
446
+ Style/DocumentDynamicEvalDefinition: # new in 1.1
447
+ Enabled: true
448
+
185
449
  Style/DoubleNegation:
186
450
  Enabled: false
187
451
 
188
452
  Style/EachWithObject:
189
453
  Enabled: false
190
454
 
455
+ # Required Ruby version: 3.0
456
+ Style/EndlessMethod: # new in 1.8
457
+ Enabled: false
458
+
459
+ Style/EnvHome: # new in 1.29
460
+ Enabled: true
461
+
462
+ Style/FetchEnvVar:
463
+ Enabled: false
464
+
465
+ Style/FileRead: # new in 1.24
466
+ Enabled: true
467
+
468
+ Style/FileWrite: # new in 1.24
469
+ Enabled: true
470
+
471
+ Style/GlobalStdStream:
472
+ Enabled: false
473
+
474
+ Style/HashConversion: # new in 1.10
475
+ Enabled: true
476
+
477
+ # Required Ruby version: 3.0
478
+ Style/HashExcept: # new in 1.7
479
+ Enabled: false
480
+
191
481
  Style/HashSyntax:
192
482
  EnforcedStyle: ruby19
193
483
  PreferHashRocketsForNonAlnumEndingSymbols: true
194
484
 
485
+ Style/IfWithBooleanLiteralBranches: # new in 1.9
486
+ Enabled: true
487
+
488
+ # Required Ruby version: 2.7
489
+ Style/InPatternThen: # new in 1.16
490
+ Enabled: false
491
+
492
+ Style/MapCompactWithConditionalBlock: # new in 1.30
493
+ Enabled: true
494
+
495
+ Style/MapToHash: # new in 1.24
496
+ Enabled: true
497
+
195
498
  Style/MethodDefParentheses:
196
499
  EnforcedStyle: require_no_parentheses
197
500
 
@@ -202,9 +505,39 @@ Style/MixinUsage:
202
505
  Style/MultilineIfModifier:
203
506
  Enabled: false
204
507
 
508
+ # Required Ruby version: 2.7
509
+ Style/MultilineInPatternThen: # new in 1.16
510
+ Enabled: false
511
+
512
+ Style/NegatedIfElseCondition: # new in 1.2
513
+ Enabled: true
514
+
515
+ # Required Ruby version: 3.1
516
+ Style/NestedFileDirname: # new in 1.26
517
+ Enabled: false
518
+
519
+ Style/NilLambda: # new in 1.3
520
+ Enabled: true
521
+
205
522
  Style/Not:
206
523
  Enabled: false
207
524
 
525
+ # Required Ruby version: 2.7
526
+ Style/NumberedParameters: # new in 1.22
527
+ Enabled: false
528
+ EnforcedStyle: disallow
529
+
530
+ # Required Ruby version: 2.7
531
+ Style/NumberedParametersLimit:
532
+ Enabled: false
533
+ Max: 0
534
+
535
+ Style/OpenStructUse: # new in 1.23
536
+ Enabled: true
537
+
538
+ Style/ObjectThen: # new in 1.28
539
+ Enabled: true
540
+
208
541
  Style/OptionHash:
209
542
  Enabled: true
210
543
 
@@ -223,12 +556,27 @@ Style/PercentLiteralDelimiters:
223
556
  Style/PerlBackrefs:
224
557
  Enabled: false
225
558
 
559
+ Style/QuotedSymbols: # new in 1.16
560
+ Enabled: true
561
+
562
+ Style/RedundantArgument: # new in 1.4
563
+ Enabled: true
564
+
565
+ Style/RedundantInitialize: # new in 1.27
566
+ Enabled: true
567
+
568
+ Style/RedundantSelfAssignmentBranch: # new in 1.19
569
+ Enabled: true
570
+
226
571
  Style/RegexpLiteral:
227
572
  EnforcedStyle: mixed
228
573
 
229
574
  Style/RescueModifier:
230
575
  Enabled: false
231
576
 
577
+ Style/SelectByRegexp: # new in 1.22
578
+ Enabled: true
579
+
232
580
  Style/Semicolon:
233
581
  AllowAsExpressionSeparator: true
234
582
 
@@ -238,6 +586,15 @@ Style/SingleLineBlockParams:
238
586
  - a
239
587
  - t
240
588
 
589
+ Style/StringChars: # new in 1.12
590
+ Enabled: true
591
+
592
+ Style/SwapValues: # new in 1.1
593
+ Enabled: true
594
+
241
595
  Style/SymbolArray:
242
596
  EnforcedStyle: percent
243
597
  MinSize: 3
598
+
599
+ Style/TrailingUnderscoreVariable:
600
+ AllowNamedUnderscoreVariables: false
@@ -0,0 +1,7 @@
1
+ # This file contains a list of revs that should be ignored when by git blame.
2
+ #
3
+ # Run `$ git blame --ignore-revs-file=.git-blame-ignore-revs` or
4
+ # Configure git blame to always use this file:
5
+ # `$git config blame.ignoreRevsFile .git-blame-ignore-revs`.
6
+ #
7
+ # SHA of the commit to ignore # why this rev is ignored (recommended)
data/Dockerfile CHANGED
@@ -1,4 +1,4 @@
1
- FROM ruby:2.6.10-alpine
1
+ FROM ruby:alpine
2
2
 
3
3
  RUN apk upgrade --update && apk add --no-cache git build-base
4
4
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- yoshiki (7.0.0.pre.alpha.2)
4
+ yoshiki (7.0.0.pre.alpha.4)
5
5
  rubocop (= 1.30.1)
6
6
  rubocop-rails (= 2.14.2)
7
7
  rubocop-rake (= 0.6.0)
@@ -90,4 +90,4 @@ DEPENDENCIES
90
90
  yoshiki!
91
91
 
92
92
  BUNDLED WITH
93
- 1.17.2
93
+ 2.3.26
data/README.md CHANGED
@@ -4,8 +4,6 @@ Yōshiki (様式)
4
4
  Dev Fu! Style
5
5
  -------------
6
6
 
7
- For rubocop v0.61.1 & ruby 2.6.10
8
-
9
7
  [![rubygems][gem-image]][gem]
10
8
  [![build status][ci-image]][ci]
11
9
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Yoshiki
4
4
 
5
- VERSION = '7.0.0-alpha.2'
5
+ VERSION = '7.0.0-alpha.4'
6
6
 
7
7
  end
data/yoshiki.gemspec CHANGED
@@ -18,8 +18,13 @@ Gem::Specification.new do |spec|
18
18
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename f }
19
19
  spec.require_paths = %w[ lib ]
20
20
 
21
+ spec.metadata['rubygems_mfa_required'] = 'true'
22
+
21
23
  spec.required_ruby_version = '>= 2.6.0'
22
24
 
25
+ # This implies rails 5.2+
26
+ # See also: https://www.fastruby.io/blog/ruby/rails/versions/compatibility-table.html
27
+
23
28
  spec.add_dependency 'rubocop', '1.30.1'
24
29
  spec.add_dependency 'rubocop-rails', '2.14.2'
25
30
  spec.add_dependency 'rubocop-rake', '0.6.0'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yoshiki
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.0.0.pre.alpha.2
4
+ version: 7.0.0.pre.alpha.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - BM5k
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-06-11 00:00:00.000000000 Z
11
+ date: 2022-12-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -130,6 +130,7 @@ extensions: []
130
130
  extra_rdoc_files: []
131
131
  files:
132
132
  - ".devfu-rubocop.yml"
133
+ - ".git-blame-ignore-revs"
133
134
  - ".gitignore"
134
135
  - ".gitlab-ci.yml"
135
136
  - ".rspec"
@@ -147,7 +148,8 @@ files:
147
148
  homepage: https://gitlab.com/devfu/yoshiki
148
149
  licenses:
149
150
  - MIT
150
- metadata: {}
151
+ metadata:
152
+ rubygems_mfa_required: 'true'
151
153
  post_install_message:
152
154
  rdoc_options: []
153
155
  require_paths:
@@ -163,7 +165,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
163
165
  - !ruby/object:Gem::Version
164
166
  version: 1.3.1
165
167
  requirements: []
166
- rubygems_version: 3.0.3.1
168
+ rubygems_version: 3.3.26
167
169
  signing_key:
168
170
  specification_version: 4
169
171
  summary: Dev Fu! Style