faraday-http 2.0.1 → 2.1.0

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: 1ee9c6b6b2e970f059954d9a5faca476cb6fc68509331d64c8a4c07600bf506a
4
- data.tar.gz: ea70e044b17534562e97af62a2f42c048b85537c185b27e16073671446ff7ba2
3
+ metadata.gz: f0b1a35c00bfac4b7d43d23313fec9f7708c8fd6abb4d6f62a1f007e40e48737
4
+ data.tar.gz: 78005f5be510094ef3086756b0f5bfe2ac602711beec985ba5e5102111ad8d6c
5
5
  SHA512:
6
- metadata.gz: 6a6e551e5b3dd7aa0f3cb53a6c21a0694e27fe39ef2ce54e0d5497b306cb8a7c0beab47ba1844c9d3454022fd64ce0091a4e36f9c5bc45ee5d5172edf406f904
7
- data.tar.gz: d9f8e7e27a2646e63b366fae79461e3a39a78eaf967b0326b2680853b90dfa85b1573981c3e326592309093da81f0614009263aac70ef6603a3bfe0f4a4522fa
6
+ metadata.gz: 001d8dd063d5af121e4bb47be349e034046544e35a7ab7844393a9f36d8eefdb9654045b9aacc921d13fedf0e691279141e0bcc5bc85f1d88dc0312317f8f12d
7
+ data.tar.gz: cfffc91e76eff33784f63b532730d3e7179678bc9d7afa8e433c39a2d8ec378eaa4d97dd7fa0a12f65b081b1c0cd6db2932d380e556bdcd593fc252769933de0
data/README.md CHANGED
@@ -43,8 +43,8 @@ for an interactive prompt that will allow you to experiment.
43
43
 
44
44
  To install this gem onto your local machine, run `bundle exec rake install`.
45
45
  To release a new version, update the version number in `version.rb`,
46
- and then run `bundle exec rake release`, which will create a git tag for the version,
47
- push git commits and tags, and push the `.gem` file to [rubygems.org].
46
+ and then create a GitHub Releases entry, which will create a git tag for the version,
47
+ and push the `.gem` file to [rubygems.org] via the GitHub Actions Workflow `publish.yml`.
48
48
 
49
49
  ## Contributing
50
50
 
@@ -49,8 +49,13 @@ module Faraday
49
49
  def request_with_wrapped_block(response, env)
50
50
  return unless block_given?
51
51
 
52
- while (chunk = response.body.readpartial)
52
+ loop do
53
+ chunk = response.body.readpartial
54
+ break if chunk.nil? # http.rb < 6
55
+
53
56
  yield(chunk, env)
57
+ rescue EOFError # http.rb >= 6
58
+ break
54
59
  end
55
60
  end
56
61
 
@@ -80,7 +85,7 @@ module Faraday
80
85
  def ssl_context(ssl)
81
86
  params = {}
82
87
  %i[
83
- ca_file ca_path cert_store verify_depth
88
+ ca_file ca_path cert_store ciphers verify_depth
84
89
  ].each do |key|
85
90
  if (value = ssl[key])
86
91
  params[key] = value
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Faraday
4
4
  module Http
5
- VERSION = '2.0.1'
5
+ VERSION = '2.1.0'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: faraday-http
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - iMacTia
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2023-07-06 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: faraday
@@ -33,7 +32,7 @@ dependencies:
33
32
  version: '4.0'
34
33
  - - "<"
35
34
  - !ruby/object:Gem::Version
36
- version: '6'
35
+ version: '7'
37
36
  type: :runtime
38
37
  prerelease: false
39
38
  version_requirements: !ruby/object:Gem::Requirement
@@ -43,7 +42,7 @@ dependencies:
43
42
  version: '4.0'
44
43
  - - "<"
45
44
  - !ruby/object:Gem::Version
46
- version: '6'
45
+ version: '7'
47
46
  description: Faraday Adapter for HTTP.rb
48
47
  email:
49
48
  - giuffrida.mattia@gmail.com
@@ -64,7 +63,6 @@ metadata:
64
63
  source_code_uri: https://github.com/lostisland/faraday-http
65
64
  changelog_uri: https://github.com/lostisland/faraday-http/releases
66
65
  rubygems_mfa_required: 'true'
67
- post_install_message:
68
66
  rdoc_options: []
69
67
  require_paths:
70
68
  - lib
@@ -79,8 +77,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
79
77
  - !ruby/object:Gem::Version
80
78
  version: '0'
81
79
  requirements: []
82
- rubygems_version: 3.1.6
83
- signing_key:
80
+ rubygems_version: 3.6.7
84
81
  specification_version: 4
85
82
  summary: Faraday Adapter for HTTP.rb
86
83
  test_files: []