From 6543a3e038498b0ca12a782c69defcd082f51d8b Mon Sep 17 00:00:00 2001 From: Tim Meusel Date: Wed, 21 Jul 2021 10:48:17 +0200 Subject: [PATCH 1/2] release 2.0.2 --- CHANGELOG.md | 34 ++++- HISTORY.md | 209 ++++++++++++++++++++++++++++++ Rakefile | 14 ++ lib/rspec-puppet-facts/version.rb | 2 +- 4 files changed, 254 insertions(+), 5 deletions(-) create mode 100644 HISTORY.md diff --git a/CHANGELOG.md b/CHANGELOG.md index 9e0a699d..a53c267a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,9 +1,32 @@ -## 2021-01-08 - Release 2.0.1 +# Changelog -- Cache results from `on_supported_os` to reduce facterdb lookup times on - full test suite runs. +## [2.0.2](https://github.com/voxpupuli/rspec-puppet-facts/tree/2.0.2) (2021-07-21) -## 2020-08-04 - Release 2.0.0 +[Full Changelog](https://github.com/voxpupuli/rspec-puppet-facts/compare/2.0.1...2.0.2) + +**Implemented enhancements:** + +- Implement github action testing and codecov coverage reporting [\#129](https://github.com/voxpupuli/rspec-puppet-facts/pull/129) ([bastelfreak](https://github.com/bastelfreak)) + +**Merged pull requests:** + +- Move facterversion\_obj declaration out of the loop [\#131](https://github.com/voxpupuli/rspec-puppet-facts/pull/131) ([ekohl](https://github.com/ekohl)) +- Upgrade to GitHub-native Dependabot [\#126](https://github.com/voxpupuli/rspec-puppet-facts/pull/126) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview)) + +## [2.0.1](https://github.com/voxpupuli/rspec-puppet-facts/tree/2.0.1) (2021-01-09) + +[Full Changelog](https://github.com/voxpupuli/rspec-puppet-facts/compare/2.0.0...2.0.1) + +**Closed issues:** + +- Memoizing facts [\#114](https://github.com/voxpupuli/rspec-puppet-facts/issues/114) +- Commit 21442e7 looks to introduce hard to debug behavior [\#97](https://github.com/voxpupuli/rspec-puppet-facts/issues/97) + +**Merged pull requests:** + +- Implement fact memoization [\#122](https://github.com/voxpupuli/rspec-puppet-facts/pull/122) ([ekohl](https://github.com/ekohl)) + +## [2.0.0](https://github.com/voxpupuli/rspec-puppet-facts/tree/2.0.0) (2020-08-05) - Require Ruby >= 2.4 - Automatically find the latest facter version in the database. Previously a @@ -212,3 +235,6 @@ ## 2014-12-12 - First Release 0.1.0 - Initial release + + +\* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)* diff --git a/HISTORY.md b/HISTORY.md new file mode 100644 index 00000000..fad6f143 --- /dev/null +++ b/HISTORY.md @@ -0,0 +1,209 @@ +## [2.0.0](https://github.com/voxpupuli/rspec-puppet-facts/tree/2.0.0) (2020-08-05) + +- Require Ruby >= 2.4 +- Automatically find the latest facter version in the database. Previously a + very slow and undeterministic approach was taken when an exact match of the + Facter version wasn't found.. The new approach is to take the closest version + that is still older than the specified version. +- Fix Amazon Linux 2 fact lookup +- Log which facts could not be found +- Remove json as a dependency + +## 2019-12-11 - Release 1.10.0 +- Automatically select the default Facter version based on the Puppet version. + The available Puppet version is matched against a mapping of Puppet and + Facter versions included in the `puppet-agent` all-in-one packages to find + the most suitable Facter version. + +## 2019-07-31 - Release 1.9.6 +- Suppress the warning message generated when the Augeas gem is not available. +- Searching through older Facter releases for a fact set that does not exist no + longer causes it to hang indefinitely. +- The `operatingsystemrelease` values are now correctly escaped when building + the FacterDB filters, allowing the use of `operatingsystemrelease` values + that contain special regular expression characters like parentheses. + +## 2019-07-29 - Release 1.9.5 +- The default version of Facter to search for is now configurable with + `RSpec.configuration.default_facter_version`. +- When passing a `:supported_os` hash to `on_supported_os()`, single + `operatingsystemrelease` values can now be specified as a String rather than + an Array with a single String. +- Dependency on the `mcollective-client` gem removed. The `mco_version` fact + will now optionally be set if the gem is installed. +- The fact names can now be provided to tests as Strings instead of Symbols by + setting `RSpec.configuration.facterdb_string_keys` to `true`. +- Dropped support for Ruby < 2.1.0 + +## 2019-03-22 - Release 1.9.4 +- Take two on getting rubygems autodeploy going. So much for docs, + looking at other projects for this one. +## 2019-03-22 - Release 1.9.3 +- Various CI updates - [Garrett Honeycutt](https://github.com/ghoneycutt/) +- Symbolize hash keys in `register_custom_fact` + [https://github.com/mcanevet/rspec-puppet-facts/pull/77](https://github.com/mcanevet/rspec-puppet-facts/pull/77) + +## 2018-10-24 - Release 1.9.2 +- Catch the right `LoadError` on missing augeas gem. Thanks to [baurmatt](https://github.com/baurmatt) for the quick fix, and [rodjek](https://github.com/rodjek) for dealing with the testing + +## 2018-10-24 - Release 1.9.1 +- Do not rely on features of Augeas because Puppet 6 + +## 2018-01-31 - Release 1.9.0 +- Bumps facterdb requirement to 0.5.0 +- Adds docs for using custom external facts +- hardwaremodel output changed on Windows with Facter 3.x +- Add additional rqspec tests +- Correctly select windows releases that contain spaces +- Facter < 3.4 does not return a proper release name for Windows 2016 +- Strip 'Server' prefix from windows release name if present +- Downcase windows to match facter output +- Fix specs for current facterdb release +- Make version fallback testing independent of installed facter gem +- Add SPEC_FACTS_STRICT setting +- Cleanup README +- Add specific test to test minor version ahead of current facter version +- Update test to check for range in case facter version is not currently in FacterDB +- Step down through versions if the current version is not available +- Fix wrong example in README + +## 2017-06-23 - Release 1.8.0 +- Support specifying facter version + +## 2017-01-04 - Release 1.7.1 +- Ignore case when choosing H/W models + +## 2016-09-16 - Release 1.7.0 +- Support custom facts defined by spec_helper + +## 2016-05-19 - Release 1.6.1 +- Fix a bug where not all specified Ubuntu or OpenBSD were captured + +## 2016-05-17 - Release 1.6.0 +- Cleanup and refactor methods +- Add YARD documentation +- Refactor and fix rspec +- Add the OS filter support + +## 2016-03-29 - Release 1.5.0 +- Add some Microsft Windows support + +## 2016-02-04 - Release 1.4.1 +- Add missing mcollective-client dependency + +## 2016-02-04 - Release 1.4.0 +- Dynamically set mco_version + +## 2015-11-12 - Release 1.3.0 +- Dynamically set rubysitedir + +## 2015-11-05 - Release 1.2.0 +- Requires facterdb 0.3.0 + +## 2015-09-15 - Release 1.1.1 +- Fix OpenBSD support + +## 2015-09-09 - Release 1.1.0 +- Populate augeasversion, puppetversion and rubyversion + +## 2015-09-03 - Release 1.0.3 +- Fix FreeBSD support + +## 2015-08-31 - Release 1.0.2 +- Keys where not symbolized anymore since v1.0.0 + +## 2015-08-29 - Release 1.0.1 +- Fix for old versions of Facter that does not provide operatingsystemmajrelease for some OSes + +## 2015-08-27 - Release 1.0.0 +- Use facterdb + +## 2015-08-10 - Release 0.12.0 +- Add Facter3 support + +## 2015-06-16 - Release 0.11.0 +- Add facts for OpenBSD 5.7 + +## 2015-05-27 - Release 0.10.0 +- Add facts for Solaris 11 + +## 2015-05-26 - Release 0.9.0 +- Add facts for Ubuntu 14.10 +- Add facts for Ubuntu 15.04 + +## 2015-04-27 - Release 0.8.0 +- Remove support for Operating System minor release (causes problems with Ubuntu naming) +- Add Gentoo support + +## 2015-04-26 - Release 0.7.0 +- Add support for Operating System minor release +- Update README.md + +## 2015-03-06 - Release 0.6.0 +- Add facts for FreeBSD 9 + +## 2015-03-06 - Release 0.5.0 +- Add facts for FreeBSD 10 + +## 2015-02-22 - Release 0.4.1 +- Really useless release :-) + +## 2015-01-23 - Release 0.4.0 +- Add facts for facter 2.4 +- Format json with python's json.tool +- Improve code coverage in unit tests +- Test on more version of facter in travis matrix + +## 2015-01-05 - Release 0.3.3 +- Add facts for OpenSuse 12 +- Add facts for OpenSuse 13 + +## 2015-01-04 - Release 0.3.2 +* Symbolize hash keys + +## 2015-01-03 - Release 0.3.1 +- Set fqdn to foo.example.com +- Add json as runtime dependency + +## 2015-01-02 - Release 0.3.0 +- Use json output for facter + +## 2014-12-20 - Release 0.2.5 +- Don't fail if facts not found + +## 2014-12-20 - Release 0.2.4 +- Add facts for SLES 11 +- Add facts for Ubuntu 10.04 +- Fix for SLES 11 SP1 + +## 2014-12-20 - Release 0.2.3 +- Add facts for ArchLinux + +## 2014-12-19 - Release 0.2.2 +- Fix some bugs +- Add unit tests + +## 2014-12-19 - Release 0.2.1 +- Add facts for Debian 8 + +## 2014-12-15 - Release 0.2.0 +- Add opts hash parameter +- Tests only with x86_64 by default + +## 2014-12-12 - Release 0.1.4 +- Fix for Ubuntu + +## 2014-12-12 - Release 0.1.4 +- Fix for Fedora + +## 2014-12-12 - Release 0.1.3 +- Add facts for Fedora 19 + +## 2014-12-12 - Release 0.1.2 +- Add facts for Scientific Linux + +## 2014-12-12 - Release 0.1.1 +- Add more facts + +## 2014-12-12 - First Release 0.1.0 +- Initial release diff --git a/Rakefile b/Rakefile index ad82a9f9..75c40dc2 100644 --- a/Rakefile +++ b/Rakefile @@ -47,3 +47,17 @@ namespace :puppet_versions do end end end + +begin + require 'rubygems' + require 'github_changelog_generator/task' + + GitHubChangelogGenerator::RakeTask.new :changelog do |config| + config.exclude_labels = %w{duplicate question invalid wontfix wont-fix skip-changelog} + config.user = 'voxpupuli' + config.project = 'rspec-puppet-facts' + gem_version = Gem::Specification.load("#{config.project}.gemspec").version + config.future_release = gem_version + end +rescue LoadError +end diff --git a/lib/rspec-puppet-facts/version.rb b/lib/rspec-puppet-facts/version.rb index a64aa8e9..875ba94e 100644 --- a/lib/rspec-puppet-facts/version.rb +++ b/lib/rspec-puppet-facts/version.rb @@ -2,6 +2,6 @@ module RspecPuppetFacts # This module contains the current version constant module Version # The current version of this gem - STRING = '2.0.1' + STRING = '2.0.2' end end From 7e4c0808bdb260d6a41938a380a5d7009ddcae60 Mon Sep 17 00:00:00 2001 From: Tim Meusel Date: Wed, 21 Jul 2021 12:28:49 +0200 Subject: [PATCH 2/2] drop troken from codecov url https://app.codecov.io/gh/voxpupuli/rspec-puppet-facts/settings/badge says we don't need to provide any token. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 49f635d4..3f177212 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ rspec-puppet-facts [![License](https://img.shields.io/github/license/voxpupuli/rspec-puppet-facts.svg)](https://github.com/voxpupuli/rspec-puppet-facts/blob/master/LICENSE) [![Test](https://github.com/voxpupuli/rspec-puppet-facts/actions/workflows/test.yml/badge.svg)](https://github.com/voxpupuli/rspec-puppet-facts/actions/workflows/test.yml) -[![codecov](https://codecov.io/gh/voxpupuli/rspec-puppet-facts/branch/master/graph/badge.svg?token=Mypkl78hvK)](https://codecov.io/gh/voxpupuli/rspec-puppet-facts) +[![codecov](https://codecov.io/gh/voxpupuli/rspec-puppet-facts/branch/master/graph/badge.svg)](https://codecov.io/gh/voxpupuli/rspec-puppet-facts) [![Release](https://github.com/voxpupuli/rspec-puppet-facts/actions/workflows/release.yml/badge.svg)](https://github.com/voxpupuli/rspec-puppet-facts/actions/workflows/release.yml) [![RubyGem Version](https://img.shields.io/gem/v/rspec-puppet-facts.svg)](https://rubygems.org/gems/rspec-puppet-facts) [![RubyGem Downloads](https://img.shields.io/gem/dt/rspec-puppet-facts.svg)](https://rubygems.org/gems/rspec-puppet-facts)