ezcater_rubocop 9.0.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/.github/workflows/release.yml +23 -0
- data/CHANGELOG.md +12 -0
- data/Gemfile.lock +48 -41
- data/README.md +2 -1
- data/conf/rubocop.yml +7 -5
- data/config/default.yml +6 -0
- data/ezcater_rubocop.gemspec +7 -5
- data/lib/ezcater_rubocop/version.rb +1 -1
- data/lib/ezcater_rubocop.rb +1 -0
- 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
- data/lib/rubocop/cop/ezcater/rspec_no_resolve_class_field.rb +38 -0
- metadata +49 -46
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
|
@@ -0,0 +1,23 @@
|
|
1
|
+
name: Release Gem
|
2
|
+
on: workflow_dispatch
|
3
|
+
|
4
|
+
jobs:
|
5
|
+
push:
|
6
|
+
name: Push gem to RubyGems.org
|
7
|
+
runs-on: ubuntu-latest
|
8
|
+
|
9
|
+
permissions:
|
10
|
+
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
|
11
|
+
contents: write # IMPORTANT: this permission is required for `rake release` to push the release tag
|
12
|
+
|
13
|
+
steps:
|
14
|
+
# Set up
|
15
|
+
- uses: actions/checkout@v4
|
16
|
+
- name: Set up Ruby
|
17
|
+
uses: ruby/setup-ruby@v1
|
18
|
+
with:
|
19
|
+
bundler-cache: true
|
20
|
+
ruby-version: ruby
|
21
|
+
|
22
|
+
# Release
|
23
|
+
- uses: rubygems/release-gem@v1
|
data/CHANGELOG.md
CHANGED
@@ -6,6 +6,18 @@ 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
|
+
|
13
|
+
## 10.1.0 (September 23, 2025)
|
14
|
+
|
15
|
+
- Update deprecated syntax `max` to `exclude_limit` for the `MultipleExpectations` rule.
|
16
|
+
|
17
|
+
## 10.0.0 (August 20, 2025)
|
18
|
+
|
19
|
+
- Add `Ezcater/RspecNoResolveClassField` cop, which prevents using the deprecated GraphQL testing interface `resolve_class_field`.
|
20
|
+
|
9
21
|
## 9.0.0 (February 24, 2025)
|
10
22
|
|
11
23
|
- Add support for `plugin` architecture in `rubocop >= 1.72.0` and `rubocop-rails >= 2.28.0`
|
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,19 +117,20 @@ 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
|
126
|
+
x86_64-linux
|
120
127
|
|
121
128
|
DEPENDENCIES
|
122
129
|
bundler
|
123
130
|
ezcater_rubocop!
|
124
131
|
pry-byebug
|
125
132
|
rake (~> 13.0)
|
126
|
-
rspec (~> 3.
|
133
|
+
rspec (~> 3.13)
|
127
134
|
rspec_junit_formatter
|
128
135
|
simplecov
|
129
136
|
|
data/README.md
CHANGED
@@ -92,6 +92,7 @@ not add cops with `enabled: false` unless you want that cop to always be disable
|
|
92
92
|
* [RequireGqlErrorHelpers](https://github.com/ezcater/ezcater_rubocop/blob/main/lib/rubocop/cop/ezcater/require_gql_error_helpers.rb) - Use the helpers provided by `GQLErrors` instead of raising `GraphQL::ExecutionError` directly.
|
93
93
|
* [RspecDotNotSelfDot](https://github.com/ezcater/ezcater_rubocop/blob/main/lib/rubocop/cop/ezcater/rspec_dot_not_self_dot.rb) - Enforce ".<class method>" instead of "self.<class method>" and "::<class method>" for example group description.
|
94
94
|
* [RspecMatchOrderedArray](https://github.com/ezcater/ezcater_rubocop/blob/main/lib/rubocop/cop/ezcater/rspec_match_ordered_array.rb) - Enforce use of `match_ordered_array` matcher instead of `eq` matcher. This matcher comes from the [ezcater_matchers](https://github.com/ezcater/ezcater_matchers) gem.
|
95
|
+
* [RspecNoResolveClassField](https://github.com/ezcater/ezcater_rubocop/blob/main/lib/rubocop/cop/ezcater/rspec_no_resolve_class_field.rb) - Do not use deprecated GraphQL testing interface `resolve_class_field`.
|
95
96
|
* [RspecRequireBrowserMock](https://github.com/ezcater/ezcater_rubocop/blob/main/lib/rubocop/cop/ezcater/rspec_require_browser_mock.rb) - Enforce use of `mock_ezcater_app`, `mock_chrome_browser` & `mock_custom_browser` helpers instead of mocking `Browser` or `EzBrowser` directly.
|
96
97
|
* [RspecRequireFeatureFlagMock](https://github.com/ezcater/ezcater_rubocop/blob/main/lib/rubocop/cop/ezcater/rspec_require_feature_flag_mock.rb) - Enforce use of `mock_feature_flag` helper instead of mocking `FeatureFlag.is_active?` directly.
|
97
98
|
* [RspecRequireHttpStatusMatcher](https://github.com/ezcater/ezcater_rubocop/blob/main/lib/rubocop/cop/ezcater/rspec_require_http_status_matcher.rb) - Use the HTTP status code matcher, like `expect(response).to have_http_status :bad_request`, rather than `expect(response.code).to eq 400`
|
@@ -108,7 +109,7 @@ To install this gem onto your local machine, run `bundle exec rake install`.
|
|
108
109
|
|
109
110
|
### Releasing a New Version
|
110
111
|
|
111
|
-
To release a new version, update the version number in `version.rb`, merge your PR to `main`, and then run
|
112
|
+
To release a new version, update the version number in `version.rb`, merge your PR to `main`, and then manually run the "Release Gem" GitHub Action, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
112
113
|
|
113
114
|
## Contributing
|
114
115
|
|
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
|
@@ -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/config/default.yml
CHANGED
@@ -75,6 +75,12 @@ GraphQL/ExtractInputType:
|
|
75
75
|
Exclude:
|
76
76
|
- "**/input_objects/**/*.rb"
|
77
77
|
|
78
|
+
Ezcater/RspecNoResolveClassField:
|
79
|
+
Description: "Do not use `resolve_class_field` in spec files."
|
80
|
+
Enabled: true
|
81
|
+
Include:
|
82
|
+
- "**/*_spec.rb"
|
83
|
+
|
78
84
|
Ezcater/Migration/BigintForeignKey:
|
79
85
|
Description: "Use `bigint` instead of `integer` for all foreign keys."
|
80
86
|
Include:
|
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
|
data/lib/ezcater_rubocop.rb
CHANGED
@@ -31,5 +31,6 @@ require_relative "rubocop/cop/ezcater/rspec_require_browser_mock"
|
|
31
31
|
require_relative "rubocop/cop/ezcater/rspec_require_feature_flag_mock"
|
32
32
|
require_relative "rubocop/cop/ezcater/rspec_require_http_status_matcher"
|
33
33
|
require_relative "rubocop/cop/ezcater/rspec_dot_not_self_dot"
|
34
|
+
require_relative "rubocop/cop/ezcater/rspec_no_resolve_class_field"
|
34
35
|
require_relative "rubocop/cop/ezcater/style_dig"
|
35
36
|
require_relative "rubocop/cop/ezcater/migration/bigint_foreign_key"
|
@@ -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
|
@@ -0,0 +1,38 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module RuboCop
|
4
|
+
module Cop
|
5
|
+
module Ezcater
|
6
|
+
# Do not use `resolve_class_field`.
|
7
|
+
#
|
8
|
+
# @example
|
9
|
+
#
|
10
|
+
# # bad
|
11
|
+
# resolve_class_field(:user, :name)
|
12
|
+
# resolve_class_field(:user, [:name])
|
13
|
+
# obj.resolve_class_field(:user, :name)
|
14
|
+
#
|
15
|
+
# # good
|
16
|
+
# execute(EzrailsSchema, query, variables: { id: }, context: graphql_context)
|
17
|
+
#
|
18
|
+
# More information: https://engportal.ezcater.com/docs/default/component/dev-handbook/technology/graphql/backend_implementation/testing/#recommendation
|
19
|
+
#
|
20
|
+
class RspecNoResolveClassField < Base
|
21
|
+
MSG = "Do not use `resolve_class_field`. Use a query instead."
|
22
|
+
|
23
|
+
def_node_matcher :resolve_class_field_call?, <<~PATTERN
|
24
|
+
{
|
25
|
+
(send nil? :resolve_class_field ...)
|
26
|
+
(send _ :resolve_class_field ...)
|
27
|
+
}
|
28
|
+
PATTERN
|
29
|
+
|
30
|
+
def on_send(node)
|
31
|
+
return unless resolve_class_field_call?(node)
|
32
|
+
|
33
|
+
add_offense(node, message: MSG)
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
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
|
8
|
-
autorequire:
|
9
8
|
bindir: bin
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: bundler
|
@@ -58,14 +57,14 @@ dependencies:
|
|
58
57
|
requirements:
|
59
58
|
- - "~>"
|
60
59
|
- !ruby/object:Gem::Version
|
61
|
-
version: '3.
|
60
|
+
version: '3.13'
|
62
61
|
type: :development
|
63
62
|
prerelease: false
|
64
63
|
version_requirements: !ruby/object:Gem::Requirement
|
65
64
|
requirements:
|
66
65
|
- - "~>"
|
67
66
|
- !ruby/object:Gem::Version
|
68
|
-
version: '3.
|
67
|
+
version: '3.13'
|
69
68
|
- !ruby/object:Gem::Dependency
|
70
69
|
name: rspec_junit_formatter
|
71
70
|
requirement: !ruby/object:Gem::Requirement
|
@@ -112,82 +111,86 @@ dependencies:
|
|
112
111
|
name: rubocop
|
113
112
|
requirement: !ruby/object:Gem::Requirement
|
114
113
|
requirements:
|
115
|
-
- - "
|
114
|
+
- - "~>"
|
116
115
|
- !ruby/object:Gem::Version
|
117
|
-
version: 1.
|
118
|
-
|
116
|
+
version: '1.80'
|
117
|
+
type: :runtime
|
118
|
+
prerelease: false
|
119
|
+
version_requirements: !ruby/object:Gem::Requirement
|
120
|
+
requirements:
|
121
|
+
- - "~>"
|
119
122
|
- !ruby/object:Gem::Version
|
120
|
-
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'
|
121
131
|
type: :runtime
|
122
132
|
prerelease: false
|
123
133
|
version_requirements: !ruby/object:Gem::Requirement
|
124
134
|
requirements:
|
125
|
-
- - "
|
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
|
+
- - "~>"
|
126
143
|
- !ruby/object:Gem::Version
|
127
|
-
version:
|
128
|
-
|
144
|
+
version: '2.27'
|
145
|
+
type: :runtime
|
146
|
+
prerelease: false
|
147
|
+
version_requirements: !ruby/object:Gem::Requirement
|
148
|
+
requirements:
|
149
|
+
- - "~>"
|
129
150
|
- !ruby/object:Gem::Version
|
130
|
-
version: '2.
|
151
|
+
version: '2.27'
|
131
152
|
- !ruby/object:Gem::Dependency
|
132
153
|
name: rubocop-graphql
|
133
154
|
requirement: !ruby/object:Gem::Requirement
|
134
155
|
requirements:
|
135
|
-
- - "
|
136
|
-
- !ruby/object:Gem::Version
|
137
|
-
version: 0.14.0
|
138
|
-
- - "<"
|
156
|
+
- - "~>"
|
139
157
|
- !ruby/object:Gem::Version
|
140
|
-
version: '1.
|
158
|
+
version: '1.5'
|
141
159
|
type: :runtime
|
142
160
|
prerelease: false
|
143
161
|
version_requirements: !ruby/object:Gem::Requirement
|
144
162
|
requirements:
|
145
|
-
- - "
|
146
|
-
- !ruby/object:Gem::Version
|
147
|
-
version: 0.14.0
|
148
|
-
- - "<"
|
163
|
+
- - "~>"
|
149
164
|
- !ruby/object:Gem::Version
|
150
|
-
version: '1.
|
165
|
+
version: '1.5'
|
151
166
|
- !ruby/object:Gem::Dependency
|
152
167
|
name: rubocop-rails
|
153
168
|
requirement: !ruby/object:Gem::Requirement
|
154
169
|
requirements:
|
155
|
-
- - "
|
156
|
-
- !ruby/object:Gem::Version
|
157
|
-
version: 2.28.0
|
158
|
-
- - "<"
|
170
|
+
- - "~>"
|
159
171
|
- !ruby/object:Gem::Version
|
160
|
-
version: '
|
172
|
+
version: '2.33'
|
161
173
|
type: :runtime
|
162
174
|
prerelease: false
|
163
175
|
version_requirements: !ruby/object:Gem::Requirement
|
164
176
|
requirements:
|
165
|
-
- - "
|
166
|
-
- !ruby/object:Gem::Version
|
167
|
-
version: 2.28.0
|
168
|
-
- - "<"
|
177
|
+
- - "~>"
|
169
178
|
- !ruby/object:Gem::Version
|
170
|
-
version: '
|
179
|
+
version: '2.33'
|
171
180
|
- !ruby/object:Gem::Dependency
|
172
181
|
name: rubocop-rspec
|
173
182
|
requirement: !ruby/object:Gem::Requirement
|
174
183
|
requirements:
|
175
|
-
- - "
|
176
|
-
- !ruby/object:Gem::Version
|
177
|
-
version: 2.22.0
|
178
|
-
- - "<"
|
184
|
+
- - "~>"
|
179
185
|
- !ruby/object:Gem::Version
|
180
|
-
version:
|
186
|
+
version: '3.7'
|
181
187
|
type: :runtime
|
182
188
|
prerelease: false
|
183
189
|
version_requirements: !ruby/object:Gem::Requirement
|
184
190
|
requirements:
|
185
|
-
- - "
|
186
|
-
- !ruby/object:Gem::Version
|
187
|
-
version: 2.22.0
|
188
|
-
- - "<"
|
191
|
+
- - "~>"
|
189
192
|
- !ruby/object:Gem::Version
|
190
|
-
version:
|
193
|
+
version: '3.7'
|
191
194
|
description: ezCater custom cops and shared configuration
|
192
195
|
email:
|
193
196
|
- engineering@ezcater.com
|
@@ -200,6 +203,7 @@ files:
|
|
200
203
|
- ".github/PULL_REQUEST_TEMPLATE.md"
|
201
204
|
- ".github/workflows/codeql.yml"
|
202
205
|
- ".github/workflows/dependency-review.yml"
|
206
|
+
- ".github/workflows/release.yml"
|
203
207
|
- ".tool-versions"
|
204
208
|
- CHANGELOG.md
|
205
209
|
- Gemfile
|
@@ -227,6 +231,7 @@ files:
|
|
227
231
|
- lib/rubocop/cop/ezcater/require_gql_error_helpers.rb
|
228
232
|
- lib/rubocop/cop/ezcater/rspec_dot_not_self_dot.rb
|
229
233
|
- lib/rubocop/cop/ezcater/rspec_match_ordered_array.rb
|
234
|
+
- lib/rubocop/cop/ezcater/rspec_no_resolve_class_field.rb
|
230
235
|
- lib/rubocop/cop/ezcater/rspec_require_browser_mock.rb
|
231
236
|
- lib/rubocop/cop/ezcater/rspec_require_feature_flag_mock.rb
|
232
237
|
- lib/rubocop/cop/ezcater/rspec_require_http_status_matcher.rb
|
@@ -238,7 +243,6 @@ licenses:
|
|
238
243
|
- MIT
|
239
244
|
metadata:
|
240
245
|
allowed_push_host: https://rubygems.org
|
241
|
-
post_install_message:
|
242
246
|
rdoc_options: []
|
243
247
|
require_paths:
|
244
248
|
- lib
|
@@ -253,8 +257,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
253
257
|
- !ruby/object:Gem::Version
|
254
258
|
version: '0'
|
255
259
|
requirements: []
|
256
|
-
rubygems_version: 3.
|
257
|
-
signing_key:
|
260
|
+
rubygems_version: 3.6.9
|
258
261
|
specification_version: 4
|
259
262
|
summary: ezCater custom cops and shared configuration
|
260
263
|
test_files: []
|