faraday 2.13.2 → 2.13.3

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: ba5077c825db9905310c665e101ad938f6e169dc9a887cbd03314434a7b37405
4
- data.tar.gz: dc66440fa21267c217c7f5ee12d490eb039bcd6eed2b1efd727963c4d92eee16
3
+ metadata.gz: fccc2d2f3f22b9ba2504be3288089a738dc48d781bc319876f9728f5aa2651b9
4
+ data.tar.gz: 790f7f98b93bd899b1fe0fb70ca2daa688b58c59c4879ad96c40646a68938142
5
5
  SHA512:
6
- metadata.gz: f55feaf0423e9169ad01017c18479dbac065fd1bce8403a82d841fac49e2845f420b0bb1bae5b3bf1b1dba5dbc03796f10997ea8ec7c15148b8ed1f5770cd81b
7
- data.tar.gz: 875b2d50d365f7771e825949a483b433e7c87a969bb721c6024cb575832ddf02013c9252be5c2285008c4d4177ce9d085caaeb4940b014db5b505ed6bd25c226
6
+ metadata.gz: 9accbcc5fbbb03ad5f4626a8fd608908a67daf31fad850642002ebdab21fcfe5d5ee2a38a93422ea0a7d5272f995001ba765c9ef6973c7f6c68b3a4295594876
7
+ data.tar.gz: 13beb88b10ad5dd9e3ef116f73928d04436e18d9409265af74570258834eca99952bf73bc33ae3e0b1ddafdcb0851747e2b9212851778d0cc5936a0e8e0f1823
data/lib/faraday/error.rb CHANGED
@@ -81,7 +81,7 @@ module Faraday
81
81
  def exc_msg_and_response(exc, response = nil)
82
82
  if exc.is_a?(Exception)
83
83
  [exc, exc.message, response]
84
- elsif exc.is_a?(Hash)
84
+ elsif exc.is_a?(Hash) || exc.is_a?(Faraday::Env)
85
85
  http_status = exc.fetch(:status)
86
86
 
87
87
  request = exc.fetch(:request, nil)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Faraday
4
- VERSION = '2.13.2'
4
+ VERSION = '2.13.3'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: faraday
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.13.2
4
+ version: 2.13.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - "@technoweenie"
@@ -144,7 +144,7 @@ licenses:
144
144
  - MIT
145
145
  metadata:
146
146
  homepage_uri: https://lostisland.github.io/faraday
147
- changelog_uri: https://github.com/lostisland/faraday/releases/tag/v2.13.2
147
+ changelog_uri: https://github.com/lostisland/faraday/releases/tag/v2.13.3
148
148
  source_code_uri: https://github.com/lostisland/faraday
149
149
  bug_tracker_uri: https://github.com/lostisland/faraday/issues
150
150
  rubygems_mfa_required: 'true'
@@ -163,7 +163,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
163
163
  - !ruby/object:Gem::Version
164
164
  version: '0'
165
165
  requirements: []
166
- rubygems_version: 3.6.7
166
+ rubygems_version: 3.6.9
167
167
  specification_version: 4
168
168
  summary: HTTP/REST API client library.
169
169
  test_files: []