From 63ab5cfdaa6614842252d9bd3a352c92954f7448 Mon Sep 17 00:00:00 2001 From: David Schmitt Date: Mon, 22 Jan 2018 11:13:12 +0000 Subject: [PATCH 1/2] Bump version for release of SimpleProvider --- lib/puppet/resource_api/version.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/puppet/resource_api/version.rb b/lib/puppet/resource_api/version.rb index c2c7caac..23b2bf06 100644 --- a/lib/puppet/resource_api/version.rb +++ b/lib/puppet/resource_api/version.rb @@ -1,5 +1,5 @@ module Puppet module ResourceApi - VERSION = '0.1.0'.freeze + VERSION = '0.2.0'.freeze end end From 621c3e90ff5579915e87d2355c1e43e09d3fc4ef Mon Sep 17 00:00:00 2001 From: David Schmitt Date: Mon, 22 Jan 2018 11:13:16 +0000 Subject: [PATCH 2/2] Add github_changelog_generator and changelog --- CHANGELOG.md | 29 +++++++++++++++++++++++++++++ Gemfile | 1 + Rakefile | 18 ++++++++++++++++++ 3 files changed, 48 insertions(+) create mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 00000000..992adcfc --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,29 @@ +# Changelog + +All significant changes to this repo will be summarized in this file. + + +## [v0.2.0](https://github.com/puppetlabs/puppet-resource_api/tree/v0.2.0) (2018-01-22) +[Full Changelog](https://github.com/puppetlabs/puppet-resource_api/compare/v0.1.0...v0.2.0) + +**Implemented enhancements:** + +- \(PDK-746\) have a SimpleProvider for simple cases [\#8](https://github.com/puppetlabs/puppet-resource_api/pull/8) ([DavidS](https://github.com/DavidS)) + +**Merged pull requests:** + +- Small fixes [\#7](https://github.com/puppetlabs/puppet-resource_api/pull/7) ([DavidS](https://github.com/DavidS)) + +## [v0.1.0](https://github.com/puppetlabs/puppet-resource_api/tree/v0.1.0) (2017-11-17) +**Merged pull requests:** + +- \(maint\) sort dependencies in gemspec [\#6](https://github.com/puppetlabs/puppet-resource_api/pull/6) ([DavidS](https://github.com/DavidS)) +- base\_context processing and processed logging methods [\#5](https://github.com/puppetlabs/puppet-resource_api/pull/5) ([james-stocks](https://github.com/james-stocks)) +- Fix resource\_api logging format [\#4](https://github.com/puppetlabs/puppet-resource_api/pull/4) ([james-stocks](https://github.com/james-stocks)) +- Add logging action methods to base\_context [\#3](https://github.com/puppetlabs/puppet-resource_api/pull/3) ([james-stocks](https://github.com/james-stocks)) +- Logging [\#2](https://github.com/puppetlabs/puppet-resource_api/pull/2) ([james-stocks](https://github.com/james-stocks)) +- Workaround missing report back from here to flush\(\) [\#1](https://github.com/puppetlabs/puppet-resource_api/pull/1) ([james-stocks](https://github.com/james-stocks)) + + + +\* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)* \ No newline at end of file diff --git a/Gemfile b/Gemfile index ca4d5c49..ff4cc6f8 100644 --- a/Gemfile +++ b/Gemfile @@ -18,6 +18,7 @@ group :tests do end group :development do + gem 'github_changelog_generator', '~> 1.14' gem 'pry-byebug' end diff --git a/Rakefile b/Rakefile index 72d51321..ee2c96b5 100644 --- a/Rakefile +++ b/Rakefile @@ -22,3 +22,21 @@ task(:license_finder) do end task :default => :spec + +begin + require 'github_changelog_generator/task' + GitHubChangelogGenerator::RakeTask.new :changelog do |config| + require 'puppet/resource_api/version' + config.future_release = "v#{Puppet::ResourceApi::VERSION}" + config.header = "# Changelog\n\n" \ + "All significant changes to this repo will be summarized in this file.\n" + # config.include_labels = %w[enhancement bug] + config.user = 'puppetlabs' + config.project = 'puppet-resource_api' + end +rescue LoadError + desc 'Install github_changelog_generator to get access to automatic changelog generation' + task :changelog do + raise 'Install github_changelog_generator to get access to automatic changelog generation' + end +end