ezcater_rubocop 5.1.0 → 5.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3dbb408ffa690e48915809b4f55644601682034469f8b59d0f73624b2a1a225f
4
- data.tar.gz: 75aa569d52eb164cc9ded5d5c1c776bb658dca665fb6c5c013ca9b0607d71db2
3
+ metadata.gz: 30c8d52abd3c39c8b776dbaff56aa94f2f010cf6866579b21a00084f22a42c1f
4
+ data.tar.gz: dc12424a0dd777560c4657ae87539264ec40f6553b3b6aa6aa963051fbc919d2
5
5
  SHA512:
6
- metadata.gz: 374a5e16b853aabf25af23c4860c6a00f1b457682499fda3f84937d764d5398ab8ae3c34cbcb4c948da51fc7795fe6a7ab14d3686bfe03f8613ffc3663bebc5c
7
- data.tar.gz: 880dd4bea07e44db41452388715c763f5a608d3875ff767a3a2c689f69321a076004e71e211e6b60de5b90806a6886a8342336e422f35063ade3c4c76d40854e
6
+ metadata.gz: 54bb2d3b45ff6bd48f4ab289bb885e3e1c2635cb4b4bfc44d74086d3b46a39db1bb8c1f3c83f53901931f4a9a015ebe3beb780019f078dd5713a64ba41e11aa7
7
+ data.tar.gz: cbeb087b43166a7f874603862ad0f909e930ee051c89a3f4862dbe18c0a62e2b6bf58d9657155d8dfd5b569bf1d56b6b83804181394fa8e88d0da19ba9d2f68b
data/CHANGELOG.md CHANGED
@@ -6,6 +6,31 @@ 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
+ ## 5.2.1
10
+ - Fix the has the wrong namespace for `RSpec/Capybara/CurrentPathExpectation` and `RSpec/Capybara/VisibilityMatcher` cops, since [they've been extracted](https://github.com/rubocop/rubocop-rspec/blob/master/CHANGELOG.md#2180-2023-01-16) into a separate repo [rubocop-capybara](https://github.com/rubocop/rubocop-capybara).
11
+
12
+ ## 5.2.0
13
+
14
+ - Add an explicit rule for `Style/HashSyntax`, setting `EnforcedShorthandSyntax: either`.
15
+
16
+ Ruby 3.1 introduces syntax where named arguments can be passed
17
+
18
+ ```ruby
19
+ name = "Michael"
20
+ method_with_named_args(name:)
21
+ ```
22
+
23
+ rather than
24
+
25
+ ```ruby
26
+ name = "Michael"
27
+ method_with_named_args(name: name)
28
+ ```
29
+
30
+ when the variable's name matches the named argument key.
31
+
32
+ For now, we have decided to allow either syntax while we upgrade our applications to Ruby 3.1. This is auto-correctable if and when we decide to enforce the new syntax.
33
+
9
34
  ## 5.1.0
10
35
  - Change paths to exclude for various cops to be agnostic of directory structure prior to the matching string. This is to allow apps to have greater flexibility in where files live, but still have them excluded from certain cops. The need for this arose when implementing Stimpack, which moves specs and other files under app/packs/[pack_name].
11
36
 
data/conf/rubocop.yml CHANGED
@@ -233,13 +233,13 @@ Rails/Pick:
233
233
  Rails/RedundantForeignKey:
234
234
  Enabled: true
235
235
 
236
- RSpec/Capybara/CurrentPathExpectation:
236
+ Capybara/CurrentPathExpectation:
237
237
  Enabled: true
238
238
 
239
- RSpec/Capybara/FeatureMethods:
239
+ Capybara/VisibilityMatcher:
240
240
  Enabled: true
241
241
 
242
- RSpec/Capybara/VisibilityMatcher:
242
+ RSpec/Capybara/FeatureMethods:
243
243
  Enabled: true
244
244
 
245
245
  RSpec/EmptyHook:
@@ -340,3 +340,6 @@ Style/HashTransformKeys:
340
340
 
341
341
  Style/HashTransformValues:
342
342
  Enabled: true
343
+
344
+ Style/HashSyntax:
345
+ EnforcedShorthandSyntax: either
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EzcaterRubocop
4
- VERSION = "5.1.0"
4
+ VERSION = "5.2.1"
5
5
  end
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: 5.1.0
4
+ version: 5.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - ezCater, Inc
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-11-17 00:00:00.000000000 Z
11
+ date: 2023-02-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler