yoshiki 11.0.0.pre.5 → 11.0.0.pre.6
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-rails.yml +1 -21
- data/.yoshiki-rails-rspec.yml +51 -0
- data/.yoshiki-rails.yml +5 -4
- data/.yoshiki.yml +2 -13
- data/Gemfile.lock +1 -1
- data/README.md +8 -14
- data/lib/yoshiki/version.rb +1 -1
- metadata +2 -3
- data/.rubocop-defaults-rspec_rails.yml +0 -17
- data/.yoshiki-rspec_rails.yml +0 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e28f0bc5ef02d8e44c59347c87be67b59351779a632d538fe39ff39e4f0aa4e5
|
|
4
|
+
data.tar.gz: bbbf63aca7a12c84565df45fd98b7d15066dae3fe4157d073660059909d361c3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 68309a820d02f32cc8cdf6831ceccc0d6892c04c8794facd89b473183556837d4a946a2222f69a32ce55724459106041642dd7274f7870e5e54a255e22241244
|
|
7
|
+
data.tar.gz: 5e912eb072fc81f161227fdf8f7dc96ffb54aeb48da938fcf3ff94fb27cb45c4d857ad68bf4089a5697a3f3d2bf100e656f7036fe776e94486fd0173b0548ab4
|
data/.rubocop-defaults-rails.yml
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
plugins:
|
|
2
2
|
- rubocop-rails
|
|
3
3
|
- rubocop-capybara
|
|
4
|
-
- rubocop-factory_bot
|
|
5
4
|
|
|
6
5
|
AllCops:
|
|
7
6
|
ActiveSupportExtensionsEnabled: true
|
|
@@ -20,7 +19,7 @@ Capybara/RedundantWithinFind: # new in 2.20
|
|
|
20
19
|
Capybara/SpecificActions: # new in 2.14
|
|
21
20
|
Enabled: true
|
|
22
21
|
|
|
23
|
-
|
|
22
|
+
# https://docs.rubocop.org/rubocop-capybara/cops_capybara_rspec.html
|
|
24
23
|
|
|
25
24
|
Capybara/RSpec/HaveSelector: # new in 2.19
|
|
26
25
|
Enabled: true
|
|
@@ -33,25 +32,6 @@ Capybara/RSpec/NegationMatcherAfterVisit: # new in 2.22
|
|
|
33
32
|
Capybara/RSpec/SpecificMatcher: # new in 2.12
|
|
34
33
|
Enabled: true
|
|
35
34
|
|
|
36
|
-
# https://docs.rubocop.org/rubocop-factory_bot/cops_factory_bot.html
|
|
37
|
-
|
|
38
|
-
FactoryBot/AssociationStyle: # new in 2.23
|
|
39
|
-
Enabled: true
|
|
40
|
-
FactoryBot/ExcessiveCreateList: # new in 2.25
|
|
41
|
-
Enabled: true
|
|
42
|
-
FactoryBot/FactoryAssociationWithStrategy: # new in 2.23
|
|
43
|
-
Enabled: true
|
|
44
|
-
FactoryBot/FactoryClassName: # new in 1.37
|
|
45
|
-
Enabled: true
|
|
46
|
-
FactoryBot/IdSequence: # new in 2.19
|
|
47
|
-
Enabled: true
|
|
48
|
-
FactoryBot/FactoryNameStyle: # new in 2.16
|
|
49
|
-
Enabled: true
|
|
50
|
-
FactoryBot/RedundantFactoryOption: # new in 2.23
|
|
51
|
-
Enabled: true
|
|
52
|
-
FactoryBot/SyntaxMethods: # new in 2.7
|
|
53
|
-
Enabled: true
|
|
54
|
-
|
|
55
35
|
# https://docs.rubocop.org/rubocop-rails/cops_rails.html
|
|
56
36
|
|
|
57
37
|
Rails/ActionControllerFlashBeforeRender: # new in 2.16
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# Rails + RSpec stack: ruby (via rails) + rails + rspec + rspec_rails + factory_bot
|
|
2
|
+
plugins:
|
|
3
|
+
- rubocop-rspec_rails
|
|
4
|
+
- rubocop-factory_bot
|
|
5
|
+
|
|
6
|
+
inherit_from:
|
|
7
|
+
- .yoshiki-rails.yml
|
|
8
|
+
- .yoshiki-rspec.yml
|
|
9
|
+
|
|
10
|
+
inherit_mode:
|
|
11
|
+
merge:
|
|
12
|
+
- Exclude
|
|
13
|
+
|
|
14
|
+
# https://docs.rubocop.org/rubocop-factory_bot/cops_factory_bot.html
|
|
15
|
+
|
|
16
|
+
FactoryBot/AssociationStyle: # new in 2.23
|
|
17
|
+
Enabled: true
|
|
18
|
+
FactoryBot/ConsistentParenthesesStyle: # new in 2.14
|
|
19
|
+
Enabled: true
|
|
20
|
+
EnforcedStyle: omit_parentheses # default is `require_parentheses`
|
|
21
|
+
FactoryBot/ExcessiveCreateList: # new in 2.25
|
|
22
|
+
Enabled: true
|
|
23
|
+
FactoryBot/FactoryAssociationWithStrategy: # new in 2.23
|
|
24
|
+
Enabled: true
|
|
25
|
+
FactoryBot/FactoryClassName: # new in 1.37
|
|
26
|
+
Enabled: true
|
|
27
|
+
FactoryBot/IdSequence: # new in 2.19
|
|
28
|
+
Enabled: true
|
|
29
|
+
FactoryBot/FactoryNameStyle: # new in 2.16
|
|
30
|
+
Enabled: true
|
|
31
|
+
FactoryBot/RedundantFactoryOption: # new in 2.23
|
|
32
|
+
Enabled: true
|
|
33
|
+
FactoryBot/SyntaxMethods: # new in 2.7
|
|
34
|
+
Enabled: true
|
|
35
|
+
|
|
36
|
+
# https://docs.rubocop.org/rubocop-rspec_rails/cops_rspecrails.html
|
|
37
|
+
|
|
38
|
+
RSpecRails/AvoidSetupHook: # new in 2.4
|
|
39
|
+
Enabled: true
|
|
40
|
+
RSpecRails/HaveHttpStatus: # new in 2.12
|
|
41
|
+
Enabled: true
|
|
42
|
+
RSpecRails/HttpStatusNameConsistency: # new in 2.32
|
|
43
|
+
Enabled: true
|
|
44
|
+
RSpecRails/InferredSpecType: # new in 2.14
|
|
45
|
+
Enabled: true
|
|
46
|
+
RSpecRails/MinitestAssertions: # new in 2.17
|
|
47
|
+
Enabled: true
|
|
48
|
+
RSpecRails/NegationBeValid: # new in 2.23
|
|
49
|
+
Enabled: true
|
|
50
|
+
RSpecRails/TravelAround: # new in 2.19
|
|
51
|
+
Enabled: true
|
data/.yoshiki-rails.yml
CHANGED
|
@@ -9,8 +9,13 @@ AllCops:
|
|
|
9
9
|
- vendor/**/*
|
|
10
10
|
|
|
11
11
|
inherit_from:
|
|
12
|
+
- .yoshiki-ruby.yml
|
|
12
13
|
- .rubocop-defaults-rails.yml
|
|
13
14
|
|
|
15
|
+
inherit_mode:
|
|
16
|
+
merge:
|
|
17
|
+
- Exclude
|
|
18
|
+
|
|
14
19
|
Capybara/SpecificFinders: # new in 2.13
|
|
15
20
|
Enabled: false # prefer find('#css-id')
|
|
16
21
|
|
|
@@ -19,10 +24,6 @@ Capybara/RSpec/PredicateMatcher: # new in 2.19
|
|
|
19
24
|
EnforcedStyle: inflected
|
|
20
25
|
Strict: false # don't allow "strict" checks (methinks this option is poorly named)
|
|
21
26
|
|
|
22
|
-
FactoryBot/ConsistentParenthesesStyle: # new in 2.14
|
|
23
|
-
Enabled: true
|
|
24
|
-
EnforcedStyle: omit_parentheses # default is `require_parentheses`
|
|
25
|
-
|
|
26
27
|
Metrics/BlockLength:
|
|
27
28
|
Exclude:
|
|
28
29
|
- config/application.rb
|
data/.yoshiki.yml
CHANGED
|
@@ -1,14 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
DisplayCopNames: true
|
|
3
|
-
DisplayStyleGuide: true
|
|
4
|
-
ExtraDetails: true
|
|
5
|
-
|
|
1
|
+
# Alias for the full Rails + RSpec stack
|
|
6
2
|
inherit_from:
|
|
7
|
-
- .yoshiki-
|
|
8
|
-
- .yoshiki-rails.yml
|
|
9
|
-
- .yoshiki-rspec.yml
|
|
10
|
-
- .yoshiki-rspec_rails.yml
|
|
11
|
-
|
|
12
|
-
inherit_mode:
|
|
13
|
-
merge:
|
|
14
|
-
- Exclude
|
|
3
|
+
- .yoshiki-rails-rspec.yml
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -56,43 +56,37 @@ inherit_gem:
|
|
|
56
56
|
- .yoshiki-minitest.yml
|
|
57
57
|
```
|
|
58
58
|
|
|
59
|
-
Rails (minitest) — add the Rails
|
|
59
|
+
Rails (minitest) — includes ruby style; add the Rails plugins (and optionally minitest):
|
|
60
60
|
|
|
61
61
|
```ruby
|
|
62
62
|
gem 'rubocop-rails'
|
|
63
63
|
gem 'rubocop-capybara'
|
|
64
|
-
gem 'rubocop-factory_bot'
|
|
65
64
|
gem 'rubocop-minitest' # optional
|
|
66
65
|
```
|
|
67
66
|
|
|
68
67
|
```yaml
|
|
69
68
|
inherit_gem:
|
|
70
69
|
yoshiki:
|
|
71
|
-
- .yoshiki-rails.yml
|
|
70
|
+
- .yoshiki-rails.yml # includes .yoshiki-ruby.yml
|
|
72
71
|
- .yoshiki-minitest.yml # optional
|
|
73
72
|
```
|
|
74
73
|
|
|
75
|
-
Rails + RSpec —
|
|
74
|
+
Rails + RSpec — add the Rails + RSpec plugins (includes factory_bot), then one-line inherit:
|
|
76
75
|
|
|
77
76
|
```ruby
|
|
77
|
+
gem 'rubocop-rails'
|
|
78
|
+
gem 'rubocop-capybara'
|
|
79
|
+
gem 'rubocop-factory_bot'
|
|
78
80
|
gem 'rubocop-rspec'
|
|
79
81
|
gem 'rubocop-rspec_rails'
|
|
80
82
|
```
|
|
81
83
|
|
|
82
84
|
```yaml
|
|
83
85
|
inherit_gem:
|
|
84
|
-
yoshiki:
|
|
85
|
-
- .yoshiki-rails.yml
|
|
86
|
-
- .yoshiki-rspec.yml
|
|
87
|
-
- .yoshiki-rspec_rails.yml
|
|
86
|
+
yoshiki: .yoshiki-rails-rspec.yml # ruby + rails + rspec + rspec_rails + factory_bot
|
|
88
87
|
```
|
|
89
88
|
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
```yaml
|
|
93
|
-
inherit_gem:
|
|
94
|
-
yoshiki: .yoshiki.yml
|
|
95
|
-
```
|
|
89
|
+
(`.yoshiki.yml` is an alias for the same stack.)
|
|
96
90
|
|
|
97
91
|
## Ruby compatibility
|
|
98
92
|
|
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.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- BM5k
|
|
@@ -65,13 +65,12 @@ files:
|
|
|
65
65
|
- ".rubocop-defaults-minitest.yml"
|
|
66
66
|
- ".rubocop-defaults-rails.yml"
|
|
67
67
|
- ".rubocop-defaults-rspec.yml"
|
|
68
|
-
- ".rubocop-defaults-rspec_rails.yml"
|
|
69
68
|
- ".rubocop-defaults.yml"
|
|
70
69
|
- ".rubocop.yml"
|
|
71
70
|
- ".yoshiki-minitest.yml"
|
|
71
|
+
- ".yoshiki-rails-rspec.yml"
|
|
72
72
|
- ".yoshiki-rails.yml"
|
|
73
73
|
- ".yoshiki-rspec.yml"
|
|
74
|
-
- ".yoshiki-rspec_rails.yml"
|
|
75
74
|
- ".yoshiki-ruby.yml"
|
|
76
75
|
- ".yoshiki.yml"
|
|
77
76
|
- Dockerfile
|
|
@@ -1,17 +0,0 @@
|
|
|
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
|
data/.yoshiki-rspec_rails.yml
DELETED