From 21da68c783f72989c315f6b5fdb6b27cc97f0e95 Mon Sep 17 00:00:00 2001 From: Chef Expeditor Date: Mon, 8 Mar 2021 19:01:33 +0000 Subject: [PATCH] Bump version to 7.9.0 by Chef Expeditor Obvious fix; these changes are the result of automation not creative thinking. --- CHANGELOG.md | 7 ++++--- VERSION | 2 +- .../cops_chef_correctness_blockguardwithonlystring.yml | 2 +- .../cops_chef_correctness_chefapplicationfatal.yml | 2 +- .../cops_chef_correctness_conditionalrubyshellout.yml | 7 +++---- .../cops_chef_correctness_dnfpackageallowdowngrades.yml | 2 +- .../cops_chef_correctness_incorrectlibraryinjection.yml | 4 ++-- .../cops_chef_correctness_invalidnotificationtiming.yml | 4 ++-- .../cops_chef_correctness_invalidplatformfamilyhelper.yml | 4 +++- .../cops_chef_correctness_invalidplatformfamilyincase.yml | 4 +++- .../cops_chef_correctness_invalidplatformhelper.yml | 4 +++- .../cops_chef_correctness_invalidplatformincase.yml | 3 ++- .../cops_chef_correctness_invalidplatformmetadata.yml | 4 +++- ...ectness_invalidplatformvalueforplatformfamilyhelper.yml | 4 +++- ...f_correctness_invalidplatformvalueforplatformhelper.yml | 4 +++- lib/cookstyle/version.rb | 2 +- 16 files changed, 36 insertions(+), 23 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1e086ce23..67743a6a3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,16 +1,17 @@ # Cookstyle Changelog - -## [v7.8.5](https://github.com/chef/cookstyle/tree/v7.8.5) (2021-03-08) + +## [v7.9.0](https://github.com/chef/cookstyle/tree/v7.9.0) (2021-03-08) #### Merged Pull Requests -- Add a spelling check [#831](https://github.com/chef/cookstyle/pull/831) ([tas50](https://github.com/tas50)) +- Improve resource docs [#838](https://github.com/chef/cookstyle/pull/838) ([tas50](https://github.com/tas50)) ### Changes not yet released to rubygems.org #### Merged Pull Requests +- Improve resource docs [#838](https://github.com/chef/cookstyle/pull/838) ([tas50](https://github.com/tas50)) - Add a spelling check [#831](https://github.com/chef/cookstyle/pull/831) ([tas50](https://github.com/tas50)) - Update RuboCop engine to 1.11 [#837](https://github.com/chef/cookstyle/pull/837) ([tas50](https://github.com/tas50)) diff --git a/VERSION b/VERSION index c1faaac8d..84c5308f0 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -7.8.5 \ No newline at end of file +7.9.0 \ No newline at end of file diff --git a/docs-chef-io/data/cookstyle/cops_chef_correctness_blockguardwithonlystring.yml b/docs-chef-io/data/cookstyle/cops_chef_correctness_blockguardwithonlystring.yml index eb2f0d0b2..5a90b72d0 100644 --- a/docs-chef-io/data/cookstyle/cops_chef_correctness_blockguardwithonlystring.yml +++ b/docs-chef-io/data/cookstyle/cops_chef_correctness_blockguardwithonlystring.yml @@ -3,7 +3,7 @@ short_name: BlockGuardWithOnlyString full_name: Chef/Correctness/BlockGuardWithOnlyString department: Chef/Correctness description: A resource guard (not_if/only_if) that is a string should not be wrapped - in {}. Wrapping a guard string in {} causes it to be executed as Ruby code which + in `{}`. Wrapping a guard string in {} causes it to be executed as Ruby code which will always returns true instead of a shell command that will actually run. autocorrection: true target_chef_version: All Versions diff --git a/docs-chef-io/data/cookstyle/cops_chef_correctness_chefapplicationfatal.yml b/docs-chef-io/data/cookstyle/cops_chef_correctness_chefapplicationfatal.yml index 00a30c55f..8fb60296a 100644 --- a/docs-chef-io/data/cookstyle/cops_chef_correctness_chefapplicationfatal.yml +++ b/docs-chef-io/data/cookstyle/cops_chef_correctness_chefapplicationfatal.yml @@ -2,7 +2,7 @@ short_name: ChefApplicationFatal full_name: Chef/Correctness/ChefApplicationFatal department: Chef/Correctness -description: Use raise to force Chef Infra Client to fail instead of using Chef::Application.fatal, +description: Use `raise` to force Chef Infra Client to fail instead of using `Chef::Application.fatal`, which masks the full stack trace of the failure and makes debugging difficult. autocorrection: true target_chef_version: All Versions diff --git a/docs-chef-io/data/cookstyle/cops_chef_correctness_conditionalrubyshellout.yml b/docs-chef-io/data/cookstyle/cops_chef_correctness_conditionalrubyshellout.yml index 394b61ee0..a13a92d40 100644 --- a/docs-chef-io/data/cookstyle/cops_chef_correctness_conditionalrubyshellout.yml +++ b/docs-chef-io/data/cookstyle/cops_chef_correctness_conditionalrubyshellout.yml @@ -2,10 +2,9 @@ short_name: ConditionalRubyShellout full_name: Chef/Correctness/ConditionalRubyShellout department: Chef/Correctness -description: Don't use Ruby to shellout in a only_if / not_if conditional when you - can just shellout directly. Any string value used with only_if / not_if is executed - in your system's shell and the return code of the command is the result for the - not_if / only_if determination. +description: Don't use Ruby to shellout in a `only_if` / `not_if` conditional. Any + string value used in an `only_if` / `not_if` is executed in your system's shell + and the return code of the command is the result for the `not_if` / `only_if` determination. autocorrection: true target_chef_version: All Versions examples: |2- diff --git a/docs-chef-io/data/cookstyle/cops_chef_correctness_dnfpackageallowdowngrades.yml b/docs-chef-io/data/cookstyle/cops_chef_correctness_dnfpackageallowdowngrades.yml index cdb75b211..5794e2aaf 100644 --- a/docs-chef-io/data/cookstyle/cops_chef_correctness_dnfpackageallowdowngrades.yml +++ b/docs-chef-io/data/cookstyle/cops_chef_correctness_dnfpackageallowdowngrades.yml @@ -2,7 +2,7 @@ short_name: DnfPackageAllowDowngrades full_name: Chef/Correctness/DnfPackageAllowDowngrades department: Chef/Correctness -description: dnf_package does not support the allow_downgrades property +description: The `dnf_package` resource does not support the `allow_downgrades` property. autocorrection: true target_chef_version: All Versions examples: |2- diff --git a/docs-chef-io/data/cookstyle/cops_chef_correctness_incorrectlibraryinjection.yml b/docs-chef-io/data/cookstyle/cops_chef_correctness_incorrectlibraryinjection.yml index 57fdb2f6b..7fc3f287a 100644 --- a/docs-chef-io/data/cookstyle/cops_chef_correctness_incorrectlibraryinjection.yml +++ b/docs-chef-io/data/cookstyle/cops_chef_correctness_incorrectlibraryinjection.yml @@ -2,8 +2,8 @@ short_name: IncorrectLibraryInjection full_name: Chef/Correctness/IncorrectLibraryInjection department: Chef/Correctness -description: Libraries should be injected into the Chef::DSL::Recipe class and not - Chef::Recipe or Chef::Provider classes directly. +description: Libraries should be injected into the `Chef::DSL::Recipe` class and not + `Chef::Recipe` or `Chef::Provider` classes directly. autocorrection: true target_chef_version: All Versions examples: |2- diff --git a/docs-chef-io/data/cookstyle/cops_chef_correctness_invalidnotificationtiming.yml b/docs-chef-io/data/cookstyle/cops_chef_correctness_invalidnotificationtiming.yml index eac31f9d6..d9e86a7a1 100644 --- a/docs-chef-io/data/cookstyle/cops_chef_correctness_invalidnotificationtiming.yml +++ b/docs-chef-io/data/cookstyle/cops_chef_correctness_invalidnotificationtiming.yml @@ -2,8 +2,8 @@ short_name: InvalidNotificationTiming full_name: Chef/Correctness/InvalidNotificationTiming department: Chef/Correctness -description: Valid notification timings are :immediately, :immediate (alias for :immediately), - :delayed, and :before. +description: Valid notification timings are `:immediately`, `:immediate` (alias for + :immediately), `:delayed`, and `:before`. autocorrection: false target_chef_version: All Versions examples: |2- diff --git a/docs-chef-io/data/cookstyle/cops_chef_correctness_invalidplatformfamilyhelper.yml b/docs-chef-io/data/cookstyle/cops_chef_correctness_invalidplatformfamilyhelper.yml index 76e41ae2e..452ad597c 100644 --- a/docs-chef-io/data/cookstyle/cops_chef_correctness_invalidplatformfamilyhelper.yml +++ b/docs-chef-io/data/cookstyle/cops_chef_correctness_invalidplatformfamilyhelper.yml @@ -2,7 +2,9 @@ short_name: InvalidPlatformFamilyHelper full_name: Chef/Correctness/InvalidPlatformFamilyHelper department: Chef/Correctness -description: Pass valid platform families to the platform_family? helper. +description: 'Pass valid platform families to the `platform_family?` helper. See [Infra + Language: Platform Family](https://docs.chef.io/infra_language/checking_platforms/#platform_family-values) + for a complete list of platform families.' autocorrection: true target_chef_version: All Versions examples: |2- diff --git a/docs-chef-io/data/cookstyle/cops_chef_correctness_invalidplatformfamilyincase.yml b/docs-chef-io/data/cookstyle/cops_chef_correctness_invalidplatformfamilyincase.yml index 6b225c825..0c4529ee5 100644 --- a/docs-chef-io/data/cookstyle/cops_chef_correctness_invalidplatformfamilyincase.yml +++ b/docs-chef-io/data/cookstyle/cops_chef_correctness_invalidplatformfamilyincase.yml @@ -2,7 +2,9 @@ short_name: InvalidPlatformFamilyInCase full_name: Chef/Correctness/InvalidPlatformFamilyInCase department: Chef/Correctness -description: Use valid platform family values in case statements. +description: 'Use valid platform family values in case statements. See [Infra Language: + Platform Family](https://docs.chef.io/infra_language/checking_platforms/#platform_family-values) + for a complete list of platform families.' autocorrection: true target_chef_version: All Versions examples: |2- diff --git a/docs-chef-io/data/cookstyle/cops_chef_correctness_invalidplatformhelper.yml b/docs-chef-io/data/cookstyle/cops_chef_correctness_invalidplatformhelper.yml index 787356cae..ab84a6004 100644 --- a/docs-chef-io/data/cookstyle/cops_chef_correctness_invalidplatformhelper.yml +++ b/docs-chef-io/data/cookstyle/cops_chef_correctness_invalidplatformhelper.yml @@ -2,7 +2,9 @@ short_name: InvalidPlatformHelper full_name: Chef/Correctness/InvalidPlatformHelper department: Chef/Correctness -description: Pass valid platforms to the platform? helper. +description: 'Pass valid platforms to the `platform?` helper. See [Infra Language: + Platform](https://docs.chef.io/infra_language/checking_platforms/#platform-values) + for a list of many common platform values.' autocorrection: false target_chef_version: All Versions examples: |2- diff --git a/docs-chef-io/data/cookstyle/cops_chef_correctness_invalidplatformincase.yml b/docs-chef-io/data/cookstyle/cops_chef_correctness_invalidplatformincase.yml index d525d2296..777dbcdb0 100644 --- a/docs-chef-io/data/cookstyle/cops_chef_correctness_invalidplatformincase.yml +++ b/docs-chef-io/data/cookstyle/cops_chef_correctness_invalidplatformincase.yml @@ -2,7 +2,8 @@ short_name: InvalidPlatformInCase full_name: Chef/Correctness/InvalidPlatformInCase department: Chef/Correctness -description: Use valid platform values in case statements. +description: 'Use valid platform values in case statements. See [Infra Language: Platform](https://docs.chef.io/infra_language/checking_platforms/#platform-values) + for a list of many common platform values.' autocorrection: true target_chef_version: All Versions examples: |2- diff --git a/docs-chef-io/data/cookstyle/cops_chef_correctness_invalidplatformmetadata.yml b/docs-chef-io/data/cookstyle/cops_chef_correctness_invalidplatformmetadata.yml index 4c8dd295e..7f5520822 100644 --- a/docs-chef-io/data/cookstyle/cops_chef_correctness_invalidplatformmetadata.yml +++ b/docs-chef-io/data/cookstyle/cops_chef_correctness_invalidplatformmetadata.yml @@ -2,7 +2,9 @@ short_name: InvalidPlatformMetadata full_name: Chef/Correctness/InvalidPlatformMetadata department: Chef/Correctness -description: metadata.rb supports methods should contain valid platforms. +description: 'metadata.rb supports methods should contain valid platforms. See [Infra + Language: Platform](https://docs.chef.io/infra_language/checking_platforms/#platform-values) + for a list of many common platform values.' autocorrection: true target_chef_version: All Versions examples: |2- diff --git a/docs-chef-io/data/cookstyle/cops_chef_correctness_invalidplatformvalueforplatformfamilyhelper.yml b/docs-chef-io/data/cookstyle/cops_chef_correctness_invalidplatformvalueforplatformfamilyhelper.yml index 037569c81..933522963 100644 --- a/docs-chef-io/data/cookstyle/cops_chef_correctness_invalidplatformvalueforplatformfamilyhelper.yml +++ b/docs-chef-io/data/cookstyle/cops_chef_correctness_invalidplatformvalueforplatformfamilyhelper.yml @@ -2,7 +2,9 @@ short_name: InvalidPlatformValueForPlatformFamilyHelper full_name: Chef/Correctness/InvalidPlatformValueForPlatformFamilyHelper department: Chef/Correctness -description: Pass valid platforms families to the value_for_platform_family helper. +description: 'Pass valid platforms families to the value_for_platform_family helper. + See [Infra Language: Platform Family](https://docs.chef.io/infra_language/checking_platforms/#platform_family-values) + for a complete list of platform families.' autocorrection: false target_chef_version: All Versions examples: |2- diff --git a/docs-chef-io/data/cookstyle/cops_chef_correctness_invalidplatformvalueforplatformhelper.yml b/docs-chef-io/data/cookstyle/cops_chef_correctness_invalidplatformvalueforplatformhelper.yml index 87abc6ddb..0a6dacb65 100644 --- a/docs-chef-io/data/cookstyle/cops_chef_correctness_invalidplatformvalueforplatformhelper.yml +++ b/docs-chef-io/data/cookstyle/cops_chef_correctness_invalidplatformvalueforplatformhelper.yml @@ -2,7 +2,9 @@ short_name: InvalidPlatformValueForPlatformHelper full_name: Chef/Correctness/InvalidPlatformValueForPlatformHelper department: Chef/Correctness -description: Pass valid platforms to the value_for_platform helper. +description: 'Pass valid platforms to the value_for_platform helper. See [Infra Language: + Platform](https://docs.chef.io/infra_language/checking_platforms/#platform-values) + for a list of many common platform values.' autocorrection: false target_chef_version: All Versions examples: |2- diff --git a/lib/cookstyle/version.rb b/lib/cookstyle/version.rb index 4e5652431..9ee4f2740 100644 --- a/lib/cookstyle/version.rb +++ b/lib/cookstyle/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Cookstyle - VERSION = "7.8.5" # rubocop: disable Style/StringLiterals + VERSION = "7.9.0" # rubocop: disable Style/StringLiterals RUBOCOP_VERSION = '1.11.0' end