|
1 | 1 | # Changelog |
2 | 2 |
|
| 3 | +## [3.0.0](https://github.com/voxpupuli/rspec-puppet-facts/tree/3.0.0) (2024-03-23) |
| 4 | + |
| 5 | +[Full Changelog](https://github.com/voxpupuli/rspec-puppet-facts/compare/2.0.5...3.0.0) |
| 6 | + |
| 7 | +**symbolized facts deprecation** |
| 8 | + |
| 9 | +With the release of rspec-puppet-facts 4.0.0 we will remove support for symbolized facts. At the moment people typically use this in their unit files: |
| 10 | + |
| 11 | +```ruby |
| 12 | +case facts[:os]['name'] |
| 13 | +when 'Archlinux' |
| 14 | + context 'on Archlinux' do |
| 15 | + it { is_expected.to contain_package('borg') } |
| 16 | + end |
| 17 | +when 'Ubuntu' |
| 18 | +``` |
| 19 | + |
| 20 | +For history reasons the first level of facts were symbols. You will have to update it to strings with the 4.0.0 release: |
| 21 | + |
| 22 | +```ruby |
| 23 | +case facts['os']['name'] |
| 24 | +when 'Archlinux' |
| 25 | + context 'on Archlinux' do |
| 26 | + it { is_expected.to contain_package('borg') } |
| 27 | + end |
| 28 | +when 'Ubuntu' |
| 29 | +``` |
| 30 | + |
| 31 | + |
| 32 | +**Breaking changes:** |
| 33 | + |
| 34 | +- Use facterdb\_string\_keys configuration option for custom facts [\#157](https://github.com/voxpupuli/rspec-puppet-facts/pull/157) ([jordanbreen28](https://github.com/jordanbreen28)) |
| 35 | +- Do not query for the exact facter version [\#151](https://github.com/voxpupuli/rspec-puppet-facts/pull/151) ([ekohl](https://github.com/ekohl)) |
| 36 | +- Drop Ruby 2.4/2.5/2.6 support [\#149](https://github.com/voxpupuli/rspec-puppet-facts/pull/149) ([bastelfreak](https://github.com/bastelfreak)) |
| 37 | + |
| 38 | +**Implemented enhancements:** |
| 39 | + |
| 40 | +- Add Ruby 3.3 support [\#169](https://github.com/voxpupuli/rspec-puppet-facts/pull/169) ([bastelfreak](https://github.com/bastelfreak)) |
| 41 | +- gemspec: Add version constraints & CI: Build gem in strict mode [\#165](https://github.com/voxpupuli/rspec-puppet-facts/pull/165) ([bastelfreak](https://github.com/bastelfreak)) |
| 42 | +- update puppet agent components [\#164](https://github.com/voxpupuli/rspec-puppet-facts/pull/164) ([bastelfreak](https://github.com/bastelfreak)) |
| 43 | +- Add merge facts option to add\_custom\_fact [\#160](https://github.com/voxpupuli/rspec-puppet-facts/pull/160) ([jordanbreen28](https://github.com/jordanbreen28)) |
| 44 | +- Collect facts iteratively [\#152](https://github.com/voxpupuli/rspec-puppet-facts/pull/152) ([ekohl](https://github.com/ekohl)) |
| 45 | +- Use Hash.to\_h to construct a new hash [\#150](https://github.com/voxpupuli/rspec-puppet-facts/pull/150) ([ekohl](https://github.com/ekohl)) |
| 46 | +- Add Ruby 3.2 support [\#148](https://github.com/voxpupuli/rspec-puppet-facts/pull/148) ([bastelfreak](https://github.com/bastelfreak)) |
| 47 | + |
| 48 | +**Merged pull requests:** |
| 49 | + |
| 50 | +- Update voxpupuli-rubocop requirement from ~\> 2.4.0 to ~\> 2.6.0 [\#168](https://github.com/voxpupuli/rspec-puppet-facts/pull/168) ([dependabot[bot]](https://github.com/apps/dependabot)) |
| 51 | +- github\_changelog\_generator: Apply best practices [\#163](https://github.com/voxpupuli/rspec-puppet-facts/pull/163) ([bastelfreak](https://github.com/bastelfreak)) |
| 52 | +- Gemfile: Add faraday as github\_changelog\_generator dep [\#162](https://github.com/voxpupuli/rspec-puppet-facts/pull/162) ([bastelfreak](https://github.com/bastelfreak)) |
| 53 | +- voxpupuli-rubocop: Pin to patch version [\#161](https://github.com/voxpupuli/rspec-puppet-facts/pull/161) ([bastelfreak](https://github.com/bastelfreak)) |
| 54 | +- Update voxpupuli-rubocop requirement from ~\> 1.3 to ~\> 2.0 [\#156](https://github.com/voxpupuli/rspec-puppet-facts/pull/156) ([dependabot[bot]](https://github.com/apps/dependabot)) |
| 55 | +- CI: add dummy job to depend on [\#155](https://github.com/voxpupuli/rspec-puppet-facts/pull/155) ([bastelfreak](https://github.com/bastelfreak)) |
| 56 | +- migrate to voxpupuli-rubocop [\#154](https://github.com/voxpupuli/rspec-puppet-facts/pull/154) ([bastelfreak](https://github.com/bastelfreak)) |
| 57 | +- Update rubocop requirement from ~\> 1.48.1 to ~\> 1.54.1 [\#153](https://github.com/voxpupuli/rspec-puppet-facts/pull/153) ([dependabot[bot]](https://github.com/apps/dependabot)) |
| 58 | +- Introduce RuboCop and fix various cops [\#146](https://github.com/voxpupuli/rspec-puppet-facts/pull/146) ([ekohl](https://github.com/ekohl)) |
| 59 | +- Update puppet agent components [\#145](https://github.com/voxpupuli/rspec-puppet-facts/pull/145) ([bastelfreak](https://github.com/bastelfreak)) |
| 60 | + |
3 | 61 | ## [2.0.5](https://github.com/voxpupuli/rspec-puppet-facts/tree/2.0.5) (2022-04-22) |
4 | 62 |
|
5 | 63 | [Full Changelog](https://github.com/voxpupuli/rspec-puppet-facts/compare/2.0.4...2.0.5) |
|
0 commit comments