faraday 1.9.2 → 1.9.3

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
2
  SHA256:
3
- metadata.gz: c4e484ac8258dd87916d0f5a1330846e8d786531250ccca90267415cca980d2f
4
- data.tar.gz: 1ee679b83f3eaffd4b4c10f91e21a71e4b6b18f9b15bac8d9d937b52c1955770
3
+ metadata.gz: 54fc3007a99cab5f45291408bfb7e2b1f6d243abcae060f5d485731328acb031
4
+ data.tar.gz: 0fc0eb9ab470bca83b7b6fbc8cafcd9d141dd97eda575f63cf4b2bc6dcb36a65
5
5
  SHA512:
6
- metadata.gz: 4731a060a0a070fe5911447b415c43463cc96efe59e714c2e3e32110826af5ea9e451ab24d95c027c2fa0d0259c6d523f48eaa72eaa5f4c9aa3e9329f29862fb
7
- data.tar.gz: 1df9244344683f56b583dd2bc0e8225ef36dc727ef8b3247a7b48ded40eae03da828424b7a0cb680fed70d18904c2b246cc7e779114ea716240308590ae36468
6
+ metadata.gz: ed9fee068b4cbbe13bacfa7eb01d02b919c0ffd72345a4449127f9ad11c7a7e585fa891c8d7791861fa91c8ebe47b9d7e78f760680eaf856db3c029c5f5cc1e0
7
+ data.tar.gz: 47d4550ed834bdd5938312aafd9ea9ca4be061a12cd564fa83d08e7c67a44445a8870d12ef0030b6d9d84796813e97ff7ca859722ca786e449cfc25c66ebdb23
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Faraday
4
- VERSION = '1.9.2'
4
+ VERSION = '1.9.3'
5
5
  end
@@ -30,11 +30,13 @@ RSpec.describe Faraday::Request::Instrumentation do
30
30
 
31
31
  it { expect(options.name).to eq('request.faraday') }
32
32
  it 'defaults to ActiveSupport::Notifications' do
33
- res = options.instrumenter
34
- rescue NameError => e
35
- expect(e.to_s).to match('ActiveSupport')
36
- else
37
- expect(res).to eq(ActiveSupport::Notifications)
33
+ begin
34
+ res = options.instrumenter
35
+ rescue NameError => e
36
+ expect(e.to_s).to match('ActiveSupport')
37
+ else
38
+ expect(res).to eq(ActiveSupport::Notifications)
39
+ end
38
40
  end
39
41
 
40
42
  it 'instruments with default name' do
@@ -41,7 +41,8 @@ class WebmockRackApp
41
41
 
42
42
  def req_headers(env)
43
43
  http_headers = env.select { |k, _| k.start_with?('HTTP_') }
44
- .transform_keys { |k| k[5..] }
44
+ .map { |k, v| [k[5..-1], v] }
45
+ .to_h
45
46
 
46
47
  special_headers = Faraday::Adapter::Rack::SPECIAL_HEADERS
47
48
  http_headers.merge(env.select { |k, _| special_headers.include?(k) })
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: 1.9.2
4
+ version: 1.9.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - "@technoweenie"
@@ -262,7 +262,7 @@ licenses:
262
262
  - MIT
263
263
  metadata:
264
264
  homepage_uri: https://lostisland.github.io/faraday
265
- changelog_uri: https://github.com/lostisland/faraday/releases/tag/v1.9.2
265
+ changelog_uri: https://github.com/lostisland/faraday/releases/tag/v1.9.3
266
266
  source_code_uri: https://github.com/lostisland/faraday
267
267
  bug_tracker_uri: https://github.com/lostisland/faraday/issues
268
268
  post_install_message:
@@ -274,7 +274,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
274
274
  requirements:
275
275
  - - ">="
276
276
  - !ruby/object:Gem::Version
277
- version: '2.6'
277
+ version: '2.4'
278
278
  required_rubygems_version: !ruby/object:Gem::Requirement
279
279
  requirements:
280
280
  - - ">="