docquet 1.0.0 → 1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 49e0d74225773f2f104a4f3c1a34cf72438cf27d1d244d2bc1dc69e968cf7e69
4
- data.tar.gz: fcf9b6ad2fbe9de0768d8127e9022360c16a4d19f2106ba79a01519ab56f7b42
3
+ metadata.gz: 9e1a397b619f2e6cf942128c3e135fb0617de4dd12fc63c0a7bdb567962b301a
4
+ data.tar.gz: 6662eb1029f19415c9861a01ed5772023aa0863ad76f5bbc4a224710a55baf67
5
5
  SHA512:
6
- metadata.gz: 0f626d2c9ad3a80235268319c90e548e5291f1ace35b9038efba5c24299de804d1436c8e86df9218ebc2f2a65ad885e092b72c1c0d945231311e2e5fb7c4ca4a
7
- data.tar.gz: 6c3b5b0d0a5f55aa5703d3992cace6b1418469d6790575a8826d436312ab5859565153160721f9bc7870f007d5d5b32b8767944f9bae5e6415d755f2fc0264e7
6
+ metadata.gz: 8eb52f1b6d178b93026bfb65d3bce028e2bf7ca09a19d98b0da9eb135776ec93992755da108e75f0f55ab8a634e14b4f8b8bfe6b67a2e4fa695ff879c87d59d5
7
+ data.tar.gz: b96fec0847203d1cdfe06a9a05e2af44ff84647c08db93c515a6a3503a27ae78319ff20a32c2be98345ddbba8927a52456f39e7569ef5c697e9f786183b5e28f
data/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [1.2.0] - 2025-12-26
4
+ - Bump rubocop to 1.82
5
+
6
+ ## [1.1.0] - 2025-11-30
7
+
8
+ ### Changed
9
+ - Bump rubocop-rspec to 3.8.0
10
+ - Disabled some length and complexity cops
11
+ - Layout/FirstArrayElementIndentation and Layout/FirstHashElementIndentation now use "consistent" style
12
+
3
13
  ## [1.0.0] - 2025-11-02
4
14
 
5
15
  ### Added
@@ -17,4 +27,4 @@
17
27
  - Automatic `.rubocop_todo.yml` generation for gradual adoption
18
28
  - Project-specific RuboCop configuration inheritance
19
29
  - Force option for overwriting existing configuration files
20
- - Ruby version detection from `.ruby-version` file or current Ruby version
30
+ - Ruby version detection from `.ruby-version` file or current Ruby version
@@ -20,9 +20,15 @@ Layout/ClassStructure:
20
20
  - private_delegate
21
21
  - private_methods
22
22
 
23
+ Layout/FirstArrayElementIndentation:
24
+ EnforcedStyle: consistent
25
+
23
26
  Layout/FirstArrayElementLineBreak:
24
27
  AllowMultilineFinalElement: true
25
28
 
29
+ Layout/FirstHashElementIndentation:
30
+ EnforcedStyle: consistent
31
+
26
32
  Layout/FirstMethodArgumentLineBreak:
27
33
  AllowMultilineFinalElement: true
28
34
 
@@ -36,10 +42,7 @@ Layout/HashAlignment:
36
42
  Enabled: false
37
43
 
38
44
  Layout/LineLength:
39
- AllowedPatterns:
40
- - expect
41
- - (?:all|any|none|one)\?
42
- - \bdef [A-Z]?[a-z0-9_]+[!?]?(?:\(.*\))? = .*(?!end)$
45
+ Enabled: false
43
46
 
44
47
  Layout/MultilineArrayLineBreaks:
45
48
  AllowMultilineFinalElement: true
@@ -1,5 +1,8 @@
1
1
  inherit_from: ../defaults/metrics.yml
2
2
 
3
+ Metrics/AbcSize:
4
+ Enabled: false
5
+
3
6
  Metrics/BlockLength:
4
7
  AllowedMethods:
5
8
  - context
@@ -10,5 +13,17 @@ Metrics/BlockLength:
10
13
  - shared_context
11
14
  - shared_examples
12
15
 
16
+ Metrics/ClassLength:
17
+ Enabled: false
18
+
19
+ Metrics/CyclomaticComplexity:
20
+ Enabled: false
21
+
22
+ Metrics/MethodLength:
23
+ Enabled: false
24
+
13
25
  Metrics/ParameterLists:
14
26
  CountKeywordArgs: false
27
+
28
+ Metrics/PerceivedComplexity:
29
+ Enabled: false
@@ -21,15 +21,10 @@ RSpec/Dialect:
21
21
  Enabled: false
22
22
 
23
23
  RSpec/ExampleLength:
24
- Enabled: true
25
- CountAsOne:
26
- - array
27
- - hash
28
- - heredoc
29
- - method_call
24
+ Enabled: false
30
25
 
31
26
  RSpec/MultipleMemoizedHelpers:
32
- Max: 10
27
+ Enabled: false
33
28
 
34
29
  RSpec/MultipleExpectations:
35
30
  Enabled: false
@@ -631,7 +631,7 @@ Layout/LineLength:
631
631
  StyleGuide: "#max-line-length"
632
632
  Enabled: true
633
633
  VersionAdded: '0.25'
634
- VersionChanged: '1.69'
634
+ VersionChanged: '1.82'
635
635
  Max: 120
636
636
  AllowHeredoc: true
637
637
  AllowURI: true
@@ -639,7 +639,8 @@ Layout/LineLength:
639
639
  URISchemes:
640
640
  - http
641
641
  - https
642
- IgnoreCopDirectives: true
642
+ AllowRBSInlineAnnotation: false
643
+ AllowCopDirectives: true
643
644
  AllowedPatterns: []
644
645
  SplitStrings: false
645
646
 
@@ -1266,11 +1266,15 @@ Lint/UselessNumericOperation:
1266
1266
  Enabled: true # was pending
1267
1267
  VersionAdded: '1.66'
1268
1268
 
1269
+ # Supports --autocorrect
1269
1270
  # https://docs.rubocop.org/rubocop/cops_lint.html#lintuselessor
1270
1271
  Lint/UselessOr:
1271
1272
  Description: Checks for useless OR expressions.
1272
1273
  Enabled: true # was pending
1274
+ SafeAutoCorrect: false
1275
+ AutoCorrect: contextual
1273
1276
  VersionAdded: '1.76'
1277
+ VersionChanged: '1.82'
1274
1278
 
1275
1279
  # https://docs.rubocop.org/rubocop/cops_lint.html#lintuselessrescue
1276
1280
  Lint/UselessRescue:
@@ -1,4 +1,4 @@
1
- # Department 'RSpec' (111):
1
+ # Department 'RSpec' (112):
2
2
  # Supports --autocorrect
3
3
  # https://docs.rubocop.org/rubocop-rspec/cops_rspec.html#rspecalignleftletbrace
4
4
  RSpec/AlignLeftLetBrace:
@@ -585,6 +585,13 @@ RSpec/LeakyConstantDeclaration:
585
585
  StyleGuide: https://rspec.rubystyle.guide/#declare-constants
586
586
  Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/LeakyConstantDeclaration
587
587
 
588
+ # https://docs.rubocop.org/rubocop-rspec/cops_rspec.html#rspecleakylocalvariable
589
+ RSpec/LeakyLocalVariable:
590
+ Description: Checks for local variables from outer scopes used inside examples.
591
+ Enabled: true # was pending
592
+ VersionAdded: '3.8'
593
+ Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/LeakyLocalVariable
594
+
588
595
  # Supports --autocorrect
589
596
  # https://docs.rubocop.org/rubocop-rspec/cops_rspec.html#rspecletbeforeexamples
590
597
  RSpec/LetBeforeExamples:
@@ -968,7 +975,13 @@ RSpec/SpecFilePathFormat:
968
975
  IgnoreMethods: false
969
976
  IgnoreMetadata:
970
977
  type: routing
978
+ InflectorPath: "./config/initializers/inflections.rb"
979
+ SupportedInflectors:
980
+ - default
981
+ - active_support
982
+ EnforcedInflector: default
971
983
  VersionAdded: '2.24'
984
+ VersionChanged: '3.8'
972
985
  Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/SpecFilePathFormat
973
986
 
974
987
  # https://docs.rubocop.org/rubocop-rspec/cops_rspec.html#rspecspecfilepathsuffix
@@ -1,4 +1,4 @@
1
- # Department 'Style' (282):
1
+ # Department 'Style' (283):
2
2
  # Supports --autocorrect
3
3
  # https://docs.rubocop.org/rubocop/cops_style.html#styleaccessmodifierdeclarations
4
4
  Style/AccessModifierDeclarations:
@@ -43,7 +43,7 @@ Style/Alias:
43
43
  # https://docs.rubocop.org/rubocop/cops_style.html#styleambiguousendlessmethoddefinition
44
44
  Style/AmbiguousEndlessMethodDefinition:
45
45
  Description: Checks for endless methods inside operators of lower precedence.
46
- StyleGuide: "#ambiguous-endless-method-defintions"
46
+ StyleGuide: "#ambiguous-endless-method-definitions"
47
47
  Enabled: true # was pending
48
48
  VersionAdded: '1.68'
49
49
 
@@ -240,9 +240,11 @@ Style/BlockDelimiters:
240
240
  # Supports --autocorrect
241
241
  # https://docs.rubocop.org/rubocop/cops_style.html#stylecaseequality
242
242
  Style/CaseEquality:
243
- Description: Avoid explicit use of the case equality operator(===).
243
+ Description: Avoid explicit use of the case equality operator (`===`).
244
244
  StyleGuide: "#no-case-equality"
245
245
  Enabled: true
246
+ References:
247
+ - https://docs.rubocop.org/rubocop-performance/cops_performance.html#performanceregexpmatch
246
248
  VersionAdded: '0.9'
247
249
  VersionChanged: '0.89'
248
250
  AllowOnConstant: false
@@ -1386,6 +1388,7 @@ Style/MethodCallWithArgsParentheses:
1386
1388
  AllowedMethods: []
1387
1389
  AllowedPatterns: []
1388
1390
  IncludedMacros: []
1391
+ IncludedMacroPatterns: []
1389
1392
  AllowParenthesesInMultilineCall: false
1390
1393
  AllowParenthesesInChaining: false
1391
1394
  AllowParenthesesInCamelCaseMethod: false
@@ -1501,6 +1504,14 @@ Style/ModuleFunction:
1501
1504
  Autocorrect: false
1502
1505
  SafeAutoCorrect: false
1503
1506
 
1507
+ # Supports --autocorrect
1508
+ # https://docs.rubocop.org/rubocop/cops_style.html#stylemodulememberexistencecheck
1509
+ Style/ModuleMemberExistenceCheck:
1510
+ Description: Checks for usage of `Module` methods returning arrays that can be replaced
1511
+ with equivalent predicates.
1512
+ Enabled: true # was pending
1513
+ VersionAdded: '1.82'
1514
+
1504
1515
  # https://docs.rubocop.org/rubocop/cops_style.html#stylemultilineblockchain
1505
1516
  Style/MultilineBlockChain:
1506
1517
  Description: Avoid multi-line chains of blocks.
@@ -2015,6 +2026,7 @@ Style/RedundantArgument:
2015
2026
  sum: 0
2016
2027
  exit: true
2017
2028
  exit!: false
2029
+ to_i: 10
2018
2030
  split: " "
2019
2031
  chomp: "\n"
2020
2032
  chomp!: "\n"
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Docquet
4
- VERSION = "1.0.0"
4
+ VERSION = "1.2.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.0.0
4
+ version: 1.2.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-11-02 00:00:00.000000000 Z
11
+ date: 2025-12-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-cli