cookstyle 5.10.11 → 5.10.13
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 +4 -4
- data/config/cookstyle.yml +2 -2
- data/lib/cookstyle/version.rb +1 -1
- data/lib/rubocop/cop/chef/deprecation/depends_poise.rb +4 -3
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d7a4dfc3bad7b5f35e0665fc7c9f0d255c74729faa3de74fb126962f4f41b65f
|
|
4
|
+
data.tar.gz: 285f0eff32d8f1c528328f266136bc4b5899d35d567b0ee185440c8d0438e362
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fbebffebb05c03de047144b6f38dd5d35724b80c240347f8b939ce092cbed4c91d2cca3cf6c9104846852886d84e26067afe8ae6778698b1a745694ee7282dca
|
|
7
|
+
data.tar.gz: dac2940dba58d62d900e01d071b068f455455e08278766f425c329c51508d145f1916df38b9e90fa3b9a7c7590a2618ad463eae627ef63e96fd869413ef006dc
|
data/config/cookstyle.yml
CHANGED
|
@@ -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
|
-
|
|
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
|
-
- '**/
|
|
252
|
+
- '**/libraries/*.rb'
|
|
253
253
|
|
|
254
254
|
###############################
|
|
255
255
|
# ChefDeprecations: Resolving Deprecations that block upgrading Chef Infra Client
|
data/lib/cookstyle/version.rb
CHANGED
|
@@ -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
|
|
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.
|
|
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-
|
|
12
|
+
date: 2019-10-25 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rubocop
|