yoshiki 11.0.0.pre.6 → 11.0.0.pre.7

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: e28f0bc5ef02d8e44c59347c87be67b59351779a632d538fe39ff39e4f0aa4e5
4
- data.tar.gz: bbbf63aca7a12c84565df45fd98b7d15066dae3fe4157d073660059909d361c3
3
+ metadata.gz: d220afa1f162c7d97efcab1ceeaac3c137a6c0577c82457df40d06266b8a7fca
4
+ data.tar.gz: 0f5246cd97229c9c360333ef540e33858460396250cae3f058aec766fbd2f074
5
5
  SHA512:
6
- metadata.gz: 68309a820d02f32cc8cdf6831ceccc0d6892c04c8794facd89b473183556837d4a946a2222f69a32ce55724459106041642dd7274f7870e5e54a255e22241244
7
- data.tar.gz: 5e912eb072fc81f161227fdf8f7dc96ffb54aeb48da938fcf3ff94fb27cb45c4d857ad68bf4089a5697a3f3d2bf100e656f7036fe776e94486fd0173b0548ab4
6
+ metadata.gz: 697454ec8255d170136feeff721b6699d64f3bb2d8014aeb5968018a3f25aa7b1fb3e2bd45044bcde5dd8d096e61f24858cc1faa1e768e5fa6589afa42be334e
7
+ data.tar.gz: f455dcd95cc45f3b8f1468427082725b058203a228d8e6ed372e9edad888c49078e65003fc50295637c9ddaaf9080013f8ecfc26b3ce83569b6a850b0b96b6aa
@@ -0,0 +1,24 @@
1
+ plugins:
2
+ - rubocop-capybara
3
+
4
+ # https://docs.rubocop.org/rubocop-capybara/cops_capybara.html
5
+
6
+ Capybara/FindAllFirst: # new in 2.22
7
+ Enabled: true
8
+ Capybara/RedundantWithinFind: # new in 2.20
9
+ Enabled: true
10
+ Capybara/SpecificActions: # new in 2.14
11
+ Enabled: true
12
+
13
+ # https://docs.rubocop.org/rubocop-capybara/cops_capybara_rspec.html
14
+
15
+ Capybara/RSpec/HaveSelector: # new in 2.19
16
+ Enabled: true
17
+ Capybara/RSpec/MatchStyle: # new in 2.17
18
+ Enabled: true
19
+ Capybara/RSpec/NegationMatcher: # new in 2.14
20
+ Enabled: true
21
+ Capybara/RSpec/NegationMatcherAfterVisit: # new in 2.22
22
+ Enabled: true
23
+ Capybara/RSpec/SpecificMatcher: # new in 2.12
24
+ Enabled: true
@@ -1,6 +1,5 @@
1
1
  plugins:
2
2
  - rubocop-rails
3
- - rubocop-capybara
4
3
 
5
4
  AllCops:
6
5
  ActiveSupportExtensionsEnabled: true
@@ -10,30 +9,6 @@ AllCops:
10
9
  Rails:
11
10
  Enabled: true
12
11
 
13
- # https://docs.rubocop.org/rubocop-capybara/cops_capybara.html
14
-
15
- Capybara/FindAllFirst: # new in 2.22
16
- Enabled: true
17
- Capybara/RedundantWithinFind: # new in 2.20
18
- Enabled: true
19
- Capybara/SpecificActions: # new in 2.14
20
- Enabled: true
21
-
22
- # https://docs.rubocop.org/rubocop-capybara/cops_capybara_rspec.html
23
-
24
- Capybara/RSpec/HaveSelector: # new in 2.19
25
- Enabled: true
26
- Capybara/RSpec/MatchStyle: # new in 2.17
27
- Enabled: true
28
- Capybara/RSpec/NegationMatcher: # new in 2.14
29
- Enabled: true
30
- Capybara/RSpec/NegationMatcherAfterVisit: # new in 2.22
31
- Enabled: true
32
- Capybara/RSpec/SpecificMatcher: # new in 2.12
33
- Enabled: true
34
-
35
- # https://docs.rubocop.org/rubocop-rails/cops_rails.html
36
-
37
12
  Rails/ActionControllerFlashBeforeRender: # new in 2.16
38
13
  Enabled: true
39
14
  Rails/ActionControllerTestCase: # new in 2.14
@@ -0,0 +1,14 @@
1
+ inherit_from:
2
+ - .rubocop-defaults-capybara.yml
3
+
4
+ inherit_mode:
5
+ merge:
6
+ - Exclude
7
+
8
+ Capybara/SpecificFinders: # new in 2.13
9
+ Enabled: false # prefer find('#css-id')
10
+
11
+ Capybara/RSpec/PredicateMatcher: # new in 2.19
12
+ Enabled: true
13
+ EnforcedStyle: inflected
14
+ Strict: false # don't allow "strict" checks (methinks this option is poorly named)
@@ -1,4 +1,4 @@
1
- # Rails + RSpec stack: ruby (via rails) + rails + rspec + rspec_rails + factory_bot
1
+ # Rails + RSpec stack: ruby (via rails) + rails + rspec + rspec_rails + factory_bot + capybara
2
2
  plugins:
3
3
  - rubocop-rspec_rails
4
4
  - rubocop-factory_bot
@@ -6,6 +6,7 @@ plugins:
6
6
  inherit_from:
7
7
  - .yoshiki-rails.yml
8
8
  - .yoshiki-rspec.yml
9
+ - .yoshiki-capybara.yml
9
10
 
10
11
  inherit_mode:
11
12
  merge:
data/.yoshiki-rails.yml CHANGED
@@ -16,14 +16,6 @@ inherit_mode:
16
16
  merge:
17
17
  - Exclude
18
18
 
19
- Capybara/SpecificFinders: # new in 2.13
20
- Enabled: false # prefer find('#css-id')
21
-
22
- Capybara/RSpec/PredicateMatcher: # new in 2.19
23
- Enabled: true
24
- EnforcedStyle: inflected
25
- Strict: false # don't allow "strict" checks (methinks this option is poorly named)
26
-
27
19
  Metrics/BlockLength:
28
20
  Exclude:
29
21
  - config/application.rb
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- yoshiki (11.0.0.pre.6)
4
+ yoshiki (11.0.0.pre.7)
5
5
  rubocop (= 1.89.0)
6
6
  rubocop-performance (= 1.26.1)
7
7
  rubocop-rake (= 0.7.1)
data/README.md CHANGED
@@ -56,11 +56,24 @@ inherit_gem:
56
56
  - .yoshiki-minitest.yml
57
57
  ```
58
58
 
59
- Rails (minitest) includes ruby style; add the Rails plugins (and optionally minitest):
59
+ Capybara — add the plugin, then inherit:
60
60
 
61
61
  ```ruby
62
- gem 'rubocop-rails'
63
62
  gem 'rubocop-capybara'
63
+ ```
64
+
65
+ ```yaml
66
+ inherit_gem:
67
+ yoshiki:
68
+ - .yoshiki-ruby.yml
69
+ - .yoshiki-capybara.yml
70
+ ```
71
+
72
+ Rails — includes ruby style; add `rubocop-rails` (capybara and minitest optional):
73
+
74
+ ```ruby
75
+ gem 'rubocop-rails'
76
+ gem 'rubocop-capybara' # optional
64
77
  gem 'rubocop-minitest' # optional
65
78
  ```
66
79
 
@@ -68,10 +81,11 @@ gem 'rubocop-minitest' # optional
68
81
  inherit_gem:
69
82
  yoshiki:
70
83
  - .yoshiki-rails.yml # includes .yoshiki-ruby.yml
84
+ - .yoshiki-capybara.yml # optional
71
85
  - .yoshiki-minitest.yml # optional
72
86
  ```
73
87
 
74
- Rails + RSpec — add the Rails + RSpec plugins (includes factory_bot), then one-line inherit:
88
+ Rails + RSpec — add the Rails + RSpec plugins (includes factory_bot and capybara), then one-line inherit:
75
89
 
76
90
  ```ruby
77
91
  gem 'rubocop-rails'
@@ -83,7 +97,7 @@ gem 'rubocop-rspec_rails'
83
97
 
84
98
  ```yaml
85
99
  inherit_gem:
86
- yoshiki: .yoshiki-rails-rspec.yml # ruby + rails + rspec + rspec_rails + factory_bot
100
+ yoshiki: .yoshiki-rails-rspec.yml # ruby + rails + rspec + rspec_rails + factory_bot + capybara
87
101
  ```
88
102
 
89
103
  (`.yoshiki.yml` is an alias for the same stack.)
@@ -1,5 +1,5 @@
1
1
  module Yoshiki
2
2
 
3
- VERSION = '11.0.0-6'.freeze
3
+ VERSION = '11.0.0-7'.freeze
4
4
 
5
5
  end
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.6
4
+ version: 11.0.0.pre.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - BM5k
@@ -62,11 +62,13 @@ files:
62
62
  - ".gitignore"
63
63
  - ".gitlab-ci.yml"
64
64
  - ".rspec"
65
+ - ".rubocop-defaults-capybara.yml"
65
66
  - ".rubocop-defaults-minitest.yml"
66
67
  - ".rubocop-defaults-rails.yml"
67
68
  - ".rubocop-defaults-rspec.yml"
68
69
  - ".rubocop-defaults.yml"
69
70
  - ".rubocop.yml"
71
+ - ".yoshiki-capybara.yml"
70
72
  - ".yoshiki-minitest.yml"
71
73
  - ".yoshiki-rails-rspec.yml"
72
74
  - ".yoshiki-rails.yml"