faraday-net_http 2.0.1 → 2.0.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
2
  SHA256:
3
- metadata.gz: cb8f3076e586085a7873fca5fdbde1a06029ed302f415ccdc0725974e1b63d4d
4
- data.tar.gz: e4bf9d227da702db014a8009f7a284d16d57b4f389dd16e321804e3e610746dc
3
+ metadata.gz: dd81d4fd0efd54bc9645740c95d58d1da812ea43be13b265f2a6031136b7d5d6
4
+ data.tar.gz: 6b53df4188f50693d8f4c7ebb2fea9ae9a5f8277e0894ba49be7f2ceb90f95e0
5
5
  SHA512:
6
- metadata.gz: 5008e8715fcd65cc2584abeda42a2e3ee2550b380e341b566b8071fc32566a8cbdba872592358f55d713c02edbdef0bb7a1ec977904245457c29f422722263b9
7
- data.tar.gz: cb75722d3bacd09ba573d2a2a6c2b8892c7fe9e729bc26403b549f1d9bdfe406438219e2d9a553c710ae99fd09308f4f55f198d069a91efab568ced36022ca88
6
+ metadata.gz: 8ac00145c8e0a0a9dbb53daf0a4da960d56143227293288b5b6c4754b302f3ad3123edebefdf987d4b4250f5473e2adf2c9267eb70f8c26e141c78f0c4a478d5
7
+ data.tar.gz: e059ac1f6872511c4095136fa3b6e52fc130b303258bb4bb0a755fd5fc53ba8218e17e54ab56d3df1c92e936c416f673c7bbc1e600158eb87c503b0cab7af349
@@ -210,7 +210,7 @@ module Faraday
210
210
  def encoded_body(http_response)
211
211
  body = http_response.body || +''
212
212
  /\bcharset=\s*(.+?)\s*(;|$)/.match(http_response['Content-Type']) do |match|
213
- content_charset = Encoding.find(match.captures.first)
213
+ content_charset = ::Encoding.find(match.captures.first)
214
214
  body = body.dup if body.frozen?
215
215
  body.force_encoding(content_charset)
216
216
  rescue ArgumentError
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Faraday
4
4
  module NetHttp
5
- VERSION = '2.0.1'
5
+ VERSION = '2.0.2'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: faraday-net_http
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan van der Pas
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-05 00:00:00.000000000 Z
11
+ date: 2022-04-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -42,7 +42,7 @@ licenses:
42
42
  metadata:
43
43
  homepage_uri: https://github.com/lostisland/faraday-net_http
44
44
  source_code_uri: https://github.com/lostisland/faraday-net_http
45
- changelog_uri: https://github.com/lostisland/faraday-net_http/releases/tag/v2.0.1
45
+ changelog_uri: https://github.com/lostisland/faraday-net_http/releases/tag/v2.0.2
46
46
  post_install_message:
47
47
  rdoc_options: []
48
48
  require_paths: