cookstyle 7.32.1 → 7.32.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: 35037ddf834c7c995f3ae81181f923b8fc2c70b10686814beb82462558014fd8
4
- data.tar.gz: 8f56143d1d34824560f24f41885a279299c5bef28913795b17531fea355e131f
3
+ metadata.gz: a9d5df9c039b53b189a6d2cecc2c23aab900c6c038f38fe305218b79bbab6a62
4
+ data.tar.gz: 7bff42e06a317fb7fe24b51c506e7a626c86657b59dc02954c7342ccb7c1d202
5
5
  SHA512:
6
- metadata.gz: d0fdf8339747df02c7c64f54f1e3a2366de8220f7e2fb5a8e96fed09c504e1e3dc54463c1fe2fa1dd408228c1dd5bc127b4441458db732d3d8a6587733521b0a
7
- data.tar.gz: c56b19393c8d92fe54a5c80a8ab23eea7ada4fbac3fe301a870ece705900cfcd273f9c0fc0507dc3def3b7b0462572f888e849d3857bea3d452ad3fae9322170
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.5'
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}/**/*')
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
  module Cookstyle
3
- VERSION = "7.32.1" # rubocop: disable Style/StringLiterals
3
+ VERSION = "7.32.2" # rubocop: disable Style/StringLiterals
4
4
  RUBOCOP_VERSION = '1.25.1'
5
5
  end
@@ -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?('/etc/cron.d')
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.1
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: 2022-02-25 00:00:00.000000000 Z
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.5'
330
+ version: '2.7'
331
331
  required_rubygems_version: !ruby/object:Gem::Requirement
332
332
  requirements:
333
333
  - - ">="