cookstyle 7.32.7 → 7.32.8

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: c384bf80d72302339e88c063710c8a045f4f600397dec2712e2932a31bdd5a19
4
- data.tar.gz: ffd9a52a3eec139731983b8f9fc62339e1198d9ba7302a3294a711491ba8c380
3
+ metadata.gz: e966116e3a566d0ad1a8c32d4103100ccc7194fb7d5b86a794b16752c70017f2
4
+ data.tar.gz: bd46c873ff0f057fe45d5458ba99bbe716c51c2198be8565c8f36c3dfb57c6b6
5
5
  SHA512:
6
- metadata.gz: 8f75b91b1cb747c6028b6cb3b771c6fc6924bf71f2ad7a53e527339b64368a049de87d6eb46dea13855ddf14acecd960605d0fe0200e24700c878f7149f4d649
7
- data.tar.gz: 13c339e98d714a786267e95a6e49041d16ef0acb2c893510a11ab2891e372a72c223102732a8c085ba7f35a799979b42bed22073ffbe7314570897cf2667a7c1
6
+ metadata.gz: 4ee9fe75ef5ac61290b36b67047b487407d1e09be922c8237408d30a7545fbe9fef1fb8ee92603ce168c3ff774ad60b74b758cea712fc6307b0c450e56867074
7
+ data.tar.gz: b8cc58e6be9540ee6f79126fc43c53a94141a83da8871d076f445cd7cf7db049aa58ae5e18b35dd1c07eccb84220a1e86d0ecd5d19327de912512f48dfe5e41e
data/bin/cookstyle CHANGED
@@ -1,17 +1,15 @@
1
1
  #!/usr/bin/env ruby
2
2
  # frozen_string_literal: true
3
3
 
4
+ $LOAD_PATH.unshift File.join(__dir__, %w(.. lib))
5
+
4
6
  if ARGV.include?('--chefstyle')
5
7
  ARGV.delete('--chefstyle')
6
- module Cookstyle
7
- CHEFSTYLE_CONFIG = true
8
- end
8
+ require 'cookstyle/chefstyle'
9
+ else
10
+ require 'cookstyle'
9
11
  end
10
12
 
11
- $LOAD_PATH.unshift File.join(__dir__, %w(.. lib))
12
-
13
- require 'cookstyle'
14
-
15
13
  # force the fail level to :convention so that we can set all our new rules to
16
14
  # the lowest level of :refactor without failing everyone's CI jobs
17
15
  unless ARGV.include?('--fail-level')
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+ module Cookstyle
3
+ CHEFSTYLE_CONFIG = true
4
+ end
5
+ require_relative '../cookstyle'
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
  module Cookstyle
3
- VERSION = "7.32.7" # rubocop: disable Style/StringLiterals
3
+ VERSION = "7.32.8" # rubocop: disable Style/StringLiterals
4
4
  RUBOCOP_VERSION = '1.25.1'
5
5
  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.7
4
+ version: 7.32.8
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: 2024-01-23 00:00:00.000000000 Z
12
+ date: 2024-02-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rubocop
@@ -43,6 +43,7 @@ files:
43
43
  - config/default.yml
44
44
  - cookstyle.gemspec
45
45
  - lib/cookstyle.rb
46
+ - lib/cookstyle/chefstyle.rb
46
47
  - lib/cookstyle/version.rb
47
48
  - lib/rubocop/chef.rb
48
49
  - lib/rubocop/chef/autocorrect_helpers.rb