puppet_forge 3.2.0 → 4.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ruby-rspec.yml +7 -5
- data/.github/workflows/snyk_merge.yml +24 -0
- data/CHANGELOG.md +5 -0
- data/lib/puppet_forge/connection/connection_failure.rb +1 -1
- data/lib/puppet_forge/connection.rb +2 -2
- data/lib/puppet_forge/version.rb +1 -1
- data/puppet_forge.gemspec +4 -7
- metadata +12 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a0e379f885f305dfc82f87bfea6ae668d6467595f0083355cbe95c63e9864019
|
4
|
+
data.tar.gz: 1cf23ce28776267459e01bedfed935750650378542b54e1ec3155efb9b67ba60
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b32e4f0758fe84f28339cc8a3f57dad01a21abc26a490e7d1b8ac1a4ecdc6e52b961e4c24f0f4a5b476c4fc1ed849bfb42594314a120f6198c06261036702457
|
7
|
+
data.tar.gz: 044a092e9f8e15f078043281bac236c8694c037a1f71bb34a4d0e392379811e88ac9981afa6d75661cc5483a7a3966af26def433fe2eeb370c9f2d80499fbcba
|
@@ -14,7 +14,11 @@ jobs:
|
|
14
14
|
runs-on: ubuntu-latest
|
15
15
|
strategy:
|
16
16
|
matrix:
|
17
|
-
ruby:
|
17
|
+
ruby:
|
18
|
+
- '3.1'
|
19
|
+
- '3.0'
|
20
|
+
- '2.7'
|
21
|
+
- '2.6'
|
18
22
|
|
19
23
|
steps:
|
20
24
|
- uses: actions/checkout@v1
|
@@ -22,9 +26,7 @@ jobs:
|
|
22
26
|
uses: ruby/setup-ruby@v1
|
23
27
|
with:
|
24
28
|
ruby-version: ${{ matrix.ruby }}
|
29
|
+
bundler-cache: true
|
25
30
|
|
26
31
|
- name: Build and test with Rspec
|
27
|
-
run:
|
28
|
-
gem install bundler
|
29
|
-
bundle install --jobs 4 --retry 3
|
30
|
-
bundle exec rspec
|
32
|
+
run: bundle exec rspec
|
@@ -0,0 +1,24 @@
|
|
1
|
+
name: snyk_merge
|
2
|
+
on:
|
3
|
+
workflow_dispatch:
|
4
|
+
push:
|
5
|
+
branches:
|
6
|
+
- main
|
7
|
+
jobs:
|
8
|
+
security:
|
9
|
+
runs-on: ubuntu-latest
|
10
|
+
steps:
|
11
|
+
- uses: actions/checkout@master
|
12
|
+
- name: setup ruby
|
13
|
+
uses: ruby/setup-ruby@v1
|
14
|
+
with:
|
15
|
+
ruby-version: 2.7
|
16
|
+
- name: create lock
|
17
|
+
run: bundle lock
|
18
|
+
- name: Run Snyk to check for vulnerabilities
|
19
|
+
uses: snyk/actions/ruby@master
|
20
|
+
env:
|
21
|
+
SNYK_TOKEN: ${{ secrets.SNYK_FORGE_KEY }}
|
22
|
+
with:
|
23
|
+
command: monitor
|
24
|
+
args: --org=puppet-forge
|
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,11 @@
|
|
3
3
|
Starting with v2.0.0, all notable changes to this project will be documented in this file.
|
4
4
|
This project adheres to [Semantic Versioning](http://semver.org/).
|
5
5
|
|
6
|
+
## v4.0.0 - 2022-11-30
|
7
|
+
|
8
|
+
* Breaking: The `puppet_forge` gem now requires at least Ruby 2.6.0
|
9
|
+
* Update `faraday` gem to 2.x series
|
10
|
+
|
6
11
|
## v3.2.0 - 2021-11-09
|
7
12
|
|
8
13
|
* Allow requests to follow redirects
|
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'puppet_forge/connection/connection_failure'
|
2
2
|
|
3
3
|
require 'faraday'
|
4
|
-
require '
|
4
|
+
require 'faraday/follow_redirects'
|
5
5
|
|
6
6
|
module PuppetForge
|
7
7
|
# Provide a common mixin for adding a HTTP connection to classes.
|
@@ -115,7 +115,7 @@ module PuppetForge
|
|
115
115
|
end
|
116
116
|
|
117
117
|
Faraday.new(url, options) do |builder|
|
118
|
-
builder.use
|
118
|
+
builder.use Faraday::FollowRedirects::Middleware
|
119
119
|
builder.response(:json, :content_type => /\bjson$/, :parser_options => { :symbolize_names => true })
|
120
120
|
builder.response(:raise_error)
|
121
121
|
builder.use(:connection_failure)
|
data/lib/puppet_forge/version.rb
CHANGED
data/puppet_forge.gemspec
CHANGED
@@ -18,10 +18,10 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
|
-
spec.required_ruby_version = '>= 2.
|
21
|
+
spec.required_ruby_version = '>= 2.6.0'
|
22
22
|
|
23
|
-
spec.add_runtime_dependency "faraday", "~>
|
24
|
-
spec.add_runtime_dependency "
|
23
|
+
spec.add_runtime_dependency "faraday", "~> 2.0"
|
24
|
+
spec.add_runtime_dependency "faraday-follow_redirects", "~> 0.3.0"
|
25
25
|
spec.add_dependency "semantic_puppet", "~> 1.0"
|
26
26
|
spec.add_dependency "minitar"
|
27
27
|
|
@@ -31,8 +31,5 @@ Gem::Specification.new do |spec|
|
|
31
31
|
spec.add_development_dependency "cane"
|
32
32
|
spec.add_development_dependency "yard"
|
33
33
|
spec.add_development_dependency "redcarpet"
|
34
|
-
|
35
|
-
# Install the right pry debugging combo depending on ruby version.
|
36
|
-
spec.add_development_dependency "pry-debugger" if RUBY_VERSION <= '1.9.3'
|
37
|
-
spec.add_development_dependency "pry-byebug" if RUBY_VERSION >= '2.0.0'
|
34
|
+
spec.add_development_dependency "pry-byebug"
|
38
35
|
end
|
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:
|
4
|
+
version: 4.0.0
|
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:
|
11
|
+
date: 2022-12-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '2.0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '2.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: faraday-follow_redirects
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 0.3.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: 0.3.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: semantic_puppet
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -173,6 +173,7 @@ extensions: []
|
|
173
173
|
extra_rdoc_files: []
|
174
174
|
files:
|
175
175
|
- ".github/workflows/ruby-rspec.yml"
|
176
|
+
- ".github/workflows/snyk_merge.yml"
|
176
177
|
- ".gitignore"
|
177
178
|
- CHANGELOG.md
|
178
179
|
- CODEOWNERS
|
@@ -250,7 +251,7 @@ homepage: https://github.com/puppetlabs/forge-ruby
|
|
250
251
|
licenses:
|
251
252
|
- Apache-2.0
|
252
253
|
metadata: {}
|
253
|
-
post_install_message:
|
254
|
+
post_install_message:
|
254
255
|
rdoc_options: []
|
255
256
|
require_paths:
|
256
257
|
- lib
|
@@ -258,7 +259,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
258
259
|
requirements:
|
259
260
|
- - ">="
|
260
261
|
- !ruby/object:Gem::Version
|
261
|
-
version: 2.
|
262
|
+
version: 2.6.0
|
262
263
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
263
264
|
requirements:
|
264
265
|
- - ">="
|
@@ -266,7 +267,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
266
267
|
version: '0'
|
267
268
|
requirements: []
|
268
269
|
rubygems_version: 3.1.6
|
269
|
-
signing_key:
|
270
|
+
signing_key:
|
270
271
|
specification_version: 4
|
271
272
|
summary: Access the Puppet Forge API from Ruby for resource information and to download
|
272
273
|
releases.
|