chefstyle 1.7.1 → 1.7.2

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: 83ab4efcaac7ca6e5d7d3d2453685273ac015024fd39d0ef1db3a1f2a1e8d84f
4
- data.tar.gz: ba401d9837304e9327bd6c6749ffbdd34ba76790c967cb4dd6989fa2a354595c
3
+ metadata.gz: 9d423d3b6c1aef64ba7af6404723876508d480d05050d92368032aa704306d7d
4
+ data.tar.gz: b002fe1d27979f8101b7ed79d8c6a0d2f7c201c6dc1f09ee2f140ab533fce3d2
5
5
  SHA512:
6
- metadata.gz: a6ec0f6ea2b3ec795bc4762b7944945754690babae83889a49f281b6683282653ec4b2cc955a0868ef13c6ee57451242c67e1fd07587a7222436bb1220a0c7c1
7
- data.tar.gz: d7ec55522948386fd693fda2c3c3a5e81b69c07217c0e42216374237da42f1aeedf30c2f3b8f176ee0f92e6202da094ad3996083c67511aa84dffedbf811a9a4
6
+ metadata.gz: e597e3beddb923eb33a914d38e33eb1883a9b98c8cfe6b3fdae72b393d89b9cf050635f0ba3e2098fc1ea7f4ab92fd41cf29600da905fc529d7c397742b04799
7
+ data.tar.gz: aad4a9c602ddb9498a5dac5fec9aba55d33c976b713823e6246be096fbfcc81eb22d187825aa242bdab5669fbdf65668ce967f9a53e68920f281f1e516cf1012
@@ -897,6 +897,8 @@ Style/TrivialAccessors:
897
897
  Enabled: false
898
898
  Style/UnlessElse:
899
899
  Enabled: false
900
+ Style/UnlessLogicalOperators:
901
+ Enabled: false
900
902
  Style/UnpackFirst:
901
903
  Enabled: false
902
904
  Style/VariableInterpolation:
data/config/upstream.yml CHANGED
@@ -3446,6 +3446,8 @@ Style/HashConversion:
3446
3446
  Description: 'Avoid Hash[] in favor of ary.to_h or literal hashes.'
3447
3447
  Enabled: pending
3448
3448
  VersionAdded: '1.10'
3449
+ VersionChanged: '1.11'
3450
+ AllowSplatArgument: true
3449
3451
 
3450
3452
  Style/HashEachMethods:
3451
3453
  Description: 'Use Hash#each_key and Hash#each_value.'
@@ -4586,6 +4588,7 @@ Style/SymbolProc:
4586
4588
  Safe: false
4587
4589
  VersionAdded: '0.26'
4588
4590
  VersionChanged: '1.5'
4591
+ AllowMethodsWithArguments: false
4589
4592
  # A list of method names to be ignored by the check.
4590
4593
  # The names should be fairly unique, otherwise you'll end up ignoring lots of code.
4591
4594
  IgnoredMethods:
@@ -4738,6 +4741,16 @@ Style/UnlessElse:
4738
4741
  Enabled: true
4739
4742
  VersionAdded: '0.9'
4740
4743
 
4744
+ Style/UnlessLogicalOperators:
4745
+ Description: >-
4746
+ Checks for use of logical operators in an unless condition.
4747
+ Enabled: false
4748
+ VersionAdded: '1.11'
4749
+ EnforcedStyle: forbid_mixed_logical_operators
4750
+ SupportedStyles:
4751
+ - forbid_mixed_logical_operators
4752
+ - forbid_logical_operators
4753
+
4741
4754
  Style/UnpackFirst:
4742
4755
  Description: >-
4743
4756
  Checks for accessing the first element of `String#unpack`
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
  module Chefstyle
3
- VERSION = "1.7.1"
4
- RUBOCOP_VERSION = "1.10.0"
3
+ VERSION = "1.7.2"
4
+ RUBOCOP_VERSION = "1.11.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chefstyle
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.1
4
+ version: 1.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chef Software, Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-02-15 00:00:00.000000000 Z
11
+ date: 2021-03-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 1.10.0
19
+ version: 1.11.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 1.10.0
26
+ version: 1.11.0
27
27
  description:
28
28
  email:
29
29
  - oss@chef.io