chefstyle 1.1.1 → 1.1.2

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
2
  SHA256:
3
- metadata.gz: 15d98283fde06a4dc3bc19eda837b8409e6ada67584a4913c45690b33e12c298
4
- data.tar.gz: bd6b312173272d080f5de1488699d77ce97e2eddef6947f80ac068f4149db7ec
3
+ metadata.gz: 423500f6eb097e6b1d618a9af1f2709e2185c61bb2ad1f98d2c2796827d14f0e
4
+ data.tar.gz: 915a023dceef60d5e35e783cc6415751f1008ba55bb0e10a8b92620e2ac2f13d
5
5
  SHA512:
6
- metadata.gz: 78585ac2264d603553124462df2385fb6938d715f6b914445896929e6df20956d42ee9d050d058ccb2e3c0e973781c92187a3e4bc895ffa6f846846783389a7a
7
- data.tar.gz: 72dec6e3839c934634171b7426c6efb57e6fc0847b8eec4587f9fd07efc4cf0fb63b01a6319fc0552a017c2b1f5f828fb53b50240aab74fe2e0a5b44f1071939
6
+ metadata.gz: f5db0b4e3239e1243fd6947f0b99198a28984552cce90d4ba36c1a58b712390a65b5047966d67fdf5f8a7bf5052d20b6febde5b12851e2e8c30ccf947717c9c7
7
+ data.tar.gz: 16c99a1b36cb3d3347120e242cf2719b1276f25bfa52ff07ece52f561ba5a351f9eb5f8e635a313a4a63dda55b4847ef330f815217ba116c095242a7cadb3c09
@@ -211,6 +211,8 @@ Lint/BooleanSymbol:
211
211
  Enabled: false
212
212
  Lint/CircularArgumentReference:
213
213
  Enabled: false
214
+ Lint/ConstantResolution:
215
+ Enabled: false
214
216
  Lint/Debugger:
215
217
  Enabled: false
216
218
  Lint/DeprecatedClassMethods:
@@ -565,6 +567,8 @@ Style/MethodCallWithoutArgsParentheses:
565
567
  Enabled: false
566
568
  Style/MethodCallWithArgsParentheses:
567
569
  Enabled: false
570
+ Style/RedundantFetchBlock:
571
+ Enabled: false
568
572
  Style/MethodCalledOnDoEndBlock:
569
573
  Enabled: false
570
574
  Style/MethodDefParentheses:
@@ -1361,6 +1361,15 @@ Lint/CircularArgumentReference:
1361
1361
  Enabled: true
1362
1362
  VersionAdded: '0.33'
1363
1363
 
1364
+ Lint/ConstantResolution:
1365
+ Description: 'Check that constants are fully qualified with `::`.'
1366
+ Enabled: false
1367
+ VersionAdded: '0.86'
1368
+ # Restrict this cop to only looking at certain names
1369
+ Only: []
1370
+ # Restrict this cop from only looking at certain names
1371
+ Ignore: []
1372
+
1364
1373
  Lint/Debugger:
1365
1374
  Description: 'Check for debugger calls.'
1366
1375
  Enabled: true
@@ -1611,7 +1620,9 @@ Lint/RaiseException:
1611
1620
  Description: Checks for `raise` or `fail` statements which are raising `Exception` class.
1612
1621
  StyleGuide: '#raise-exception'
1613
1622
  Enabled: pending
1623
+ Safe: false
1614
1624
  VersionAdded: '0.81'
1625
+ VersionChanged: '0.86'
1615
1626
  AllowedImplicitNamespaces:
1616
1627
  - 'Gem'
1617
1628
 
@@ -1668,6 +1679,7 @@ Lint/RegexpAsCondition:
1668
1679
  The regexp literal matches `$_` implicitly.
1669
1680
  Enabled: true
1670
1681
  VersionAdded: '0.51'
1682
+ VersionChanged: '0.86'
1671
1683
 
1672
1684
  Lint/RequireParentheses:
1673
1685
  Description: >-
@@ -1925,7 +1937,7 @@ Metrics/CyclomaticComplexity:
1925
1937
  VersionAdded: '0.25'
1926
1938
  VersionChanged: '0.81'
1927
1939
  IgnoredMethods: []
1928
- Max: 6
1940
+ Max: 7
1929
1941
 
1930
1942
  Metrics/MethodLength:
1931
1943
  Description: 'Avoid methods longer than 10 lines of code.'
@@ -3239,6 +3251,7 @@ Style/MultilineTernaryOperator:
3239
3251
  StyleGuide: '#no-multiline-ternary'
3240
3252
  Enabled: true
3241
3253
  VersionAdded: '0.9'
3254
+ VersionChanged: '0.86'
3242
3255
 
3243
3256
  Style/MultilineWhenThen:
3244
3257
  Description: 'Do not use then for multi-line when statement.'
@@ -3343,6 +3356,7 @@ Style/NestedTernaryOperator:
3343
3356
  StyleGuide: '#no-nested-ternary'
3344
3357
  Enabled: true
3345
3358
  VersionAdded: '0.9'
3359
+ VersionChanged: '0.86'
3346
3360
 
3347
3361
  Style/Next:
3348
3362
  Description: 'Use `next` to skip iteration instead of a condition at the end.'
@@ -3596,6 +3610,19 @@ Style/RedundantException:
3596
3610
  VersionAdded: '0.14'
3597
3611
  VersionChanged: '0.29'
3598
3612
 
3613
+ Style/RedundantFetchBlock:
3614
+ Description: >-
3615
+ Use `fetch(key, value)` instead of `fetch(key) { value }`
3616
+ when value has Numeric, Rational, Complex, Symbol or String type, `false`, `true`, `nil` or is a constant.
3617
+ Reference: 'https://github.com/JuanitoFatas/fast-ruby#hashfetch-with-argument-vs-hashfetch--block-code'
3618
+ Enabled: 'pending'
3619
+ Safe: false
3620
+ # If enabled, this cop will autocorrect usages of
3621
+ # `fetch` being called with block returning a constant.
3622
+ # This can be dangerous since constants will not be defined at that moment.
3623
+ SafeForConstants: false
3624
+ VersionAdded: '0.86'
3625
+
3599
3626
  Style/RedundantFreeze:
3600
3627
  Description: "Checks usages of Object#freeze on immutable objects."
3601
3628
  Enabled: true
@@ -3875,6 +3902,7 @@ Style/StructInheritance:
3875
3902
  StyleGuide: '#no-extend-struct-new'
3876
3903
  Enabled: true
3877
3904
  VersionAdded: '0.29'
3905
+ VersionChanged: '0.86'
3878
3906
 
3879
3907
  Style/SymbolArray:
3880
3908
  Description: 'Use %i or %I for arrays of symbols.'
@@ -1,4 +1,4 @@
1
1
  module Chefstyle
2
- VERSION = "1.1.1".freeze
3
- RUBOCOP_VERSION = "0.85.1".freeze
2
+ VERSION = "1.1.2".freeze
3
+ RUBOCOP_VERSION = "0.86.0".freeze
4
4
  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.1.1
4
+ version: 1.1.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: 2020-06-08 00:00:00.000000000 Z
11
+ date: 2020-06-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - '='
60
60
  - !ruby/object:Gem::Version
61
- version: 0.85.1
61
+ version: 0.86.0
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - '='
67
67
  - !ruby/object:Gem::Version
68
- version: 0.85.1
68
+ version: 0.86.0
69
69
  description:
70
70
  email:
71
71
  - oss@chef.io