yoshiki 7.0.0.pre.alpha.3 → 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: 21e5101b626aa2fd3cdb849423427ca001d70e6cabaa1303f6f88ca86d0183d9
4
- data.tar.gz: 568afaca5f126f1e00f8ab316729c031b8c8f6cf39bce6f7c9a899980fbada9d
3
+ metadata.gz: b454c305c11a6594afe888bfe93137e00e66c672ab71ba6386ed786e9f80b002
4
+ data.tar.gz: f7fd5e30acb4009e0a7cea1d9071888629dadec8c670649ffd99f305c8f78052
5
5
  SHA512:
6
- metadata.gz: 0d371f2fe4e40663e87f59d21a5803d8ec40bf80c535a802f7e325232450e17fecae1be50d1e3aea01ed9e2251dde17ac5181f66b1a50fbceb471fa7ff7a0b70
7
- data.tar.gz: c3d60d34c008806180ef01de73a3febbe8472dce6268d516b0197d9c5a95cd909696ce6ef1c9c6f1d99c78354b2e023b981d01113a9a4b389d6d5a230beaa859
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,24 +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
+
97
158
  Lint/RedundantDirGlobSort: # new in 1.8
98
159
  Enabled: true
99
160
 
100
161
  Lint/RedundantSplatExpansion:
101
162
  Enabled: false
102
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
+
103
185
  Lint/Void:
104
186
  Exclude:
105
187
  - spec/**/*.rb
@@ -117,6 +199,17 @@ Metrics/ParameterLists:
117
199
  Naming/AsciiIdentifiers:
118
200
  Enabled: false
119
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
+
120
213
  Naming/PredicateName:
121
214
  NamePrefix:
122
215
  - is_
@@ -131,20 +224,157 @@ Naming/PredicateName:
131
224
  Naming/VariableNumber:
132
225
  EnforcedStyle: snake_case
133
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
+
134
291
  Rails/Output:
135
292
  Exclude:
136
293
  - 'config/unicorn.rb'
137
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
+
138
302
  Rails/ReadWriteAttribute:
139
303
  Enabled: false
140
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
+
141
327
  Rails/SkipsModelValidations:
142
328
  Enabled: false
143
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
+
144
368
  RSpec/DescribeClass:
145
369
  Exclude:
146
370
  - 'spec/features/**/*'
147
371
 
372
+ RSpec/ExcessiveDocstringSpacing: # new in 2.5
373
+ Enabled: true
374
+
375
+ RSpec/IdenticalEqualityAssertion: # new in 2.4
376
+ Enabled: true
377
+
148
378
  RSpec/ImplicitExpect:
149
379
  EnforcedStyle: should
150
380
 
@@ -163,9 +393,34 @@ RSpec/NestedGroups:
163
393
  RSpec/RepeatedExample:
164
394
  Enabled: false
165
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
+
166
417
  Style/AndOr:
167
418
  Enabled: false
168
419
 
420
+ # Required Ruby version: 2.7
421
+ Style/ArgumentsForwarding: # new in 1.1
422
+ Enabled: false
423
+
169
424
  Style/AsciiComments:
170
425
  Enabled: false
171
426
 
@@ -176,6 +431,9 @@ Style/BlockDelimiters:
176
431
  Exclude:
177
432
  - spec/**/*.rb
178
433
 
434
+ Style/CollectionCompact: # new in 1.2
435
+ Enabled: true
436
+
179
437
  Style/CommandLiteral:
180
438
  EnforcedStyle: mixed
181
439
 
@@ -185,19 +443,58 @@ Style/Documentation:
185
443
  - 'spec/**/*'
186
444
  - 'test/**/*'
187
445
 
446
+ Style/DocumentDynamicEvalDefinition: # new in 1.1
447
+ Enabled: true
448
+
188
449
  Style/DoubleNegation:
189
450
  Enabled: false
190
451
 
191
452
  Style/EachWithObject:
192
453
  Enabled: false
193
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
+
194
471
  Style/GlobalStdStream:
195
472
  Enabled: false
196
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
+
197
481
  Style/HashSyntax:
198
482
  EnforcedStyle: ruby19
199
483
  PreferHashRocketsForNonAlnumEndingSymbols: true
200
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
+
201
498
  Style/MethodDefParentheses:
202
499
  EnforcedStyle: require_no_parentheses
203
500
 
@@ -208,9 +505,39 @@ Style/MixinUsage:
208
505
  Style/MultilineIfModifier:
209
506
  Enabled: false
210
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
+
211
522
  Style/Not:
212
523
  Enabled: false
213
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
+
214
541
  Style/OptionHash:
215
542
  Enabled: true
216
543
 
@@ -229,12 +556,27 @@ Style/PercentLiteralDelimiters:
229
556
  Style/PerlBackrefs:
230
557
  Enabled: false
231
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
+
232
571
  Style/RegexpLiteral:
233
572
  EnforcedStyle: mixed
234
573
 
235
574
  Style/RescueModifier:
236
575
  Enabled: false
237
576
 
577
+ Style/SelectByRegexp: # new in 1.22
578
+ Enabled: true
579
+
238
580
  Style/Semicolon:
239
581
  AllowAsExpressionSeparator: true
240
582
 
@@ -244,6 +586,15 @@ Style/SingleLineBlockParams:
244
586
  - a
245
587
  - t
246
588
 
589
+ Style/StringChars: # new in 1.12
590
+ Enabled: true
591
+
592
+ Style/SwapValues: # new in 1.1
593
+ Enabled: true
594
+
247
595
  Style/SymbolArray:
248
596
  EnforcedStyle: percent
249
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.3)
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.3'
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.3
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