async-http-faraday 0.22.2 → 0.24.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: 628bd3a69a2393d92e09ea37ba75534bbbfd80aea633c598814365ec8c4597ec
4
- data.tar.gz: d786c91efa9a5b45c26afcc77bb49b111a5425b055148e398a1a26ab4b93adfb
3
+ metadata.gz: 06dbdb084c557a783f795bd67b840ab10289b7b3129ae45a9a0ab0912129f518
4
+ data.tar.gz: b31bbec2c896f90170067a7808f90964d23cb134c20375437cda352457dec8e1
5
5
  SHA512:
6
- metadata.gz: 6669757a5b2178d7b6e18d2f0b5d578b3dea8fc7ef73022a90546ee1d0082fbf817b97560679466d632ddea9ed1b18f5044adb43d17b01ebcce68fa6e4c79787
7
- data.tar.gz: a8df540d225f129c67d0d89923438e73ce9212b061cdfce2cd78300d13d18d8e44b2b68d7c4998246ded5dbb8ac1e0ca421a5dea55d1b4aeae07538302a7f88d
6
+ metadata.gz: 65ab6c7c8c9b9fb5a4b2a6d8ee6a50d10d9cdd770c9ffb59f99fd2368e90774f330c8fef378466e8a70118e9638da945a75be17de8bd7bf1405ddc5176b849b7
7
+ data.tar.gz: c533430a10a284a43f6c6a800e64266d9663819ed068c6c1386f5b4127a8731886b3ee10db4c3b8f69f1846bc01c6c6cadd4dc294081fd9e4b4b21d9f8ec59dd
checksums.yaml.gz.sig CHANGED
Binary file
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2018-2025, by Samuel Williams.
4
+ # Copyright, 2018-2026, by Samuel Williams.
5
5
  # Copyright, 2018, by Andreas Garnaes.
6
6
  # Copyright, 2019, by Denis Talakevich.
7
7
  # Copyright, 2019-2020, by Igor Sidorov.
@@ -20,6 +20,8 @@ require "kernel/sync"
20
20
  require "async/http/client"
21
21
  require "async/http/proxy"
22
22
 
23
+ require "protocol/http/error"
24
+
23
25
  require_relative "clients"
24
26
 
25
27
  module Async
@@ -105,6 +107,7 @@ module Async
105
107
 
106
108
  # The exceptions that are considered connection errors and result in a `Faraday::ConnectionFailed` exception.
107
109
  CONNECTION_EXCEPTIONS = [
110
+ ::Protocol::HTTP::Error,
108
111
  Errno::EADDRNOTAVAIL,
109
112
  Errno::ECONNABORTED,
110
113
  Errno::ECONNREFUSED,
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2024-2025, by Samuel Williams.
4
+ # Copyright, 2024-2026, by Samuel Williams.
5
5
 
6
6
  require "faraday"
7
7
  require "faraday/adapter"
@@ -86,7 +86,7 @@ module Async
86
86
  clients = @clients.values
87
87
  @clients.clear
88
88
 
89
- clients.each(&:close)
89
+ clients.reverse_each(&:close)
90
90
  end
91
91
 
92
92
  # Lookup or create a client for the given endpoint.
@@ -1,12 +1,12 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2018-2025, by Samuel Williams.
4
+ # Copyright, 2018-2026, by Samuel Williams.
5
5
 
6
6
  module Async
7
7
  module HTTP
8
8
  module Faraday
9
- VERSION = "0.22.2"
9
+ VERSION = "0.24.0"
10
10
  end
11
11
  end
12
12
  end
data/readme.md CHANGED
@@ -46,26 +46,26 @@ Please see the [project releases](https://socketry.github.io/async-http-faraday/
46
46
 
47
47
  We welcome contributions to this project.
48
48
 
49
- 1. Fork it.
49
+ 1. Fork the repository.
50
50
  2. Create your feature branch (`git checkout -b my-new-feature`).
51
- 3. Commit your changes (`git commit -am 'Add some feature'`).
51
+ 3. Commit your changes (`git commit -am 'Add some feature.'`).
52
52
  4. Push to the branch (`git push origin my-new-feature`).
53
- 5. Create new Pull Request.
53
+ 5. Create a new pull request.
54
54
 
55
55
  ### Running Tests
56
56
 
57
57
  To run the test suite:
58
58
 
59
- ``` shell
60
- bundle exec sus
59
+ ``` bash
60
+ $ bundle exec sus
61
61
  ```
62
62
 
63
63
  ### Making Releases
64
64
 
65
65
  To make a new release:
66
66
 
67
- ``` shell
68
- bundle exec bake gem:release:patch # or minor or major
67
+ ``` bash
68
+ $ bundle exec bake gem:release:patch # or minor or major
69
69
  ```
70
70
 
71
71
  ### Developer Certificate of Origin
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: async-http-faraday
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.22.2
4
+ version: 0.24.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
@@ -54,14 +54,14 @@ dependencies:
54
54
  requirements:
55
55
  - - "~>"
56
56
  - !ruby/object:Gem::Version
57
- version: '0.42'
57
+ version: '0.99'
58
58
  type: :runtime
59
59
  prerelease: false
60
60
  version_requirements: !ruby/object:Gem::Requirement
61
61
  requirements:
62
62
  - - "~>"
63
63
  - !ruby/object:Gem::Version
64
- version: '0.42'
64
+ version: '0.99'
65
65
  - !ruby/object:Gem::Dependency
66
66
  name: faraday
67
67
  requirement: !ruby/object:Gem::Requirement
@@ -94,6 +94,8 @@ homepage: https://github.com/socketry/async-http-faraday
94
94
  licenses:
95
95
  - MIT
96
96
  metadata:
97
+ bug_tracker_uri: https://github.com/socketry/async-http-faraday/issues
98
+ changelog_uri: https://github.com/socketry/async-http-faraday/blob/main/releases.md
97
99
  documentation_uri: https://socketry.github.io/async-http-faraday/
98
100
  funding_uri: https://github.com/sponsors/ioquatix
99
101
  source_code_uri: https://github.com/socketry/async-http.git
@@ -111,7 +113,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
111
113
  - !ruby/object:Gem::Version
112
114
  version: '0'
113
115
  requirements: []
114
- rubygems_version: 4.0.6
116
+ rubygems_version: 4.0.16
115
117
  specification_version: 4
116
118
  summary: Provides an adaptor between async-http and faraday.
117
119
  test_files: []
metadata.gz.sig CHANGED
Binary file