ezcater_rubocop 10.1.0 → 11.0.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 +4 -0
- data/Gemfile.lock +47 -41
- data/conf/rubocop.yml +8 -6
- data/ezcater_rubocop.gemspec +7 -5
- data/lib/ezcater_rubocop/version.rb +1 -1
- data/lib/rubocop/cop/ezcater/migration/bigint_foreign_key.rb +4 -4
- data/lib/rubocop/cop/ezcater/rspec_dot_not_self_dot.rb +1 -1
- metadata +45 -41
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d963fafacbe84e6226ef7e2aaeead40880fe600a634cbaa382d7e1910819867f
|
4
|
+
data.tar.gz: 587b8aec48165ac29886b424deb5363f2fdef84e357dc6232793bdbda42227bb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: be6f13204a46e8a977490b27d34d611b275a323400de01426b37b8605e7cef2542dc7a3d9ec936db0b39310ec4f7e3acde2467b6726b67950d21397cc1dd1e0c
|
7
|
+
data.tar.gz: 2c5097fff15d19754a457a025d60805d800e9a8bc7943f00af65ed5a1d540115133df6f98252fd1eed352f50224f5618746742863d83a72734addc30973855ac
|
data/CHANGELOG.md
CHANGED
@@ -6,6 +6,10 @@ This gem is moving onto its own [Semantic Versioning](https://semver.org/) schem
|
|
6
6
|
|
7
7
|
Prior to v1.0.0 this gem was versioned based on the `MAJOR`.`MINOR` version of RuboCop. The first release of the ezcater_rubocop gem was `v0.49.0`.
|
8
8
|
|
9
|
+
## 11.0.0 (September 23, 2025)
|
10
|
+
|
11
|
+
- Update all gem dependencies to the latest version
|
12
|
+
|
9
13
|
## 10.1.0 (September 23, 2025)
|
10
14
|
|
11
15
|
- Update deprecated syntax `max` to `exclude_limit` for the `MultipleExpectations` rule.
|
data/Gemfile.lock
CHANGED
@@ -1,17 +1,19 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
ezcater_rubocop (
|
4
|
+
ezcater_rubocop (11.0.0)
|
5
5
|
parser (>= 2.6)
|
6
|
-
rubocop (
|
7
|
-
rubocop-
|
8
|
-
rubocop-
|
9
|
-
rubocop-
|
6
|
+
rubocop (~> 1.80)
|
7
|
+
rubocop-capybara (~> 2.22)
|
8
|
+
rubocop-factory_bot (~> 2.27)
|
9
|
+
rubocop-graphql (~> 1.5)
|
10
|
+
rubocop-rails (~> 2.33)
|
11
|
+
rubocop-rspec (~> 3.7)
|
10
12
|
|
11
13
|
GEM
|
12
14
|
remote: https://rubygems.org/
|
13
15
|
specs:
|
14
|
-
activesupport (7.2.2.
|
16
|
+
activesupport (7.2.2.2)
|
15
17
|
base64
|
16
18
|
benchmark (>= 0.3)
|
17
19
|
bigdecimal
|
@@ -23,29 +25,30 @@ GEM
|
|
23
25
|
minitest (>= 5.1)
|
24
26
|
securerandom (>= 0.3)
|
25
27
|
tzinfo (~> 2.0, >= 2.0.5)
|
26
|
-
ast (2.4.
|
27
|
-
base64 (0.
|
28
|
-
benchmark (0.4.
|
29
|
-
bigdecimal (3.
|
28
|
+
ast (2.4.3)
|
29
|
+
base64 (0.3.0)
|
30
|
+
benchmark (0.4.1)
|
31
|
+
bigdecimal (3.2.3)
|
30
32
|
byebug (11.1.3)
|
31
33
|
coderay (1.1.3)
|
32
34
|
concurrent-ruby (1.3.5)
|
33
|
-
connection_pool (2.5.
|
35
|
+
connection_pool (2.5.4)
|
34
36
|
diff-lcs (1.6.0)
|
35
37
|
docile (1.4.1)
|
36
|
-
drb (2.2.
|
38
|
+
drb (2.2.3)
|
37
39
|
i18n (1.14.7)
|
38
40
|
concurrent-ruby (~> 1.0)
|
39
|
-
json (2.
|
40
|
-
language_server-protocol (3.17.0.
|
41
|
+
json (2.15.0)
|
42
|
+
language_server-protocol (3.17.0.5)
|
41
43
|
lint_roller (1.1.0)
|
42
|
-
logger (1.
|
44
|
+
logger (1.7.0)
|
43
45
|
method_source (1.1.0)
|
44
|
-
minitest (5.25.
|
45
|
-
parallel (1.
|
46
|
-
parser (3.3.
|
46
|
+
minitest (5.25.5)
|
47
|
+
parallel (1.27.0)
|
48
|
+
parser (3.3.9.0)
|
47
49
|
ast (~> 2.4.1)
|
48
50
|
racc
|
51
|
+
prism (1.5.1)
|
49
52
|
pry (0.14.2)
|
50
53
|
coderay (~> 1.1)
|
51
54
|
method_source (~> 1.0)
|
@@ -53,10 +56,10 @@ GEM
|
|
53
56
|
byebug (~> 11.0)
|
54
57
|
pry (>= 0.13, < 0.15)
|
55
58
|
racc (1.8.1)
|
56
|
-
rack (3.1
|
59
|
+
rack (3.2.1)
|
57
60
|
rainbow (3.1.1)
|
58
61
|
rake (13.2.1)
|
59
|
-
regexp_parser (2.
|
62
|
+
regexp_parser (2.11.3)
|
60
63
|
rspec (3.13.0)
|
61
64
|
rspec-core (~> 3.13.0)
|
62
65
|
rspec-expectations (~> 3.13.0)
|
@@ -72,7 +75,7 @@ GEM
|
|
72
75
|
rspec-support (3.13.2)
|
73
76
|
rspec_junit_formatter (0.6.0)
|
74
77
|
rspec-core (>= 2, < 4, != 2.12.0)
|
75
|
-
rubocop (1.
|
78
|
+
rubocop (1.80.2)
|
76
79
|
json (~> 2.3)
|
77
80
|
language_server-protocol (~> 3.17.0.2)
|
78
81
|
lint_roller (~> 1.1.0)
|
@@ -80,27 +83,30 @@ GEM
|
|
80
83
|
parser (>= 3.3.0.2)
|
81
84
|
rainbow (>= 2.2.2, < 4.0)
|
82
85
|
regexp_parser (>= 2.9.3, < 3.0)
|
83
|
-
rubocop-ast (>= 1.
|
86
|
+
rubocop-ast (>= 1.46.0, < 2.0)
|
84
87
|
ruby-progressbar (~> 1.7)
|
85
88
|
unicode-display_width (>= 2.4.0, < 4.0)
|
86
|
-
rubocop-ast (1.
|
87
|
-
parser (>= 3.3.
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
rubocop (~> 1.
|
92
|
-
rubocop-
|
93
|
-
|
94
|
-
|
89
|
+
rubocop-ast (1.47.1)
|
90
|
+
parser (>= 3.3.7.2)
|
91
|
+
prism (~> 1.4)
|
92
|
+
rubocop-capybara (2.22.1)
|
93
|
+
lint_roller (~> 1.1)
|
94
|
+
rubocop (~> 1.72, >= 1.72.1)
|
95
|
+
rubocop-factory_bot (2.27.1)
|
96
|
+
lint_roller (~> 1.1)
|
97
|
+
rubocop (~> 1.72, >= 1.72.1)
|
98
|
+
rubocop-graphql (1.5.6)
|
99
|
+
lint_roller (~> 1.1)
|
100
|
+
rubocop (>= 1.72.1, < 2)
|
101
|
+
rubocop-rails (2.33.3)
|
95
102
|
activesupport (>= 4.2.0)
|
96
103
|
lint_roller (~> 1.1)
|
97
104
|
rack (>= 1.1)
|
98
|
-
rubocop (>= 1.
|
99
|
-
rubocop-ast (>= 1.
|
100
|
-
rubocop-rspec (
|
101
|
-
|
102
|
-
rubocop
|
103
|
-
rubocop-factory_bot (~> 2.22)
|
105
|
+
rubocop (>= 1.75.0, < 2.0)
|
106
|
+
rubocop-ast (>= 1.44.0, < 2.0)
|
107
|
+
rubocop-rspec (3.7.0)
|
108
|
+
lint_roller (~> 1.1)
|
109
|
+
rubocop (~> 1.72, >= 1.72.1)
|
104
110
|
ruby-progressbar (1.13.0)
|
105
111
|
securerandom (0.4.1)
|
106
112
|
simplecov (0.22.0)
|
@@ -111,9 +117,9 @@ GEM
|
|
111
117
|
simplecov_json_formatter (0.1.4)
|
112
118
|
tzinfo (2.0.6)
|
113
119
|
concurrent-ruby (~> 1.0)
|
114
|
-
unicode-display_width (3.
|
115
|
-
unicode-emoji (~> 4.
|
116
|
-
unicode-emoji (4.0
|
120
|
+
unicode-display_width (3.2.0)
|
121
|
+
unicode-emoji (~> 4.1)
|
122
|
+
unicode-emoji (4.1.0)
|
117
123
|
|
118
124
|
PLATFORMS
|
119
125
|
arm64-darwin-24
|
@@ -124,7 +130,7 @@ DEPENDENCIES
|
|
124
130
|
ezcater_rubocop!
|
125
131
|
pry-byebug
|
126
132
|
rake (~> 13.0)
|
127
|
-
rspec (~> 3.
|
133
|
+
rspec (~> 3.13)
|
128
134
|
rspec_junit_formatter
|
129
135
|
simplecov
|
130
136
|
|
data/conf/rubocop.yml
CHANGED
@@ -1,7 +1,12 @@
|
|
1
|
-
require:
|
1
|
+
require:
|
2
|
+
- ezcater_rubocop
|
2
3
|
|
3
4
|
plugins:
|
5
|
+
- rubocop-capybara
|
6
|
+
- rubocop-factory_bot
|
7
|
+
- rubocop-graphql
|
4
8
|
- rubocop-rails
|
9
|
+
- rubocop-rspec
|
5
10
|
|
6
11
|
AllCops:
|
7
12
|
DisplayCopNames: true
|
@@ -85,7 +90,7 @@ RSpec/MessageExpectation:
|
|
85
90
|
EnforcedStyle: allow
|
86
91
|
|
87
92
|
RSpec/MultipleExpectations:
|
88
|
-
|
93
|
+
Max: 5
|
89
94
|
|
90
95
|
RSpec/NestedGroups:
|
91
96
|
Max: 5
|
@@ -245,7 +250,7 @@ Capybara/CurrentPathExpectation:
|
|
245
250
|
Capybara/VisibilityMatcher:
|
246
251
|
Enabled: true
|
247
252
|
|
248
|
-
RSpec/
|
253
|
+
RSpec/Dialect:
|
249
254
|
Enabled: true
|
250
255
|
|
251
256
|
RSpec/EmptyHook:
|
@@ -266,9 +271,6 @@ RSpec/MultipleMemoizedHelpers:
|
|
266
271
|
RSpec/NotToNot:
|
267
272
|
Enabled: true
|
268
273
|
|
269
|
-
RSpec/Rails/HttpStatus:
|
270
|
-
Enabled: true
|
271
|
-
|
272
274
|
RSpec/RepeatedIncludeExample:
|
273
275
|
Enabled: true
|
274
276
|
|
data/ezcater_rubocop.gemspec
CHANGED
@@ -47,13 +47,15 @@ Gem::Specification.new do |spec|
|
|
47
47
|
spec.add_development_dependency "bundler"
|
48
48
|
spec.add_development_dependency "pry-byebug"
|
49
49
|
spec.add_development_dependency "rake", "~> 13.0"
|
50
|
-
spec.add_development_dependency "rspec", "~> 3.
|
50
|
+
spec.add_development_dependency "rspec", "~> 3.13"
|
51
51
|
spec.add_development_dependency "rspec_junit_formatter"
|
52
52
|
spec.add_development_dependency "simplecov"
|
53
53
|
|
54
54
|
spec.add_runtime_dependency "parser", ">= 2.6"
|
55
|
-
spec.add_runtime_dependency "rubocop", "
|
56
|
-
spec.add_runtime_dependency "rubocop-
|
57
|
-
spec.add_runtime_dependency "rubocop-
|
58
|
-
spec.add_runtime_dependency "rubocop-
|
55
|
+
spec.add_runtime_dependency "rubocop", "~> 1.80"
|
56
|
+
spec.add_runtime_dependency "rubocop-capybara", "~> 2.22"
|
57
|
+
spec.add_runtime_dependency "rubocop-factory_bot", "~> 2.27"
|
58
|
+
spec.add_runtime_dependency "rubocop-graphql", "~> 1.5"
|
59
|
+
spec.add_runtime_dependency "rubocop-rails", "~> 2.33"
|
60
|
+
spec.add_runtime_dependency "rubocop-rspec", "~> 3.7"
|
59
61
|
end
|
@@ -192,8 +192,8 @@ module RuboCop
|
|
192
192
|
# There's no hash argument or it has only one pair
|
193
193
|
if node.arguments.size == 1 ||
|
194
194
|
(node.arguments.size == 2 &&
|
195
|
-
|
196
|
-
|
195
|
+
node.arguments[1].hash_type? &&
|
196
|
+
node.arguments[1].pairs.size == 1)
|
197
197
|
|
198
198
|
corrector.replace(
|
199
199
|
range_for_method_and_optional_limit(node),
|
@@ -223,8 +223,8 @@ module RuboCop
|
|
223
223
|
# There's no hash argument or it has only one pair (:limit)
|
224
224
|
if node.arguments.size == 3 ||
|
225
225
|
(node.arguments.size == 4 &&
|
226
|
-
|
227
|
-
|
226
|
+
node.arguments[3].hash_type? &&
|
227
|
+
node.arguments[3].pairs.size == 1)
|
228
228
|
|
229
229
|
corrector.replace(
|
230
230
|
range_for_method_and_optional_limit(node),
|
@@ -25,7 +25,7 @@ module RuboCop
|
|
25
25
|
|
26
26
|
class RspecDotNotSelfDot < Base
|
27
27
|
include RuboCop::RSpec::Language
|
28
|
-
extend RuboCop::
|
28
|
+
extend RuboCop::NodePattern::Macros
|
29
29
|
extend RuboCop::Cop::AutoCorrector
|
30
30
|
|
31
31
|
RSPEC_EXAMPLE_PREFIXES = ["", "x", "f"].freeze
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ezcater_rubocop
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 11.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ezCater, Inc
|
@@ -57,14 +57,14 @@ dependencies:
|
|
57
57
|
requirements:
|
58
58
|
- - "~>"
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version: '3.
|
60
|
+
version: '3.13'
|
61
61
|
type: :development
|
62
62
|
prerelease: false
|
63
63
|
version_requirements: !ruby/object:Gem::Requirement
|
64
64
|
requirements:
|
65
65
|
- - "~>"
|
66
66
|
- !ruby/object:Gem::Version
|
67
|
-
version: '3.
|
67
|
+
version: '3.13'
|
68
68
|
- !ruby/object:Gem::Dependency
|
69
69
|
name: rspec_junit_formatter
|
70
70
|
requirement: !ruby/object:Gem::Requirement
|
@@ -111,82 +111,86 @@ dependencies:
|
|
111
111
|
name: rubocop
|
112
112
|
requirement: !ruby/object:Gem::Requirement
|
113
113
|
requirements:
|
114
|
-
- - "
|
114
|
+
- - "~>"
|
115
115
|
- !ruby/object:Gem::Version
|
116
|
-
version: 1.
|
117
|
-
|
116
|
+
version: '1.80'
|
117
|
+
type: :runtime
|
118
|
+
prerelease: false
|
119
|
+
version_requirements: !ruby/object:Gem::Requirement
|
120
|
+
requirements:
|
121
|
+
- - "~>"
|
118
122
|
- !ruby/object:Gem::Version
|
119
|
-
version: '
|
123
|
+
version: '1.80'
|
124
|
+
- !ruby/object:Gem::Dependency
|
125
|
+
name: rubocop-capybara
|
126
|
+
requirement: !ruby/object:Gem::Requirement
|
127
|
+
requirements:
|
128
|
+
- - "~>"
|
129
|
+
- !ruby/object:Gem::Version
|
130
|
+
version: '2.22'
|
120
131
|
type: :runtime
|
121
132
|
prerelease: false
|
122
133
|
version_requirements: !ruby/object:Gem::Requirement
|
123
134
|
requirements:
|
124
|
-
- - "
|
135
|
+
- - "~>"
|
136
|
+
- !ruby/object:Gem::Version
|
137
|
+
version: '2.22'
|
138
|
+
- !ruby/object:Gem::Dependency
|
139
|
+
name: rubocop-factory_bot
|
140
|
+
requirement: !ruby/object:Gem::Requirement
|
141
|
+
requirements:
|
142
|
+
- - "~>"
|
125
143
|
- !ruby/object:Gem::Version
|
126
|
-
version:
|
127
|
-
|
144
|
+
version: '2.27'
|
145
|
+
type: :runtime
|
146
|
+
prerelease: false
|
147
|
+
version_requirements: !ruby/object:Gem::Requirement
|
148
|
+
requirements:
|
149
|
+
- - "~>"
|
128
150
|
- !ruby/object:Gem::Version
|
129
|
-
version: '2.
|
151
|
+
version: '2.27'
|
130
152
|
- !ruby/object:Gem::Dependency
|
131
153
|
name: rubocop-graphql
|
132
154
|
requirement: !ruby/object:Gem::Requirement
|
133
155
|
requirements:
|
134
|
-
- - "
|
135
|
-
- !ruby/object:Gem::Version
|
136
|
-
version: 0.14.0
|
137
|
-
- - "<"
|
156
|
+
- - "~>"
|
138
157
|
- !ruby/object:Gem::Version
|
139
|
-
version: '1.
|
158
|
+
version: '1.5'
|
140
159
|
type: :runtime
|
141
160
|
prerelease: false
|
142
161
|
version_requirements: !ruby/object:Gem::Requirement
|
143
162
|
requirements:
|
144
|
-
- - "
|
145
|
-
- !ruby/object:Gem::Version
|
146
|
-
version: 0.14.0
|
147
|
-
- - "<"
|
163
|
+
- - "~>"
|
148
164
|
- !ruby/object:Gem::Version
|
149
|
-
version: '1.
|
165
|
+
version: '1.5'
|
150
166
|
- !ruby/object:Gem::Dependency
|
151
167
|
name: rubocop-rails
|
152
168
|
requirement: !ruby/object:Gem::Requirement
|
153
169
|
requirements:
|
154
|
-
- - "
|
155
|
-
- !ruby/object:Gem::Version
|
156
|
-
version: 2.28.0
|
157
|
-
- - "<"
|
170
|
+
- - "~>"
|
158
171
|
- !ruby/object:Gem::Version
|
159
|
-
version: '
|
172
|
+
version: '2.33'
|
160
173
|
type: :runtime
|
161
174
|
prerelease: false
|
162
175
|
version_requirements: !ruby/object:Gem::Requirement
|
163
176
|
requirements:
|
164
|
-
- - "
|
165
|
-
- !ruby/object:Gem::Version
|
166
|
-
version: 2.28.0
|
167
|
-
- - "<"
|
177
|
+
- - "~>"
|
168
178
|
- !ruby/object:Gem::Version
|
169
|
-
version: '
|
179
|
+
version: '2.33'
|
170
180
|
- !ruby/object:Gem::Dependency
|
171
181
|
name: rubocop-rspec
|
172
182
|
requirement: !ruby/object:Gem::Requirement
|
173
183
|
requirements:
|
174
|
-
- - "
|
175
|
-
- !ruby/object:Gem::Version
|
176
|
-
version: 2.22.0
|
177
|
-
- - "<"
|
184
|
+
- - "~>"
|
178
185
|
- !ruby/object:Gem::Version
|
179
|
-
version:
|
186
|
+
version: '3.7'
|
180
187
|
type: :runtime
|
181
188
|
prerelease: false
|
182
189
|
version_requirements: !ruby/object:Gem::Requirement
|
183
190
|
requirements:
|
184
|
-
- - "
|
185
|
-
- !ruby/object:Gem::Version
|
186
|
-
version: 2.22.0
|
187
|
-
- - "<"
|
191
|
+
- - "~>"
|
188
192
|
- !ruby/object:Gem::Version
|
189
|
-
version:
|
193
|
+
version: '3.7'
|
190
194
|
description: ezCater custom cops and shared configuration
|
191
195
|
email:
|
192
196
|
- engineering@ezcater.com
|