chefstyle 2.0.3 → 2.0.4

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: cfaf550a90523d1a1e85918799f651126cd16bb603107f9b7a9937dca76ef09e
4
- data.tar.gz: 24f53e6cbb1c4a98b7fe26a1df6daec6ecb7f91e42433743e0a2335abfadc186
3
+ metadata.gz: 24a70093af7e575252cbf8d6c0d791192b517d9d508b72697f43cb309471cfed
4
+ data.tar.gz: 39aff8e7080a8830d4f13f6d9d45e45d70ed7e179ca5c32b5a71c96b5e33de8c
5
5
  SHA512:
6
- metadata.gz: 61a9ebc0f97446ca07997fc1c1ffebbbbb05b31d2e9f59fcad330fcbe356c78f324f1c616fe79cc2020abdf6133df009c9b6da350bcabf2840d11c51a19c8a02
7
- data.tar.gz: 1a09934e30e114355c09e32314a9647fe065ace54acfb0ac38f9b680a15e7ef029585632eb3eaf9afb90982b655ff9a8d0c65b024f4e6c8932c853c79af08945
6
+ metadata.gz: fa0a29d52c983bc46dbcdb79ff2d1df62ef64104ff81fb7365df606dc38a7b86a721d53de2bb7c7a224417b9cfc5da5d511112530befe334a92927957a249786
7
+ data.tar.gz: 163fcb0121d79699af424ce281b30e2e89338b471770e7903514a3efde7b56fa7145c80807d42ab15331acf23c1fe738adf80a0998662c03750acae613ec9ff7
@@ -883,6 +883,8 @@ Style/SymbolProc:
883
883
  Enabled: false
884
884
  Style/TernaryParentheses:
885
885
  Enabled: false
886
+ Style/TopLevelMethodDefinition:
887
+ Enabled: false
886
888
  Style/TrailingBodyOnClass:
887
889
  Enabled: false
888
890
  Style/TrailingBodyOnMethodDefinition:
data/config/upstream.yml CHANGED
@@ -1612,7 +1612,7 @@ Lint/EmptyBlock:
1612
1612
  Description: 'This cop checks for blocks without a body.'
1613
1613
  Enabled: pending
1614
1614
  VersionAdded: '1.1'
1615
- VersionChanged: '1.3'
1615
+ VersionChanged: '1.15'
1616
1616
  AllowComments: true
1617
1617
  AllowEmptyLambdas: true
1618
1618
 
@@ -3480,6 +3480,7 @@ Style/HashAsLastArrayItem:
3480
3480
 
3481
3481
  Style/HashConversion:
3482
3482
  Description: 'Avoid Hash[] in favor of ary.to_h or literal hashes.'
3483
+ StyleGuide: '#avoid-hash-constructor'
3483
3484
  Enabled: pending
3484
3485
  VersionAdded: '1.10'
3485
3486
  VersionChanged: '1.11'
@@ -3998,6 +3999,7 @@ Style/NilLambda:
3998
3999
  Description: 'Prefer `-> {}` to `-> { nil }`.'
3999
4000
  Enabled: pending
4000
4001
  VersionAdded: '1.3'
4002
+ VersionChanged: '1.15'
4001
4003
 
4002
4004
  Style/NonNilCheck:
4003
4005
  Description: 'Checks for redundant nil checks.'
@@ -4651,6 +4653,12 @@ Style/TernaryParentheses:
4651
4653
  - require_parentheses_when_complex
4652
4654
  AllowSafeAssignment: true
4653
4655
 
4656
+ Style/TopLevelMethodDefinition:
4657
+ Description: 'This cop looks for top-level method definitions.'
4658
+ StyleGuide: '#top-level-methods'
4659
+ Enabled: false
4660
+ VersionAdded: '1.15'
4661
+
4654
4662
  Style/TrailingBodyOnClass:
4655
4663
  Description: 'Class body goes below class statement.'
4656
4664
  Enabled: true
@@ -4737,7 +4745,7 @@ Style/TrivialAccessors:
4737
4745
  StyleGuide: '#attr_family'
4738
4746
  Enabled: true
4739
4747
  VersionAdded: '0.9'
4740
- VersionChanged: '0.77'
4748
+ VersionChanged: '1.15'
4741
4749
  # When set to `false` the cop will suggest the use of accessor methods
4742
4750
  # in situations like:
4743
4751
  #
@@ -4756,7 +4764,7 @@ Style/TrivialAccessors:
4756
4764
  # on_exception :restart
4757
4765
  #
4758
4766
  # Commonly used in DSLs
4759
- AllowDSLWriters: false
4767
+ AllowDSLWriters: true
4760
4768
  IgnoreClassMethods: false
4761
4769
  AllowedMethods:
4762
4770
  - to_ary
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
  module Chefstyle
3
- VERSION = "2.0.3"
4
- RUBOCOP_VERSION = "1.14.0"
3
+ VERSION = "2.0.4"
4
+ RUBOCOP_VERSION = "1.15.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: 2.0.3
4
+ version: 2.0.4
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-05-05 00:00:00.000000000 Z
11
+ date: 2021-05-27 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.14.0
19
+ version: 1.15.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.14.0
26
+ version: 1.15.0
27
27
  description:
28
28
  email:
29
29
  - oss@chef.io