From 9e673fc0bcfb42e2ef5be5fd5f394d04f2796e1f Mon Sep 17 00:00:00 2001 From: Malik Parvez <84777619+malikparvez@users.noreply.github.com> Date: Wed, 11 Oct 2023 20:23:04 +0530 Subject: [PATCH 01/10] Adding release automations and labeller --- .github/workflows/change.yml | 15 ------------ .github/workflows/labeller.yml | 27 ++++++++++++++++++++++ .github/workflows/pull_request_template.md | 10 ++++++++ .github/workflows/release.yml | 16 +++++++++++++ .github/workflows/release_prep.yml | 20 ++++++++++++++++ 5 files changed, 73 insertions(+), 15 deletions(-) delete mode 100644 .github/workflows/change.yml create mode 100644 .github/workflows/labeller.yml create mode 100644 .github/workflows/pull_request_template.md create mode 100644 .github/workflows/release.yml create mode 100644 .github/workflows/release_prep.yml diff --git a/.github/workflows/change.yml b/.github/workflows/change.yml deleted file mode 100644 index 78d2472..0000000 --- a/.github/workflows/change.yml +++ /dev/null @@ -1,15 +0,0 @@ -name: "Release Prep" - -on: - workflow_dispatch: - inputs: - version: - description: "Module version to be released. Must be a valid semver string. (1.2.3)" - required: true - -jobs: - release_prep: - uses: "malikparvez/gihut_actions/.github/workflows/changelog.yml@main" - with: - version: "${{ github.event.inputs.version }}" - secrets: "inherit" diff --git a/.github/workflows/labeller.yml b/.github/workflows/labeller.yml new file mode 100644 index 0000000..ee149bf --- /dev/null +++ b/.github/workflows/labeller.yml @@ -0,0 +1,27 @@ +name: Labeller + +on: + issues: + types: + - opened + - labeled + - unlabeled + pull_request_target: + types: + - opened + - labeled + - unlabeled + +jobs: + label: + runs-on: ubuntu-latest + steps: + + - uses: puppetlabs/community-labeller@v1.0.1 + name: Label issues or pull requests + with: + label_name: community + label_color: '5319e7' + org_membership: puppetlabs + fail_if_member: 'true' + token: ${{ secrets.IAC_COMMUNITY_LABELER }} diff --git a/.github/workflows/pull_request_template.md b/.github/workflows/pull_request_template.md new file mode 100644 index 0000000..6623f46 --- /dev/null +++ b/.github/workflows/pull_request_template.md @@ -0,0 +1,10 @@ +## Summary +Provide a detailed description of all the changes present in this pull request. + +## Additional Context +Add any additional context about the problem here. +- [ ] Root cause and the steps to reproduce. (If applicable) +- [ ] Thought process behind the implementation. + +## Related Issues (if any) +Mention any related issues or pull requests. \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..92338dc --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,16 @@ +name: "release" + +on: + workflow_dispatch: + inputs: + target: + description: "The target for the release. This can be a commit sha or a branch." + required: false + default: "main" + +jobs: + release: + uses: "puppetlabs/cat-github-actions/.github/workflows/gem_release.yml@main" + with: + target: "${{ github.event.inputs.target }}" + secrets: "inherit" diff --git a/.github/workflows/release_prep.yml b/.github/workflows/release_prep.yml new file mode 100644 index 0000000..be3080f --- /dev/null +++ b/.github/workflows/release_prep.yml @@ -0,0 +1,20 @@ +name: "release prep" + +on: + workflow_dispatch: + inputs: + target: + description: "The target for the release. This can be a commit sha or a branch." + required: false + default: "main" + version: + description: "Version of gem to be released." + required: true + +jobs: + release_prep: + uses: "puppetlabs/cat-github-actions/.github/workflows/gem_release_prep.yml@main" + with: + target: "${{ github.event.inputs.target }}" + version: "${{ github.events.inputs.version }}" + secrets: "inherit" From 39e99d8593f6eccd91bc5ed290836ae77e6893b4 Mon Sep 17 00:00:00 2001 From: Malik Parvez <84777619+malikparvez@users.noreply.github.com> Date: Wed, 11 Oct 2023 20:26:04 +0530 Subject: [PATCH 02/10] correcting pull_request --- .github/{workflows => }/pull_request_template.md | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/{workflows => }/pull_request_template.md (100%) diff --git a/.github/workflows/pull_request_template.md b/.github/pull_request_template.md similarity index 100% rename from .github/workflows/pull_request_template.md rename to .github/pull_request_template.md From 7cd07660e1aefa01f2377563c5f6f53f9bd980d0 Mon Sep 17 00:00:00 2001 From: Malik Parvez <84777619+malikparvez@users.noreply.github.com> Date: Thu, 12 Oct 2023 12:33:42 +0530 Subject: [PATCH 03/10] Adding vendor in gitignore --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index e0d920f..03407c0 100644 --- a/.gitignore +++ b/.gitignore @@ -20,3 +20,4 @@ _yardoc *.o *.a mkmf.log +/vendor/ From 1187448288f5241dd82daba860ada06efc8c0c4d Mon Sep 17 00:00:00 2001 From: Malik Parvez <84777619+malikparvez@users.noreply.github.com> Date: Thu, 12 Oct 2023 23:14:42 +0530 Subject: [PATCH 04/10] Update README.md for gem release process --- README.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 337166c..a906be9 100644 --- a/README.md +++ b/README.md @@ -244,10 +244,8 @@ to create a free account to add new tickets. ## Releasing -1. Make sure version, changelog, etc. have been updated. -1. Commit and tag with new version number: e.g. `v1.2.3` -1. Push tag to Github: `git push upstream --tags` (where `upstream` is the remote name of the puppetlabs fork of this repo) -1. Wait for Travis CI to test and push new release to Rubygems. +1. Run the release_prep GitHub Action with the new version number, for example, 1.2.3. It will create a new pull request and merge it +2. Run the GitHub Actions release workflow, and it will publish a new version on RubyGems ## Contributors From 979acede023ec6c31e5848f2ebfd1abad1c91244 Mon Sep 17 00:00:00 2001 From: Malik Parvez <84777619+malikparvez@users.noreply.github.com> Date: Thu, 12 Oct 2023 23:52:44 +0530 Subject: [PATCH 05/10] Adding 2nd step --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a906be9..9f20ff8 100644 --- a/README.md +++ b/README.md @@ -244,8 +244,9 @@ to create a free account to add new tickets. ## Releasing -1. Run the release_prep GitHub Action with the new version number, for example, 1.2.3. It will create a new pull request and merge it -2. Run the GitHub Actions release workflow, and it will publish a new version on RubyGems +1. Run the release_prep GitHub Action with the new version number, for example, 1.2.3. It will create a new pull request +2. please check the changelog and ensure all issues/prs have correct labels +3. Run the GitHub Actions release workflow, and it will publish a new version on RubyGems ## Contributors From 8339928047c4df6cb678dc2e5e23d07d75afad17 Mon Sep 17 00:00:00 2001 From: Malik Parvez <84777619+malikparvez@users.noreply.github.com> Date: Fri, 13 Oct 2023 10:50:32 +0530 Subject: [PATCH 06/10] archiving older changelog --- History.md | 214 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 214 insertions(+) create mode 100644 History.md diff --git a/History.md b/History.md new file mode 100644 index 0000000..36d94f9 --- /dev/null +++ b/History.md @@ -0,0 +1,214 @@ +# Change Log + +Starting with v2.0.0, all notable changes to this project will be documented in this file. +This project adheres to [Semantic Versioning](http://semver.org/). + + +## Following the release of version 5.0.2 on October 13, 2023, an automated changelog has been implemented, this document is an archived copy of the previous changelog + +## v5.0.2 - 2023-09-29 +* Correct a Digest call making this thread-safe and allowing for concurrent r10k deploys. + Thanks to @cmd-ntrf for fixing it and to @baurmatt for tracking it down in the first place. + +## v5.0.1 - 2023-07-10 +* Update README to reflect accurate Ruby requirement and `faraday` gem dependency +## v5.0.0 - 2023-05-07 + +* Ruby 3.2 support. +* LRU caching for HTTP response caching. +* Raise a ModuleNotFound error instead of just nil when a module is not found. + +## v4.1.0 - 2023-02-21 + +* Add upload method functionality. +* Allows the user to search by an array of endorsements. + +## v4.0.0 - 2022-11-30 + +* Breaking: The `puppet_forge` gem now requires at least Ruby 2.6.0 +* Update `faraday` gem to 2.x series + +## v3.2.0 - 2021-11-09 + +* Allow requests to follow redirects +* Remove the `gettext-setup` gem dependency, which was unused + +## v3.1.0 - 2021-08-20 + +### Changed + +* Update `PuppetForge::Connection.authorization` so that it prepends the + required `Bearer ` string automatically to values that look like Forge API + keys. This won't affect values that already include `Bearer `. + +## v3.0.0 - 2021-01-28 + +* Breaking: The `puppet_forge` gem now requires at least Ruby 2.4.0. +* Update `faraday` and `faraday_middleware` gem dependencies to 1.x series. +* Update optional `typhoeus` dependency to `>= 1.4` to maintain compatibility with `faraday`. + +## v2.3.4 - 2020-03-31 + +* Update the forge API url to `forgeapi.puppet.com` (instead of using the older puppetlabs.com domain). +* Allow versions of the `faraday_middleware` dependency up to 0.15. + +## v2.3.3 - 2020-02-20 + +### Changed + +* Allow versions of faraday up to 0.18 + +## v2.3.2 - 2020-02-05 + +### Fixed + +* Catch and handle the new `Faraday::TimeoutError`s which are occasionally + surfaced by the the typheous adapter with more recent verions of libcurl, and + log them the same way that `Faraday::ConnectionFailed` errors are already + logged. + +### Changed + +* Allow for using `faraday_middleware` versions in the 0.13.x series. + +## v2.3.1 - 2019-11-15 + +### Fixed + +* Fixed an issue where proxy configurations were being ignored by expanding the range of acceptable versions of the `faraday` gem dependency and specifically excluding the version that was ignoring proxy configuration options. + +## v2.3.0 - 2019-07-09 + +### Changed + +* Updated `PuppetForge::V3::Release#verify` method to use `file_sha256` checksum from Forge API when available. +* Added an `allow_md5` param to `PuppetForge::V3::Release#verify` method to control whether or not fallback to MD5 checksum will be allowed in cases where SHA-256 checksum is not available. + +## v2.2.9 - 2017-12-01 + +### Changed + +* Loosened dependency on `faraday` and `faraday_middleware` gems to include recent releases. + +## v2.2.8 - 2017-11-09 + +### Added + +Created PuppetForge::Util class with a single method, version_valid?, in order to +drop the r10k dependency on semantic_puppet. + +## v2.2.7 - 2017-06-30 + +### Changed + +* Updated dependency on `semantic_puppet` to `~> 1.0`. + +## v2.2.6 - 2017-06-27 + +### Fixed + +* Fixed an issue when attempting to assign a non-String value to `PuppetForge.host`. + +## v2.2.5 - 2017-06-26 + +### Fixed + +* (FORGE-338) Fixed an issue where `V3::Release.download_url` returned an incorrect value when `PuppetForge.host` included + a path prefix. (Thanks to [Jainish Shah](https://github.com/jainishshah17) for the report and initial fix proposal.) + +## v2.2.4 - 2017-04-17 + +### Added + +* PuppetForge::Connection now has .accept\_language and .accept\_language= class methods providing a way to set the + 'Accept-Language' header for outbound requests. + +## v2.2.3 - 2017-01-17 + +### Changed + +* Fixed an issue that was preventing PuppetForge.host from honoring any given path prefix. +* Upgraded gettext-setup dependency to 0.11 release. + +## v2.2.2 - 2016-07-06 + +### Changed + +* Externalized all user facing strings with gettext to support future localization work. + +## v2.2.1 - 2016-05-24 + +### Changed + +* Fixed an issue where certain types of connection failures raised a spurious "method missing" error instead of the underlying + exception. +* When setting PuppetForge::Connection.proxy, an empty string will now be treated as nil. If no proxy has yet been configured, + setting to an empty string will have no effect. If a proxy has already been configured, setting to nil will unset the existing + value. + +## v2.2.0 - 2016-05-10 + +### Changed + +* puppet\_forge's optional dependency on Typhoeus now searches for a gem matching '~> 1.0.1' so it will pick up more recent versions. + NOTE: This means if you have a version of Typhoeus installed that is less than 1.0.1, puppet\_forge will no longer use the Typhoeus + adapter and will fall back to Ruby's Net::HTTP library. + +## v2.1.5 - 2016-04-13 + +### Added + +* PuppetForge::Connection now has .proxy and .proxy= class methods providing a more reliable way of configuring an HTTP proxy. + +### Changed + +* Cached connection objects will now be automatically discarded when proxy or authorization config has changed. + +## v2.1.4 - 2016-04-01 + +### Changed + +* Bug in usage of minitar filenames led to ignored tar files with tar file length of >100 chars. + +## v2.1.3 - 2016-01-25 + +### Changed + +* PuppetForge::V3::Release.download will now use the "file\_uri" field of the Release API response to calculate the URI to download from. (Thanks to [ericparton](https://github.com/ericparton) for the contribution.) + +## v2.1.2 - 2015-12-16 + +### Changed + +* Runtime dependency on "faraday\_middleware" gem updated to allow 0.10.x releases. + +## v2.1.1 - 2015-10-06 + +### Changed + +* Bug in error message around missing release on forge caused inappropriate error. + +## v2.1.0 - 2015-08-20 + +### Added + +* PuppetForge::ReleaseForbidden added to acknowledge 403 status returned from release download request + +## v2.0.0 - 2015-08-13 + +### Added + +* PuppetForge::V3::Release can now verify the md5, unpack, and install a release tarball. +* PuppetForge::Middleware::SymbolifyJson to change Faraday response hash keys into symbols. +* PuppetForge::V3::Metadata to represent a release's metadata as an object. +* PuppetForge::Connection to provide Faraday connections. + +### Changed + +* Failed API requests, such as those for a module that doesn't exist, throw a Faraday::ResourceNotFound error. +* API requests are sent through Faraday directly rather than through Her. +* PuppetForge::V3::Base#where and PuppetForge::V3::Base#all now send an API request immediately and return a paginated collection. + +### Removed + +* Dependency on Her (also removes dependency on ActiveSupport). From 741db6af587a227fafbb3d8a44b158099be80c56 Mon Sep 17 00:00:00 2001 From: Malik Parvez <84777619+malikparvez@users.noreply.github.com> Date: Fri, 13 Oct 2023 11:13:54 +0530 Subject: [PATCH 07/10] Adding links for actions in readme --- README.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9f20ff8..bb35fe1 100644 --- a/README.md +++ b/README.md @@ -244,9 +244,12 @@ to create a free account to add new tickets. ## Releasing -1. Run the release_prep GitHub Action with the new version number, for example, 1.2.3. It will create a new pull request +1. Run the [release_prep] GitHub Action with the new version number, for example, 1.2.3. It will create a new pull request 2. please check the changelog and ensure all issues/prs have correct labels -3. Run the GitHub Actions release workflow, and it will publish a new version on RubyGems +3. Run the GitHub Actions [release] workflow, and it will publish a new version on RubyGems + +[release_prep]: https://tickets.puppetlabs.com/browse/FORGE +[release]: https://github.com/puppetlabs/forge-ruby/actions/workflows/release.yml ## Contributors From c8606567d746229a421322881bf718c6ae1f17e9 Mon Sep 17 00:00:00 2001 From: Malik Parvez <84777619+malikparvez@users.noreply.github.com> Date: Fri, 13 Oct 2023 11:57:10 +0530 Subject: [PATCH 08/10] Adding links for actions in readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index bb35fe1..24c2265 100644 --- a/README.md +++ b/README.md @@ -245,7 +245,7 @@ to create a free account to add new tickets. ## Releasing 1. Run the [release_prep] GitHub Action with the new version number, for example, 1.2.3. It will create a new pull request -2. please check the changelog and ensure all issues/prs have correct labels +2. Please check the changelog and ensure all issues/prs have correct labels 3. Run the GitHub Actions [release] workflow, and it will publish a new version on RubyGems [release_prep]: https://tickets.puppetlabs.com/browse/FORGE From 8122a985927a9a3c9d3a38c0dc1c751d56b39f6c Mon Sep 17 00:00:00 2001 From: Malik Parvez <84777619+malikparvez@users.noreply.github.com> Date: Fri, 13 Oct 2023 11:59:02 +0530 Subject: [PATCH 09/10] Adding links for actions in readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 24c2265..053f809 100644 --- a/README.md +++ b/README.md @@ -248,7 +248,7 @@ to create a free account to add new tickets. 2. Please check the changelog and ensure all issues/prs have correct labels 3. Run the GitHub Actions [release] workflow, and it will publish a new version on RubyGems -[release_prep]: https://tickets.puppetlabs.com/browse/FORGE +[release_prep]: https://github.com/puppetlabs/forge-ruby/actions/workflows/release_prep.yml [release]: https://github.com/puppetlabs/forge-ruby/actions/workflows/release.yml ## Contributors From b4231a643eb39aa0acb8df8898f3733a8b1cceee Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Fri, 13 Oct 2023 08:31:09 +0000 Subject: [PATCH 10/10] Release prep v5.0.3 --- CHANGELOG.md | 213 +++++++++++++++--------------------- lib/puppet_forge/version.rb | 2 +- 2 files changed, 90 insertions(+), 125 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a89a61b..d23aa5f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,211 +1,176 @@ -# Change Log + +# Changelog -Starting with v2.0.0, all notable changes to this project will be documented in this file. -This project adheres to [Semantic Versioning](http://semver.org/). +All notable changes to this project will be documented in this file. -## v5.0.2 - 2023-09-29 -* Correct a Digest call making this thread-safe and allowing for concurrent r10k deploys. - Thanks to @cmd-ntrf for fixing it and to @baurmatt for tracking it down in the first place. +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). -## v5.0.1 - 2023-07-10 -* Update README to reflect accurate Ruby requirement and `faraday` gem dependency -## v5.0.0 - 2023-05-07 +## [v5.0.3](https://github.com/puppetlabs/forge-ruby/tree/v5.0.3) - 2023-10-13 -* Ruby 3.2 support. -* LRU caching for HTTP response caching. -* Raise a ModuleNotFound error instead of just nil when a module is not found. +[Full Changelog](https://github.com/puppetlabs/forge-ruby/compare/v5.0.1...v5.0.3) -## v4.1.0 - 2023-02-21 +## [v5.0.1](https://github.com/puppetlabs/forge-ruby/tree/v5.0.1) - 2023-07-10 -* Add upload method functionality. -* Allows the user to search by an array of endorsements. +[Full Changelog](https://github.com/puppetlabs/forge-ruby/compare/v5.0.0...v5.0.1) -## v4.0.0 - 2022-11-30 +## [v5.0.0](https://github.com/puppetlabs/forge-ruby/tree/v5.0.0) - 2023-06-07 -* Breaking: The `puppet_forge` gem now requires at least Ruby 2.6.0 -* Update `faraday` gem to 2.x series +[Full Changelog](https://github.com/puppetlabs/forge-ruby/compare/v4.1.0...v5.0.0) -## v3.2.0 - 2021-11-09 +## [v4.1.0](https://github.com/puppetlabs/forge-ruby/tree/v4.1.0) - 2023-02-21 -* Allow requests to follow redirects -* Remove the `gettext-setup` gem dependency, which was unused +[Full Changelog](https://github.com/puppetlabs/forge-ruby/compare/v4.0.0...v4.1.0) -## v3.1.0 - 2021-08-20 - -### Changed +### Added -* Update `PuppetForge::Connection.authorization` so that it prepends the - required `Bearer ` string automatically to values that look like Forge API - keys. This won't affect values that already include `Bearer `. +- (CONT-643) Add upload method functionality [#102](https://github.com/puppetlabs/forge-ruby/pull/102) ([chelnak](https://github.com/chelnak)) -## v3.0.0 - 2021-01-28 +## [v4.0.0](https://github.com/puppetlabs/forge-ruby/tree/v4.0.0) - 2022-12-01 -* Breaking: The `puppet_forge` gem now requires at least Ruby 2.4.0. -* Update `faraday` and `faraday_middleware` gem dependencies to 1.x series. -* Update optional `typhoeus` dependency to `>= 1.4` to maintain compatibility with `faraday`. +[Full Changelog](https://github.com/puppetlabs/forge-ruby/compare/v3.2.0...v4.0.0) -## v2.3.4 - 2020-03-31 +## [v3.2.0](https://github.com/puppetlabs/forge-ruby/tree/v3.2.0) - 2021-11-09 -* Update the forge API url to `forgeapi.puppet.com` (instead of using the older puppetlabs.com domain). -* Allow versions of the `faraday_middleware` dependency up to 0.15. +[Full Changelog](https://github.com/puppetlabs/forge-ruby/compare/v3.1.0...v3.2.0) -## v2.3.3 - 2020-02-20 +## [v3.1.0](https://github.com/puppetlabs/forge-ruby/tree/v3.1.0) - 2021-08-20 -### Changed +[Full Changelog](https://github.com/puppetlabs/forge-ruby/compare/v3.0.0...v3.1.0) -* Allow versions of faraday up to 0.18 +## [v3.0.0](https://github.com/puppetlabs/forge-ruby/tree/v3.0.0) - 2021-01-28 -## v2.3.2 - 2020-02-05 +[Full Changelog](https://github.com/puppetlabs/forge-ruby/compare/v2.3.4...v3.0.0) -### Fixed +## [v2.3.4](https://github.com/puppetlabs/forge-ruby/tree/v2.3.4) - 2020-03-31 -* Catch and handle the new `Faraday::TimeoutError`s which are occasionally - surfaced by the the typheous adapter with more recent verions of libcurl, and - log them the same way that `Faraday::ConnectionFailed` errors are already - logged. +[Full Changelog](https://github.com/puppetlabs/forge-ruby/compare/v2.3.3...v2.3.4) -### Changed +## [v2.3.3](https://github.com/puppetlabs/forge-ruby/tree/v2.3.3) - 2020-02-20 -* Allow for using `faraday_middleware` versions in the 0.13.x series. +[Full Changelog](https://github.com/puppetlabs/forge-ruby/compare/v2.3.2...v2.3.3) -## v2.3.1 - 2019-11-15 +## [v2.3.2](https://github.com/puppetlabs/forge-ruby/tree/v2.3.2) - 2020-02-05 -### Fixed +[Full Changelog](https://github.com/puppetlabs/forge-ruby/compare/v2.3.1...v2.3.2) -* Fixed an issue where proxy configurations were being ignored by expanding the range of acceptable versions of the `faraday` gem dependency and specifically excluding the version that was ignoring proxy configuration options. +## [v2.3.1](https://github.com/puppetlabs/forge-ruby/tree/v2.3.1) - 2019-11-15 -## v2.3.0 - 2019-07-09 +[Full Changelog](https://github.com/puppetlabs/forge-ruby/compare/v2.3.0...v2.3.1) -### Changed +## [v2.3.0](https://github.com/puppetlabs/forge-ruby/tree/v2.3.0) - 2019-07-10 -* Updated `PuppetForge::V3::Release#verify` method to use `file_sha256` checksum from Forge API when available. -* Added an `allow_md5` param to `PuppetForge::V3::Release#verify` method to control whether or not fallback to MD5 checksum will be allowed in cases where SHA-256 checksum is not available. +[Full Changelog](https://github.com/puppetlabs/forge-ruby/compare/v2.3.0.rc1...v2.3.0) -## v2.2.9 - 2017-12-01 +## [v2.3.0.rc1](https://github.com/puppetlabs/forge-ruby/tree/v2.3.0.rc1) - 2019-07-10 -### Changed +[Full Changelog](https://github.com/puppetlabs/forge-ruby/compare/v2.2.9...v2.3.0.rc1) -* Loosened dependency on `faraday` and `faraday_middleware` gems to include recent releases. +## [v2.2.9](https://github.com/puppetlabs/forge-ruby/tree/v2.2.9) - 2017-12-01 -## v2.2.8 - 2017-11-09 +[Full Changelog](https://github.com/puppetlabs/forge-ruby/compare/v2.2.8...v2.2.9) -### Added +## [v2.2.8](https://github.com/puppetlabs/forge-ruby/tree/v2.2.8) - 2017-11-09 -Created PuppetForge::Util class with a single method, version_valid?, in order to -drop the r10k dependency on semantic_puppet. +[Full Changelog](https://github.com/puppetlabs/forge-ruby/compare/v2.2.7...v2.2.8) -## v2.2.7 - 2017-06-30 +### Added -### Changed +- (RK-306) Add helper method in puppet_forge for valid semantic version. [#51](https://github.com/puppetlabs/forge-ruby/pull/51) ([andersonmills](https://github.com/andersonmills)) -* Updated dependency on `semantic_puppet` to `~> 1.0`. +## [v2.2.7](https://github.com/puppetlabs/forge-ruby/tree/v2.2.7) - 2017-06-30 -## v2.2.6 - 2017-06-27 +[Full Changelog](https://github.com/puppetlabs/forge-ruby/compare/v2.2.6...v2.2.7) -### Fixed +## [v2.2.6](https://github.com/puppetlabs/forge-ruby/tree/v2.2.6) - 2017-06-27 -* Fixed an issue when attempting to assign a non-String value to `PuppetForge.host`. +[Full Changelog](https://github.com/puppetlabs/forge-ruby/compare/v2.2.5...v2.2.6) -## v2.2.5 - 2017-06-26 +## [v2.2.5](https://github.com/puppetlabs/forge-ruby/tree/v2.2.5) - 2017-06-26 -### Fixed +[Full Changelog](https://github.com/puppetlabs/forge-ruby/compare/v2.2.4...v2.2.5) -* (FORGE-338) Fixed an issue where `V3::Release.download_url` returned an incorrect value when `PuppetForge.host` included - a path prefix. (Thanks to [Jainish Shah](https://github.com/jainishshah17) for the report and initial fix proposal.) +## [v2.2.4](https://github.com/puppetlabs/forge-ruby/tree/v2.2.4) - 2017-04-17 -## v2.2.4 - 2017-04-17 +[Full Changelog](https://github.com/puppetlabs/forge-ruby/compare/v2.2.3...v2.2.4) ### Added -* PuppetForge::Connection now has .accept\_language and .accept\_language= class methods providing a way to set the - 'Accept-Language' header for outbound requests. +- (MAINT) Add ability to set Accept-Language header for API requests. [#43](https://github.com/puppetlabs/forge-ruby/pull/43) ([scotje](https://github.com/scotje)) -## v2.2.3 - 2017-01-17 +## [v2.2.3](https://github.com/puppetlabs/forge-ruby/tree/v2.2.3) - 2017-01-17 -### Changed +[Full Changelog](https://github.com/puppetlabs/forge-ruby/compare/v1.0.6...v2.2.3) -* Fixed an issue that was preventing PuppetForge.host from honoring any given path prefix. -* Upgraded gettext-setup dependency to 0.11 release. +## [v1.0.6](https://github.com/puppetlabs/forge-ruby/tree/v1.0.6) - 2016-07-25 -## v2.2.2 - 2016-07-06 +[Full Changelog](https://github.com/puppetlabs/forge-ruby/compare/v2.2.2...v1.0.6) -### Changed +## [v2.2.2](https://github.com/puppetlabs/forge-ruby/tree/v2.2.2) - 2016-07-06 -* Externalized all user facing strings with gettext to support future localization work. +[Full Changelog](https://github.com/puppetlabs/forge-ruby/compare/v2.2.1...v2.2.2) -## v2.2.1 - 2016-05-24 +## [v2.2.1](https://github.com/puppetlabs/forge-ruby/tree/v2.2.1) - 2016-05-24 -### Changed +[Full Changelog](https://github.com/puppetlabs/forge-ruby/compare/v2.2.0...v2.2.1) -* Fixed an issue where certain types of connection failures raised a spurious "method missing" error instead of the underlying - exception. -* When setting PuppetForge::Connection.proxy, an empty string will now be treated as nil. If no proxy has yet been configured, - setting to an empty string will have no effect. If a proxy has already been configured, setting to nil will unset the existing - value. +## [v2.2.0](https://github.com/puppetlabs/forge-ruby/tree/v2.2.0) - 2016-05-10 -## v2.2.0 - 2016-05-10 +[Full Changelog](https://github.com/puppetlabs/forge-ruby/compare/v2.1.5...v2.2.0) -### Changed +## [v2.1.5](https://github.com/puppetlabs/forge-ruby/tree/v2.1.5) - 2016-04-13 -* puppet\_forge's optional dependency on Typhoeus now searches for a gem matching '~> 1.0.1' so it will pick up more recent versions. - NOTE: This means if you have a version of Typhoeus installed that is less than 1.0.1, puppet\_forge will no longer use the Typhoeus - adapter and will fall back to Ruby's Net::HTTP library. +[Full Changelog](https://github.com/puppetlabs/forge-ruby/compare/v2.1.4...v2.1.5) -## v2.1.5 - 2016-04-13 +## [v2.1.4](https://github.com/puppetlabs/forge-ruby/tree/v2.1.4) - 2016-04-01 -### Added +[Full Changelog](https://github.com/puppetlabs/forge-ruby/compare/v2.1.3...v2.1.4) -* PuppetForge::Connection now has .proxy and .proxy= class methods providing a more reliable way of configuring an HTTP proxy. +## [v2.1.3](https://github.com/puppetlabs/forge-ruby/tree/v2.1.3) - 2016-01-25 -### Changed +[Full Changelog](https://github.com/puppetlabs/forge-ruby/compare/v2.1.2...v2.1.3) -* Cached connection objects will now be automatically discarded when proxy or authorization config has changed. +## [v2.1.2](https://github.com/puppetlabs/forge-ruby/tree/v2.1.2) - 2015-12-17 -## v2.1.4 - 2016-04-01 +[Full Changelog](https://github.com/puppetlabs/forge-ruby/compare/v2.1.1...v2.1.2) -### Changed +## [v2.1.1](https://github.com/puppetlabs/forge-ruby/tree/v2.1.1) - 2015-10-06 -* Bug in usage of minitar filenames led to ignored tar files with tar file length of >100 chars. +[Full Changelog](https://github.com/puppetlabs/forge-ruby/compare/v2.1.0...v2.1.1) -## v2.1.3 - 2016-01-25 +## [v2.1.0](https://github.com/puppetlabs/forge-ruby/tree/v2.1.0) - 2015-08-27 -### Changed +[Full Changelog](https://github.com/puppetlabs/forge-ruby/compare/v2.0.0...v2.1.0) -* PuppetForge::V3::Release.download will now use the "file\_uri" field of the Release API response to calculate the URI to download from. (Thanks to [ericparton](https://github.com/ericparton) for the contribution.) +## [v2.0.0](https://github.com/puppetlabs/forge-ruby/tree/v2.0.0) - 2015-08-14 -## v2.1.2 - 2015-12-16 +[Full Changelog](https://github.com/puppetlabs/forge-ruby/compare/v1.0.5...v2.0.0) -### Changed - -* Runtime dependency on "faraday\_middleware" gem updated to allow 0.10.x releases. +### Added -## v2.1.1 - 2015-10-06 +- (CODEMGMT-308) Add hash keys to symbols middleware [#14](https://github.com/puppetlabs/forge-ruby/pull/14) ([austb](https://github.com/austb)) +- (CODEMGMT-296) Add PaginatedCollection ORM for where request [#11](https://github.com/puppetlabs/forge-ruby/pull/11) ([austb](https://github.com/austb)) +- Add ORM for individual item (User/Module/Release) [#10](https://github.com/puppetlabs/forge-ruby/pull/10) ([austb](https://github.com/austb)) -### Changed +## [v1.0.5](https://github.com/puppetlabs/forge-ruby/tree/v1.0.5) - 2015-07-23 -* Bug in error message around missing release on forge caused inappropriate error. +[Full Changelog](https://github.com/puppetlabs/forge-ruby/compare/v1.0.4...v1.0.5) -## v2.1.0 - 2015-08-20 +## [v1.0.4](https://github.com/puppetlabs/forge-ruby/tree/v1.0.4) - 2014-12-17 -### Added +[Full Changelog](https://github.com/puppetlabs/forge-ruby/compare/v1.0.3...v1.0.4) -* PuppetForge::ReleaseForbidden added to acknowledge 403 status returned from release download request +## [v1.0.3](https://github.com/puppetlabs/forge-ruby/tree/v1.0.3) - 2014-06-24 -## v2.0.0 - 2015-08-13 +[Full Changelog](https://github.com/puppetlabs/forge-ruby/compare/v1.0.2...v1.0.3) -### Added +## [v1.0.2](https://github.com/puppetlabs/forge-ruby/tree/v1.0.2) - 2014-06-16 -* PuppetForge::V3::Release can now verify the md5, unpack, and install a release tarball. -* PuppetForge::Middleware::SymbolifyJson to change Faraday response hash keys into symbols. -* PuppetForge::V3::Metadata to represent a release's metadata as an object. -* PuppetForge::Connection to provide Faraday connections. +[Full Changelog](https://github.com/puppetlabs/forge-ruby/compare/v1.0.1...v1.0.2) -### Changed +## [v1.0.1](https://github.com/puppetlabs/forge-ruby/tree/v1.0.1) - 2014-06-02 -* Failed API requests, such as those for a module that doesn't exist, throw a Faraday::ResourceNotFound error. -* API requests are sent through Faraday directly rather than through Her. -* PuppetForge::V3::Base#where and PuppetForge::V3::Base#all now send an API request immediately and return a paginated collection. +[Full Changelog](https://github.com/puppetlabs/forge-ruby/compare/v1.0.0...v1.0.1) -### Removed +## [v1.0.0](https://github.com/puppetlabs/forge-ruby/tree/v1.0.0) - 2014-05-16 -* Dependency on Her (also removes dependency on ActiveSupport). +[Full Changelog](https://github.com/puppetlabs/forge-ruby/compare/2f052f220f0b3f4e135d930491edecf222fc059f...v1.0.0) diff --git a/lib/puppet_forge/version.rb b/lib/puppet_forge/version.rb index 64ae9bd..21581b0 100644 --- a/lib/puppet_forge/version.rb +++ b/lib/puppet_forge/version.rb @@ -1,3 +1,3 @@ module PuppetForge - VERSION = '5.0.2' # Library version + VERSION = '5.0.3' # Library version end