ezcater_rubocop 0.49.5 → 0.49.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 042fd2cde603837cb71e9828f944affc13c9f899
4
- data.tar.gz: be970a40f1a3540c909a1ccd30af5dae8b05aee0
2
+ SHA256:
3
+ metadata.gz: e32a7e2e0abe14baf6fa3593746512ced2390928f8f4226cd1fe50ffe1c08514
4
+ data.tar.gz: c5604b7ea96840afbe48428d31e2b6690e903eca71ec1bfa6f7ce19302d7e32f
5
5
  SHA512:
6
- metadata.gz: 685336eb500893de2e1d0e099dd4283980f1d66edf5df2447e11dc983e57c2f07d561b049653a62334197067aaf3c6f1e5f5f25406ffe695a0ba09ee7f7af461
7
- data.tar.gz: 1b4f84114d5c91a1e4ed5ec63aaacab85142b528da6f636a25b141d6a4c8ffd9a1b65af0685943ecddc7297b567e5e604aa8845c5a221da53db17e85996adfb1
6
+ metadata.gz: 8c67093957e4064f049040d145edd3ffe9aa2df350a1146b7e5bdc1071a0bcf4f54c548fdcd93e32b8c516d3dd8e2a4f800c53a25005365190cacb07764ca0a3
7
+ data.tar.gz: 9789e2c32a477cb1ef87526af0aeed545d889f8404263f5a4cc5889c5b70102946b91d856316f40f052ba0b70cf58ecb395e93cdf25db16f93c402dc1bfa1538
@@ -1,5 +1,8 @@
1
1
  # ezcater_rubocop
2
2
 
3
+ ## v0.49.6
4
+ - Rename `Ezcater/RspecRequireGqlErrorHelpers` cop to `Ezcater/RequireGqlErrorHelpers`.
5
+
3
6
  ## v0.49.5
4
7
  - Add `Ezcater/RailsConfiguration` cop.
5
8
 
data/README.md CHANGED
@@ -48,10 +48,10 @@ is updated.
48
48
 
49
49
  ## Custom Cops
50
50
  1. [RailsConfiguration](https://github.com/ezcater/ezcater_rubocop/blob/master/lib/rubocop/cop/ezcater/rails_configuration.rb) - Enforce use of `Rails.configuration` instead of `Rails.application.config`.
51
+ 1. [RequireGqlErrorHelpers](https://github.com/ezcater/ezcater_rubocop/blob/master/lib/rubocop/cop/ezcater/require_gql_error_helpers.rb) - Use the helpers provided by `GQLErrors` instead of raising `GraphQL::ExecutionError` directly.
51
52
  1. [RspecDotNotSelfDot](https://github.com/ezcater/ezcater_rubocop/blob/master/lib/rubocop/cop/ezcater/rspec_dot_not_self_dot.rb) - Enforce ".<class method>" instead of "self.<class method>" for example group description.
52
53
  1. [RspecRequireBrowserMock](https://github.com/ezcater/ezcater_rubocop/blob/master/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.
53
54
  1. [RspecRequireFeatureFlagMock](https://github.com/ezcater/ezcater_rubocop/blob/master/lib/rubocop/cop/ezcater/rspec_require_feature_flag_mock.rb) - Enforce use of `mock_feature_flag` helper instead of mocking `FeatureFlag.is_active?` directly.
54
- 1. [RspecRequireGqlErrorHelpers](https://github.com/ezcater/ezcater_rubocop/blob/master/lib/rubocop/cop/ezcater/rspec_require_gql_error_helpers.rb) - Use the helpers provided by `GQLErrors` instead of raising `GraphQL::ExecutionError` directly.
55
55
  1. [StyleDig](https://github.com/ezcater/ezcater_rubocop/blob/master/lib/rubocop/cop/ezcater/style_dig.rb) - Recommend `dig` for deeply nested access.
56
56
 
57
57
  ## Development
@@ -20,7 +20,7 @@ Ezcater/RspecRequireFeatureFlagMock:
20
20
  Include:
21
21
  - '**/*_spec.rb'
22
22
 
23
- Ezcater/RspecRequireGqlErrorHelpers:
23
+ Ezcater/RequireGqlErrorHelpers:
24
24
  Description: 'Use the helpers provided by `GQLErrors` instead of raising `GraphQL::ExecutionError` directly.'
25
25
  Enabled: true
26
26
 
@@ -13,8 +13,8 @@ config = RuboCop::ConfigLoader.merge_with_default(config, path)
13
13
  RuboCop::ConfigLoader.instance_variable_set(:@default_configuration, config)
14
14
 
15
15
  require "rubocop/cop/ezcater/rails_configuration"
16
+ require "rubocop/cop/ezcater/require_gql_error_helpers"
16
17
  require "rubocop/cop/ezcater/rspec_require_browser_mock"
17
18
  require "rubocop/cop/ezcater/rspec_require_feature_flag_mock"
18
- require "rubocop/cop/ezcater/rspec_require_gql_error_helpers"
19
19
  require "rubocop/cop/ezcater/rspec_dot_not_self_dot"
20
20
  require "rubocop/cop/ezcater/style_dig"
@@ -1,3 +1,3 @@
1
1
  module EzcaterRubocop
2
- VERSION = "0.49.5".freeze
2
+ VERSION = "0.49.6".freeze
3
3
  end
@@ -17,7 +17,7 @@ module RuboCop
17
17
  # # bad
18
18
  # GraphQL::ExecutionError.new("An error occurred")
19
19
  # GraphQL::ExecutionError.new("You can't access this", options: { status_code: 401 })
20
- class RspecRequireGqlErrorHelpers < Cop
20
+ class RequireGqlErrorHelpers < Cop
21
21
  MSG = "Use the helpers provided by `GQLErrors` instead of raising `GraphQL::ExecutionError` directly.".freeze
22
22
 
23
23
  def_node_matcher :graphql_const?, <<~PATTERN
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ezcater_rubocop
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.49.5
4
+ version: 0.49.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - ezCater, Inc
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-01-16 00:00:00.000000000 Z
11
+ date: 2018-01-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -134,10 +134,10 @@ files:
134
134
  - lib/ezcater_rubocop.rb
135
135
  - lib/ezcater_rubocop/version.rb
136
136
  - lib/rubocop/cop/ezcater/rails_configuration.rb
137
+ - lib/rubocop/cop/ezcater/require_gql_error_helpers.rb
137
138
  - lib/rubocop/cop/ezcater/rspec_dot_not_self_dot.rb
138
139
  - lib/rubocop/cop/ezcater/rspec_require_browser_mock.rb
139
140
  - lib/rubocop/cop/ezcater/rspec_require_feature_flag_mock.rb
140
- - lib/rubocop/cop/ezcater/rspec_require_gql_error_helpers.rb
141
141
  - lib/rubocop/cop/ezcater/style_dig.rb
142
142
  - lib/rubocop/rspec/language/each_selector.rb
143
143
  homepage: https://github.com/ezcater/ezcater_rubocop
@@ -161,7 +161,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
161
161
  version: '0'
162
162
  requirements: []
163
163
  rubyforge_project:
164
- rubygems_version: 2.6.13
164
+ rubygems_version: 2.7.4
165
165
  signing_key:
166
166
  specification_version: 4
167
167
  summary: ezCater custom cops and shared configuration