puppet_forge 5.0.2 → 5.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 173cc16e95da2ae090f719e7d6b1ff2e86f444c27f8c88ada965047e7c24afcc
4
- data.tar.gz: 97b40c77169ce1c3f67fcf1ea70e48d8738e9623c3a9a76aa451e493b316b1ca
3
+ metadata.gz: bfd2f7dc169c4d67e1c05207c868c4646da6e76fcdbb5012adc7676a257a53e2
4
+ data.tar.gz: db540cb4ac8d5108f512f3fbd216b63fd37aa5c245b4b46317094215fa93b747
5
5
  SHA512:
6
- metadata.gz: 9cea98cd9ec0b7a20f385c61b3f1776067eea4c4345dfc1d20ed274813d24a0d46af80109e709d57014e2cad09cd765ada4e82902cc1c3d3a698f0906453c7bb
7
- data.tar.gz: a6bf1839d69b0bd3404c104e6621fe77e29c6e89cedc5ca19b0cdf78c9750ce60bb1cbc5879b23fd807f477b6731c281b6c830da3a48a11ad4fb6845dd1c899d
6
+ metadata.gz: 49c8930480951263fc978a0521b04a14bd72c55776672a99d38cd37299456086ef34ff3bc53a3904b22b9025242775406b1e1fd3c1794c35a22d678ad43236fc
7
+ data.tar.gz: 2220df52a1ee74550325f63c0f6463ecf2180f14807f03294dc0d71a8d841661628416e922621e7b9f966f506582f1e759ceca202bfb807f1a94ceb72b377623
@@ -0,0 +1,10 @@
1
+ ## Summary
2
+ Provide a detailed description of all the changes present in this pull request.
3
+
4
+ ## Additional Context
5
+ Add any additional context about the problem here.
6
+ - [ ] Root cause and the steps to reproduce. (If applicable)
7
+ - [ ] Thought process behind the implementation.
8
+
9
+ ## Related Issues (if any)
10
+ Mention any related issues or pull requests.
@@ -0,0 +1,27 @@
1
+ name: Labeller
2
+
3
+ on:
4
+ issues:
5
+ types:
6
+ - opened
7
+ - labeled
8
+ - unlabeled
9
+ pull_request:
10
+ types:
11
+ - opened
12
+ - labeled
13
+ - unlabeled
14
+
15
+ jobs:
16
+ label:
17
+ runs-on: ubuntu-latest
18
+ steps:
19
+
20
+ - uses: puppetlabs/community-labeller@v1.0.1
21
+ name: Label issues or pull requests
22
+ with:
23
+ label_name: community
24
+ label_color: '5319e7'
25
+ org_membership: puppetlabs
26
+ fail_if_member: 'true'
27
+ token: ${{ secrets.IAC_COMMUNITY_LABELER }}
@@ -0,0 +1,16 @@
1
+ name: "release"
2
+
3
+ on:
4
+ workflow_dispatch:
5
+ inputs:
6
+ target:
7
+ description: "The target for the release. This can be a commit sha or a branch."
8
+ required: false
9
+ default: "main"
10
+
11
+ jobs:
12
+ release:
13
+ uses: "puppetlabs/cat-github-actions/.github/workflows/gem_release.yml@main"
14
+ with:
15
+ target: "${{ github.event.inputs.target }}"
16
+ secrets: "inherit"
@@ -0,0 +1,20 @@
1
+ name: "release prep"
2
+
3
+ on:
4
+ workflow_dispatch:
5
+ inputs:
6
+ target:
7
+ description: "The target for the release. This can be a commit sha or a branch."
8
+ required: false
9
+ default: "main"
10
+ version:
11
+ description: "Version of gem to be released."
12
+ required: true
13
+
14
+ jobs:
15
+ release_prep:
16
+ uses: "puppetlabs/cat-github-actions/.github/workflows/gem_release_prep.yml@main"
17
+ with:
18
+ target: "${{ github.event.inputs.target }}"
19
+ version: "${{ github.events.inputs.version }}"
20
+ secrets: "inherit"
data/.gitignore CHANGED
@@ -20,3 +20,4 @@ _yardoc
20
20
  *.o
21
21
  *.a
22
22
  mkmf.log
23
+ /vendor/
data/CHANGELOG.md CHANGED
@@ -1,211 +1,184 @@
1
- # Change Log
1
+ <!-- markdownlint-disable MD024 -->
2
+ # Changelog
2
3
 
3
- Starting with v2.0.0, all notable changes to this project will be documented in this file.
4
- This project adheres to [Semantic Versioning](http://semver.org/).
4
+ All notable changes to this project will be documented in this file.
5
5
 
6
- ## v5.0.2 - 2023-09-29
7
- * Correct a Digest call making this thread-safe and allowing for concurrent r10k deploys.
8
- Thanks to @cmd-ntrf for fixing it and to @baurmatt for tracking it down in the first place.
6
+ 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).
9
7
 
10
- ## v5.0.1 - 2023-07-10
11
- * Update README to reflect accurate Ruby requirement and `faraday` gem dependency
12
- ## v5.0.0 - 2023-05-07
8
+ ## [v5.0.4](https://github.com/puppetlabs/forge-ruby/tree/v5.0.4) - 2024-08-13
13
9
 
14
- * Ruby 3.2 support.
15
- * LRU caching for HTTP response caching.
16
- * Raise a ModuleNotFound error instead of just nil when a module is not found.
10
+ [Full Changelog](https://github.com/puppetlabs/forge-ruby/compare/v5.0.3...v5.0.4)
17
11
 
18
- ## v4.1.0 - 2023-02-21
12
+ ### Fixed
19
13
 
20
- * Add upload method functionality.
21
- * Allows the user to search by an array of endorsements.
14
+ - Pin minitar version to < 1.0.0 to keep project working [#119](https://github.com/puppetlabs/forge-ruby/pull/119) ([der-eismann](https://github.com/der-eismann))
22
15
 
23
- ## v4.0.0 - 2022-11-30
16
+ ## [v5.0.3](https://github.com/puppetlabs/forge-ruby/tree/v5.0.3) - 2023-10-13
24
17
 
25
- * Breaking: The `puppet_forge` gem now requires at least Ruby 2.6.0
26
- * Update `faraday` gem to 2.x series
18
+ [Full Changelog](https://github.com/puppetlabs/forge-ruby/compare/v5.0.1...v5.0.3)
27
19
 
28
- ## v3.2.0 - 2021-11-09
20
+ ## [v5.0.1](https://github.com/puppetlabs/forge-ruby/tree/v5.0.1) - 2023-07-10
29
21
 
30
- * Allow requests to follow redirects
31
- * Remove the `gettext-setup` gem dependency, which was unused
22
+ [Full Changelog](https://github.com/puppetlabs/forge-ruby/compare/v5.0.0...v5.0.1)
32
23
 
33
- ## v3.1.0 - 2021-08-20
24
+ ## [v5.0.0](https://github.com/puppetlabs/forge-ruby/tree/v5.0.0) - 2023-06-07
34
25
 
35
- ### Changed
26
+ [Full Changelog](https://github.com/puppetlabs/forge-ruby/compare/v4.1.0...v5.0.0)
36
27
 
37
- * Update `PuppetForge::Connection.authorization` so that it prepends the
38
- required `Bearer ` string automatically to values that look like Forge API
39
- keys. This won't affect values that already include `Bearer `.
28
+ ## [v4.1.0](https://github.com/puppetlabs/forge-ruby/tree/v4.1.0) - 2023-02-21
40
29
 
41
- ## v3.0.0 - 2021-01-28
30
+ [Full Changelog](https://github.com/puppetlabs/forge-ruby/compare/v4.0.0...v4.1.0)
42
31
 
43
- * Breaking: The `puppet_forge` gem now requires at least Ruby 2.4.0.
44
- * Update `faraday` and `faraday_middleware` gem dependencies to 1.x series.
45
- * Update optional `typhoeus` dependency to `>= 1.4` to maintain compatibility with `faraday`.
32
+ ### Added
46
33
 
47
- ## v2.3.4 - 2020-03-31
34
+ - (CONT-643) Add upload method functionality [#102](https://github.com/puppetlabs/forge-ruby/pull/102) ([chelnak](https://github.com/chelnak))
48
35
 
49
- * Update the forge API url to `forgeapi.puppet.com` (instead of using the older puppetlabs.com domain).
50
- * Allow versions of the `faraday_middleware` dependency up to 0.15.
36
+ ## [v4.0.0](https://github.com/puppetlabs/forge-ruby/tree/v4.0.0) - 2022-12-01
51
37
 
52
- ## v2.3.3 - 2020-02-20
38
+ [Full Changelog](https://github.com/puppetlabs/forge-ruby/compare/v3.2.0...v4.0.0)
53
39
 
54
- ### Changed
40
+ ## [v3.2.0](https://github.com/puppetlabs/forge-ruby/tree/v3.2.0) - 2021-11-09
55
41
 
56
- * Allow versions of faraday up to 0.18
42
+ [Full Changelog](https://github.com/puppetlabs/forge-ruby/compare/v3.1.0...v3.2.0)
57
43
 
58
- ## v2.3.2 - 2020-02-05
44
+ ## [v3.1.0](https://github.com/puppetlabs/forge-ruby/tree/v3.1.0) - 2021-08-20
59
45
 
60
- ### Fixed
46
+ [Full Changelog](https://github.com/puppetlabs/forge-ruby/compare/v3.0.0...v3.1.0)
61
47
 
62
- * Catch and handle the new `Faraday::TimeoutError`s which are occasionally
63
- surfaced by the the typheous adapter with more recent verions of libcurl, and
64
- log them the same way that `Faraday::ConnectionFailed` errors are already
65
- logged.
48
+ ## [v3.0.0](https://github.com/puppetlabs/forge-ruby/tree/v3.0.0) - 2021-01-28
66
49
 
67
- ### Changed
50
+ [Full Changelog](https://github.com/puppetlabs/forge-ruby/compare/v2.3.4...v3.0.0)
68
51
 
69
- * Allow for using `faraday_middleware` versions in the 0.13.x series.
52
+ ## [v2.3.4](https://github.com/puppetlabs/forge-ruby/tree/v2.3.4) - 2020-03-31
70
53
 
71
- ## v2.3.1 - 2019-11-15
54
+ [Full Changelog](https://github.com/puppetlabs/forge-ruby/compare/v2.3.3...v2.3.4)
72
55
 
73
- ### Fixed
56
+ ## [v2.3.3](https://github.com/puppetlabs/forge-ruby/tree/v2.3.3) - 2020-02-20
74
57
 
75
- * 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.
58
+ [Full Changelog](https://github.com/puppetlabs/forge-ruby/compare/v2.3.2...v2.3.3)
76
59
 
77
- ## v2.3.0 - 2019-07-09
60
+ ## [v2.3.2](https://github.com/puppetlabs/forge-ruby/tree/v2.3.2) - 2020-02-05
78
61
 
79
- ### Changed
62
+ [Full Changelog](https://github.com/puppetlabs/forge-ruby/compare/v2.3.1...v2.3.2)
80
63
 
81
- * Updated `PuppetForge::V3::Release#verify` method to use `file_sha256` checksum from Forge API when available.
82
- * 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.
64
+ ## [v2.3.1](https://github.com/puppetlabs/forge-ruby/tree/v2.3.1) - 2019-11-15
83
65
 
84
- ## v2.2.9 - 2017-12-01
66
+ [Full Changelog](https://github.com/puppetlabs/forge-ruby/compare/v2.3.0...v2.3.1)
85
67
 
86
- ### Changed
68
+ ## [v2.3.0](https://github.com/puppetlabs/forge-ruby/tree/v2.3.0) - 2019-07-10
87
69
 
88
- * Loosened dependency on `faraday` and `faraday_middleware` gems to include recent releases.
70
+ [Full Changelog](https://github.com/puppetlabs/forge-ruby/compare/v2.3.0.rc1...v2.3.0)
89
71
 
90
- ## v2.2.8 - 2017-11-09
72
+ ## [v2.3.0.rc1](https://github.com/puppetlabs/forge-ruby/tree/v2.3.0.rc1) - 2019-07-10
91
73
 
92
- ### Added
74
+ [Full Changelog](https://github.com/puppetlabs/forge-ruby/compare/v2.2.9...v2.3.0.rc1)
93
75
 
94
- Created PuppetForge::Util class with a single method, version_valid?, in order to
95
- drop the r10k dependency on semantic_puppet.
76
+ ## [v2.2.9](https://github.com/puppetlabs/forge-ruby/tree/v2.2.9) - 2017-12-01
96
77
 
97
- ## v2.2.7 - 2017-06-30
78
+ [Full Changelog](https://github.com/puppetlabs/forge-ruby/compare/v2.2.8...v2.2.9)
98
79
 
99
- ### Changed
80
+ ## [v2.2.8](https://github.com/puppetlabs/forge-ruby/tree/v2.2.8) - 2017-11-09
100
81
 
101
- * Updated dependency on `semantic_puppet` to `~> 1.0`.
82
+ [Full Changelog](https://github.com/puppetlabs/forge-ruby/compare/v2.2.7...v2.2.8)
102
83
 
103
- ## v2.2.6 - 2017-06-27
84
+ ### Added
104
85
 
105
- ### Fixed
86
+ - (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))
106
87
 
107
- * Fixed an issue when attempting to assign a non-String value to `PuppetForge.host`.
88
+ ## [v2.2.7](https://github.com/puppetlabs/forge-ruby/tree/v2.2.7) - 2017-06-30
108
89
 
109
- ## v2.2.5 - 2017-06-26
90
+ [Full Changelog](https://github.com/puppetlabs/forge-ruby/compare/v2.2.6...v2.2.7)
110
91
 
111
- ### Fixed
92
+ ## [v2.2.6](https://github.com/puppetlabs/forge-ruby/tree/v2.2.6) - 2017-06-27
112
93
 
113
- * (FORGE-338) Fixed an issue where `V3::Release.download_url` returned an incorrect value when `PuppetForge.host` included
114
- a path prefix. (Thanks to [Jainish Shah](https://github.com/jainishshah17) for the report and initial fix proposal.)
94
+ [Full Changelog](https://github.com/puppetlabs/forge-ruby/compare/v2.2.5...v2.2.6)
115
95
 
116
- ## v2.2.4 - 2017-04-17
96
+ ## [v2.2.5](https://github.com/puppetlabs/forge-ruby/tree/v2.2.5) - 2017-06-26
117
97
 
118
- ### Added
98
+ [Full Changelog](https://github.com/puppetlabs/forge-ruby/compare/v2.2.4...v2.2.5)
99
+
100
+ ## [v2.2.4](https://github.com/puppetlabs/forge-ruby/tree/v2.2.4) - 2017-04-17
119
101
 
120
- * PuppetForge::Connection now has .accept\_language and .accept\_language= class methods providing a way to set the
121
- 'Accept-Language' header for outbound requests.
102
+ [Full Changelog](https://github.com/puppetlabs/forge-ruby/compare/v2.2.3...v2.2.4)
122
103
 
123
- ## v2.2.3 - 2017-01-17
104
+ ### Added
124
105
 
125
- ### Changed
106
+ - (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))
126
107
 
127
- * Fixed an issue that was preventing PuppetForge.host from honoring any given path prefix.
128
- * Upgraded gettext-setup dependency to 0.11 release.
108
+ ## [v2.2.3](https://github.com/puppetlabs/forge-ruby/tree/v2.2.3) - 2017-01-17
129
109
 
130
- ## v2.2.2 - 2016-07-06
110
+ [Full Changelog](https://github.com/puppetlabs/forge-ruby/compare/v1.0.6...v2.2.3)
131
111
 
132
- ### Changed
112
+ ## [v1.0.6](https://github.com/puppetlabs/forge-ruby/tree/v1.0.6) - 2016-07-25
133
113
 
134
- * Externalized all user facing strings with gettext to support future localization work.
114
+ [Full Changelog](https://github.com/puppetlabs/forge-ruby/compare/v2.2.2...v1.0.6)
135
115
 
136
- ## v2.2.1 - 2016-05-24
116
+ ## [v2.2.2](https://github.com/puppetlabs/forge-ruby/tree/v2.2.2) - 2016-07-06
137
117
 
138
- ### Changed
118
+ [Full Changelog](https://github.com/puppetlabs/forge-ruby/compare/v2.2.1...v2.2.2)
139
119
 
140
- * Fixed an issue where certain types of connection failures raised a spurious "method missing" error instead of the underlying
141
- exception.
142
- * When setting PuppetForge::Connection.proxy, an empty string will now be treated as nil. If no proxy has yet been configured,
143
- setting to an empty string will have no effect. If a proxy has already been configured, setting to nil will unset the existing
144
- value.
120
+ ## [v2.2.1](https://github.com/puppetlabs/forge-ruby/tree/v2.2.1) - 2016-05-24
145
121
 
146
- ## v2.2.0 - 2016-05-10
122
+ [Full Changelog](https://github.com/puppetlabs/forge-ruby/compare/v2.2.0...v2.2.1)
147
123
 
148
- ### Changed
124
+ ## [v2.2.0](https://github.com/puppetlabs/forge-ruby/tree/v2.2.0) - 2016-05-10
149
125
 
150
- * puppet\_forge's optional dependency on Typhoeus now searches for a gem matching '~> 1.0.1' so it will pick up more recent versions.
151
- 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
152
- adapter and will fall back to Ruby's Net::HTTP library.
126
+ [Full Changelog](https://github.com/puppetlabs/forge-ruby/compare/v2.1.5...v2.2.0)
153
127
 
154
- ## v2.1.5 - 2016-04-13
128
+ ## [v2.1.5](https://github.com/puppetlabs/forge-ruby/tree/v2.1.5) - 2016-04-13
155
129
 
156
- ### Added
130
+ [Full Changelog](https://github.com/puppetlabs/forge-ruby/compare/v2.1.4...v2.1.5)
157
131
 
158
- * PuppetForge::Connection now has .proxy and .proxy= class methods providing a more reliable way of configuring an HTTP proxy.
132
+ ## [v2.1.4](https://github.com/puppetlabs/forge-ruby/tree/v2.1.4) - 2016-04-01
159
133
 
160
- ### Changed
134
+ [Full Changelog](https://github.com/puppetlabs/forge-ruby/compare/v2.1.3...v2.1.4)
161
135
 
162
- * Cached connection objects will now be automatically discarded when proxy or authorization config has changed.
136
+ ## [v2.1.3](https://github.com/puppetlabs/forge-ruby/tree/v2.1.3) - 2016-01-25
163
137
 
164
- ## v2.1.4 - 2016-04-01
138
+ [Full Changelog](https://github.com/puppetlabs/forge-ruby/compare/v2.1.2...v2.1.3)
165
139
 
166
- ### Changed
140
+ ## [v2.1.2](https://github.com/puppetlabs/forge-ruby/tree/v2.1.2) - 2015-12-17
167
141
 
168
- * Bug in usage of minitar filenames led to ignored tar files with tar file length of >100 chars.
142
+ [Full Changelog](https://github.com/puppetlabs/forge-ruby/compare/v2.1.1...v2.1.2)
169
143
 
170
- ## v2.1.3 - 2016-01-25
144
+ ## [v2.1.1](https://github.com/puppetlabs/forge-ruby/tree/v2.1.1) - 2015-10-06
171
145
 
172
- ### Changed
146
+ [Full Changelog](https://github.com/puppetlabs/forge-ruby/compare/v2.1.0...v2.1.1)
173
147
 
174
- * 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.)
148
+ ## [v2.1.0](https://github.com/puppetlabs/forge-ruby/tree/v2.1.0) - 2015-08-27
175
149
 
176
- ## v2.1.2 - 2015-12-16
150
+ [Full Changelog](https://github.com/puppetlabs/forge-ruby/compare/v2.0.0...v2.1.0)
177
151
 
178
- ### Changed
152
+ ## [v2.0.0](https://github.com/puppetlabs/forge-ruby/tree/v2.0.0) - 2015-08-14
179
153
 
180
- * Runtime dependency on "faraday\_middleware" gem updated to allow 0.10.x releases.
154
+ [Full Changelog](https://github.com/puppetlabs/forge-ruby/compare/v1.0.5...v2.0.0)
181
155
 
182
- ## v2.1.1 - 2015-10-06
156
+ ### Added
183
157
 
184
- ### Changed
158
+ - (CODEMGMT-308) Add hash keys to symbols middleware [#14](https://github.com/puppetlabs/forge-ruby/pull/14) ([austb](https://github.com/austb))
159
+ - (CODEMGMT-296) Add PaginatedCollection ORM for where request [#11](https://github.com/puppetlabs/forge-ruby/pull/11) ([austb](https://github.com/austb))
160
+ - Add ORM for individual item (User/Module/Release) [#10](https://github.com/puppetlabs/forge-ruby/pull/10) ([austb](https://github.com/austb))
185
161
 
186
- * Bug in error message around missing release on forge caused inappropriate error.
162
+ ## [v1.0.5](https://github.com/puppetlabs/forge-ruby/tree/v1.0.5) - 2015-07-23
187
163
 
188
- ## v2.1.0 - 2015-08-20
164
+ [Full Changelog](https://github.com/puppetlabs/forge-ruby/compare/v1.0.4...v1.0.5)
189
165
 
190
- ### Added
166
+ ## [v1.0.4](https://github.com/puppetlabs/forge-ruby/tree/v1.0.4) - 2014-12-17
191
167
 
192
- * PuppetForge::ReleaseForbidden added to acknowledge 403 status returned from release download request
168
+ [Full Changelog](https://github.com/puppetlabs/forge-ruby/compare/v1.0.3...v1.0.4)
193
169
 
194
- ## v2.0.0 - 2015-08-13
170
+ ## [v1.0.3](https://github.com/puppetlabs/forge-ruby/tree/v1.0.3) - 2014-06-24
195
171
 
196
- ### Added
172
+ [Full Changelog](https://github.com/puppetlabs/forge-ruby/compare/v1.0.2...v1.0.3)
173
+
174
+ ## [v1.0.2](https://github.com/puppetlabs/forge-ruby/tree/v1.0.2) - 2014-06-16
197
175
 
198
- * PuppetForge::V3::Release can now verify the md5, unpack, and install a release tarball.
199
- * PuppetForge::Middleware::SymbolifyJson to change Faraday response hash keys into symbols.
200
- * PuppetForge::V3::Metadata to represent a release's metadata as an object.
201
- * PuppetForge::Connection to provide Faraday connections.
176
+ [Full Changelog](https://github.com/puppetlabs/forge-ruby/compare/v1.0.1...v1.0.2)
202
177
 
203
- ### Changed
178
+ ## [v1.0.1](https://github.com/puppetlabs/forge-ruby/tree/v1.0.1) - 2014-06-02
204
179
 
205
- * Failed API requests, such as those for a module that doesn't exist, throw a Faraday::ResourceNotFound error.
206
- * API requests are sent through Faraday directly rather than through Her.
207
- * PuppetForge::V3::Base#where and PuppetForge::V3::Base#all now send an API request immediately and return a paginated collection.
180
+ [Full Changelog](https://github.com/puppetlabs/forge-ruby/compare/v1.0.0...v1.0.1)
208
181
 
209
- ### Removed
182
+ ## [v1.0.0](https://github.com/puppetlabs/forge-ruby/tree/v1.0.0) - 2014-05-16
210
183
 
211
- * Dependency on Her (also removes dependency on ActiveSupport).
184
+ [Full Changelog](https://github.com/puppetlabs/forge-ruby/compare/2f052f220f0b3f4e135d930491edecf222fc059f...v1.0.0)
data/History.md ADDED
@@ -0,0 +1,214 @@
1
+ # Change Log
2
+
3
+ Starting with v2.0.0, all notable changes to this project will be documented in this file.
4
+ This project adheres to [Semantic Versioning](http://semver.org/).
5
+
6
+
7
+ ## 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
8
+
9
+ ## v5.0.2 - 2023-09-29
10
+ * Correct a Digest call making this thread-safe and allowing for concurrent r10k deploys.
11
+ Thanks to @cmd-ntrf for fixing it and to @baurmatt for tracking it down in the first place.
12
+
13
+ ## v5.0.1 - 2023-07-10
14
+ * Update README to reflect accurate Ruby requirement and `faraday` gem dependency
15
+ ## v5.0.0 - 2023-05-07
16
+
17
+ * Ruby 3.2 support.
18
+ * LRU caching for HTTP response caching.
19
+ * Raise a ModuleNotFound error instead of just nil when a module is not found.
20
+
21
+ ## v4.1.0 - 2023-02-21
22
+
23
+ * Add upload method functionality.
24
+ * Allows the user to search by an array of endorsements.
25
+
26
+ ## v4.0.0 - 2022-11-30
27
+
28
+ * Breaking: The `puppet_forge` gem now requires at least Ruby 2.6.0
29
+ * Update `faraday` gem to 2.x series
30
+
31
+ ## v3.2.0 - 2021-11-09
32
+
33
+ * Allow requests to follow redirects
34
+ * Remove the `gettext-setup` gem dependency, which was unused
35
+
36
+ ## v3.1.0 - 2021-08-20
37
+
38
+ ### Changed
39
+
40
+ * Update `PuppetForge::Connection.authorization` so that it prepends the
41
+ required `Bearer ` string automatically to values that look like Forge API
42
+ keys. This won't affect values that already include `Bearer `.
43
+
44
+ ## v3.0.0 - 2021-01-28
45
+
46
+ * Breaking: The `puppet_forge` gem now requires at least Ruby 2.4.0.
47
+ * Update `faraday` and `faraday_middleware` gem dependencies to 1.x series.
48
+ * Update optional `typhoeus` dependency to `>= 1.4` to maintain compatibility with `faraday`.
49
+
50
+ ## v2.3.4 - 2020-03-31
51
+
52
+ * Update the forge API url to `forgeapi.puppet.com` (instead of using the older puppetlabs.com domain).
53
+ * Allow versions of the `faraday_middleware` dependency up to 0.15.
54
+
55
+ ## v2.3.3 - 2020-02-20
56
+
57
+ ### Changed
58
+
59
+ * Allow versions of faraday up to 0.18
60
+
61
+ ## v2.3.2 - 2020-02-05
62
+
63
+ ### Fixed
64
+
65
+ * Catch and handle the new `Faraday::TimeoutError`s which are occasionally
66
+ surfaced by the the typheous adapter with more recent verions of libcurl, and
67
+ log them the same way that `Faraday::ConnectionFailed` errors are already
68
+ logged.
69
+
70
+ ### Changed
71
+
72
+ * Allow for using `faraday_middleware` versions in the 0.13.x series.
73
+
74
+ ## v2.3.1 - 2019-11-15
75
+
76
+ ### Fixed
77
+
78
+ * 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.
79
+
80
+ ## v2.3.0 - 2019-07-09
81
+
82
+ ### Changed
83
+
84
+ * Updated `PuppetForge::V3::Release#verify` method to use `file_sha256` checksum from Forge API when available.
85
+ * 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.
86
+
87
+ ## v2.2.9 - 2017-12-01
88
+
89
+ ### Changed
90
+
91
+ * Loosened dependency on `faraday` and `faraday_middleware` gems to include recent releases.
92
+
93
+ ## v2.2.8 - 2017-11-09
94
+
95
+ ### Added
96
+
97
+ Created PuppetForge::Util class with a single method, version_valid?, in order to
98
+ drop the r10k dependency on semantic_puppet.
99
+
100
+ ## v2.2.7 - 2017-06-30
101
+
102
+ ### Changed
103
+
104
+ * Updated dependency on `semantic_puppet` to `~> 1.0`.
105
+
106
+ ## v2.2.6 - 2017-06-27
107
+
108
+ ### Fixed
109
+
110
+ * Fixed an issue when attempting to assign a non-String value to `PuppetForge.host`.
111
+
112
+ ## v2.2.5 - 2017-06-26
113
+
114
+ ### Fixed
115
+
116
+ * (FORGE-338) Fixed an issue where `V3::Release.download_url` returned an incorrect value when `PuppetForge.host` included
117
+ a path prefix. (Thanks to [Jainish Shah](https://github.com/jainishshah17) for the report and initial fix proposal.)
118
+
119
+ ## v2.2.4 - 2017-04-17
120
+
121
+ ### Added
122
+
123
+ * PuppetForge::Connection now has .accept\_language and .accept\_language= class methods providing a way to set the
124
+ 'Accept-Language' header for outbound requests.
125
+
126
+ ## v2.2.3 - 2017-01-17
127
+
128
+ ### Changed
129
+
130
+ * Fixed an issue that was preventing PuppetForge.host from honoring any given path prefix.
131
+ * Upgraded gettext-setup dependency to 0.11 release.
132
+
133
+ ## v2.2.2 - 2016-07-06
134
+
135
+ ### Changed
136
+
137
+ * Externalized all user facing strings with gettext to support future localization work.
138
+
139
+ ## v2.2.1 - 2016-05-24
140
+
141
+ ### Changed
142
+
143
+ * Fixed an issue where certain types of connection failures raised a spurious "method missing" error instead of the underlying
144
+ exception.
145
+ * When setting PuppetForge::Connection.proxy, an empty string will now be treated as nil. If no proxy has yet been configured,
146
+ setting to an empty string will have no effect. If a proxy has already been configured, setting to nil will unset the existing
147
+ value.
148
+
149
+ ## v2.2.0 - 2016-05-10
150
+
151
+ ### Changed
152
+
153
+ * puppet\_forge's optional dependency on Typhoeus now searches for a gem matching '~> 1.0.1' so it will pick up more recent versions.
154
+ 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
155
+ adapter and will fall back to Ruby's Net::HTTP library.
156
+
157
+ ## v2.1.5 - 2016-04-13
158
+
159
+ ### Added
160
+
161
+ * PuppetForge::Connection now has .proxy and .proxy= class methods providing a more reliable way of configuring an HTTP proxy.
162
+
163
+ ### Changed
164
+
165
+ * Cached connection objects will now be automatically discarded when proxy or authorization config has changed.
166
+
167
+ ## v2.1.4 - 2016-04-01
168
+
169
+ ### Changed
170
+
171
+ * Bug in usage of minitar filenames led to ignored tar files with tar file length of >100 chars.
172
+
173
+ ## v2.1.3 - 2016-01-25
174
+
175
+ ### Changed
176
+
177
+ * 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.)
178
+
179
+ ## v2.1.2 - 2015-12-16
180
+
181
+ ### Changed
182
+
183
+ * Runtime dependency on "faraday\_middleware" gem updated to allow 0.10.x releases.
184
+
185
+ ## v2.1.1 - 2015-10-06
186
+
187
+ ### Changed
188
+
189
+ * Bug in error message around missing release on forge caused inappropriate error.
190
+
191
+ ## v2.1.0 - 2015-08-20
192
+
193
+ ### Added
194
+
195
+ * PuppetForge::ReleaseForbidden added to acknowledge 403 status returned from release download request
196
+
197
+ ## v2.0.0 - 2015-08-13
198
+
199
+ ### Added
200
+
201
+ * PuppetForge::V3::Release can now verify the md5, unpack, and install a release tarball.
202
+ * PuppetForge::Middleware::SymbolifyJson to change Faraday response hash keys into symbols.
203
+ * PuppetForge::V3::Metadata to represent a release's metadata as an object.
204
+ * PuppetForge::Connection to provide Faraday connections.
205
+
206
+ ### Changed
207
+
208
+ * Failed API requests, such as those for a module that doesn't exist, throw a Faraday::ResourceNotFound error.
209
+ * API requests are sent through Faraday directly rather than through Her.
210
+ * PuppetForge::V3::Base#where and PuppetForge::V3::Base#all now send an API request immediately and return a paginated collection.
211
+
212
+ ### Removed
213
+
214
+ * Dependency on Her (also removes dependency on ActiveSupport).
data/README.md CHANGED
@@ -244,10 +244,12 @@ to create a free account to add new tickets.
244
244
 
245
245
  ## Releasing
246
246
 
247
- 1. Make sure version, changelog, etc. have been updated.
248
- 1. Commit and tag with new version number: e.g. `v1.2.3`
249
- 1. Push tag to Github: `git push upstream --tags` (where `upstream` is the remote name of the puppetlabs fork of this repo)
250
- 1. Wait for Travis CI to test and push new release to Rubygems.
247
+ 1. Run the [release_prep] GitHub Action with the new version number, for example, 1.2.3. It will create a new pull request
248
+ 2. Please check the changelog and ensure all issues/prs have correct labels
249
+ 3. Run the GitHub Actions [release] workflow, and it will publish a new version on RubyGems
250
+
251
+ [release_prep]: https://github.com/puppetlabs/forge-ruby/actions/workflows/release_prep.yml
252
+ [release]: https://github.com/puppetlabs/forge-ruby/actions/workflows/release.yml
251
253
 
252
254
  ## Contributors
253
255
 
@@ -1,3 +1,3 @@
1
1
  module PuppetForge
2
- VERSION = '5.0.2' # Library version
2
+ VERSION = '5.0.4' # Library version
3
3
  end
data/puppet_forge.gemspec CHANGED
@@ -23,7 +23,7 @@ Gem::Specification.new do |spec|
23
23
  spec.add_runtime_dependency "faraday", "~> 2.0"
24
24
  spec.add_runtime_dependency "faraday-follow_redirects", "~> 0.3.0"
25
25
  spec.add_dependency "semantic_puppet", "~> 1.0"
26
- spec.add_dependency "minitar"
26
+ spec.add_dependency "minitar", "< 1.0.0 "
27
27
 
28
28
  spec.add_development_dependency "rake"
29
29
  spec.add_development_dependency "rspec", "~> 3.0"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puppet_forge
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.2
4
+ version: 5.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Puppet Labs
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-09-29 00:00:00.000000000 Z
11
+ date: 2024-08-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -56,16 +56,16 @@ dependencies:
56
56
  name: minitar
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ">="
59
+ - - "<"
60
60
  - !ruby/object:Gem::Version
61
- version: '0'
61
+ version: 1.0.0
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ">="
66
+ - - "<"
67
67
  - !ruby/object:Gem::Version
68
- version: '0'
68
+ version: 1.0.0
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rake
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -172,12 +172,17 @@ executables: []
172
172
  extensions: []
173
173
  extra_rdoc_files: []
174
174
  files:
175
+ - ".github/pull_request_template.md"
176
+ - ".github/workflows/labeller.yml"
177
+ - ".github/workflows/release.yml"
178
+ - ".github/workflows/release_prep.yml"
175
179
  - ".github/workflows/ruby-rspec.yml"
176
180
  - ".github/workflows/snyk_merge.yml"
177
181
  - ".gitignore"
178
182
  - CHANGELOG.md
179
183
  - CODEOWNERS
180
184
  - Gemfile
185
+ - History.md
181
186
  - LICENSE.txt
182
187
  - README.md
183
188
  - Rakefile
@@ -253,7 +258,7 @@ homepage: https://github.com/puppetlabs/forge-ruby
253
258
  licenses:
254
259
  - Apache-2.0
255
260
  metadata: {}
256
- post_install_message:
261
+ post_install_message:
257
262
  rdoc_options: []
258
263
  require_paths:
259
264
  - lib
@@ -268,8 +273,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
268
273
  - !ruby/object:Gem::Version
269
274
  version: '0'
270
275
  requirements: []
271
- rubygems_version: 3.3.7
272
- signing_key:
276
+ rubygems_version: 3.1.6
277
+ signing_key:
273
278
  specification_version: 4
274
279
  summary: Access the Puppet Forge API from Ruby for resource information and to download
275
280
  releases.