ezcater_rubocop 5.1.0 → 5.2.0

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: d802b49e1f9a3ff4cfe473c8b642b1b0d6fc48fb283fb7eb11da28896bc42091
4
+ data.tar.gz: 249b847953b3b3a5a118e46a7018b6683f588d73555bfdf5ed399e6022ccd2e0
5
5
  SHA512:
6
- metadata.gz: 374a5e16b853aabf25af23c4860c6a00f1b457682499fda3f84937d764d5398ab8ae3c34cbcb4c948da51fc7795fe6a7ab14d3686bfe03f8613ffc3663bebc5c
7
- data.tar.gz: 880dd4bea07e44db41452388715c763f5a608d3875ff767a3a2c689f69321a076004e71e211e6b60de5b90806a6886a8342336e422f35063ade3c4c76d40854e
6
+ metadata.gz: c9f105d31cceed61063a5a5f43ee52d14c122664c1f53a71fa73481222b06b3769010473c344e6884a4a065581d2c1fbc5ab1682c43308670c40e75da0c569ed
7
+ data.tar.gz: 66a67817b96392aecfaaa5d2a9172b48e83b173866c374a0f6c31bb062c23b4efaaba3efd4059dd1bc41a4636efb91d9bdcfb034a84805ab1f8191b13652cac1
data/CHANGELOG.md CHANGED
@@ -6,6 +6,28 @@ 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.0
10
+
11
+ - Add an explicit rule for `Style/HashSyntax`, setting `EnforcedShorthandSyntax: either`.
12
+
13
+ Ruby 3.1 introduces syntax where named arguments can be passed
14
+
15
+ ```ruby
16
+ name = "Michael"
17
+ method_with_named_args(name:)
18
+ ```
19
+
20
+ rather than
21
+
22
+ ```ruby
23
+ name = "Michael"
24
+ method_with_named_args(name: name)
25
+ ```
26
+
27
+ when the variable's name matches the named argument key.
28
+
29
+ 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.
30
+
9
31
  ## 5.1.0
10
32
  - 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
33
 
data/conf/rubocop.yml CHANGED
@@ -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.0"
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.0
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-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler