cookstyle 5.10.11 → 5.10.13

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: f5b67cdd58b4a1b059bc220b84e9b61fc242690234cae85cdc06798c96926d39
4
- data.tar.gz: c8c1f767761dffcdf81111e4886b566458bb1337cea63826addccc78341359c2
3
+ metadata.gz: d7a4dfc3bad7b5f35e0665fc7c9f0d255c74729faa3de74fb126962f4f41b65f
4
+ data.tar.gz: 285f0eff32d8f1c528328f266136bc4b5899d35d567b0ee185440c8d0438e362
5
5
  SHA512:
6
- metadata.gz: 396a689a645d364c225cdba6ec31380b77450d0336a1b3f9d4c3b146220a9ba0a723009892fba86ef82e02e3b88b024555a983ab7cd04df8ab5b5baaca388acc
7
- data.tar.gz: bd65a338641f061e1e6bfaf935096e2b4dc4fec7789ade64421cf615ddf668b1f694e561f11105ddcf066bb8bb975a4b80728f10257425c146f7f7ac8e120570
6
+ metadata.gz: fbebffebb05c03de047144b6f38dd5d35724b80c240347f8b939ce092cbed4c91d2cca3cf6c9104846852886d84e26067afe8ae6778698b1a745694ee7282dca
7
+ data.tar.gz: dac2940dba58d62d900e01d071b068f455455e08278766f425c329c51508d145f1916df38b9e90fa3b9a7c7590a2618ad463eae627ef63e96fd869413ef006dc
@@ -241,7 +241,7 @@ ChefCorrectness/NotifiesActionNotSymbol:
241
241
  Description: When notifying an action within a resource the action should always be a symbol. In Chef Infra Client releases before 14.0 this may result in double notification.
242
242
  Enabled: true
243
243
  VersionAdded: '5.10.0'
244
- Include:
244
+ Exclude:
245
245
  - '**/metadata.rb'
246
246
 
247
247
  ChefCorrectness/IncorrectLibraryInjection:
@@ -249,7 +249,7 @@ ChefCorrectness/IncorrectLibraryInjection:
249
249
  Enabled: true
250
250
  VersionAdded: '5.10.0'
251
251
  Include:
252
- - '**/metadata.rb'
252
+ - '**/libraries/*.rb'
253
253
 
254
254
  ###############################
255
255
  # ChefDeprecations: Resolving Deprecations that block upgrading Chef Infra Client
@@ -1,4 +1,4 @@
1
1
  module Cookstyle
2
- VERSION = "5.10.11".freeze # rubocop: disable Style/StringLiterals
2
+ VERSION = "5.10.13".freeze # rubocop: disable Style/StringLiterals
3
3
  RUBOCOP_VERSION = '0.72.0'.freeze
4
4
  end
@@ -18,13 +18,14 @@ module RuboCop
18
18
  module Cop
19
19
  module Chef
20
20
  module ChefDeprecations
21
- # Cookbooks should not depend on the deprecated Poise framework. They should instead
22
- # be refactored as standard custom resources.
21
+ # Cookbooks should not depend on the deprecated Poise framework cookbooks. They should instead be refactored to use standard Chef Infra custom resources.
23
22
  #
24
23
  # @example
25
24
  #
26
25
  # # bad
27
26
  # depends 'poise'
27
+ # depends 'poise-service'
28
+ #
28
29
  class CookbookDependsOnPoise < Cop
29
30
  MSG = 'Cookbooks should not depend on the deprecated Poise framework'.freeze
30
31
 
@@ -34,7 +35,7 @@ module RuboCop
34
35
 
35
36
  def on_send(node)
36
37
  depends_method?(node) do |arg|
37
- add_offense(node, location: :expression, message: MSG, severity: :refactor) if arg == s(:str, 'poise')
38
+ add_offense(node, location: :expression, message: MSG, severity: :refactor) if %w(poise poise-service).include?(arg.value)
38
39
  end
39
40
  end
40
41
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cookstyle
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.10.11
4
+ version: 5.10.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thom May
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-10-24 00:00:00.000000000 Z
12
+ date: 2019-10-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rubocop