docquet 1.2.0 → 1.3.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9e1a397b619f2e6cf942128c3e135fb0617de4dd12fc63c0a7bdb567962b301a
4
- data.tar.gz: 6662eb1029f19415c9861a01ed5772023aa0863ad76f5bbc4a224710a55baf67
3
+ metadata.gz: 2dddf2360c36a4f871d1a26530b3218a247fd62f65e6b893d27cb301522c347e
4
+ data.tar.gz: 821b18f60404b193c7af35a0b0aebe7ab408cb364974e972f8a7356d7b259468
5
5
  SHA512:
6
- metadata.gz: 8eb52f1b6d178b93026bfb65d3bce028e2bf7ca09a19d98b0da9eb135776ec93992755da108e75f0f55ab8a634e14b4f8b8bfe6b67a2e4fa695ff879c87d59d5
7
- data.tar.gz: b96fec0847203d1cdfe06a9a05e2af44ff84647c08db93c515a6a3503a27ae78319ff20a32c2be98345ddbba8927a52456f39e7569ef5c697e9f786183b5e28f
6
+ metadata.gz: 5712df731475ec3e29508af8d7acd4a608f106bb2159038fd977fe5b39ea629168e0766a2e1a5b2e77e2bc594761ce2f840beac240f54793f6ee34553494732c
7
+ data.tar.gz: 10fbf92a514dd0010f91ac18b4a5ad7b2af456ef057082beb6b49c1b9aaa9894384836a803e5cb52c9c4975be3440649cdc911c059053822de4f8ca00b15643a
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [1.3.0] - 2026-05-10
4
+
5
+ - Drop Ruby 3.2
6
+
3
7
  ## [1.2.0] - 2025-12-26
4
8
  - Bump rubocop to 1.82
5
9
 
@@ -1,4 +1,4 @@
1
- # Department 'Capybara' (12):
1
+ # Department 'Capybara' (7):
2
2
  # https://docs.rubocop.org/rubocop-capybara/cops_capybara.html#capybaraambiguousclick
3
3
  Capybara/AmbiguousClick:
4
4
  Description: Specify the exact target to click on.
@@ -6,6 +6,14 @@ Capybara/AmbiguousClick:
6
6
  VersionAdded: '2.22'
7
7
  Reference: https://www.rubydoc.info/gems/rubocop-capybara/RuboCop/Cop/Capybara/AmbiguousClick
8
8
 
9
+ # Supports --autocorrect
10
+ # https://docs.rubocop.org/rubocop-capybara/cops_capybara.html#capybaraassertstyle
11
+ Capybara/AssertStyle:
12
+ Description: Checks for usage of deprecated assert style method.
13
+ Enabled: true # was pending
14
+ VersionAdded: '2.23'
15
+ Reference: https://www.rubydoc.info/gems/rubocop-capybara/RuboCop/Cop/Capybara/AssertStyle
16
+
9
17
  # https://docs.rubocop.org/rubocop-capybara/cops_capybara.html#capybaraclicklinkorbuttonstyle
10
18
  Capybara/ClickLinkOrButtonStyle:
11
19
  Description: Checks for methods of button or link clicks.
@@ -18,51 +26,16 @@ Capybara/ClickLinkOrButtonStyle:
18
26
  - strict
19
27
  Reference: https://www.rubydoc.info/gems/rubocop-capybara/RuboCop/Cop/Capybara/ClickLinkOrButtonStyle
20
28
 
21
- # Supports --autocorrect
22
- # https://docs.rubocop.org/rubocop-capybara/cops_capybara.html#capybaracurrentpathexpectation
23
- Capybara/CurrentPathExpectation:
24
- Description: Checks that no expectations are set on Capybara's `current_path`.
25
- Enabled: true
26
- VersionAdded: '1.18'
27
- VersionChanged: '2.0'
28
- Reference: https://www.rubydoc.info/gems/rubocop-capybara/RuboCop/Cop/Capybara/CurrentPathExpectation
29
-
30
29
  # Supports --autocorrect
31
30
  # https://docs.rubocop.org/rubocop-capybara/cops_capybara.html#capybarafindallfirst
32
31
  Capybara/FindAllFirst:
33
32
  Description: Enforces use of `first` instead of `all` with `first` or `[0]`.
34
33
  Enabled: true # was pending
34
+ SafeAutoCorrect: false
35
35
  VersionAdded: '2.22'
36
+ VersionChanged: '2.23'
36
37
  Reference: https://www.rubydoc.info/gems/rubocop-capybara/RuboCop/Cop/Capybara/FindAllFirst
37
38
 
38
- # Supports --autocorrect
39
- # https://docs.rubocop.org/rubocop-capybara/cops_capybara.html#capybaramatchstyle
40
- Capybara/MatchStyle:
41
- Description: Checks for usage of deprecated style methods.
42
- Enabled: true # was pending
43
- VersionAdded: '2.17'
44
- Reference: https://www.rubydoc.info/gems/rubocop-capybara/RuboCop/Cop/Capybara/MatchStyle
45
-
46
- # Supports --autocorrect
47
- # https://docs.rubocop.org/rubocop-capybara/cops_capybara.html#capybaranegationmatcher
48
- Capybara/NegationMatcher:
49
- Description: Enforces use of `have_no_*` or `not_to` for negated expectations.
50
- Enabled: true # was pending
51
- VersionAdded: '2.14'
52
- VersionChanged: '2.20'
53
- EnforcedStyle: have_no
54
- SupportedStyles:
55
- - have_no
56
- - not_to
57
- Reference: https://www.rubydoc.info/gems/rubocop-capybara/RuboCop/Cop/Capybara/NegationMatcher
58
-
59
- # https://docs.rubocop.org/rubocop-capybara/cops_capybara.html#capybaranegationmatcheraftervisit
60
- Capybara/NegationMatcherAfterVisit:
61
- Description: Do not allow negative matchers to be used immediately after `visit`.
62
- Enabled: true # was pending
63
- VersionAdded: '2.22'
64
- Reference: https://www.rubydoc.info/gems/rubocop-capybara/RuboCop/Cop/Capybara/NegationMatcherAfterVisit
65
-
66
39
  # Supports --autocorrect
67
40
  # https://docs.rubocop.org/rubocop-capybara/cops_capybara.html#capybararedundantwithinfind
68
41
  Capybara/RedundantWithinFind:
@@ -86,18 +59,3 @@ Capybara/SpecificFinders:
86
59
  VersionAdded: '2.13'
87
60
  Reference: https://www.rubydoc.info/gems/rubocop-capybara/RuboCop/Cop/Capybara/SpecificFinders
88
61
 
89
- # https://docs.rubocop.org/rubocop-capybara/cops_capybara.html#capybaraspecificmatcher
90
- Capybara/SpecificMatcher:
91
- Description: Checks for there is a more specific matcher offered by Capybara.
92
- Enabled: true # was pending
93
- VersionAdded: '2.12'
94
- Reference: https://www.rubydoc.info/gems/rubocop-capybara/RuboCop/Cop/Capybara/SpecificMatcher
95
-
96
- # https://docs.rubocop.org/rubocop-capybara/cops_capybara.html#capybaravisibilitymatcher
97
- Capybara/VisibilityMatcher:
98
- Description: Checks for boolean visibility in Capybara finders.
99
- Enabled: true
100
- VersionAdded: '1.39'
101
- VersionChanged: '2.0'
102
- Reference: https://www.rubydoc.info/gems/rubocop-capybara/RuboCop/Cop/Capybara/VisibilityMatcher
103
-
@@ -1,4 +1,21 @@
1
- # Department 'Capybara/RSpec' (2):
1
+ # Department 'Capybara/RSpec' (9):
2
+ # Supports --autocorrect
3
+ # https://docs.rubocop.org/rubocop-capybara/cops_capybara_rspec.html#capybararspeccurrentpathexpectation
4
+ Capybara/RSpec/CurrentPathExpectation:
5
+ Description: Checks that no expectations are set on Capybara's `current_path`.
6
+ Enabled: true # was pending
7
+ VersionAdded: '1.18'
8
+ VersionChanged: '2.23'
9
+ Reference: https://www.rubydoc.info/gems/rubocop-capybara/RuboCop/Cop/Capybara/RSpec/CurrentPathExpectation
10
+
11
+ # Supports --autocorrect
12
+ # https://docs.rubocop.org/rubocop-capybara/cops_capybara_rspec.html#capybararspechavecontent
13
+ Capybara/RSpec/HaveContent:
14
+ Description: Checks for usage of `have_content` and `have_no_content`.
15
+ Enabled: true # was pending
16
+ VersionAdded: '2.23'
17
+ Reference: https://www.rubydoc.info/gems/rubocop-capybara/RuboCop/Cop/Capybara/RSpec/HaveContent
18
+
2
19
  # Supports --autocorrect
3
20
  # https://docs.rubocop.org/rubocop-capybara/cops_capybara_rspec.html#capybararspechaveselector
4
21
  Capybara/RSpec/HaveSelector:
@@ -8,6 +25,35 @@ Capybara/RSpec/HaveSelector:
8
25
  VersionAdded: '2.19'
9
26
  Reference: https://www.rubydoc.info/gems/rubocop-capybara/RuboCop/Cop/Capybara/RSpec/HaveSelector
10
27
 
28
+ # Supports --autocorrect
29
+ # https://docs.rubocop.org/rubocop-capybara/cops_capybara_rspec.html#capybararspecmatchstyle
30
+ Capybara/RSpec/MatchStyle:
31
+ Description: Checks for usage of deprecated style methods in RSpec matchers.
32
+ Enabled: true # was pending
33
+ VersionAdded: '2.23'
34
+ Reference: https://www.rubydoc.info/gems/rubocop-capybara/RuboCop/Cop/Capybara/RSpec/MatchStyle
35
+
36
+ # Supports --autocorrect
37
+ # https://docs.rubocop.org/rubocop-capybara/cops_capybara_rspec.html#capybararspecnegationmatcher
38
+ Capybara/RSpec/NegationMatcher:
39
+ Description: Enforces use of `have_no_*` or `not_to` for negated expectations.
40
+ Enabled: true # was pending
41
+ VersionAdded: '2.14'
42
+ VersionChanged: '2.23'
43
+ EnforcedStyle: have_no
44
+ SupportedStyles:
45
+ - have_no
46
+ - not_to
47
+ Reference: https://www.rubydoc.info/gems/rubocop-capybara/RuboCop/Cop/Capybara/RSpec/NegationMatcher
48
+
49
+ # https://docs.rubocop.org/rubocop-capybara/cops_capybara_rspec.html#capybararspecnegationmatcheraftervisit
50
+ Capybara/RSpec/NegationMatcherAfterVisit:
51
+ Description: Do not allow negative matchers to be used immediately after `visit`.
52
+ Enabled: true # was pending
53
+ VersionAdded: '2.22'
54
+ VersionChanged: '2.23'
55
+ Reference: https://www.rubydoc.info/gems/rubocop-capybara/RuboCop/Cop/Capybara/RSpec/NegationMatcherAfterVisit
56
+
11
57
  # Supports --autocorrect
12
58
  # https://docs.rubocop.org/rubocop-capybara/cops_capybara_rspec.html#capybararspecpredicatematcher
13
59
  Capybara/RSpec/PredicateMatcher:
@@ -22,3 +68,19 @@ Capybara/RSpec/PredicateMatcher:
22
68
  VersionAdded: '2.19'
23
69
  Reference: https://www.rubydoc.info/gems/rubocop-capybara/RuboCop/Cop/Capybara/RSpec/PredicateMatcher
24
70
 
71
+ # https://docs.rubocop.org/rubocop-capybara/cops_capybara_rspec.html#capybararspecspecificmatcher
72
+ Capybara/RSpec/SpecificMatcher:
73
+ Description: Checks for there is a more specific matcher offered by Capybara.
74
+ Enabled: true # was pending
75
+ VersionAdded: '2.12'
76
+ VersionChanged: '2.23'
77
+ Reference: https://www.rubydoc.info/gems/rubocop-capybara/RuboCop/Cop/Capybara/RSpec/SpecificMatcher
78
+
79
+ # https://docs.rubocop.org/rubocop-capybara/cops_capybara_rspec.html#capybararspecvisibilitymatcher
80
+ Capybara/RSpec/VisibilityMatcher:
81
+ Description: Checks for boolean visibility in Capybara finders.
82
+ Enabled: true # was pending
83
+ VersionAdded: '1.39'
84
+ VersionChanged: '2.23'
85
+ Reference: https://www.rubydoc.info/gems/rubocop-capybara/RuboCop/Cop/Capybara/RSpec/VisibilityMatcher
86
+
@@ -5,5 +5,5 @@ I18n/RailsI18n/DecorateString:
5
5
 
6
6
  # https://docs.rubocop.org/rubocop-i18n/cops_i18n_railsi18n.html#i18nrailsi18ndecoratestringformattingusinginterpolation
7
7
  I18n/RailsI18n/DecorateStringFormattingUsingInterpolation:
8
- Enabled: true # was false
8
+ Enabled: true
9
9
 
@@ -422,6 +422,7 @@ Layout/FirstArrayElementLineBreak:
422
422
  Description: Checks for a line break before the first element in a multi-line array.
423
423
  Enabled: true # was false
424
424
  VersionAdded: '0.49'
425
+ AllowImplicitArrayLiterals: false
425
426
  AllowMultilineFinalElement: false
426
427
 
427
428
  # Supports --autocorrect
@@ -557,6 +558,10 @@ Layout/IndentationWidth:
557
558
  Enabled: true
558
559
  VersionAdded: '0.49'
559
560
  Width: 2
561
+ EnforcedStyleAlignWith: start_of_line
562
+ SupportedStylesAlignWith:
563
+ - start_of_line
564
+ - relative_to_receiver
560
565
  AllowedPatterns: []
561
566
 
562
567
  # Supports --autocorrect
@@ -1,4 +1,4 @@
1
- # Department 'Lint' (152):
1
+ # Department 'Lint' (154):
2
2
  # https://docs.rubocop.org/rubocop/cops_lint.html#lintambiguousassignment
3
3
  Lint/AmbiguousAssignment:
4
4
  Description: Checks for mistyped shorthand assignments.
@@ -140,6 +140,12 @@ Lint/CopDirectiveSyntax:
140
140
  Enabled: true # was pending
141
141
  VersionAdded: '1.72'
142
142
 
143
+ # https://docs.rubocop.org/rubocop/cops_lint.html#lintdatadefineoverride
144
+ Lint/DataDefineOverride:
145
+ Description: Disallow overriding the `Data` built-in methods via `Data.define`.
146
+ Enabled: true # was pending
147
+ VersionAdded: '1.85'
148
+
143
149
  # https://docs.rubocop.org/rubocop/cops_lint.html#lintdebugger
144
150
  Lint/Debugger:
145
151
  Description: Checks for debugger calls.
@@ -943,8 +949,9 @@ Lint/SafeNavigationConsistency:
943
949
  condition, consistent and appropriate safe navigation, without excess or deficiency,
944
950
  is used for all method calls on the same object.
945
951
  Enabled: true
952
+ SafeAutoCorrect: false
946
953
  VersionAdded: '0.55'
947
- VersionChanged: '0.77'
954
+ VersionChanged: '1.85'
948
955
  AllowedMethods:
949
956
  - present?
950
957
  - blank?
@@ -1154,6 +1161,13 @@ Lint/UnreachableLoop:
1154
1161
  AllowedPatterns:
1155
1162
  - !ruby/regexp /(exactly|at_least|at_most)\(\d+\)\.times/
1156
1163
 
1164
+ # https://docs.rubocop.org/rubocop/cops_lint.html#lintunreachablepatternbranch
1165
+ Lint/UnreachablePatternBranch:
1166
+ Description: Checks for unreachable `in` pattern branches after an unconditional catch-all
1167
+ pattern.
1168
+ Enabled: true # was pending
1169
+ VersionAdded: '1.85'
1170
+
1157
1171
  # Supports --autocorrect
1158
1172
  # https://docs.rubocop.org/rubocop/cops_lint.html#lintunusedblockargument
1159
1173
  Lint/UnusedBlockArgument:
@@ -251,6 +251,7 @@ Naming/PredicateMethod:
251
251
  AllowedPatterns: []
252
252
  AllowBangMethods: false
253
253
  WaywardPredicates:
254
+ - infinite?
254
255
  - nonzero?
255
256
 
256
257
  # https://docs.rubocop.org/rubocop/cops_naming.html#namingpredicateprefix
@@ -1,4 +1,4 @@
1
- # Department 'RSpec' (112):
1
+ # Department 'RSpec' (113):
2
2
  # Supports --autocorrect
3
3
  # https://docs.rubocop.org/rubocop-rspec/cops_rspec.html#rspecalignleftletbrace
4
4
  RSpec/AlignLeftLetBrace:
@@ -756,6 +756,16 @@ RSpec/NotToNot:
756
756
  VersionAdded: '1.4'
757
757
  Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/NotToNot
758
758
 
759
+ # Supports --autocorrect
760
+ # https://docs.rubocop.org/rubocop-rspec/cops_rspec.html#rspecoutput
761
+ RSpec/Output:
762
+ Description: Checks for the use of output calls like puts and print in specs.
763
+ Enabled: true # was pending
764
+ AutoCorrect: contextual
765
+ SafeAutoCorrect: false
766
+ VersionAdded: '3.9'
767
+ Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/Output
768
+
759
769
  # https://docs.rubocop.org/rubocop-rspec/cops_rspec.html#rspecoverwritingsetup
760
770
  RSpec/OverwritingSetup:
761
771
  Description: Checks if there is a let/subject that overwrites an existing one.
@@ -1,4 +1,4 @@
1
- # Department 'Style' (283):
1
+ # Department 'Style' (298):
2
2
  # Supports --autocorrect
3
3
  # https://docs.rubocop.org/rubocop/cops_style.html#styleaccessmodifierdeclarations
4
4
  Style/AccessModifierDeclarations:
@@ -670,6 +670,20 @@ Style/EmptyCaseCondition:
670
670
  Enabled: true
671
671
  VersionAdded: '0.40'
672
672
 
673
+ # Supports --autocorrect
674
+ # https://docs.rubocop.org/rubocop/cops_style.html#styleemptyclassdefinition
675
+ Style/EmptyClassDefinition:
676
+ Description: Enforces consistent style for empty class definitions.
677
+ Enabled: true # was pending
678
+ VersionAdded: '1.84'
679
+ VersionChanged: '1.86'
680
+ EnforcedStyle: class_keyword
681
+ SupportedStyles:
682
+ - class_keyword
683
+ - class_new
684
+ - class_definition
685
+ AllowedParentClasses: []
686
+
673
687
  # Supports --autocorrect
674
688
  # https://docs.rubocop.org/rubocop/cops_style.html#styleemptyelse
675
689
  Style/EmptyElse:
@@ -859,6 +873,13 @@ Style/FileNull:
859
873
  SafeAutoCorrect: false
860
874
  VersionAdded: '1.69'
861
875
 
876
+ # https://docs.rubocop.org/rubocop/cops_style.html#stylefileopen
877
+ Style/FileOpen:
878
+ Description: Checks for `File.open` without a block, which can leak file descriptors.
879
+ Enabled: true # was pending
880
+ Safe: false
881
+ VersionAdded: '1.85'
882
+
862
883
  # Supports --autocorrect
863
884
  # https://docs.rubocop.org/rubocop/cops_style.html#stylefileread
864
885
  Style/FileRead:
@@ -1055,6 +1076,18 @@ Style/HashLikeCase:
1055
1076
  VersionAdded: '0.88'
1056
1077
  MinBranchesCount: 3
1057
1078
 
1079
+ # Supports --autocorrect
1080
+ # https://docs.rubocop.org/rubocop/cops_style.html#stylehashlookupmethod
1081
+ Style/HashLookupMethod:
1082
+ Description: Enforces the use of either `Hash#[]` or `Hash#fetch` for hash lookup.
1083
+ Enabled: true # was false
1084
+ Safe: false
1085
+ VersionAdded: '1.84'
1086
+ EnforcedStyle: brackets
1087
+ SupportedStyles:
1088
+ - brackets
1089
+ - fetch
1090
+
1058
1091
  # Supports --autocorrect
1059
1092
  # https://docs.rubocop.org/rubocop/cops_style.html#stylehashslice
1060
1093
  Style/HashSlice:
@@ -1151,6 +1184,7 @@ Style/IfWithBooleanLiteralBranches:
1151
1184
  VersionAdded: '1.9'
1152
1185
  SafeAutoCorrect: false
1153
1186
  AllowedMethods:
1187
+ - infinite?
1154
1188
  - nonzero?
1155
1189
 
1156
1190
  # Supports --autocorrect
@@ -1360,6 +1394,14 @@ Style/MapIntoArray:
1360
1394
  VersionChanged: '1.67'
1361
1395
  Safe: false
1362
1396
 
1397
+ # Supports --autocorrect
1398
+ # https://docs.rubocop.org/rubocop/cops_style.html#stylemapjoin
1399
+ Style/MapJoin:
1400
+ Description: Checks for redundant `map(&:to_s)` before `join`.
1401
+ Enabled: true # was pending
1402
+ Safe: false
1403
+ VersionAdded: '1.85'
1404
+
1363
1405
  # Supports --autocorrect
1364
1406
  # https://docs.rubocop.org/rubocop/cops_style.html#stylemaptohash
1365
1407
  Style/MapToHash:
@@ -1648,6 +1690,15 @@ Style/NegatedWhile:
1648
1690
  Enabled: true
1649
1691
  VersionAdded: '0.20'
1650
1692
 
1693
+ # Supports --autocorrect
1694
+ # https://docs.rubocop.org/rubocop/cops_style.html#stylenegativearrayindex
1695
+ Style/NegativeArrayIndex:
1696
+ Description: Use negative array indices instead of calculating array length minus
1697
+ a value. Also handles range patterns with length calculations. Recognizes preserving
1698
+ methods and their combinations, allowing safe replacement when the receiver matches.
1699
+ Enabled: true # was pending
1700
+ VersionAdded: '1.84'
1701
+
1651
1702
  # Supports --autocorrect
1652
1703
  # https://docs.rubocop.org/rubocop/cops_style.html#stylenestedfiledirname
1653
1704
  Style/NestedFileDirname:
@@ -1826,6 +1877,17 @@ Style/ObjectThen:
1826
1877
  - then
1827
1878
  - yield_self
1828
1879
 
1880
+ # https://docs.rubocop.org/rubocop/cops_style.html#styleoneclassperfile
1881
+ Style/OneClassPerFile:
1882
+ Description: Checks that each source file defines at most one top-level class or module.
1883
+ Enabled: true # was pending
1884
+ VersionAdded: '1.85'
1885
+ VersionChanged: '1.86'
1886
+ AllowedClasses: []
1887
+ Exclude:
1888
+ - "spec/**/*"
1889
+ - "test/**/*"
1890
+
1829
1891
  # Supports --autocorrect
1830
1892
  # https://docs.rubocop.org/rubocop/cops_style.html#styleonelineconditional
1831
1893
  Style/OneLineConditional:
@@ -1919,6 +1981,15 @@ Style/ParenthesesAroundCondition:
1919
1981
  AllowSafeAssignment: true
1920
1982
  AllowInMultilineConditions: false
1921
1983
 
1984
+ # Supports --autocorrect
1985
+ # https://docs.rubocop.org/rubocop/cops_style.html#stylepartitioninsteadofdoubleselect
1986
+ Style/PartitionInsteadOfDoubleSelect:
1987
+ Description: Checks for consecutive `select`/`filter`/`find_all` and `reject` calls
1988
+ on the same receiver with the same block body.
1989
+ Enabled: true # was pending
1990
+ Safe: false
1991
+ VersionAdded: '1.85'
1992
+
1922
1993
  # Supports --autocorrect
1923
1994
  # https://docs.rubocop.org/rubocop/cops_style.html#stylepercentliteraldelimiters
1924
1995
  Style/PercentLiteralDelimiters:
@@ -1954,6 +2025,14 @@ Style/PerlBackrefs:
1954
2025
  Enabled: true
1955
2026
  VersionAdded: '0.13'
1956
2027
 
2028
+ # Supports --autocorrect
2029
+ # https://docs.rubocop.org/rubocop/cops_style.html#stylepredicatewithkind
2030
+ Style/PredicateWithKind:
2031
+ Description: Prefer `any?(Klass)` to `any? { |x| x.is_a?(Klass) }`.
2032
+ Enabled: true # was pending
2033
+ SafeAutoCorrect: false
2034
+ VersionAdded: '1.85'
2035
+
1957
2036
  # Supports --autocorrect
1958
2037
  # https://docs.rubocop.org/rubocop/cops_style.html#stylepreferredhashmethods
1959
2038
  Style/PreferredHashMethods:
@@ -2013,6 +2092,15 @@ Style/RandomWithOffset:
2013
2092
  Enabled: true
2014
2093
  VersionAdded: '0.52'
2015
2094
 
2095
+ # Supports --autocorrect
2096
+ # https://docs.rubocop.org/rubocop/cops_style.html#stylereducetohash
2097
+ Style/ReduceToHash:
2098
+ Description: Use `to_h { ... }` instead of `each_with_object`, `inject`, or `reduce`
2099
+ to build a hash.
2100
+ Enabled: true # was pending
2101
+ Safe: false
2102
+ VersionAdded: '1.85'
2103
+
2016
2104
  # Supports --autocorrect
2017
2105
  # https://docs.rubocop.org/rubocop/cops_style.html#styleredundantargument
2018
2106
  Style/RedundantArgument:
@@ -2077,6 +2165,7 @@ Style/RedundantCondition:
2077
2165
  VersionAdded: '0.76'
2078
2166
  VersionChanged: '1.73'
2079
2167
  AllowedMethods:
2168
+ - infinite?
2080
2169
  - nonzero?
2081
2170
 
2082
2171
  # Supports --autocorrect
@@ -2216,6 +2305,13 @@ Style/RedundantLineContinuation:
2216
2305
  Enabled: true # was pending
2217
2306
  VersionAdded: '1.49'
2218
2307
 
2308
+ # Supports --autocorrect
2309
+ # https://docs.rubocop.org/rubocop/cops_style.html#styleredundantminmaxby
2310
+ Style/RedundantMinMaxBy:
2311
+ Description: Identifies places where `max_by`/`min_by` can be replaced by `max`/`min`.
2312
+ Enabled: true # was pending
2313
+ VersionAdded: '1.85'
2314
+
2219
2315
  # Supports --autocorrect
2220
2316
  # https://docs.rubocop.org/rubocop/cops_style.html#styleredundantparentheses
2221
2317
  Style/RedundantParentheses:
@@ -2320,6 +2416,15 @@ Style/RedundantStringEscape:
2320
2416
  Enabled: true # was pending
2321
2417
  VersionAdded: '1.37'
2322
2418
 
2419
+ # Supports --autocorrect
2420
+ # https://docs.rubocop.org/rubocop/cops_style.html#styleredundantstructkeywordinit
2421
+ Style/RedundantStructKeywordInit:
2422
+ Description: Checks for redundant `keyword_init` option for `Struct.new`.
2423
+ Enabled: true # was false
2424
+ SafeAutoCorrect: false
2425
+ VersionAdded: '1.85'
2426
+ VersionChanged: '1.86'
2427
+
2323
2428
  # Supports --autocorrect
2324
2429
  # https://docs.rubocop.org/rubocop/cops_style.html#styleregexpliteral
2325
2430
  Style/RegexpLiteral:
@@ -2386,6 +2491,14 @@ Style/ReturnNilInPredicateMethodDefinition:
2386
2491
  VersionAdded: '1.53'
2387
2492
  VersionChanged: '1.67'
2388
2493
 
2494
+ # Supports --autocorrect
2495
+ # https://docs.rubocop.org/rubocop/cops_style.html#stylereversefind
2496
+ Style/ReverseFind:
2497
+ Description: Use `array.rfind` instead of `array.reverse.find`.
2498
+ Enabled: true # was pending
2499
+ Safe: false
2500
+ VersionAdded: '1.84'
2501
+
2389
2502
  # Supports --autocorrect
2390
2503
  # https://docs.rubocop.org/rubocop/cops_style.html#stylesafenavigation
2391
2504
  Style/SafeNavigation:
@@ -2422,10 +2535,26 @@ Style/Sample:
2422
2535
  Enabled: true
2423
2536
  VersionAdded: '0.30'
2424
2537
 
2538
+ # Supports --autocorrect
2539
+ # https://docs.rubocop.org/rubocop/cops_style.html#styleselectbykind
2540
+ Style/SelectByKind:
2541
+ Description: Prefer grep/grep_v to select/reject/find/detect with a kind check.
2542
+ Enabled: true # was pending
2543
+ SafeAutoCorrect: false
2544
+ VersionAdded: '1.85'
2545
+
2546
+ # Supports --autocorrect
2547
+ # https://docs.rubocop.org/rubocop/cops_style.html#styleselectbyrange
2548
+ Style/SelectByRange:
2549
+ Description: Prefer grep/grep_v to select/reject/find/detect with a range check.
2550
+ Enabled: true # was pending
2551
+ SafeAutoCorrect: false
2552
+ VersionAdded: '1.85'
2553
+
2425
2554
  # Supports --autocorrect
2426
2555
  # https://docs.rubocop.org/rubocop/cops_style.html#styleselectbyregexp
2427
2556
  Style/SelectByRegexp:
2428
- Description: Prefer grep/grep_v to select/reject with a regexp match.
2557
+ Description: Prefer grep/grep_v to select/reject/find/detect with a regexp match.
2429
2558
  Enabled: true # was pending
2430
2559
  SafeAutoCorrect: false
2431
2560
  VersionAdded: '1.22'
@@ -2732,6 +2861,14 @@ Style/SymbolProc:
2732
2861
  AllowedPatterns: []
2733
2862
  AllowComments: false
2734
2863
 
2864
+ # Supports --autocorrect
2865
+ # https://docs.rubocop.org/rubocop/cops_style.html#styletallymethod
2866
+ Style/TallyMethod:
2867
+ Description: Prefer `Enumerable#tally` over manual counting patterns.
2868
+ Enabled: true # was pending
2869
+ Safe: false
2870
+ VersionAdded: '1.85'
2871
+
2735
2872
  # Supports --autocorrect
2736
2873
  # https://docs.rubocop.org/rubocop/cops_style.html#styleternaryparentheses
2737
2874
  Style/TernaryParentheses:
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Docquet
4
- VERSION = "1.2.0"
4
+ VERSION = "1.3.0"
5
5
  public_constant :VERSION
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: docquet
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - OZAWA Sakuro
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-12-26 00:00:00.000000000 Z
11
+ date: 2026-05-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-cli
@@ -158,14 +158,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
158
158
  requirements:
159
159
  - - ">="
160
160
  - !ruby/object:Gem::Version
161
- version: '3.2'
161
+ version: '3.3'
162
162
  required_rubygems_version: !ruby/object:Gem::Requirement
163
163
  requirements:
164
164
  - - ">="
165
165
  - !ruby/object:Gem::Version
166
166
  version: '0'
167
167
  requirements: []
168
- rubygems_version: 3.4.19
168
+ rubygems_version: 3.5.22
169
169
  signing_key:
170
170
  specification_version: 4
171
171
  summary: Standardized RuboCop configuration with CLI tools