Skip to content

Commit 32a1bb5

Browse files
author
GitHub Action
committed
Release prep v8.1.0
1 parent 55e79ff commit 32a1bb5

File tree

4 files changed

+70
-8
lines changed

4 files changed

+70
-8
lines changed

Diff for: CHANGELOG.md

+18
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,24 @@
22

33
All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org).
44

5+
## [v8.1.0](https://github.com/puppetlabs/puppetlabs-stdlib/tree/v8.1.0) (2021-10-04)
6+
7+
[Full Changelog](https://github.com/puppetlabs/puppetlabs-stdlib/compare/v8.0.0...v8.1.0)
8+
9+
### Added
10+
11+
- pdksync - \(IAC-1751\) - Add Support for Rocky 8 [\#1214](https://github.com/puppetlabs/puppetlabs-stdlib/pull/1214) ([david22swan](https://github.com/david22swan))
12+
- stdlib::ensure: Add support for package resource [\#1213](https://github.com/puppetlabs/puppetlabs-stdlib/pull/1213) ([david-caro](https://github.com/david-caro))
13+
- Added to\_toml function [\#1209](https://github.com/puppetlabs/puppetlabs-stdlib/pull/1209) ([nmaludy](https://github.com/nmaludy))
14+
15+
### Fixed
16+
17+
- \[MODULES-11195\] Add lint-ignore for pattern length [\#1212](https://github.com/puppetlabs/puppetlabs-stdlib/pull/1212) ([carabasdaniel](https://github.com/carabasdaniel))
18+
- pdksync - \(IAC-1598\) - Remove Support for Debian 8 [\#1210](https://github.com/puppetlabs/puppetlabs-stdlib/pull/1210) ([david22swan](https://github.com/david22swan))
19+
- os\_version\_gte: fix version comparison logic [\#1207](https://github.com/puppetlabs/puppetlabs-stdlib/pull/1207) ([kenyon](https://github.com/kenyon))
20+
- max, lstrip: fix deprecated message [\#1204](https://github.com/puppetlabs/puppetlabs-stdlib/pull/1204) ([b4ldr](https://github.com/b4ldr))
21+
- \(MODULES-11126\) Replacing URI.escape with URI::DEFAULT\_PARSER [\#1195](https://github.com/puppetlabs/puppetlabs-stdlib/pull/1195) ([valleedelisle](https://github.com/valleedelisle))
22+
523
## [v8.0.0](https://github.com/puppetlabs/puppetlabs-stdlib/tree/v8.0.0) (2021-08-24)
624

725
[Full Changelog](https://github.com/puppetlabs/puppetlabs-stdlib/compare/v7.1.0...v8.0.0)

Diff for: REFERENCE.md

+49-7
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ in a hash.
182182
* [`to_json_pretty`](#to_json_pretty): Convert data structure and output to pretty JSON
183183
* [`to_python`](#to_python): Convert an object into a String containing its Python representation
184184
* [`to_ruby`](#to_ruby): Convert an object into a String containing its Ruby representation
185+
* [`to_toml`](#to_toml): Convert a data structure and output to TOML.
185186
* [`to_yaml`](#to_yaml): }
186187
* [`try_get_value`](#try_get_value)
187188
* [`type`](#type): **DEPRECATED:** This function will cease to function on Puppet 4;
@@ -260,7 +261,7 @@ supplied key.
260261
* [`Stdlib::Compat::Numeric`](#stdlibcompatnumeric): Emulate the is_numeric and validate_numeric functions The regex is what's currently used in is_numeric validate_numeric also allows range che
261262
* [`Stdlib::Compat::String`](#stdlibcompatstring): Emulate the is_string and validate_string functions
262263
* [`Stdlib::Datasize`](#stdlibdatasize)
263-
* [`Stdlib::Email`](#stdlibemail): https://html.spec.whatwg.org/multipage/input.html#valid-e-mail-address
264+
* [`Stdlib::Email`](#stdlibemail): https://html.spec.whatwg.org/multipage/input.html#valid-e-mail-address lint:ignore:140chars
264265
* [`Stdlib::Ensure::File`](#stdlibensurefile)
265266
* [`Stdlib::Ensure::File::Directory`](#stdlibensurefiledirectory)
266267
* [`Stdlib::Ensure::File::File`](#stdlibensurefilefile)
@@ -3160,12 +3161,12 @@ $myhash = loadyaml('no-file.yaml', {'default' => 'val
31603161
Type: Ruby 3.x API
31613162

31623163
> **Note:** **Deprecated** from Puppet 6.0.0, this function has been replaced with a
3163-
built-in [`max`](https://puppet.com/docs/puppet/latest/function.html#max) function.
3164+
built-in [`lstrip`](https://puppet.com/docs/puppet/latest/function.html#lstrip) function.
31643165

31653166
#### `lstrip()`
31663167

31673168
> **Note:** **Deprecated** from Puppet 6.0.0, this function has been replaced with a
3168-
built-in [`max`](https://puppet.com/docs/puppet/latest/function.html#max) function.
3169+
built-in [`lstrip`](https://puppet.com/docs/puppet/latest/function.html#lstrip) function.
31693170

31703171
Returns: `String` The stripped string
31713172

@@ -3176,14 +3177,14 @@ Type: Ruby 3.x API
31763177
Requires at least one argument.
31773178

31783179
> **Note:** **Deprecated** from Puppet 6.0.0, this function has been replaced with a
3179-
built-in [`lstrip`](https://puppet.com/docs/puppet/latest/function.html#lstrip) function.
3180+
built-in [`max`](https://puppet.com/docs/puppet/latest/function.html#max) function.
31803181

31813182
#### `max()`
31823183

31833184
Requires at least one argument.
31843185

31853186
> **Note:** **Deprecated** from Puppet 6.0.0, this function has been replaced with a
3186-
built-in [`lstrip`](https://puppet.com/docs/puppet/latest/function.html#lstrip) function.
3187+
built-in [`max`](https://puppet.com/docs/puppet/latest/function.html#max) function.
31873188

31883189
Returns: `Any` The highest value among those passed in
31893190

@@ -4148,7 +4149,7 @@ Type: Puppet Language
41484149

41494150
function to cast ensure parameter to resource specific value
41504151

4151-
#### `stdlib::ensure(Variant[Boolean, Enum['present', 'absent']] $ensure, Enum['directory', 'link', 'mounted', 'service', 'file'] $resource)`
4152+
#### `stdlib::ensure(Variant[Boolean, Enum['present', 'absent']] $ensure, Enum['directory', 'link', 'mounted', 'service', 'file', 'package'] $resource)`
41524153

41534154
The stdlib::ensure function.
41544155

@@ -4162,7 +4163,7 @@ Data type: `Variant[Boolean, Enum['present', 'absent']]`
41624163

41634164
##### `resource`
41644165

4165-
Data type: `Enum['directory', 'link', 'mounted', 'service', 'file']`
4166+
Data type: `Enum['directory', 'link', 'mounted', 'service', 'file', 'package']`
41664167

41674168

41684169

@@ -4794,6 +4795,46 @@ Data type: `Any`
47944795

47954796

47964797

4798+
### <a name="to_toml"></a>`to_toml`
4799+
4800+
Type: Ruby 4.x API
4801+
4802+
Convert a data structure and output to TOML.
4803+
4804+
#### Examples
4805+
4806+
##### How to output TOML to a file
4807+
4808+
```puppet
4809+
file { '/tmp/config.toml':
4810+
ensure => file,
4811+
content => to_toml($myhash),
4812+
}
4813+
```
4814+
4815+
#### `to_toml(Hash $data)`
4816+
4817+
The to_toml function.
4818+
4819+
Returns: `String` Converted data as TOML string
4820+
4821+
##### Examples
4822+
4823+
###### How to output TOML to a file
4824+
4825+
```puppet
4826+
file { '/tmp/config.toml':
4827+
ensure => file,
4828+
content => to_toml($myhash),
4829+
}
4830+
```
4831+
4832+
##### `data`
4833+
4834+
Data type: `Hash`
4835+
4836+
Data structure which needs to be converted into TOML
4837+
47974838
### <a name="to_yaml"></a>`to_yaml`
47984839

47994840
Type: Ruby 4.x API
@@ -6751,6 +6792,7 @@ Pattern[/^\d+(?i:[kmgt]b?|b)$/]
67516792
### <a name="stdlibemail"></a>`Stdlib::Email`
67526793

67536794
https://html.spec.whatwg.org/multipage/input.html#valid-e-mail-address
6795+
lint:ignore:140chars
67546796

67556797
Alias of
67566798

Diff for: metadata.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "puppetlabs-stdlib",
3-
"version": "8.0.0",
3+
"version": "8.1.0",
44
"author": "puppetlabs",
55
"summary": "Standard library of resources for Puppet modules.",
66
"license": "Apache-2.0",

Diff for: pdk.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
ignore: []

0 commit comments

Comments
 (0)