From 72801f9565b0e14a0bef5b111fdf80b5072d8c3c Mon Sep 17 00:00:00 2001 From: Chef Expeditor Date: Tue, 5 Nov 2019 17:42:07 +0000 Subject: [PATCH] Bump version to 5.10.16 by Chef Expeditor Obvious fix; these changes are the result of automation not creative thinking. --- CHANGELOG.md | 6 ++++-- VERSION | 2 +- docs/cops.md | 2 ++ docs/cops_chefdeprecations.md | 28 ++++++++++++++++++++++++++++ docs/cops_chefmodernize.md | 15 +++++++++++++++ lib/cookstyle/version.rb | 2 +- 6 files changed, 51 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 29fe65e7d..80a3200fa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,9 +1,10 @@ # Cookstyle Changelog - -## Unreleased + +## [v5.10.16](https://github.com/chef/cookstyle/tree/v5.10.16) (2019-11-05) #### Merged Pull Requests +- Add new poise_archive cop and definition cop [#362](https://github.com/chef/cookstyle/pull/362) ([tas50](https://github.com/tas50)) - Update to Rubocop 0.75.1 [#359](https://github.com/chef/cookstyle/pull/359) ([tas50](https://github.com/tas50)) @@ -11,6 +12,7 @@ ### Changes not yet released to rubygems.org #### Merged Pull Requests +- Add new poise_archive cop and definition cop [#362](https://github.com/chef/cookstyle/pull/362) ([tas50](https://github.com/tas50)) - Fix docs updater script to work with Rubocop 0.75+ [#361](https://github.com/chef/cookstyle/pull/361) ([tas50](https://github.com/tas50)) - Add additional helpers for working with resources [#310](https://github.com/chef/cookstyle/pull/310) ([tas50](https://github.com/tas50)) diff --git a/VERSION b/VERSION index cc376e1b1..c0204ea27 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -5.10.15 \ No newline at end of file +5.10.16 \ No newline at end of file diff --git a/docs/cops.md b/docs/cops.md index 47ae4b47b..53d1b8434 100644 --- a/docs/cops.md +++ b/docs/cops.md @@ -52,6 +52,7 @@ * [ChefDeprecations/NodeMethodsInsteadofAttributes](cops_chefdeprecations.md#chefdeprecationsnodemethodsinsteadofattributes) * [ChefDeprecations/NodeSet](cops_chefdeprecations.md#chefdeprecationsnodeset) * [ChefDeprecations/NodeSetUnless](cops_chefdeprecations.md#chefdeprecationsnodesetunless) +* [ChefDeprecations/PoiseArchiveUsage](cops_chefdeprecations.md#chefdeprecationspoisearchiveusage) * [ChefDeprecations/ProvidesMetadata](cops_chefdeprecations.md#chefdeprecationsprovidesmetadata) * [ChefDeprecations/RecipeMetadata](cops_chefdeprecations.md#chefdeprecationsrecipemetadata) * [ChefDeprecations/ReplacesMetadata](cops_chefdeprecations.md#chefdeprecationsreplacesmetadata) @@ -85,6 +86,7 @@ * [ChefModernize/CustomResourceWithAttributes](cops_chefmodernize.md#chefmodernizecustomresourcewithattributes) * [ChefModernize/DefaultActionFromInitialize](cops_chefmodernize.md#chefmodernizedefaultactionfrominitialize) * [ChefModernize/DefinesChefSpecMatchers](cops_chefmodernize.md#chefmodernizedefineschefspecmatchers) +* [ChefModernize/Definitions](cops_chefmodernize.md#chefmodernizedefinitions) * [ChefModernize/DependsOnZypperCookbook](cops_chefmodernize.md#chefmodernizedependsonzyppercookbook) * [ChefModernize/ExecuteAptUpdate](cops_chefmodernize.md#chefmodernizeexecuteaptupdate) * [ChefModernize/ExecuteTzUtil](cops_chefmodernize.md#chefmodernizeexecutetzutil) diff --git a/docs/cops_chefdeprecations.md b/docs/cops_chefdeprecations.md index b17882024..605348d0e 100644 --- a/docs/cops_chefdeprecations.md +++ b/docs/cops_chefdeprecations.md @@ -641,6 +641,34 @@ Name | Default value | Configurable values VersionAdded | `5.1.0` | String Exclude | `**/metadata.rb` | Array +## ChefDeprecations/PoiseArchiveUsage + +Enabled by default | Supports autocorrection +--- | --- +Enabled | No + +The poise_archive resource in the deprecated poise-archive should be replaced with the archive_file resource found in Chef Infra Client 15+. + +### Examples + +```ruby +# bad +poise_archive 'https://example.com/myapp.tgz' do + destination '/opt/myapp' +end + +# good +archive_file 'https://example.com/myapp.tgz' do + destination '/opt/myapp' +end +``` + +### Configurable attributes + +Name | Default value | Configurable values +--- | --- | --- +VersionAdded | `5.11.0` | String + ## ChefDeprecations/ProvidesMetadata Enabled by default | Supports autocorrection diff --git a/docs/cops_chefmodernize.md b/docs/cops_chefmodernize.md index d6b7cbaba..78d5d6c19 100644 --- a/docs/cops_chefmodernize.md +++ b/docs/cops_chefmodernize.md @@ -143,6 +143,21 @@ Name | Default value | Configurable values VersionAdded | `5.3.0` | String Include | `**/libraries/*.rb` | Array +## ChefModernize/Definitions + +Enabled by default | Supports autocorrection +--- | --- +Enabled | No + +In 2016 with Chef Infra Client 12.5 Custom Resources were introduced as a way of writing reusable resource code that could be shipped in cookbooks. Custom Resources offer many advantages of legacy Definitions including unit testing with ChefSpec, input validation, actions, commmon properties like not_if/only_if, and resource reporting. + +### Configurable attributes + +Name | Default value | Configurable values +--- | --- | --- +VersionAdded | `5.11.0` | String +Include | `**/definitions/*.rb` | Array + ## ChefModernize/DependsOnZypperCookbook Enabled by default | Supports autocorrection diff --git a/lib/cookstyle/version.rb b/lib/cookstyle/version.rb index a8e2e9778..bd9bfa2d8 100644 --- a/lib/cookstyle/version.rb +++ b/lib/cookstyle/version.rb @@ -1,4 +1,4 @@ module Cookstyle - VERSION = "5.10.15".freeze # rubocop: disable Style/StringLiterals + VERSION = "5.10.16".freeze # rubocop: disable Style/StringLiterals RUBOCOP_VERSION = '0.75.1'.freeze end