3 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).
5 ## [v6.1.0](https://github.com/puppetlabs/puppetlabs-stdlib/tree/v6.1.0) (2019-09-19)
7 [Full Changelog](https://github.com/puppetlabs/puppetlabs-stdlib/compare/v6.0.0...v6.1.0)
11 - \(MODULES-9915\) Add type aliases for cloud object store uris [\#1048](https://github.com/puppetlabs/puppetlabs-stdlib/pull/1048) ([hooten](https://github.com/hooten))
12 - FM-8411 - add support for debian10 [\#1045](https://github.com/puppetlabs/puppetlabs-stdlib/pull/1045) ([lionce](https://github.com/lionce))
13 - \(FM-8230\) Convert testing to litmus [\#1031](https://github.com/puppetlabs/puppetlabs-stdlib/pull/1031) ([eimlav](https://github.com/eimlav))
14 - \(FM-8160\) Add Windows Server 2019 support [\#1025](https://github.com/puppetlabs/puppetlabs-stdlib/pull/1025) ([eimlav](https://github.com/eimlav))
15 - \(FM-8048\) Add RedHat 8 support [\#1022](https://github.com/puppetlabs/puppetlabs-stdlib/pull/1022) ([eimlav](https://github.com/eimlav))
16 - \(MODULES-9049\) Add type alias for 'yes' and 'no'. [\#1017](https://github.com/puppetlabs/puppetlabs-stdlib/pull/1017) ([ghoneycutt](https://github.com/ghoneycutt))
17 - add Stdlib::Syslogfacility type [\#1005](https://github.com/puppetlabs/puppetlabs-stdlib/pull/1005) ([bastelfreak](https://github.com/bastelfreak))
21 - fix lib/puppet/parser/functions/fqdn\_rand\_string.rb:21: syntax error [\#1029](https://github.com/puppetlabs/puppetlabs-stdlib/pull/1029) ([pulecp](https://github.com/pulecp))
22 - Limit the maximum array size produced by range\(\). [\#1023](https://github.com/puppetlabs/puppetlabs-stdlib/pull/1023) ([mbaynton](https://github.com/mbaynton))
24 ## [v6.0.0](https://github.com/puppetlabs/puppetlabs-stdlib/tree/v6.0.0) (2019-05-10)
26 [Full Changelog](https://github.com/puppetlabs/puppetlabs-stdlib/compare/5.2.0...v6.0.0)
30 - pdksync - \(MODULES-8444\) - Raise lower Puppet bound [\#1011](https://github.com/puppetlabs/puppetlabs-stdlib/pull/1011) ([david22swan](https://github.com/david22swan))
31 - \(MODULES-8760\) Add iterative feature to merge\(\) function [\#1008](https://github.com/puppetlabs/puppetlabs-stdlib/pull/1008) ([hlindberg](https://github.com/hlindberg))
35 - Add a stdlib::ip\_in\_range\(\) function [\#1003](https://github.com/puppetlabs/puppetlabs-stdlib/pull/1003) ([iglov](https://github.com/iglov))
37 ## [5.2.0](https://github.com/puppetlabs/puppetlabs-stdlib/tree/5.2.0) (2019-01-17)
39 [Full Changelog](https://github.com/puppetlabs/puppetlabs-stdlib/compare/5.1.0...5.2.0)
43 - \(MODULES-8404\) - Relax `Stdlib::Filesource` type [\#981](https://github.com/puppetlabs/puppetlabs-stdlib/pull/981) ([alexjfisher](https://github.com/alexjfisher))
44 - Creates new type Stdlib::IP::Address::V6::CIDR [\#980](https://github.com/puppetlabs/puppetlabs-stdlib/pull/980) ([timhughes](https://github.com/timhughes))
45 - \(MODULES-8137\) - Addition of support for SLES 15 [\#978](https://github.com/puppetlabs/puppetlabs-stdlib/pull/978) ([david22swan](https://github.com/david22swan))
46 - \(MODULES-8322\) Consider IPs with /0 as valid [\#975](https://github.com/puppetlabs/puppetlabs-stdlib/pull/975) ([simondeziel](https://github.com/simondeziel))
47 - Add a function to compare the OS version [\#972](https://github.com/puppetlabs/puppetlabs-stdlib/pull/972) ([ekohl](https://github.com/ekohl))
48 - \(MODULES-8273\) - Make unquoted classes useable [\#971](https://github.com/puppetlabs/puppetlabs-stdlib/pull/971) ([baurmatt](https://github.com/baurmatt))
49 - add Function extname\(\) [\#949](https://github.com/puppetlabs/puppetlabs-stdlib/pull/949) ([cocker-cc](https://github.com/cocker-cc))
50 - \(MODULES-7024\) Add 20-octet MAC addresses [\#905](https://github.com/puppetlabs/puppetlabs-stdlib/pull/905) ([ananace](https://github.com/ananace))
54 - pdksync - \(FM-7655\) Fix rubygems-update for ruby \< 2.3 [\#979](https://github.com/puppetlabs/puppetlabs-stdlib/pull/979) ([tphoney](https://github.com/tphoney))
55 - fix ensure\_packages duplicate checking [\#969](https://github.com/puppetlabs/puppetlabs-stdlib/pull/969) ([netzvieh](https://github.com/netzvieh))
57 ## [5.1.0](https://github.com/puppetlabs/puppetlabs-stdlib/tree/5.1.0) (2018-09-28)
59 [Full Changelog](https://github.com/puppetlabs/puppetlabs-stdlib/compare/5.0.0...5.1.0)
63 - pdksync - \(MODULES-6805\) metadata.json shows support for puppet 6 [\#958](https://github.com/puppetlabs/puppetlabs-stdlib/pull/958) ([tphoney](https://github.com/tphoney))
64 - \(maint\) Convert from mocking with mocha to rspec-mocks [\#948](https://github.com/puppetlabs/puppetlabs-stdlib/pull/948) ([rodjek](https://github.com/rodjek))
68 - \(FM-7388\) - Fixing unit tests for puppet 4, 5 and 6 [\#962](https://github.com/puppetlabs/puppetlabs-stdlib/pull/962) ([tphoney](https://github.com/tphoney))
69 - Fix `pick` function docs [\#955](https://github.com/puppetlabs/puppetlabs-stdlib/pull/955) ([alexjfisher](https://github.com/alexjfisher))
70 - \(MODULES-7768\) Handle nil in delete\_undef\_values\(\) function [\#954](https://github.com/puppetlabs/puppetlabs-stdlib/pull/954) ([hlindberg](https://github.com/hlindberg))
71 - Update docs for 'concat' to be correct [\#950](https://github.com/puppetlabs/puppetlabs-stdlib/pull/950) ([rhowe-gds](https://github.com/rhowe-gds))
75 This is a major release which removes support for the Scientific 5 and Debian 7 OS, as well as a removal of the `Stdlib::(Ipv4|IPv6|Ip_address)` data types in favour of `Stdlib::IP::*`.
77 **In addition it contains a substantial piece of work centered around updating functions that have now been migrated into Puppet itself. Please note that this will be the last major release to support Puppet 2 and Puppet 3 and that they will soon be removed.**
80 - Docs URLs corrected.
81 - Docs clarified that `Stdlib::Unixpath` only matches absolute paths.
82 - `dirname()` now fails when passed an empty string.
83 - `basename()` documentation clarified.
84 - Corrected documentation of `count()` wrt matches and empty string.
85 - Corrected example in `getparam()` and added note about equivalent in puppet.
86 - Fixed URL to use 'latest' instead of '5.5' for `Hash.new` function.
89 - Support added for symbolic file nodes.
90 - `loadjson()` and `loadyml()` now compatible with HTTPS files.
91 - `loadjson()` and `loadyml()` now compatible with HTTP basic auth files.
92 - `any2array` now returns and empty array when given an empty string.
93 - Support has now been added for Ubuntu 18.04.
94 - `seeded_rand_string()` function has been added.
97 - PDK update `1.5.0` has been applied.
98 - `size()` function deprecated for Puppet 6 and above.
99 - `wrt` functions moved to Puppet as of Puppet 6.
100 - `sprintf_hash` has had notification put in place to show that as of Puppet 4.10.10 it's functionality is supported by the puppet core.
101 - Added note that `abs()` is in puppet since 6.0.0.
102 - Added information to `base64` function about Binary data type.
103 - Added note to `camelcase()` that function is now in puppet.
104 - Added note to `capitalize()` that function is now in puppet.
105 - Added note to `ceiling()` that function is now in puppet.
106 - Added note to `chomp()` that function is now in puppet.
107 - Added note to `chop()` that function is now in puppet.
108 - Added note how to do equivalence of `clamp()` function in puppet 6.
109 - Added note that `concat()` can be done with + since puppet 4.0.0.
110 - Added note to `convert_base()` how to do this with puppet core.
111 - Added equivalent puppet core way of doing `count()`.
112 - Added docs for equivalent puppet language for `delete_regexp()`.
113 - Added docs for equivalent language constructs for `delete_at()`.
114 - Added puppet 4 equivalent for `delete_undef()` function.
115 - Added equivalent puppet language for `delete_values()`.
116 - Updated `delete()` function with docs about equivalent language.
117 - Added docs that - between arrays is the same as `difference()`.
118 - Added note to `downcase()` that function is now in puppet.
119 - Added note to `empty()` that function is now in puppet.
120 - Added note to `flatten()` that function is now in puppet.
121 - Added note to `floor()` that function is now in puppet.
122 - Added note to `get_module_path()` that puppet has similar function.
123 - Amended documentation for `getvar()`.
124 - Add note to `grep()` that `filter()` in puppet does the same.
125 - Updated `has_key()` with equivalent puppet lang expresion.
126 - Updated the `hash()` function to show equivalent expression.
127 - Added note about more formatting options with `String()` in puppet.
128 - Added note to `join()` that it is in puppet since 5.4.0.
129 - Added note to `keys()` that it is in puppet since 5.4.0.
130 - Added note to `lstrip()`, `rstrip()`, `strip()` and `upcase()` that they are in puppet since 6.0.0.
131 - Updated `member()` with equivalent language expression example.
132 - Updated `merge()` with puppt language equivalent example.
133 - Updated `min()` and `max()` with note that they are in puppet.
134 - Updated `num2bool()` with information that Boolean can convert.
135 - Updated `prefix()` function with equivalent operation in pupppet.
136 - Updated `range()` with information that Integer can be used.
137 - Updated `reject()` with equivalent filter() call.
138 - Added note to `reverse()` that the `reverse_each()` Puppet function does the same as it.
139 - Added note to `round()` that it has moved to puppet in 6.0.0.
140 - Added note to `size()` that `length()` is in puppet since 5.4.0.
141 - Added note to `sort()` that is has moved to Puppet in 6.0.0.
142 - Updated `str2bool()` with a note that Boolean can handle conversion.
143 - Added note to `strftime()` that it moved to puppet in 4.8.0.
144 - Added note to `suffix()` that the same can be done with `map()`.
145 - Updated `time()` to mention Timespan and Timestamp data types.
146 - Added note to `values_at()` for equivalent slice operation in language.
147 - Added note to `values()` that it moved to puppet in 5.5.0.
148 - Corrected docs for `keys()` - in puppet since 5.5.0.
149 - Added note to `length()` that function moved to puppet.
150 - Updated README.md with deprecations for functions moved to puppet.
151 - Updated documentation of `values_at()`.
152 - Updated README with note from `time()` about data types for time.
153 - Updated README for `strintf_hash()` (supported by builtin sprintf).
154 - Updated README with deprecation of `hash()` function (use data type).
155 - Updated README `suffix` with equiv example for `map`.
156 - Updated README with `reject` equivalent call to `filter`.
157 - Updated README with `range` equiv use of type system + `each`.
158 - Updated README with `prefix` equiv func using `map`.
159 - Updated README for `num2bool` with info about Boolean type.
160 - Updated README `str2bool` with information about `Boolean` equivalent.
161 - Updated README `merge` with info about `+` operator equivalent.
162 - Updated README `member` with equivalent alternative in language.
163 - Updated README `join_keys_to_values` with link to String.new.
164 - Updated README `has_key` shows deprecation in favor of `in`.
165 - Updated README `grep` adds information about `filter`.
166 - Updated README and `getvar.rb` as getvar has moved to puppet.
167 - Updated README for `getparam` to be the same as in function.
168 - Updated README `get_module_path` with info about built in variant.
169 - Updated README `difference` to mention `-` operator equiv.
170 - Updated README `delete` with built-in alternatives.
171 - Updated README `delete_values` with builtin equiv.
172 - Updated README `delete_undef` & `delete_regexp` with builtin equiv.
173 - Updated README `delete_at` with equivalent built-in examples.
174 - Updated README `coun`t to show built-in equiv.
175 - Updated README `convert_base` with built-in equiv.
176 - Updated README `concat` with built-in equiv using + and <<.
177 - Updated README `base_64` with built-in equiv using Binary type.
178 - Skipped tests for `abs` if puppet version < 6.0.0.
179 - Skipped tests for `min` and `max` if puppet version < 6.0.0.
180 - Skipped tests for `floor` if puppet version < 6.0.0.
181 - Skipped tests for `ceiling` if puppet version < 6.0.0.
182 - Skipped tests for `round` if puppet version < 6.0.0.
183 - Skipped tests for `upcase` if puppet version < 6.0.0.
184 - Skipped tests for `downcase` if puppet version < 6.0.0.
185 - Skipped tests for `capitalize` if puppet version < 6.0.0.
186 - Skipped tests for `camelcase` if puppet version < 6.0.0.
187 - Skipped tests for strip functions if puppet version < 6.0.0.
188 - Skipped tests for `chop` and `chomp` if puppet version < 6.0.0.
189 - Skipped tests for `sort` if puppet version < 6.0.0.
190 - Removed extra space in `describe` for `abs` test.
191 - Updated README and `any2array` with built-in equiv Array.new.
192 - Updated README and `any2bool` with built-in equiv Boolean.new.
193 - Updated README and `bool2num` with built-in equiv Numeric.new.
194 - Updated README and `bool2str` with built-in equiv String.new.
195 - Corrected equivalent example for `count`.
196 - Updated README and made mention of `filter` in `delete` a link.
197 - Updated docs and tests for `strftime`.
198 - Updated all acceptance test using Puppet.version.
199 - Change 'puppet' to 'Puppet' in function doc strings.
200 - HTTP type checks are now case insensitive.
203 - Support has been removed for `Scientific 5` and `Debian 7` operating systems.
204 - `Stdlib::(Ipv4|IPv6|Ip_address)` have been removed.
206 ## Supported Release 4.25.1
209 This is a patch which includes a roll up of small fixes. In Puppet 5.5.0 `flatten()`, `length(),` `empty(),` `join(),` `keys(),` and `values()` are now built into Puppet. Please note that the Puppet implementation of the functions will take precedence over the functions in 'puppetlabs-stdlib'.
212 - Remove unneeded execute permission from test files.
213 - Puppet 5.5.0 function deprecation [MODULES-6894](https://tickets.puppetlabs.com/browse/MODULES-6894).
215 ## Supported Release 4.25.0
218 This is quite a feature heavy release, it makes this module PDK-compliant for easier maintenance and includes a roll up of maintenance changes.
221 - PDK conversion [MODULES-6332](https://tickets.puppetlabs.com/browse/MODULES-6332).
222 - Update `join_keys_to_values` with an undef statement.
223 - Type alias `Stdlib::Fqdn` matches paths on a fully qualified domain name.
224 - Type alias `Stdlib::Host` matches a valid host, this can be a valid 'ipv4', 'ipv6' or 'fqdn'.
225 - Type alias `Stdlib::Port` matches a valid TCP/UDP Port number.
226 - Type alias `Stdlib::Filesource` matches paths valid values for the source parameter of the puppet file type.
227 - Type alias `Stdlib::IP::Address` matches any IP address, including both IPv4 and IPv6 addresses,
228 - Type alias `Stdlib::IP::Address::V4` matches any string consisting of a valid IPv4 address, this is extended by 'CIDR' and 'nosubnet'.
229 - Type alias `Stdlib::IP::Address::V6` matches any string consisting of a valid IPv6 address, this is extended by 'Full', 'Alternate' and 'Compressed'.
230 - Type alias `Stdlib::IP::Address::V6::Nosubnet`matches any string consisting of a valid IPv6 address with no subnet, this is extended by 'Full', 'Alternate' and 'Compressed'.
231 - Type alias `Stdlib::Port` matches a valid TCP/UDP Port number this is then extended to 'Privileged' which are ports less than 1024 and 'Unprivileged' which are ports greater than 1024.
233 ## Supported Release 4.24.0
236 This release includes a roll up of minor changes and a new feature which provides the ability to skip undef values `to_json_pretty()`.
237 We have also reverted a change that was previously made and resulted in breaking compatibility with Ruby 1.8.7.
240 - Ability to skip undef values in `to_json_pretty()`.
241 - Fix type3x function in stdlib ([MODULES-6216](https://tickets.puppet.com/browse/MODULES-6216))
244 - Indentation for `sync.yml` was fixed.
245 - Updated type alias tests and dropped superfluous wrapper classes
246 - Revert to old ruby 1.X style of hash ([MODULES-6139](https://tickets.puppet.com/browse/MODULES-6139))
247 - `rubocop.yml` not managed by msync ([MODULES-6201](https://tickets.puppet.com/browse/MODULES-6201))
249 ## Supported Release 4.23.0
252 This release is in order to implement Rubocop changes throughout the module.
255 - Standard and translated readme's have been updated.
256 - Rubocop has been implemented in the module and a wide variety of changes have been made to the code.
257 - Modulesync changes have been merged into the code.
260 - Minor fix to the readme.
262 ## Supported Release 4.22.0
265 This is a clean release in preparation of putting the module through the rubocop process.
268 - Support has been added for Debian 9
269 - 'Stdlib::Mode type' has been added to the module.
270 - A type for 'ensure' has been added to the service resources.
271 - A new function 'sprintf_hash' has been added to allow the use of named references.
274 - Support has been removed for: RedHat 4, CentOS 4, OracleLinux 4, Scientific 4, SLES 10 SP4, Windows Server 2003, Windows Server 2003 R2 and Windows 8.
277 - The 'ruby_spec.rb' test file has been altered s that it properly checks results.
278 - Example syntax in 'file_line.rb' has been fixed.
280 ## Supported Release 4.21.0
283 This is a small feature release that includes a revamped, albeit backwards-compatible file_line type.
286 - `replace_all_matches_not_matching_line` parameter in file_line
287 - additional tests and documentation for file_line
290 - duplicate spec test for absolute_path
293 - Unixpath type to allow "/" as valid path
294 - file_line behavior that caused infinite appending of `line` to a file ([MODULES-5651](https://tickets.puppet.com/browse/MODULES-5651))
296 ## Supported Release 4.20.0
299 This release adds new functions and updated README translations.
302 - `to_json`, `to_json_pretty`, and `to_yaml` functions
303 - new Japanese README translations
306 - compatibility issue with older versions of Puppet and the `pw_hash` function ([MODULES-5546](https://tickets.puppet.com/browse/MODULES-5546))
309 - support for EOL platform Debian 6 (Squeeze)
311 ## Supported Release 4.19.0
314 This release adds new functions and better documentation/fixes for existing functions with a noteworthy fix for file_line.
317 - Add validate_domain_name function
318 - Add the round function
319 - Add type for MAC address
320 - Add support for sensitive data type to pw_hash ([MODULES-4908](https://tickets.puppet.com/browse/MODULES-4908))
321 - Add new function, fact() (FACT-932)
324 - Fixes for the file_line provider ([MODULES-5003](https://tickets.puppet.com/browse/MODULES-5003))
325 - Add documentation for email functions ([MODULES-5382](https://tickets.puppet.com/browse/MODULES-5382))
326 - unique function is deprecated for puppet version > 5. (FM-6239)
327 - Fix headers in CHANGELOG.md so that headers render correctly
328 - ensure_packages, converge ensure values 'present' and 'installed'
331 - Removes listed support for EOL Ubuntu versions
333 ## Supported Release 4.18.0
336 Small release that reverts the Puppet version requirement lower bound to again include Puppet 2.7+ and bumps the upper bound to now include Puppet 5.
339 - Reverts lower bound of Puppet requirement to 2.7.20
341 ## Supported Release 4.17.1
344 Small release to address a bug (PUP-7650). Also pushes the Puppet version compatibility to 4.7.0.
347 - (MODULES-5095) Workaround for PUP-7650
348 - (FM-6197) Formatting fixes for file_line resource
351 ## Supported Release 4.17.0
353 This release adds support for internationalization. It also contains Japanese translations for the README, summary and description of the metadata.json and major cleanups in the README. Additional folders have been introduced called locales and readmes where translation files can be found. A number of features and bug fixes are also included in this release. It also adds a new function `glob()` for expanding file lists. Also works around an issue that appeared in puppet 4.6.0 involving types being declared multiple times.
356 - Addition of POT file / folder structure for i18n.
357 - Addition of Internationalized READMEs.
361 - Occasional duplicate type definitions when using `defined_with_params()`
362 - `file_line` encoding issue on ruby 1.8 (unsupported)
363 - Huge readme refresh
365 ## Supported Release 4.16.0
368 This release sees a massive update to all unit tests to test UTF8 characters. There are also multiple cleanups in preparation for internationalization. Alongside this, improvements to ipv6 support, a new length function compatible with Puppet 4, and an update to path types. Also contains multiple bug fixes around functionality and tests.
371 - Addition of coverage in all unit tests for functions, data and resource types for UTF8 for i18n.
372 - All strings within the readme and functions that are split over two lines have been combined in preparation for i18n parser/decorator.
373 - Improvement on the ipv6 support for type - Improves regex to catch some valid (but lesser known) ipv6 strings, mostly those which are a mix of ipv6 strings and embedded ipv6 numbers.
374 - Adds a new parameter `encoding` to allow non UTF-8 files to specify a file encoding. This prevents receiving the error message "invalid byte sequence in UTF-8" when special characters that are not UTF-8 encoded appear in the input stream, such as the copyright symbol.
375 - Addition of the new length function. Returns the length of a given string, array or hash. To eventually replace the deprecated size() function as can handle the new type functionality introduced in Puppet 4.
376 - Permit double slash in absolute/Unix path types.
379 - Fix unsupported data type error with rspec-puppet master.
380 - Now allows test module metadata.json to be read by Puppet.
381 - Fix acceptance test failure "Hiera is not a class".
382 - Removal of unsupported platforms and future parser setting in acceptance tests.
383 - Regex for tuple checking has been loosened.
384 - Ensure_packages function - Now only tries to apply the resource if not defined.
385 - (MODULES-4528) Use versioncmp to check Puppet version for 4.10.x compat.
386 - Adds comments to warn for UTF8 incompatibility of the functions that may not be compatible with UTF8 with Ruby < 2.4.0.
388 ## Supported Release 4.15.0
391 This release introduces multiple new functions, a new fact and the addition of Ubuntu Xenial support. Also includes a bugfix and documentation update.
394 - Addition of puppet_server fact to return agents server.
395 - Addition of a pry function.
396 - Addition of tests for ensure_resources.
397 - Addition of FQDN UUID generation function.
398 - Addition of Ubuntu Xenial to OS Support.
401 - Ensure_packages now works with Ruby < 2.0.
402 - Updated the documentation of str2bool function.
404 ## Supported Release 4.14.0
407 Adds several new features and updates, especially around refining the deprecation and validate_legacy functions. Also includes a Gemfile update around an issue with parallel_tests dependancy for different versions of Ruby.
410 - Deprecation function now uses puppet stacktrace if available.
411 - join_key_to_values function now handles array values. If values are arrays, multiple keys are added for each element.
412 - Updated Gemfile to deal with parallel_tests Ruby dependancy (MODULES-3983).
413 - Updated/Fixed ipv4 regex validator (MODULES-3980).
414 - Deprecation clarification added to README.
418 - Use .dup to duplicate classes for modification (MODULES-3829).
419 - Fixes spec failures that were caused by a change in the tested error message in validate_legacy_spec.
420 - Broken link to validate_legacy docs fixed.
421 - Updates deprecation tests to include future parser.
423 ## Supported Release 4.13.1
426 This bugfix release addresses the `undefined method 'optional_repeated_param'` error messages seen by users of puppet 3.7.
428 It also improves the user experience around function deprecations by emitting one warning per function(-name) instead of only one deprecation overall. This allows users to identify all deprecated functions used in one agent run, with less back-and-forth.
432 * Emit deprecations warnings for each function, instead of once per process. (MODULES-3961)
433 * Use a universally available API for the v4 deprecation stubs of `is_*` and `validate_*`. (MODULES-3962)
434 * Make `getvar()` compatible to ruby 1.8.7. (MODULES-3969)
435 * Add v4 deprecation stubs for the `is_` counterparts of the deprecated functions to emit the deprecations warnings in all cases.
438 ## Supported Release 4.13.0
441 This version of stdlib deprecates a whole host of functions, and provides stepping stones to move to Puppet 4 type validations. Be sure to check out the new `deprecation()` and `validate_legacy()` functions to migrate off the deprecated v3-style data validations.
443 Many thanks to all community contributors: bob, Dmitry Ilyin, Dominic Cleal, Joris, Joseph Yaworski, Loic Antoine-Gombeaud, Maksym Melnychok, Michiel Brandenburg, Nate Potter, Romain Tartière, Stephen Benjamin, and Steve Moore, as well as anyone contributing in the code review process and by submitting issues.
445 Special thanks to [Voxpupuli's](https://voxpupuli.org/) Igor Galić for donating the puppet-tea types to kickstart this part of stdlib.
449 * `validate_absolute_path`, `validate_array`, `validate_bool`, `validate_hash`, `validate_integer`, `validate_ip_address`, `validate_ipv4_address`, `validate_ipv6_address`, `validate_numeric`, `validate_re`, `validate_slength`, `validate_string`, and their `is_` counter parts are now deprecated on Puppet 4. See the `validate_legacy()` description in the README for help on migrating away from those functions.
450 * The `dig` function is provided by core puppet since 4.5.0 with slightly different calling convention. The stdlib version can still be accessed as `dig44` for now.
454 * Add Puppet 4 data types for Unix, and Windows paths, and URLs.
455 * Add `deprecation` function to warn users of functionality that will be removed soon.
456 * Add `validate_legacy` function to help with migrating to Puppet 4 data types.
458 * Add `any2bool` function, a combination of of `string2bool` and `num2bool`.
459 * Add `delete_regex` function to delete array elements matching a regular expression.
460 * Add `puppet_environmentpath` fact to expose the `environmentpath` setting.
461 * Add `regexpescape` function to safely insert arbitrary strings into regular expressions.
462 * Add `shell_escape`, `shell_join`, and `shell_split` functions for safer working with shell scripts..
464 * The `delete` function now also accepts regular expressions as search term.
465 * The `loadyaml` function now accepts a default value, which is returned when there is an error loading the file.
468 * Fix `file_line.match_for_absence` implementation and description to actually work. (MODULES-3590)
469 * Fix `getparam` so that it can now also return `false`. (MODULES-3933)
470 * Fix the fixture setup for testing and adjust `load_module_metadata` and `loadjson` tests.
471 * Fix `defined_with_params` to handle `undef` correctly on all puppet versions. (PUP-6422, MODULES-3543)
472 * Fix `file_line.path` validation to use puppet's built in `absolute_path?` matcher.
474 #### Minor Improvements
475 * README changes: improved descriptions of `deep_merge`, `delete`, `ensure_packages`, `file_line.after`, `range`, and `validate_numeric`.
476 * The `getvar` function now returns nil in all situations where the variable is not found.
477 * Update the `dig44` function with better `undef`, `nil`, and `false` handling.
478 * Better wording on `str2bool` argument validation error message.
482 * The `validate_legacy` function relies on internal APIs from Puppet 4.4.0 (PE 2016.1) onwards, and doesn't work on earlier versions.
483 * Puppet 4.5.0 (PE 2016.2) has a number of improvements around data types - especially error handling - that make working with them much nicer.
485 ## Supported Release 4.12.0
488 This release provides several new functions, bugfixes, modulesync changes, and some documentation updates.
491 - Adds `clamp`. This function keeps values within a specified range.
492 - Adds `validate_x509_rsa_key_pair`. This function validates an x509 RSA certificate and key pair.
493 - Adds `dig`. This function performs a deep lookup in nested hashes or arrays.
494 - Extends the `base64` support to fit `rfc2045` and `rfc4648`.
495 - Adds `is_ipv6_address` and `is_ipv4_address`. These functions validate the specified ipv4 or ipv6 addresses.
496 - Adds `enclose_ipv6`. This function encloses IPv6 addresses in square brackets.
497 - Adds `ensure_resources`. This function takes a list of resources and creates them if they do not exist.
498 - Extends `suffix` to support applying a suffix to keys in a hash.
499 - Apply modulesync changes.
500 - Add validate_email_address function.
503 - Fixes `fqdn_rand_string` tests, since Puppet 4.4.0 and later have a higher `fqdn_rand` ceiling.
504 - (MODULES-3152) Adds a check to `package_provider` to prevent failures if Gem is not installed.
505 - Fixes to README.md.
506 - Fixes catch StandardError rather than the gratuitous Exception
507 - Fixes file_line attribute validation.
508 - Fixes concat with Hash arguments.
510 ## Supported Release 4.11.0
513 Provides a validate_absolute_paths and Debian 8 support. There is a fix to the is_package_provider fact and a test improvement.
516 - Adds new parser called is_absolute_path
520 - Allow package_provider fact to resolve on PE 3.x
523 - ensures that the test passes independently of changes to rubygems for ensure_resource
525 ## 2015-12-15 - Supported Release 4.10.0
528 Includes the addition of several new functions and considerable improvements to the existing functions, tests and documentation. Includes some bug fixes which includes compatibility, test and fact issues.
531 - Adds service_provider fact
532 - Adds is_a() function
533 - Adds package_provider fact
534 - Adds validate_ip_address function
535 - Adds seeded_rand function
538 - Fix backwards compatibility from an improvement to the parseyaml function
539 - Renaming of load_module_metadata test to include \_spec.rb
540 - Fix root_home fact on AIX 5.x, now '-c' rather than '-C'
541 - Fixed Gemfile to work with ruby 1.8.7
544 - (MODULES-2462) Improvement of parseyaml function
545 - Improvement of str2bool function
546 - Improvement to readme
547 - Improvement of intersection function
548 - Improvement of validate_re function
549 - Improved speed on Facter resolution of service_provider
550 - empty function now handles numeric values
551 - Package_provider now prevents deprecation warning about the allow_virtual parameter
552 - load_module_metadata now succeeds on empty file
553 - Check added to ensure puppetversion value is not nil
554 - Improvement to bool2str to return a string of choice using boolean
555 - Improvement to naming convention in validate_ipv4_address function
557 ## Supported Release 4.9.1
560 Small release for support of newer PE versions. This increments the version of PE in the metadata.json file.
562 ## 2015-09-08 - Supported Release 4.9.0
565 This release adds new features including the new functions dos2unix, unix2dos, try_get_value, convert_base as well as other features and improvements.
568 - (MODULES-2370) allow `match` parameter to influence `ensure => absent` behavior
569 - (MODULES-2410) Add new functions dos2unix and unix2dos
570 - (MODULE-2456) Modify union to accept more than two arrays
571 - Adds a convert_base function, which can convert numbers between bases
572 - Add a new function "try_get_value"
578 - (MODULES-2478) Support root_home fact on AIX through "lsuser" command
579 - Acceptance test improvements
580 - Unit test improvements
581 - Readme improvements
583 ## 2015-08-10 - Supported Release 4.8.0
585 This release adds a function for reading metadata.json from any module, and expands file\_line's abilities.
588 - New parameter `replace` on `file_line`
589 - New function `load_module_metadata()` to load metadata.json and return the content as a hash.
590 - Added hash support to `size()`
593 - Fix various docs typos
594 - Fix `file_line` resource on puppet < 3.3
596 ## 2015-06-22 - Supported Release 4.7.0
599 Adds Solaris 12 support along with improved Puppet 4 support. There are significant test improvements, and some minor fixes.
602 - Add support for Solaris 12
605 - Fix for AIO Puppet 4
606 - Fix time for ruby 1.8.7
607 - Specify rspec-puppet version
608 - range() fix for typeerror and missing functionality
609 - Fix pw_hash() on JRuby < 1.7.17
610 - fqdn_rand_string: fix argument error message
611 - catch and rescue from looking up non-existent facts
612 - Use puppet_install_helper, for Puppet 4
615 - Enforce support for Puppet 4 testing
616 - fqdn_rotate/fqdn_rand_string acceptance tests and implementation
617 - Simplify mac address regex
618 - validate_integer, validate_numeric: explicitely reject hashes in arrays
620 - Remove all the pops stuff for rspec-puppet
621 - Sync via modulesync
622 - Add validate_slength optional 3rd arg
623 - Move tests directory to examples directory
625 ## 2015-04-14 - Supported Release 4.6.0
628 Adds functions and function argument abilities, and improves compatibility with the new puppet parser
631 - MODULES-444: `concat()` can now take more than two arrays
632 - `basename()` added to have Ruby File.basename functionality
633 - `delete()` can now take an array of items to remove
634 - `prefix()` can now take a hash
635 - `upcase()` can now take a hash or array of upcaseable things
636 - `validate_absolute_path()` can now take an array
637 - `validate_cmd()` can now use % in the command to embed the validation file argument in the string
638 - MODULES-1473: deprecate `type()` function in favor of `type3x()`
639 - MODULES-1473: Add `type_of()` to give better type information on future parser
640 - Deprecate `private()` for `assert_private()` due to future parser
641 - Adds `ceiling()` to take the ceiling of a number
642 - Adds `fqdn_rand_string()` to generate random string based on fqdn
643 - Adds `pw_hash()` to generate password hashes
644 - Adds `validate_integer()`
645 - Adds `validate_numeric()` (like `validate_integer()` but also accepts floats)
648 - Fix seeding of `fqdn_rotate()`
649 - `ensure_resource()` is more verbose on debug mode
650 - Stricter argument checking for `dirname()`
651 - Fix `is_domain_name()` to better match RFC
652 - Fix `uriescape()` when called with array
653 - Fix `file_line` resource when using the `after` attribute with `match`
655 ## 2015-01-14 - Supported Release 4.5.1
658 This release changes the temporary facter_dot_d cache locations outside of the /tmp directory due to a possible security vunerability. CVE-2015-1029
661 - Facter_dot_d cache will now be stored in puppet libdir instead of tmp
663 ## 2014-12-15 - Supported Release 4.5.0
666 This release improves functionality of the member function and adds improved future parser support.
669 - MODULES-1329: Update member() to allow the variable to be an array.
670 - Sync .travis.yml, Gemfile, Rakefile, and CONTRIBUTING.md via modulesync
673 - Fix range() to work with numeric ranges with the future parser
674 - Accurately express SLES support in metadata.json (was missing 10SP4 and 12)
675 - Don't require `line` to match the `match` parameter
677 ## 2014-11-10 - Supported Release 4.4.0
679 This release has an overhauled readme, new private manifest function, and fixes many future parser bugs.
682 - All new shiny README
683 - New `private()` function for making private manifests (yay!)
686 - Code reuse in `bool2num()` and `zip()`
687 - Fix many functions to handle `generate()` no longer returning a string on new puppets
688 - `concat()` no longer modifies the first argument (whoops)
689 - strict variable support for `getvar()`, `member()`, `values_at`, and `has_interface_with()`
690 - `to_bytes()` handles PB and EB now
691 - Fix `tempfile` ruby requirement for `validate_augeas()` and `validate_cmd()`
692 - Fix `validate_cmd()` for windows
693 - Correct `validate_string()` docs to reflect non-handling of `undef`
694 - Fix `file_line` matching on older rubies
697 ## 2014-07-15 - Supported Release 4.3.2
700 This release merely updates metadata.json so the module can be uninstalled and
701 upgraded via the puppet module command.
703 ## 2014-07-14 - Supported Release 4.3.1
705 This supported release updates the metadata.json to work around upgrade behavior of the PMT.
708 - Synchronize metadata.json with PMT-generated metadata to pass checksums
710 ## 2014-06-27 - Supported Release 4.3.0
712 This release is the first supported release of the stdlib 4 series. It remains
713 backwards-compatible with the stdlib 3 series. It adds two new functions, one bugfix, and many testing updates.
716 - New `bool2str()` function
717 - New `camelcase()` function
720 - Fix `has_interface_with()` when interfaces fact is nil
722 ## 2014-06-04 - Release 4.2.2
725 This release adds PE3.3 support in the metadata and fixes a few tests.
727 ## 2014-05-08 - Release - 4.2.1
729 This release moves a stray symlink that can cause problems.
731 ## 2014-05-08 - Release - 4.2.0
733 This release adds many new functions and fixes, and continues to be backwards compatible with stdlib 3.x
736 - New `base64()` function
737 - New `deep_merge()` function
738 - New `delete_undef_values()` function
739 - New `delete_values()` function
740 - New `difference()` function
741 - New `intersection()` function
742 - New `is_bool()` function
743 - New `pick_default()` function
744 - New `union()` function
745 - New `validate_ipv4_address` function
746 - New `validate_ipv6_address` function
747 - Update `ensure_packages()` to take an option hash as a second parameter.
748 - Update `range()` to take an optional third argument for range step
749 - Update `validate_slength()` to take an optional third argument for minimum length
750 - Update `file_line` resource to take `after` and `multiple` attributes
753 - Correct `is_string`, `is_domain_name`, `is_array`, `is_float`, and `is_function_available` for parsing odd types such as bools and hashes.
754 - Allow facts.d facts to contain `=` in the value
755 - Fix `root_home` fact on darwin systems
756 - Fix `concat()` to work with a second non-array argument
757 - Fix `floor()` to work with integer strings
758 - Fix `is_integer()` to return true if passed integer strings
759 - Fix `is_numeric()` to return true if passed integer strings
760 - Fix `merge()` to work with empty strings
761 - Fix `pick()` to raise the correct error type
762 - Fix `uriescape()` to use the default URI.escape list
763 - Add/update unit & acceptance tests.
766 ## 2014-03-04 - Supported Release - 3.2.1
768 This is a supported release
771 - Fixed `is_integer`/`is_float`/`is_numeric` for checking the value of arithmatic expressions.
778 ##### 2013-05-06 - Jeff McCune <jeff@puppetlabs.com> - 4.1.0
780 * (#20582) Restore facter\_dot\_d to stdlib for PE users (3b887c8)
781 * (maint) Update Gemfile with GEM\_FACTER\_VERSION (f44d535)
783 ##### 2013-05-06 - Alex Cline <acline@us.ibm.com> - 4.1.0
785 * Terser method of string to array conversion courtesy of ethooz. (d38bce0)
787 ##### 2013-05-06 - Alex Cline <acline@us.ibm.com> 4.1.0
789 * Refactor ensure\_resource expectations (b33cc24)
791 ##### 2013-05-06 - Alex Cline <acline@us.ibm.com> 4.1.0
793 * Changed str-to-array conversion and removed abbreviation. (de253db)
795 ##### 2013-05-03 - Alex Cline <acline@us.ibm.com> 4.1.0
797 * (#20548) Allow an array of resource titles to be passed into the ensure\_resource function (e08734a)
799 ##### 2013-05-02 - Raphaël Pinson <raphael.pinson@camptocamp.com> - 4.1.0
801 * Add a dirname function (2ba9e47)
803 ##### 2013-04-29 - Mark Smith-Guerrero <msmithgu@gmail.com> - 4.1.0
805 * (maint) Fix a small typo in hash() description (928036a)
807 ##### 2013-04-12 - Jeff McCune <jeff@puppetlabs.com> - 4.0.2
809 * Update user information in gemspec to make the intent of the Gem clear.
811 ##### 2013-04-11 - Jeff McCune <jeff@puppetlabs.com> - 4.0.1
813 * Fix README function documentation (ab3e30c)
815 ##### 2013-04-11 - Jeff McCune <jeff@puppetlabs.com> - 4.0.0
817 * stdlib 4.0 drops support with Puppet 2.7
818 * stdlib 4.0 preserves support with Puppet 3
820 ##### 2013-04-11 - Jeff McCune <jeff@puppetlabs.com> - 4.0.0
822 * Add ability to use puppet from git via bundler (9c5805f)
824 ##### 2013-04-10 - Jeff McCune <jeff@puppetlabs.com> - 4.0.0
826 * (maint) Make stdlib usable as a Ruby GEM (e81a45e)
828 ##### 2013-04-10 - Erik Dalén <dalen@spotify.com> - 4.0.0
830 * Add a count function (f28550e)
832 ##### 2013-03-31 - Amos Shapira <ashapira@atlassian.com> - 4.0.0
834 * (#19998) Implement any2array (7a2fb80)
836 ##### 2013-03-29 - Steve Huff <shuff@vecna.org> - 4.0.0
838 * (19864) num2bool match fix (8d217f0)
840 ##### 2013-03-20 - Erik Dalén <dalen@spotify.com> - 4.0.0
842 * Allow comparisons of Numeric and number as String (ff5dd5d)
844 ##### 2013-03-26 - Richard Soderberg <rsoderberg@mozilla.com> - 4.0.0
846 * add suffix function to accompany the prefix function (88a93ac)
848 ##### 2013-03-19 - Kristof Willaert <kristof.willaert@gmail.com> - 4.0.0
850 * Add floor function implementation and unit tests (0527341)
852 ##### 2012-04-03 - Eric Shamow <eric@puppetlabs.com> - 4.0.0
854 * (#13610) Add is\_function\_available to stdlib (961dcab)
856 ##### 2012-12-17 - Justin Lambert <jlambert@eml.cc> - 4.0.0
858 * str2bool should return a boolean if called with a boolean (5d5a4d4)
860 ##### 2012-10-23 - Uwe Stuehler <ustuehler@team.mobile.de> - 4.0.0
862 * Fix number of arguments check in flatten() (e80207b)
864 ##### 2013-03-11 - Jeff McCune <jeff@puppetlabs.com> - 4.0.0
866 * Add contributing document (96e19d0)
868 ##### 2013-03-04 - Raphaël Pinson <raphael.pinson@camptocamp.com> - 4.0.0
870 * Add missing documentation for validate\_augeas and validate\_cmd to README.markdown (a1510a1)
872 ##### 2013-02-14 - Joshua Hoblitt <jhoblitt@cpan.org> - 4.0.0
874 * (#19272) Add has\_element() function (95cf3fe)
876 ##### 2013-02-07 - Raphaël Pinson <raphael.pinson@camptocamp.com> - 4.0.0
878 * validate\_cmd(): Use Puppet::Util::Execution.execute when available (69248df)
880 ##### 2012-12-06 - Raphaël Pinson <raphink@gmail.com> - 4.0.0
882 * Add validate\_augeas function (3a97c23)
884 ##### 2012-12-06 - Raphaël Pinson <raphink@gmail.com> - 4.0.0
886 * Add validate\_cmd function (6902cc5)
888 ##### 2013-01-14 - David Schmitt <david@dasz.at> - 4.0.0
890 * Add geppetto project definition (b3fc0a3)
892 ##### 2013-01-02 - Jaka Hudoklin <jakahudoklin@gmail.com> - 4.0.0
894 * Add getparam function to get defined resource parameters (20e0e07)
896 ##### 2013-01-05 - Jeff McCune <jeff@puppetlabs.com> - 4.0.0
898 * (maint) Add Travis CI Support (d082046)
900 ##### 2012-12-04 - Jeff McCune <jeff@puppetlabs.com> - 4.0.0
902 * Clarify that stdlib 3 supports Puppet 3 (3a6085f)
904 ##### 2012-11-30 - Erik Dalén <dalen@spotify.com> - 4.0.0
906 * maint: style guideline fixes (7742e5f)
908 ##### 2012-11-09 - James Fryman <james@frymanet.com> - 4.0.0
910 * puppet-lint cleanup (88acc52)
912 ##### 2012-11-06 - Joe Julian <me@joejulian.name> - 4.0.0
914 * Add function, uriescape, to URI.escape strings. Redmine #17459 (fd52b8d)
916 ##### 2012-09-18 - Chad Metcalf <chad@wibidata.com> - 3.2.0
918 * Add an ensure\_packages function. (8a8c09e)
920 ##### 2012-11-23 - Erik Dalén <dalen@spotify.com> - 3.2.0
922 * (#17797) min() and max() functions (9954133)
924 ##### 2012-05-23 - Peter Meier <peter.meier@immerda.ch> - 3.2.0
926 * (#14670) autorequire a file\_line resource's path (dfcee63)
928 ##### 2012-11-19 - Joshua Harlan Lifton <lifton@puppetlabs.com> - 3.2.0
930 * Add join\_keys\_to\_values function (ee0f2b3)
932 ##### 2012-11-17 - Joshua Harlan Lifton <lifton@puppetlabs.com> - 3.2.0
934 * Extend delete function for strings and hashes (7322e4d)
936 ##### 2012-08-03 - Gary Larizza <gary@puppetlabs.com> - 3.2.0
938 * Add the pick() function (ba6dd13)
940 ##### 2012-03-20 - Wil Cooley <wcooley@pdx.edu> - 3.2.0
942 * (#13974) Add predicate functions for interface facts (f819417)
944 ##### 2012-11-06 - Joe Julian <me@joejulian.name> - 3.2.0
946 * Add function, uriescape, to URI.escape strings. Redmine #17459 (70f4a0e)
948 ##### 2012-10-25 - Jeff McCune <jeff@puppetlabs.com> - 3.1.1
950 * (maint) Fix spec failures resulting from Facter API changes (97f836f)
952 ##### 2012-10-23 - Matthaus Owens <matthaus@puppetlabs.com> - 3.1.0
954 * Add PE facts to stdlib (cdf3b05)
956 ##### 2012-08-16 - Jeff McCune <jeff@puppetlabs.com> - 3.0.1
958 * Fix accidental removal of facts\_dot\_d.rb in 3.0.0 release
960 ##### 2012-08-16 - Jeff McCune <jeff@puppetlabs.com> - 3.0.0
962 * stdlib 3.0 drops support with Puppet 2.6
963 * stdlib 3.0 preserves support with Puppet 2.7
965 ##### 2012-08-07 - Dan Bode <dan@puppetlabs.com> - 3.0.0
967 * Add function ensure\_resource and defined\_with\_params (ba789de)
969 ##### 2012-07-10 - Hailee Kenney <hailee@puppetlabs.com> - 3.0.0
971 * (#2157) Remove facter\_dot\_d for compatibility with external facts (f92574f)
973 ##### 2012-04-10 - Chris Price <chris@puppetlabs.com> - 3.0.0
975 * (#13693) moving logic from local spec\_helper to puppetlabs\_spec\_helper (85f96df)
977 ##### 2012-10-25 - Jeff McCune <jeff@puppetlabs.com> - 2.5.1
979 * (maint) Fix spec failures resulting from Facter API changes (97f836f)
981 ##### 2012-10-23 - Matthaus Owens <matthaus@puppetlabs.com> - 2.5.0
983 * Add PE facts to stdlib (cdf3b05)
985 ##### 2012-08-15 - Dan Bode <dan@puppetlabs.com> - 2.5.0
987 * Explicitly load functions used by ensure\_resource (9fc3063)
989 ##### 2012-08-13 - Dan Bode <dan@puppetlabs.com> - 2.5.0
991 * Add better docs about duplicate resource failures (97d327a)
993 ##### 2012-08-13 - Dan Bode <dan@puppetlabs.com> - 2.5.0
995 * Handle undef for parameter argument (4f8b133)
997 ##### 2012-08-07 - Dan Bode <dan@puppetlabs.com> - 2.5.0
999 * Add function ensure\_resource and defined\_with\_params (a0cb8cd)
1001 ##### 2012-08-20 - Jeff McCune <jeff@puppetlabs.com> - 2.5.0
1003 * Disable tests that fail on 2.6.x due to #15912 (c81496e)
1005 ##### 2012-08-20 - Jeff McCune <jeff@puppetlabs.com> - 2.5.0
1007 * (Maint) Fix mis-use of rvalue functions as statements (4492913)
1009 ##### 2012-08-20 - Jeff McCune <jeff@puppetlabs.com> - 2.5.0
1011 * Add .rspec file to repo root (88789e8)
1013 ##### 2012-06-07 - Chris Price <chris@puppetlabs.com> - 2.4.0
1015 * Add support for a 'match' parameter to file\_line (a06c0d8)
1017 ##### 2012-08-07 - Erik Dalén <dalen@spotify.com> - 2.4.0
1019 * (#15872) Add to\_bytes function (247b69c)
1021 ##### 2012-07-19 - Jeff McCune <jeff@puppetlabs.com> - 2.4.0
1023 * (Maint) use PuppetlabsSpec::PuppetInternals.scope (master) (deafe88)
1025 ##### 2012-07-10 - Hailee Kenney <hailee@puppetlabs.com> - 2.4.0
1027 * (#2157) Make facts\_dot\_d compatible with external facts (5fb0ddc)
1029 ##### 2012-03-16 - Steve Traylen <steve.traylen@cern.ch> - 2.4.0
1031 * (#13205) Rotate array/string randomley based on fqdn, fqdn\_rotate() (fef247b)
1033 ##### 2012-05-22 - Peter Meier <peter.meier@immerda.ch> - 2.3.3
1035 * fix regression in #11017 properly (f0a62c7)
1037 ##### 2012-05-10 - Jeff McCune <jeff@puppetlabs.com> - 2.3.3
1039 * Fix spec tests using the new spec\_helper (7d34333)
1041 ##### 2012-05-10 - Puppet Labs <support@puppetlabs.com> - 2.3.2
1043 * Make file\_line default to ensure => present (1373e70)
1044 * Memoize file\_line spec instance variables (20aacc5)
1045 * Fix spec tests using the new spec\_helper (1ebfa5d)
1046 * (#13595) initialize\_everything\_for\_tests couples modules Puppet ver (3222f35)
1047 * (#13439) Fix MRI 1.9 issue with spec\_helper (15c5fd1)
1048 * (#13439) Fix test failures with Puppet 2.6.x (665610b)
1049 * (#13439) refactor spec helper for compatibility with both puppet 2.7 and master (82194ca)
1050 * (#13494) Specify the behavior of zero padded strings (61891bb)
1052 ##### 2012-03-29 Puppet Labs <support@puppetlabs.com> - 2.1.3
1054 * (#11607) Add Rakefile to enable spec testing
1055 * (#12377) Avoid infinite loop when retrying require json
1057 ##### 2012-03-13 Puppet Labs <support@puppetlabs.com> - 2.3.1
1059 * (#13091) Fix LoadError bug with puppet apply and puppet\_vardir fact
1061 ##### 2012-03-12 Puppet Labs <support@puppetlabs.com> - 2.3.0
1063 * Add a large number of new Puppet functions
1064 * Backwards compatibility preserved with 2.2.x
1066 ##### 2011-12-30 Puppet Labs <support@puppetlabs.com> - 2.2.1
1068 * Documentation only release for the Forge
1070 ##### 2011-12-30 Puppet Labs <support@puppetlabs.com> - 2.1.2
1072 * Documentation only release for PE 2.0.x
1074 ##### 2011-11-08 Puppet Labs <support@puppetlabs.com> - 2.2.0
1076 * #10285 - Refactor json to use pson instead.
1077 * Maint - Add watchr autotest script
1078 * Maint - Make rspec tests work with Puppet 2.6.4
1079 * #9859 - Add root\_home fact and tests
1081 ##### 2011-08-18 Puppet Labs <support@puppetlabs.com> - 2.1.1
1083 * Change facts.d paths to match Facter 2.0 paths.
1084 * /etc/facter/facts.d
1085 * /etc/puppetlabs/facter/facts.d
1087 ##### 2011-08-17 Puppet Labs <support@puppetlabs.com> - 2.1.0
1089 * Add R.I. Pienaar's facts.d custom facter fact
1090 * facts defined in /etc/facts.d and /etc/puppetlabs/facts.d are
1091 automatically loaded now.
1093 ##### 2011-08-04 Puppet Labs <support@puppetlabs.com> - 2.0.0
1095 * Rename whole\_line to file\_line
1096 * This is an API change and as such motivating a 2.0.0 release according to semver.org.
1098 ##### 2011-08-04 Puppet Labs <support@puppetlabs.com> - 1.1.0
1100 * Rename append\_line to whole\_line
1101 * This is an API change and as such motivating a 1.1.0 release.
1103 ##### 2011-08-04 Puppet Labs <support@puppetlabs.com> - 1.0.0
1105 * Initial stable release
1106 * Add validate\_array and validate\_string functions
1107 * Make merge() function work with Ruby 1.8.5
1108 * Add hash merging function
1109 * Add has\_key function
1110 * Add loadyaml() function
1111 * Add append\_line native
1113 ##### 2011-06-21 Jeff McCune <jeff@puppetlabs.com> - 0.1.7
1115 * Add validate\_hash() and getvar() functions
1117 ##### 2011-06-15 Jeff McCune <jeff@puppetlabs.com> - 0.1.6
1119 * Add anchor resource type to provide containment for composite classes
1121 ##### 2011-06-03 Jeff McCune <jeff@puppetlabs.com> - 0.1.5
1123 * Add validate\_bool() function to stdlib
1125 ##### 0.1.4 2011-05-26 Jeff McCune <jeff@puppetlabs.com>
1127 * Move most stages after main
1129 ##### 0.1.3 2011-05-25 Jeff McCune <jeff@puppetlabs.com>
1131 * Add validate\_re() function
1133 ##### 0.1.2 2011-05-24 Jeff McCune <jeff@puppetlabs.com>
1135 * Update to add annotated tag
1137 ##### 0.1.1 2011-05-24 Jeff McCune <jeff@puppetlabs.com>
1139 * Add stdlib::stages class with a standard set of stages
1142 \* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*