puppet_forge 2.3.1 → 2.3.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA256:
3
- metadata.gz: 7979d3eea2d729bf36dd4ee5ad190dda3d9cbecc3064c6a03a2b58353cf5cc61
4
- data.tar.gz: 28b03d724725713058b07263ff2ae1f0fade2f5845db7ccf288dcf781a161d6b
2
+ SHA1:
3
+ metadata.gz: 6aed55b955fdb85d279683032b5404abd2427fe4
4
+ data.tar.gz: 42acb5582761a58630f74eb00bbffc2717843516
5
5
  SHA512:
6
- metadata.gz: 2d5e0f8b06881a161119229b80bc7b105ca856e6267abb504bb3a4882e566c851c123e2eed9ecbc8a51787b2de834450e2dffa8d211a4c26332dc5e30bb1e8dc
7
- data.tar.gz: 0b285df0b6a223d35a6a89f4a0dbb41796c6aacb92437a321af0f52cba39c964d1d7a2ae232ec0f6bc285742029e97e22b7f7c3192bb879eb0c7323b41f31855
6
+ metadata.gz: 509729025dcf72bea9d3e49cc354216051cc979627d6d379a84606254e34bcee8dfa6e6fb931c89671fe517a22471bac1e658f7b84b6d59442aaa230aed48fd2
7
+ data.tar.gz: e47ecab7a3da1d64706567c7e377ceef47cea5876346435e10f57b31e9ab64d6f6a1bab61ddca259b1c670e0de0979c7086172a8a9c2467c424d8b5f2740e96e
@@ -14,7 +14,7 @@ jobs:
14
14
  runs-on: ubuntu-latest
15
15
  strategy:
16
16
  matrix:
17
- ruby_version: ['2.6.x', '2.5.x', '2.4.x', '2.3.x']
17
+ ruby_version: ['2.7.x', '2.6.x', '2.5.x', '2.4.x']
18
18
 
19
19
  steps:
20
20
  - uses: actions/checkout@v1
@@ -3,6 +3,19 @@
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
+ ## v2.3.2 - 2020-02-05
7
+
8
+ ### Fixed
9
+
10
+ * Catch and handle the new `Faraday::TimeoutError`s which are occasionally
11
+ surfaced by the the typheous adapter with more recent verions of libcurl, and
12
+ log them the same way that `Faraday::ConnectionFailed` errors are already
13
+ logged.
14
+
15
+ ### Changed
16
+
17
+ * Allow for using `faraday_middleware` versions in the 0.13.x series.
18
+
6
19
  ## v2.3.1 - 2019-11-15
7
20
 
8
21
  ### Fixed
@@ -7,7 +7,7 @@ module PuppetForge
7
7
  class ConnectionFailure < Faraday::Middleware
8
8
  def call(env)
9
9
  @app.call(env)
10
- rescue Faraday::ConnectionFailed => e
10
+ rescue Faraday::ConnectionFailed, Faraday::TimeoutError => e
11
11
  baseurl = env[:url].dup
12
12
  if proxy = env[:request][:proxy]
13
13
  errmsg = _("Unable to connect to %{scheme}://%{host} (using proxy %{proxy}) (for request %{path_query})") % {
@@ -1,3 +1,3 @@
1
1
  module PuppetForge
2
- VERSION = '2.3.1' # Library version
2
+ VERSION = '2.3.2' # Library version
3
3
  end
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
21
21
  spec.required_ruby_version = '>= 1.9.3'
22
22
 
23
23
  spec.add_runtime_dependency "faraday", [">= 0.9.0", "< 0.15.0", "!= 0.13.1"]
24
- spec.add_runtime_dependency "faraday_middleware", [">= 0.9.0", "< 0.13.0"]
24
+ spec.add_runtime_dependency "faraday_middleware", [">= 0.9.0", "< 0.14.0"]
25
25
  spec.add_dependency 'semantic_puppet', '~> 1.0'
26
26
  spec.add_dependency 'minitar'
27
27
  spec.add_dependency 'gettext-setup', '~> 0.11'
@@ -11,6 +11,7 @@ describe PuppetForge::Connection::ConnectionFailure do
11
11
 
12
12
  builder.adapter :test do |stub|
13
13
  stub.get('/connectfail') { raise Faraday::ConnectionFailed.new(SocketError.new("getaddrinfo: Name or service not known"), :hi) }
14
+ stub.get('/timeout') { raise Faraday::TimeoutError, "request timed out" }
14
15
  end
15
16
  end
16
17
  end
@@ -21,6 +22,12 @@ describe PuppetForge::Connection::ConnectionFailure do
21
22
  }.to raise_error(Faraday::ConnectionFailed, /unable to connect to.*\/connectfail.*name or service not known/i)
22
23
  end
23
24
 
25
+ it "logs for timeout errors" do
26
+ expect {
27
+ subject.get('/timeout')
28
+ }.to raise_error(Faraday::ConnectionFailed, /unable to connect to.*\/timeout.*request timed out/i)
29
+ end
30
+
24
31
  it "includes the proxy host in the error message when set" do
25
32
  if subject.respond_to?(:proxy=)
26
33
  subject.proxy = 'https://some-unreachable.proxy:3128'
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: 2.3.1
4
+ version: 2.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Puppet Labs
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-11-15 00:00:00.000000000 Z
11
+ date: 2020-02-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -17,12 +17,12 @@ dependencies:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: 0.9.0
20
- - - "!="
21
- - !ruby/object:Gem::Version
22
- version: 0.13.1
23
20
  - - "<"
24
21
  - !ruby/object:Gem::Version
25
22
  version: 0.15.0
23
+ - - "!="
24
+ - !ruby/object:Gem::Version
25
+ version: 0.13.1
26
26
  type: :runtime
27
27
  prerelease: false
28
28
  version_requirements: !ruby/object:Gem::Requirement
@@ -30,12 +30,12 @@ dependencies:
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
32
  version: 0.9.0
33
- - - "!="
34
- - !ruby/object:Gem::Version
35
- version: 0.13.1
36
33
  - - "<"
37
34
  - !ruby/object:Gem::Version
38
35
  version: 0.15.0
36
+ - - "!="
37
+ - !ruby/object:Gem::Version
38
+ version: 0.13.1
39
39
  - !ruby/object:Gem::Dependency
40
40
  name: faraday_middleware
41
41
  requirement: !ruby/object:Gem::Requirement
@@ -45,7 +45,7 @@ dependencies:
45
45
  version: 0.9.0
46
46
  - - "<"
47
47
  - !ruby/object:Gem::Version
48
- version: 0.13.0
48
+ version: 0.14.0
49
49
  type: :runtime
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
@@ -55,7 +55,7 @@ dependencies:
55
55
  version: 0.9.0
56
56
  - - "<"
57
57
  - !ruby/object:Gem::Version
58
- version: 0.13.0
58
+ version: 0.14.0
59
59
  - !ruby/object:Gem::Dependency
60
60
  name: semantic_puppet
61
61
  requirement: !ruby/object:Gem::Requirement
@@ -300,7 +300,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
300
300
  - !ruby/object:Gem::Version
301
301
  version: '0'
302
302
  requirements: []
303
- rubygems_version: 3.0.3
303
+ rubyforge_project:
304
+ rubygems_version: 2.6.14
304
305
  signing_key:
305
306
  specification_version: 4
306
307
  summary: Access the Puppet Forge API from Ruby for resource information and to download