yoshiki 10.2.0 → 11.0.0.pre.3

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: 8730edc27325695ab7fc6ff022e5602d606e29605b8d2557881cce952a8275d2
4
- data.tar.gz: 552be4b16ee6eab583ab3043a121742c8365b09f0e4149373fc0d496907a00b5
3
+ metadata.gz: d01732ca4c3c488735cbae8a348bb21d8140d64ee7dca01e347495c1b9c6cae6
4
+ data.tar.gz: 261f93c2055618d6ed55568e398a441ee1945e626798ffbf3d0dac2e6700aed0
5
5
  SHA512:
6
- metadata.gz: 7726d5b2f35c20555739bb2b4833406aa6c2368349d3598beba3e5e98bbc827d11bb26566ffec4e12d8216f2971b9a503fb151a669c7c61a9a6229c33fdd6934
7
- data.tar.gz: cf1e2a91d243cc0eb45766acb217e8446c5947e8887fb91bf546cf64a60b997e046f92c18cc10230729fc9bd726e68039588d6d70b36bfe67e5c0f2ca8857897
6
+ metadata.gz: ec414e0754df7e78589a92f28e6a6876a4efaa3edc92ad214cbaa7043f9066b49d54da9a41b831088ba4bd6b5a5690ed4fce6b732a19a517f93afaa5100c6a75
7
+ data.tar.gz: cb0f5dc7a6b8da813024339296f2e8db6be87c5bf826468e4a660fc28209108154eaba877ef1f88fd1d1a940c1cbd8da645b5c757e3e92e7d034ea76ca63326d
@@ -16,23 +16,23 @@ Rails:
16
16
 
17
17
  Capybara/FindAllFirst: # new in 2.22
18
18
  Enabled: true
19
- Capybara/MatchStyle: # new in 2.17
20
- Enabled: true
21
- Capybara/NegationMatcher: # new in 2.14
22
- Enabled: true
23
- Capybara/NegationMatcherAfterVisit: # new in 2.22
24
- Enabled: true
25
19
  Capybara/RedundantWithinFind: # new in 2.20
26
20
  Enabled: true
27
21
  Capybara/SpecificActions: # new in 2.14
28
22
  Enabled: true
29
- Capybara/SpecificMatcher: # new in 2.12
30
- Enabled: true
31
23
 
32
24
  # https://docs.rubocop.org/rubocop-capybara/cops_capybara_rspec.html
33
25
 
34
26
  Capybara/RSpec/HaveSelector: # new in 2.19
35
27
  Enabled: true
28
+ Capybara/RSpec/MatchStyle: # new in 2.17
29
+ Enabled: true
30
+ Capybara/RSpec/NegationMatcher: # new in 2.14
31
+ Enabled: true
32
+ Capybara/RSpec/NegationMatcherAfterVisit: # new in 2.22
33
+ Enabled: true
34
+ Capybara/RSpec/SpecificMatcher: # new in 2.12
35
+ Enabled: true
36
36
 
37
37
  # https://docs.rubocop.org/rubocop-factory_bot/cops_factory_bot.html
38
38
 
@@ -15,6 +15,8 @@ RSpec/ClassCheck: # new in 2.13
15
15
  Enabled: true
16
16
  RSpec/ContainExactly: # new in 2.19
17
17
  Enabled: true
18
+ RSpec/DiscardedMatcher: # new in 3.10
19
+ Enabled: true
18
20
  RSpec/DuplicatedMetadata: # new in 2.16
19
21
  Enabled: true
20
22
  RSpec/EmptyMetadata: # new in 2.24
@@ -33,6 +35,8 @@ RSpec/LeakyLocalVariable: # new in 3.8
33
35
  Enabled: true
34
36
  RSpec/MatchArray: # new in 2.19
35
37
  Enabled: true
38
+ RSpec/MatchWithSimpleRegex: # new in 3.10
39
+ Enabled: true
36
40
  RSpec/MetadataStyle: # new in 2.24
37
41
  Enabled: true
38
42
  RSpec/ReceiveMessages: # new in 2.23
data/.yoshiki-rails.yml CHANGED
@@ -11,8 +11,6 @@ AllCops:
11
11
  inherit_from:
12
12
  - .rubocop-defaults-rails.yml
13
13
 
14
- Capybara/ClickLinkOrButtonStyle: # new in 2.19
15
- Enabled: false # cop is already deprecated
16
14
  Capybara/SpecificFinders: # new in 2.13
17
15
  Enabled: false # prefer find('#css-id')
18
16
 
data/.yoshiki-rspec.yml CHANGED
@@ -7,7 +7,7 @@ inherit_mode:
7
7
 
8
8
  RSpec/ContextWording:
9
9
  Prefixes:
10
- - as a
10
+ - as
11
11
  - for
12
12
  - if
13
13
  - unless
data/Gemfile CHANGED
@@ -7,3 +7,10 @@ gem 'pry'
7
7
  gem 'psych'
8
8
  gem 'rake'
9
9
  gem 'rspec'
10
+
11
+ # For developing optional configs (not runtime deps of the gem)
12
+ gem 'rubocop-capybara', '3.0.0'
13
+ gem 'rubocop-factory_bot', '2.28.0'
14
+ gem 'rubocop-rails', '2.36.0'
15
+ gem 'rubocop-rspec', '3.10.2'
16
+ gem 'rubocop-rspec_rails', '2.32.0'
data/Gemfile.lock CHANGED
@@ -1,15 +1,10 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- yoshiki (10.2.0)
5
- rubocop (= 1.86.0)
6
- rubocop-capybara (= 2.22.1)
7
- rubocop-factory_bot (= 2.28.0)
4
+ yoshiki (11.0.0.pre.3)
5
+ rubocop (= 1.88.2)
8
6
  rubocop-performance (= 1.26.1)
9
- rubocop-rails (= 2.34.3)
10
7
  rubocop-rake (= 0.7.1)
11
- rubocop-rspec (= 3.9.0)
12
- rubocop-rspec_rails (= 2.32.0)
13
8
 
14
9
  GEM
15
10
  remote: https://rubygems.org/
@@ -29,25 +24,25 @@ GEM
29
24
  uri (>= 0.13.1)
30
25
  ast (2.4.3)
31
26
  base64 (0.3.0)
32
- bigdecimal (4.0.1)
27
+ bigdecimal (4.1.2)
33
28
  coderay (1.1.3)
34
- concurrent-ruby (1.3.6)
29
+ concurrent-ruby (1.3.7)
35
30
  connection_pool (3.0.2)
36
31
  date (3.5.1)
37
32
  diff-lcs (1.6.2)
38
33
  drb (2.2.3)
39
- i18n (1.14.8)
34
+ i18n (1.15.2)
40
35
  concurrent-ruby (~> 1.0)
41
36
  io-console (0.8.2)
42
- json (2.19.3)
43
- language_server-protocol (3.17.0.5)
37
+ json (2.21.0)
38
+ language_server-protocol (3.17.0.6)
44
39
  lint_roller (1.1.0)
45
40
  logger (1.7.0)
46
41
  method_source (1.1.0)
47
- minitest (6.0.2)
42
+ minitest (6.0.6)
48
43
  drb (~> 2.0)
49
44
  prism (~> 1.5)
50
- parallel (1.27.0)
45
+ parallel (2.1.0)
51
46
  parser (3.3.11.1)
52
47
  ast (~> 2.4.1)
53
48
  racc
@@ -56,14 +51,14 @@ GEM
56
51
  coderay (~> 1.1)
57
52
  method_source (~> 1.0)
58
53
  reline (>= 0.6.0)
59
- psych (5.3.1)
54
+ psych (5.4.0)
60
55
  date
61
56
  stringio
62
57
  racc (1.8.1)
63
- rack (3.2.5)
58
+ rack (3.2.6)
64
59
  rainbow (3.1.1)
65
- rake (13.3.1)
66
- regexp_parser (2.11.3)
60
+ rake (13.4.2)
61
+ regexp_parser (2.12.0)
67
62
  reline (0.6.3)
68
63
  io-console (~> 0.5)
69
64
  rspec (3.13.2)
@@ -75,27 +70,27 @@ GEM
75
70
  rspec-expectations (3.13.5)
76
71
  diff-lcs (>= 1.2.0, < 2.0)
77
72
  rspec-support (~> 3.13.0)
78
- rspec-mocks (3.13.7)
73
+ rspec-mocks (3.13.8)
79
74
  diff-lcs (>= 1.2.0, < 2.0)
80
75
  rspec-support (~> 3.13.0)
81
- rspec-support (3.13.6)
82
- rubocop (1.86.0)
76
+ rspec-support (3.13.7)
77
+ rubocop (1.88.2)
83
78
  json (~> 2.3)
84
79
  language_server-protocol (~> 3.17.0.2)
85
80
  lint_roller (~> 1.1.0)
86
- parallel (~> 1.10)
81
+ parallel (>= 1.10)
87
82
  parser (>= 3.3.0.2)
88
83
  rainbow (>= 2.2.2, < 4.0)
89
84
  regexp_parser (>= 2.9.3, < 3.0)
90
85
  rubocop-ast (>= 1.49.0, < 2.0)
91
86
  ruby-progressbar (~> 1.7)
92
87
  unicode-display_width (>= 2.4.0, < 4.0)
93
- rubocop-ast (1.49.1)
88
+ rubocop-ast (1.50.0)
94
89
  parser (>= 3.3.7.2)
95
90
  prism (~> 1.7)
96
- rubocop-capybara (2.22.1)
91
+ rubocop-capybara (3.0.0)
97
92
  lint_roller (~> 1.1)
98
- rubocop (~> 1.72, >= 1.72.1)
93
+ rubocop (~> 1.81)
99
94
  rubocop-factory_bot (2.28.0)
100
95
  lint_roller (~> 1.1)
101
96
  rubocop (~> 1.72, >= 1.72.1)
@@ -103,7 +98,7 @@ GEM
103
98
  lint_roller (~> 1.1)
104
99
  rubocop (>= 1.75.0, < 2.0)
105
100
  rubocop-ast (>= 1.47.1, < 2.0)
106
- rubocop-rails (2.34.3)
101
+ rubocop-rails (2.36.0)
107
102
  activesupport (>= 4.2.0)
108
103
  lint_roller (~> 1.1)
109
104
  rack (>= 1.1)
@@ -112,9 +107,10 @@ GEM
112
107
  rubocop-rake (0.7.1)
113
108
  lint_roller (~> 1.1)
114
109
  rubocop (>= 1.72.1)
115
- rubocop-rspec (3.9.0)
110
+ rubocop-rspec (3.10.2)
116
111
  lint_roller (~> 1.1)
117
- rubocop (~> 1.81)
112
+ regexp_parser (>= 2.0)
113
+ rubocop (~> 1.86, >= 1.86.2)
118
114
  rubocop-rspec_rails (2.32.0)
119
115
  lint_roller (~> 1.1)
120
116
  rubocop (~> 1.72, >= 1.72.1)
@@ -138,7 +134,12 @@ DEPENDENCIES
138
134
  psych
139
135
  rake
140
136
  rspec
137
+ rubocop-capybara (= 3.0.0)
138
+ rubocop-factory_bot (= 2.28.0)
139
+ rubocop-rails (= 2.36.0)
140
+ rubocop-rspec (= 3.10.2)
141
+ rubocop-rspec_rails (= 2.32.0)
141
142
  yoshiki!
142
143
 
143
144
  BUNDLED WITH
144
- 4.0.9
145
+ 4.0.9
data/README.md CHANGED
@@ -17,32 +17,53 @@ Make it so.
17
17
 
18
18
  ## Usage
19
19
 
20
- In your gemfile
21
-
22
- `gem 'yoshiki'`
20
+ In your Gemfile:
23
21
 
22
+ ```ruby
23
+ gem 'yoshiki'
24
+ ```
24
25
 
25
- In `.rubocop.yml`
26
+ Just ruby (the only config that needs no extra plugins):
26
27
 
27
- ```
28
+ ```yaml
28
29
  inherit_gem:
29
- yoshiki: .yoshiki.yml
30
+ yoshiki: .yoshiki-ruby.yml
30
31
  ```
31
32
 
32
- to include just ruby
33
+ Rspec add the plugin, then inherit:
33
34
 
35
+ ```ruby
36
+ gem 'rubocop-rspec'
34
37
  ```
38
+
39
+ ```yaml
35
40
  inherit_gem:
36
- yoshiki: .yoshiki-ruby.yml
41
+ yoshiki:
42
+ - .yoshiki-ruby.yml
43
+ - .yoshiki-rspec.yml
37
44
  ```
38
45
 
39
- or, to include just rails
46
+ Rails add the Rails RuboCop plugins, then inherit:
40
47
 
48
+ ```ruby
49
+ gem 'rubocop-rails'
50
+ gem 'rubocop-capybara'
51
+ gem 'rubocop-factory_bot'
52
+ gem 'rubocop-rspec_rails'
41
53
  ```
54
+
55
+ ```yaml
42
56
  inherit_gem:
43
57
  yoshiki: .yoshiki-rails.yml
44
58
  ```
45
59
 
60
+ Full stack (ruby + rails + rspec) — declare all of the plugins above, then:
61
+
62
+ ```yaml
63
+ inherit_gem:
64
+ yoshiki: .yoshiki.yml
65
+ ```
66
+
46
67
  ## Ruby compatibility
47
68
 
48
69
  - ruby 4.0+, use [~> 10.1][10.1]
@@ -1,11 +1,11 @@
1
1
  # Code here should not cause rubocop to nag
2
2
  class Examples
3
3
 
4
- # rubocop:disable Layout/CommentIndentation,Style/AccessModifierDeclarations
4
+ # rubocop:disable Style/AccessModifierDeclarations
5
5
  private def example_for_layout_def_end_alignment
6
6
  # this method is *not* empty
7
7
  end
8
- # rubocop:enable Layout/CommentIndentation, Style/AccessModifierDeclarations
8
+ # rubocop:enable Style/AccessModifierDeclarations
9
9
 
10
10
  def example_for_layout_else_alignment
11
11
  if example_for_layout_def_end_alignment
@@ -1,5 +1,5 @@
1
1
  module Yoshiki
2
2
 
3
- VERSION = '10.2.0'.freeze
3
+ VERSION = '11.0.0-3'.freeze
4
4
 
5
5
  end
data/yoshiki.gemspec CHANGED
@@ -20,12 +20,7 @@ Gem::Specification.new do |spec|
20
20
 
21
21
  spec.required_ruby_version = '>= 3.4.0'
22
22
 
23
- spec.add_dependency 'rubocop', '1.86.0'
24
- spec.add_dependency 'rubocop-capybara', '2.22.1'
25
- spec.add_dependency 'rubocop-factory_bot', '2.28.0'
23
+ spec.add_dependency 'rubocop', '1.88.2'
26
24
  spec.add_dependency 'rubocop-performance', '1.26.1'
27
- spec.add_dependency 'rubocop-rails', '2.34.3'
28
25
  spec.add_dependency 'rubocop-rake', '0.7.1'
29
- spec.add_dependency 'rubocop-rspec', '3.9.0'
30
- spec.add_dependency 'rubocop-rspec_rails', '2.32.0'
31
26
  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: 10.2.0
4
+ version: 11.0.0.pre.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - BM5k
@@ -15,42 +15,14 @@ dependencies:
15
15
  requirements:
16
16
  - - '='
17
17
  - !ruby/object:Gem::Version
18
- version: 1.86.0
18
+ version: 1.88.2
19
19
  type: :runtime
20
20
  prerelease: false
21
21
  version_requirements: !ruby/object:Gem::Requirement
22
22
  requirements:
23
23
  - - '='
24
24
  - !ruby/object:Gem::Version
25
- version: 1.86.0
26
- - !ruby/object:Gem::Dependency
27
- name: rubocop-capybara
28
- requirement: !ruby/object:Gem::Requirement
29
- requirements:
30
- - - '='
31
- - !ruby/object:Gem::Version
32
- version: 2.22.1
33
- type: :runtime
34
- prerelease: false
35
- version_requirements: !ruby/object:Gem::Requirement
36
- requirements:
37
- - - '='
38
- - !ruby/object:Gem::Version
39
- version: 2.22.1
40
- - !ruby/object:Gem::Dependency
41
- name: rubocop-factory_bot
42
- requirement: !ruby/object:Gem::Requirement
43
- requirements:
44
- - - '='
45
- - !ruby/object:Gem::Version
46
- version: 2.28.0
47
- type: :runtime
48
- prerelease: false
49
- version_requirements: !ruby/object:Gem::Requirement
50
- requirements:
51
- - - '='
52
- - !ruby/object:Gem::Version
53
- version: 2.28.0
25
+ version: 1.88.2
54
26
  - !ruby/object:Gem::Dependency
55
27
  name: rubocop-performance
56
28
  requirement: !ruby/object:Gem::Requirement
@@ -65,20 +37,6 @@ dependencies:
65
37
  - - '='
66
38
  - !ruby/object:Gem::Version
67
39
  version: 1.26.1
68
- - !ruby/object:Gem::Dependency
69
- name: rubocop-rails
70
- requirement: !ruby/object:Gem::Requirement
71
- requirements:
72
- - - '='
73
- - !ruby/object:Gem::Version
74
- version: 2.34.3
75
- type: :runtime
76
- prerelease: false
77
- version_requirements: !ruby/object:Gem::Requirement
78
- requirements:
79
- - - '='
80
- - !ruby/object:Gem::Version
81
- version: 2.34.3
82
40
  - !ruby/object:Gem::Dependency
83
41
  name: rubocop-rake
84
42
  requirement: !ruby/object:Gem::Requirement
@@ -93,34 +51,6 @@ dependencies:
93
51
  - - '='
94
52
  - !ruby/object:Gem::Version
95
53
  version: 0.7.1
96
- - !ruby/object:Gem::Dependency
97
- name: rubocop-rspec
98
- requirement: !ruby/object:Gem::Requirement
99
- requirements:
100
- - - '='
101
- - !ruby/object:Gem::Version
102
- version: 3.9.0
103
- type: :runtime
104
- prerelease: false
105
- version_requirements: !ruby/object:Gem::Requirement
106
- requirements:
107
- - - '='
108
- - !ruby/object:Gem::Version
109
- version: 3.9.0
110
- - !ruby/object:Gem::Dependency
111
- name: rubocop-rspec_rails
112
- requirement: !ruby/object:Gem::Requirement
113
- requirements:
114
- - - '='
115
- - !ruby/object:Gem::Version
116
- version: 2.32.0
117
- type: :runtime
118
- prerelease: false
119
- version_requirements: !ruby/object:Gem::Requirement
120
- requirements:
121
- - - '='
122
- - !ruby/object:Gem::Version
123
- version: 2.32.0
124
54
  description: Dev Fu! Style for rubocop.
125
55
  email:
126
56
  - me@bm5k.com