Skip to content

Commit

Permalink
Bump version to 5.10.16 by Chef Expeditor
Browse files Browse the repository at this point in the history
Obvious fix; these changes are the result of automation not creative thinking.
  • Loading branch information
Chef Expeditor committed Nov 5, 2019
1 parent 956b9ec commit 72801f9
Show file tree
Hide file tree
Showing 6 changed files with 51 additions and 4 deletions.
6 changes: 4 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
# Cookstyle Changelog

<!-- latest_release unreleased -->
## Unreleased
<!-- latest_release 5.10.16 -->
## [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))
<!-- latest_release -->

<!-- release_rollup since=5.10.13 -->
### 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)) <!-- 5.10.16 -->
- Fix docs updater script to work with Rubocop 0.75+ [#361](https://github.com/chef/cookstyle/pull/361) ([tas50](https://github.com/tas50)) <!-- 5.10.15 -->
- Add additional helpers for working with resources [#310](https://github.com/chef/cookstyle/pull/310) ([tas50](https://github.com/tas50)) <!-- 5.10.14 -->
<!-- release_rollup -->
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5.10.15
5.10.16
2 changes: 2 additions & 0 deletions docs/cops.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down
28 changes: 28 additions & 0 deletions docs/cops_chefdeprecations.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
15 changes: 15 additions & 0 deletions docs/cops_chefmodernize.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/cookstyle/version.rb
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 72801f9

Please sign in to comment.