yoshiki 11.0.0.pre.4 → 11.0.0.pre.5
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/.rubocop-defaults-minitest.yml +75 -0
- data/.rubocop-defaults-rails.yml +0 -16
- data/.rubocop-defaults-rspec_rails.yml +17 -0
- data/.yoshiki-minitest.yml +11 -0
- data/.yoshiki-rspec_rails.yml +2 -0
- data/.yoshiki.yml +1 -0
- data/Gemfile +1 -0
- data/Gemfile.lock +6 -1
- data/README.md +33 -3
- data/lib/yoshiki/version.rb +1 -1
- metadata +5 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: eb59b461bc2385d190cdbd6b2176249e726c0737931543f358d29c4e533bddf0
|
|
4
|
+
data.tar.gz: 213804824fe6703413b56c0e86ec078158d774faa0154a226c4810e118606a1d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7b6356462f7d6fa8fa4c291f6df085e9069a71fdcd1fefaaf5c987376e9ecf744a1f45f99418dafcbf8fa4c913b62a6fcf1da0e6527da86ea8ae9da30dfb733e
|
|
7
|
+
data.tar.gz: 9509ee3e03f667a5ebb1c79525d0df90b59f37b6b3a5f4c34bfc1cbdfd95fefa2e66ea77a819661ecc8754dbe956f87110a7e93c1a6a9c8ea0004b6cdc9dbe82
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
plugins:
|
|
2
|
+
- rubocop-minitest
|
|
3
|
+
|
|
4
|
+
# https://docs.rubocop.org/rubocop-minitest/cops_minitest.html
|
|
5
|
+
|
|
6
|
+
Minitest/AssertInDelta: # new in 0.10
|
|
7
|
+
Enabled: true
|
|
8
|
+
Minitest/AssertKindOf: # new in 0.10
|
|
9
|
+
Enabled: true
|
|
10
|
+
Minitest/AssertOperator: # new in 0.32
|
|
11
|
+
Enabled: true
|
|
12
|
+
Minitest/AssertOutput: # new in 0.10
|
|
13
|
+
Enabled: true
|
|
14
|
+
Minitest/AssertPathExists: # new in 0.10
|
|
15
|
+
Enabled: true
|
|
16
|
+
Minitest/AssertPredicate: # new in 0.18
|
|
17
|
+
Enabled: true
|
|
18
|
+
Minitest/AssertRaisesCompoundBody: # new in 0.21
|
|
19
|
+
Enabled: true
|
|
20
|
+
Minitest/AssertRaisesWithRegexpArgument: # new in 0.22
|
|
21
|
+
Enabled: true
|
|
22
|
+
Minitest/AssertSame: # new in 0.26
|
|
23
|
+
Enabled: true
|
|
24
|
+
Minitest/AssertSilent: # new in 0.10
|
|
25
|
+
Enabled: true
|
|
26
|
+
Minitest/AssertWithExpectedArgument: # new in 0.11
|
|
27
|
+
Enabled: true
|
|
28
|
+
Minitest/AssertionInLifecycleHook: # new in 0.10
|
|
29
|
+
Enabled: true
|
|
30
|
+
Minitest/DuplicateTestRun: # new in 0.19
|
|
31
|
+
Enabled: true
|
|
32
|
+
Minitest/EmptyLineBeforeAssertionMethods: # new in 0.23
|
|
33
|
+
Enabled: true
|
|
34
|
+
Minitest/Focus: # new in 0.35
|
|
35
|
+
Enabled: true
|
|
36
|
+
Minitest/LifecycleHooksOrder: # new in 0.28
|
|
37
|
+
Enabled: true
|
|
38
|
+
Minitest/LiteralAsActualArgument: # new in 0.10
|
|
39
|
+
Enabled: true
|
|
40
|
+
Minitest/MultipleAssertions: # new in 0.10
|
|
41
|
+
Enabled: true
|
|
42
|
+
Minitest/NonExecutableTestMethod: # new in 0.34
|
|
43
|
+
Enabled: true
|
|
44
|
+
Minitest/NonPublicTestMethod: # new in 0.27
|
|
45
|
+
Enabled: true
|
|
46
|
+
Minitest/RedundantMessageArgument: # new in 0.34
|
|
47
|
+
Enabled: true
|
|
48
|
+
Minitest/RefuteInDelta: # new in 0.10
|
|
49
|
+
Enabled: true
|
|
50
|
+
Minitest/RefuteKindOf: # new in 0.10
|
|
51
|
+
Enabled: true
|
|
52
|
+
Minitest/RefuteOperator: # new in 0.32
|
|
53
|
+
Enabled: true
|
|
54
|
+
Minitest/RefutePathExists: # new in 0.10
|
|
55
|
+
Enabled: true
|
|
56
|
+
Minitest/RefutePredicate: # new in 0.18
|
|
57
|
+
Enabled: true
|
|
58
|
+
Minitest/RefuteSame: # new in 0.26
|
|
59
|
+
Enabled: true
|
|
60
|
+
Minitest/ReturnInTestMethod: # new in 0.31
|
|
61
|
+
Enabled: true
|
|
62
|
+
Minitest/SkipEnsure: # new in 0.20
|
|
63
|
+
Enabled: true
|
|
64
|
+
Minitest/SkipWithoutReason: # new in 0.24
|
|
65
|
+
Enabled: true
|
|
66
|
+
Minitest/TestFileName: # new in 0.26
|
|
67
|
+
Enabled: true
|
|
68
|
+
Minitest/TestMethodName: # new in 0.10
|
|
69
|
+
Enabled: true
|
|
70
|
+
Minitest/UnreachableAssertion: # new in 0.14
|
|
71
|
+
Enabled: true
|
|
72
|
+
Minitest/UnspecifiedException: # new in 0.10
|
|
73
|
+
Enabled: true
|
|
74
|
+
Minitest/UselessAssertion: # new in 0.26
|
|
75
|
+
Enabled: true
|
data/.rubocop-defaults-rails.yml
CHANGED
|
@@ -2,7 +2,6 @@ plugins:
|
|
|
2
2
|
- rubocop-rails
|
|
3
3
|
- rubocop-capybara
|
|
4
4
|
- rubocop-factory_bot
|
|
5
|
-
- rubocop-rspec_rails
|
|
6
5
|
|
|
7
6
|
AllCops:
|
|
8
7
|
ActiveSupportExtensionsEnabled: true
|
|
@@ -175,18 +174,3 @@ Rails/WhereNotWithMultipleConditions: # new in 2.17
|
|
|
175
174
|
Enabled: true
|
|
176
175
|
Rails/WhereRange: # new in 2.25
|
|
177
176
|
Enabled: true
|
|
178
|
-
|
|
179
|
-
# https://docs.rubocop.org/rubocop-rspec_rails/cops_rspecrails.html
|
|
180
|
-
|
|
181
|
-
RSpecRails/AvoidSetupHook: # new in 2.4
|
|
182
|
-
Enabled: true
|
|
183
|
-
RSpecRails/HaveHttpStatus: # new in 2.12
|
|
184
|
-
Enabled: true
|
|
185
|
-
RSpecRails/InferredSpecType: # new in 2.14
|
|
186
|
-
Enabled: true
|
|
187
|
-
RSpecRails/MinitestAssertions: # new in 2.17
|
|
188
|
-
Enabled: true
|
|
189
|
-
RSpecRails/NegationBeValid: # new in 2.23
|
|
190
|
-
Enabled: true
|
|
191
|
-
RSpecRails/TravelAround: # new in 2.19
|
|
192
|
-
Enabled: true
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
plugins:
|
|
2
|
+
- rubocop-rspec_rails
|
|
3
|
+
|
|
4
|
+
# https://docs.rubocop.org/rubocop-rspec_rails/cops_rspecrails.html
|
|
5
|
+
|
|
6
|
+
RSpecRails/AvoidSetupHook: # new in 2.4
|
|
7
|
+
Enabled: true
|
|
8
|
+
RSpecRails/HaveHttpStatus: # new in 2.12
|
|
9
|
+
Enabled: true
|
|
10
|
+
RSpecRails/InferredSpecType: # new in 2.14
|
|
11
|
+
Enabled: true
|
|
12
|
+
RSpecRails/MinitestAssertions: # new in 2.17
|
|
13
|
+
Enabled: true
|
|
14
|
+
RSpecRails/NegationBeValid: # new in 2.23
|
|
15
|
+
Enabled: true
|
|
16
|
+
RSpecRails/TravelAround: # new in 2.19
|
|
17
|
+
Enabled: true
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
inherit_from:
|
|
2
|
+
- .rubocop-defaults-minitest.yml
|
|
3
|
+
|
|
4
|
+
inherit_mode:
|
|
5
|
+
merge:
|
|
6
|
+
- Exclude
|
|
7
|
+
|
|
8
|
+
Minitest/MultipleAssertions:
|
|
9
|
+
Enabled: false # same as RSpec/MultipleExpectations; prefer focused tests without hard caps
|
|
10
|
+
Minitest/SkipWithoutReason:
|
|
11
|
+
Enabled: false # same as RSpec/PendingWithoutReason
|
data/.yoshiki.yml
CHANGED
data/Gemfile
CHANGED
|
@@ -11,6 +11,7 @@ gem 'rspec'
|
|
|
11
11
|
# For developing optional configs (not runtime deps of the gem)
|
|
12
12
|
gem 'rubocop-capybara', '3.0.0'
|
|
13
13
|
gem 'rubocop-factory_bot', '2.28.0'
|
|
14
|
+
gem 'rubocop-minitest', '0.40.0'
|
|
14
15
|
gem 'rubocop-rails', '2.36.0'
|
|
15
16
|
gem 'rubocop-rspec', '3.10.2'
|
|
16
17
|
gem 'rubocop-rspec_rails', '2.32.0'
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
yoshiki (11.0.0.pre.
|
|
4
|
+
yoshiki (11.0.0.pre.5)
|
|
5
5
|
rubocop (= 1.89.0)
|
|
6
6
|
rubocop-performance (= 1.26.1)
|
|
7
7
|
rubocop-rake (= 0.7.1)
|
|
@@ -94,6 +94,10 @@ GEM
|
|
|
94
94
|
rubocop-factory_bot (2.28.0)
|
|
95
95
|
lint_roller (~> 1.1)
|
|
96
96
|
rubocop (~> 1.72, >= 1.72.1)
|
|
97
|
+
rubocop-minitest (0.40.0)
|
|
98
|
+
lint_roller (~> 1.1)
|
|
99
|
+
rubocop (>= 1.75.0, < 2.0)
|
|
100
|
+
rubocop-ast (>= 1.38.0, < 2.0)
|
|
97
101
|
rubocop-performance (1.26.1)
|
|
98
102
|
lint_roller (~> 1.1)
|
|
99
103
|
rubocop (>= 1.75.0, < 2.0)
|
|
@@ -136,6 +140,7 @@ DEPENDENCIES
|
|
|
136
140
|
rspec
|
|
137
141
|
rubocop-capybara (= 3.0.0)
|
|
138
142
|
rubocop-factory_bot (= 2.28.0)
|
|
143
|
+
rubocop-minitest (= 0.40.0)
|
|
139
144
|
rubocop-rails (= 2.36.0)
|
|
140
145
|
rubocop-rspec (= 3.10.2)
|
|
141
146
|
rubocop-rspec_rails (= 2.32.0)
|
data/README.md
CHANGED
|
@@ -30,7 +30,7 @@ inherit_gem:
|
|
|
30
30
|
yoshiki: .yoshiki-ruby.yml
|
|
31
31
|
```
|
|
32
32
|
|
|
33
|
-
|
|
33
|
+
RSpec — add the plugin, then inherit:
|
|
34
34
|
|
|
35
35
|
```ruby
|
|
36
36
|
gem 'rubocop-rspec'
|
|
@@ -43,18 +43,48 @@ inherit_gem:
|
|
|
43
43
|
- .yoshiki-rspec.yml
|
|
44
44
|
```
|
|
45
45
|
|
|
46
|
-
|
|
46
|
+
Minitest — add the plugin, then inherit:
|
|
47
|
+
|
|
48
|
+
```ruby
|
|
49
|
+
gem 'rubocop-minitest'
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
```yaml
|
|
53
|
+
inherit_gem:
|
|
54
|
+
yoshiki:
|
|
55
|
+
- .yoshiki-ruby.yml
|
|
56
|
+
- .yoshiki-minitest.yml
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
Rails (minitest) — add the Rails RuboCop plugins (and optionally minitest), then inherit:
|
|
47
60
|
|
|
48
61
|
```ruby
|
|
49
62
|
gem 'rubocop-rails'
|
|
50
63
|
gem 'rubocop-capybara'
|
|
51
64
|
gem 'rubocop-factory_bot'
|
|
65
|
+
gem 'rubocop-minitest' # optional
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
```yaml
|
|
69
|
+
inherit_gem:
|
|
70
|
+
yoshiki:
|
|
71
|
+
- .yoshiki-rails.yml
|
|
72
|
+
- .yoshiki-minitest.yml # optional
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
Rails + RSpec — also add the RSpec Rails plugin and inherit its config:
|
|
76
|
+
|
|
77
|
+
```ruby
|
|
78
|
+
gem 'rubocop-rspec'
|
|
52
79
|
gem 'rubocop-rspec_rails'
|
|
53
80
|
```
|
|
54
81
|
|
|
55
82
|
```yaml
|
|
56
83
|
inherit_gem:
|
|
57
|
-
yoshiki:
|
|
84
|
+
yoshiki:
|
|
85
|
+
- .yoshiki-rails.yml
|
|
86
|
+
- .yoshiki-rspec.yml
|
|
87
|
+
- .yoshiki-rspec_rails.yml
|
|
58
88
|
```
|
|
59
89
|
|
|
60
90
|
Full stack (ruby + rails + rspec) — declare all of the plugins above, then:
|
data/lib/yoshiki/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: yoshiki
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 11.0.0.pre.
|
|
4
|
+
version: 11.0.0.pre.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- BM5k
|
|
@@ -62,12 +62,16 @@ files:
|
|
|
62
62
|
- ".gitignore"
|
|
63
63
|
- ".gitlab-ci.yml"
|
|
64
64
|
- ".rspec"
|
|
65
|
+
- ".rubocop-defaults-minitest.yml"
|
|
65
66
|
- ".rubocop-defaults-rails.yml"
|
|
66
67
|
- ".rubocop-defaults-rspec.yml"
|
|
68
|
+
- ".rubocop-defaults-rspec_rails.yml"
|
|
67
69
|
- ".rubocop-defaults.yml"
|
|
68
70
|
- ".rubocop.yml"
|
|
71
|
+
- ".yoshiki-minitest.yml"
|
|
69
72
|
- ".yoshiki-rails.yml"
|
|
70
73
|
- ".yoshiki-rspec.yml"
|
|
74
|
+
- ".yoshiki-rspec_rails.yml"
|
|
71
75
|
- ".yoshiki-ruby.yml"
|
|
72
76
|
- ".yoshiki.yml"
|
|
73
77
|
- Dockerfile
|