cookstyle 7.32.1 → 7.32.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/cookstyle.gemspec +1 -1
- data/lib/cookstyle/version.rb +1 -1
- data/lib/rubocop/cop/chef/modernize/cron_d_file_or_template.rb +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a9d5df9c039b53b189a6d2cecc2c23aab900c6c038f38fe305218b79bbab6a62
|
4
|
+
data.tar.gz: 7bff42e06a317fb7fe24b51c506e7a626c86657b59dc02954c7342ccb7c1d202
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6e65d0b60a6c8fe4c2e45ff3242873aae42b536b0c337bfe68b0d46b76e828de68ca293f1e110e4f9ee80d9752fb900fb1d363186e00b620bda62e7351de39b5
|
7
|
+
data.tar.gz: '06836c7ea73f98476bd41844ba6521442f8c10f6bb7e328b0bdef95133543a4045e4a972de715d087b3223a4468d7ed9c9e4f6863e215514095e31db3ee29435'
|
data/cookstyle.gemspec
CHANGED
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
|
|
11
11
|
spec.summary = 'Cookstyle is a code linting tool that helps you to write better Chef Infra cookbooks by detecting and automatically correcting style, syntax, and logic mistakes in your code.'
|
12
12
|
spec.license = 'Apache-2.0'
|
13
13
|
spec.homepage = 'https://docs.chef.io/workstation/cookstyle/'
|
14
|
-
spec.required_ruby_version = '>= 2.
|
14
|
+
spec.required_ruby_version = '>= 2.7'
|
15
15
|
|
16
16
|
# the gemspec and Gemfile are necessary for appbundling of the gem
|
17
17
|
spec.files = %w(LICENSE cookstyle.gemspec Gemfile) + Dir.glob('{lib,bin,config}/**/*')
|
data/lib/cookstyle/version.rb
CHANGED
@@ -101,7 +101,7 @@ module RuboCop
|
|
101
101
|
|
102
102
|
def on_block(node)
|
103
103
|
file_or_template?(node) do |file_name|
|
104
|
-
break unless file_name.start_with?(
|
104
|
+
break unless file_name.start_with?(%r{/etc/cron\.d\b}i)
|
105
105
|
add_offense(node, severity: :refactor)
|
106
106
|
end
|
107
107
|
|
@@ -110,7 +110,7 @@ module RuboCop
|
|
110
110
|
# and check if their value contains '/etc/cron.d'
|
111
111
|
# covers the case where the argument to the path property is provided via a method like File.join
|
112
112
|
code_property.each_descendant do |d|
|
113
|
-
add_offense(node, severity: :refactor) if d.respond_to?(:value) && d.value.match?(%r{/etc/cron\.d}i)
|
113
|
+
add_offense(node, severity: :refactor) if d.respond_to?(:value) && d.value.match?(%r{/etc/cron\.d\b}i)
|
114
114
|
end
|
115
115
|
end
|
116
116
|
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: 7.32.
|
4
|
+
version: 7.32.2
|
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:
|
12
|
+
date: 2023-03-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rubocop
|
@@ -327,7 +327,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
327
327
|
requirements:
|
328
328
|
- - ">="
|
329
329
|
- !ruby/object:Gem::Version
|
330
|
-
version: '2.
|
330
|
+
version: '2.7'
|
331
331
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
332
332
|
requirements:
|
333
333
|
- - ">="
|