Skip to content

Commit dc70216

Browse files
authored
Merge pull request #1276 from puppetlabs/release-prep
Release prep v8.5.0
2 parents 02c0dd2 + 62c9089 commit dc70216

File tree

3 files changed

+69
-22
lines changed

3 files changed

+69
-22
lines changed

CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,25 @@
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.5.0](https://github.com/puppetlabs/puppetlabs-stdlib/tree/v8.5.0) (2022-10-13)
6+
7+
[Full Changelog](https://github.com/puppetlabs/puppetlabs-stdlib/compare/v8.4.0...v8.5.0)
8+
9+
### Added
10+
11+
- Add a Stdlib::CreateResources type [\#1267](https://github.com/puppetlabs/puppetlabs-stdlib/pull/1267) ([ekohl](https://github.com/ekohl))
12+
- pdksync - \(GH-cat-11\) Certify Support for Ubuntu 22.04 [\#1261](https://github.com/puppetlabs/puppetlabs-stdlib/pull/1261) ([david22swan](https://github.com/david22swan))
13+
- \(FEAT\) Add function parsepson [\#1259](https://github.com/puppetlabs/puppetlabs-stdlib/pull/1259) ([david22swan](https://github.com/david22swan))
14+
15+
### Fixed
16+
17+
- \(CONT-200\) Fix require relative paths [\#1275](https://github.com/puppetlabs/puppetlabs-stdlib/pull/1275) ([chelnak](https://github.com/chelnak))
18+
- pdksync - \(CONT-189\) Remove support for RedHat6 / OracleLinux6 / Scientific6 [\#1272](https://github.com/puppetlabs/puppetlabs-stdlib/pull/1272) ([david22swan](https://github.com/david22swan))
19+
- pdksync - \(CONT-130\) - Dropping Support for Debian 9 [\#1269](https://github.com/puppetlabs/puppetlabs-stdlib/pull/1269) ([jordanbreen28](https://github.com/jordanbreen28))
20+
- \(MAINT\) Drop support for AIX + Windows EOL OSs [\#1265](https://github.com/puppetlabs/puppetlabs-stdlib/pull/1265) ([jordanbreen28](https://github.com/jordanbreen28))
21+
- \(GH-1262\) Use 'require\_relative' to load stdlib due to lookup errors [\#1264](https://github.com/puppetlabs/puppetlabs-stdlib/pull/1264) ([david22swan](https://github.com/david22swan))
22+
- Switch parsejson\(\) from PSON to JSON parsing [\#1240](https://github.com/puppetlabs/puppetlabs-stdlib/pull/1240) ([seanmil](https://github.com/seanmil))
23+
524
## [v8.4.0](https://github.com/puppetlabs/puppetlabs-stdlib/tree/v8.4.0) (2022-07-21)
625

726
[Full Changelog](https://github.com/puppetlabs/puppetlabs-stdlib/compare/v8.3.0...v8.4.0)

REFERENCE.md

Lines changed: 49 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,8 @@ true boolean.
140140
Puppet structure
141141
* [`parsejson`](#parsejson): This function accepts JSON as a string and converts it into the correct
142142
Puppet structure.
143-
* [`parsepson`](#parsepson): This function accepts PSON, a Puppet variant of JSON, as a string and
144-
converts it into the correct Puppet structure.
143+
* [`parsepson`](#parsepson): This function accepts PSON, a Puppet variant of JSON, as a string and converts
144+
it into the correct Puppet structure
145145
* [`parseyaml`](#parseyaml): This function accepts YAML as a string and converts it into the correct
146146
Puppet structure.
147147
* [`pick`](#pick): This function will return
@@ -272,6 +272,7 @@ OpenSSL.
272272
* [`Stdlib::Compat::Ipv6`](#stdlibcompatipv6): Validate an IPv6 address
273273
* [`Stdlib::Compat::Numeric`](#stdlibcompatnumeric): Emulate the is_numeric and validate_numeric functions
274274
* [`Stdlib::Compat::String`](#stdlibcompatstring): Emulate the is_string and validate_string functions
275+
* [`Stdlib::CreateResources`](#stdlibcreateresources): A type description used for the create_resources function
275276
* [`Stdlib::Datasize`](#stdlibdatasize): Validate the size of data
276277
* [`Stdlib::Email`](#stdlibemail): Validate an e-mail address
277278
* [`Stdlib::Ensure::File`](#stdlibensurefile): Validate the value of the ensure parameter for a file
@@ -3923,30 +3924,24 @@ Type: Ruby 3.x API
39233924

39243925
> *Note:*
39253926
The optional second argument can be used to pass a default value that will
3926-
be returned if the parsing of YAML string have failed.
3927+
be returned if the parsing of the JSON string failed or if the JSON parse
3928+
evaluated to nil.
39273929

39283930
#### `parsejson()`
39293931

39303932
> *Note:*
39313933
The optional second argument can be used to pass a default value that will
3932-
be returned if the parsing of YAML string have failed.
3934+
be returned if the parsing of the JSON string failed or if the JSON parse
3935+
evaluated to nil.
39333936

39343937
Returns: `Any` convert JSON into Puppet structure
39353938

3936-
### <a name="parseyaml"></a>`parseyaml`
3937-
3938-
Type: Ruby 3.x API
3939-
3940-
> *Note:*
3941-
The optional second argument can be used to pass a default value that will
3942-
be returned if the parsing of YAML string have failed.
3943-
39443939
### <a name="parsepson"></a>`parsepson`
39453940

39463941
Type: Ruby 4.x API
39473942

3948-
This function accepts PSON as a string and converts it into the correct
3949-
Puppet structure
3943+
For more information on PSON please see the following link:
3944+
https://puppet.com/docs/puppet/7/http_api/pson.html
39503945

39513946
#### Examples
39523947

@@ -3956,13 +3951,11 @@ Puppet structure
39563951
$data = parsepson('{"a":"1","b":"2"}')
39573952
```
39583953

3954+
#### `parsepson(String[1] $pson_string, Optional[Any] $default)`
3955+
39593956
For more information on PSON please see the following link:
39603957
https://puppet.com/docs/puppet/7/http_api/pson.html
39613958

3962-
#### `parsepson(String $pson_string, Optional[Any] $default)`
3963-
3964-
The parseson function.
3965-
39663959
Returns: `Data`
39673960

39683961
##### Examples
@@ -3973,9 +3966,6 @@ Returns: `Data`
39733966
$data = parsepson('{"a":"1","b":"2"}')
39743967
```
39753968

3976-
For more information on PSON please see the following link:
3977-
https://puppet.com/docs/puppet/7/http_api/pson.html
3978-
39793969
##### `pson_string`
39803970

39813971
Data type: `String[1]`
@@ -3988,6 +3978,14 @@ Data type: `Optional[Any]`
39883978

39893979
An optional default to return if parsing the pson_string fails
39903980

3981+
### <a name="parseyaml"></a>`parseyaml`
3982+
3983+
Type: Ruby 3.x API
3984+
3985+
> *Note:*
3986+
The optional second argument can be used to pass a default value that will
3987+
be returned if the parsing of YAML string have failed.
3988+
39913989
#### `parseyaml()`
39923990

39933991
> *Note:*
@@ -7604,6 +7602,36 @@ Alias of
76047602
Optional[String]
76057603
```
76067604

7605+
### <a name="stdlibcreateresources"></a>`Stdlib::CreateResources`
7606+
7607+
A type description used for the create_resources function
7608+
7609+
#### Examples
7610+
7611+
##### As a class parameter
7612+
7613+
```puppet
7614+
class myclass (
7615+
Stdlib::CreateResources $myresources = {},
7616+
) {
7617+
# Using create_resources
7618+
create_resources('myresource', $myresources)
7619+
7620+
# Using iteration
7621+
$myresources.each |$myresource_name, $myresource_attrs| {
7622+
myresource { $myresource_name:
7623+
* => $myresource_attrs,
7624+
}
7625+
}
7626+
}
7627+
```
7628+
7629+
Alias of
7630+
7631+
```puppet
7632+
Hash[String[1], Hash[String[1], Any]]
7633+
```
7634+
76077635
### <a name="stdlibdatasize"></a>`Stdlib::Datasize`
76087636

76097637
Validate the size of data

metadata.json

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

0 commit comments

Comments
 (0)