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 +4 -4
- data/lib/faraday/version.rb +1 -1
- data/spec/faraday/request/instrumentation_spec.rb +7 -5
- data/spec/support/webmock_rack_app.rb +2 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 54fc3007a99cab5f45291408bfb7e2b1f6d243abcae060f5d485731328acb031
|
4
|
+
data.tar.gz: 0fc0eb9ab470bca83b7b6fbc8cafcd9d141dd97eda575f63cf4b2bc6dcb36a65
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ed9fee068b4cbbe13bacfa7eb01d02b919c0ffd72345a4449127f9ad11c7a7e585fa891c8d7791861fa91c8ebe47b9d7e78f760680eaf856db3c029c5f5cc1e0
|
7
|
+
data.tar.gz: 47d4550ed834bdd5938312aafd9ea9ca4be061a12cd564fa83d08e7c67a44445a8870d12ef0030b6d9d84796813e97ff7ca859722ca786e449cfc25c66ebdb23
|
data/lib/faraday/version.rb
CHANGED
@@ -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
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
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
|
-
.
|
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.
|
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.
|
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.
|
277
|
+
version: '2.4'
|
278
278
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
279
279
|
requirements:
|
280
280
|
- - ">="
|