docquet 1.0.0 → 1.1.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 +4 -4
- data/CHANGELOG.md +8 -1
- data/config/cops/layout.yml +7 -4
- data/config/cops/metrics.yml +15 -0
- data/config/cops/rspec.yml +2 -7
- data/config/defaults/rspec.yml +14 -1
- data/lib/docquet/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 12ea8285f6bfee160fde391746e20f2f3f9a0b25299b8f251871b98f35860231
|
|
4
|
+
data.tar.gz: c7412af40133fd883e3aebac2005942c490ddff39119fcbda84d7b9937c7a8c9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c7839c6eb6c4de21185d36739a936962da293d0a31e0e010a971cd181deac5397d69e54ca26a67333f52598c75f70df0e9954c2000dc58892b254859a3592380
|
|
7
|
+
data.tar.gz: c03354771e0d9bf7440a806be8990ebd741d54d2069bbc899b5d331f6d25a34ac1d4f401208726fc1c9ffe6834c017b108d752742a829562c582a6a0072ac9d7
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
## [Unreleased]
|
|
2
2
|
|
|
3
|
+
## [1.1.0] - 2025-11-30
|
|
4
|
+
|
|
5
|
+
### Changed
|
|
6
|
+
- Bump rubocop-rspec to 3.8.0
|
|
7
|
+
- Disabled some length and complexity cops
|
|
8
|
+
- Layout/FirstArrayElementIndentation and Layout/FirstHashElementIndentation now use "consistent" style
|
|
9
|
+
|
|
3
10
|
## [1.0.0] - 2025-11-02
|
|
4
11
|
|
|
5
12
|
### Added
|
|
@@ -17,4 +24,4 @@
|
|
|
17
24
|
- Automatic `.rubocop_todo.yml` generation for gradual adoption
|
|
18
25
|
- Project-specific RuboCop configuration inheritance
|
|
19
26
|
- Force option for overwriting existing configuration files
|
|
20
|
-
- Ruby version detection from `.ruby-version` file or current Ruby version
|
|
27
|
+
- Ruby version detection from `.ruby-version` file or current Ruby version
|
data/config/cops/layout.yml
CHANGED
|
@@ -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
|
-
|
|
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
|
data/config/cops/metrics.yml
CHANGED
|
@@ -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
|
data/config/cops/rspec.yml
CHANGED
|
@@ -21,15 +21,10 @@ RSpec/Dialect:
|
|
|
21
21
|
Enabled: false
|
|
22
22
|
|
|
23
23
|
RSpec/ExampleLength:
|
|
24
|
-
Enabled:
|
|
25
|
-
CountAsOne:
|
|
26
|
-
- array
|
|
27
|
-
- hash
|
|
28
|
-
- heredoc
|
|
29
|
-
- method_call
|
|
24
|
+
Enabled: false
|
|
30
25
|
|
|
31
26
|
RSpec/MultipleMemoizedHelpers:
|
|
32
|
-
|
|
27
|
+
Enabled: false
|
|
33
28
|
|
|
34
29
|
RSpec/MultipleExpectations:
|
|
35
30
|
Enabled: false
|
data/config/defaults/rspec.yml
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Department 'RSpec' (
|
|
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
|
data/lib/docquet/version.rb
CHANGED
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.
|
|
4
|
+
version: 1.1.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-
|
|
11
|
+
date: 2025-11-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: dry-cli
|