async-http-faraday 0.22.0 → 0.22.2

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: 91b8ac365195312b4906a8dd4f975cebdea675bda9316e97d7c0ed3186fdb9b0
4
- data.tar.gz: 526ae0462c42d2be7e5362031a15b68388f6c723278dbcf74c0bde763d16a606
3
+ metadata.gz: 628bd3a69a2393d92e09ea37ba75534bbbfd80aea633c598814365ec8c4597ec
4
+ data.tar.gz: d786c91efa9a5b45c26afcc77bb49b111a5425b055148e398a1a26ab4b93adfb
5
5
  SHA512:
6
- metadata.gz: 5bfad129a4104393375a077cd605aae4955e2adb8497a4a1655438593eb3aed8a56e966e182dc1094759617ecdb722dbe32c19de9e31211526ac705e94ef43d5
7
- data.tar.gz: f2a3c8b0f1ad783b9ce4cfdbf57d707c5f27d953c7042504fbeaa2feb0fed18e9f6aea0070d162fb9c8301fd4c4a2b1037726fe6dbc8066be46d4bd5c1cff5fa
6
+ metadata.gz: 6669757a5b2178d7b6e18d2f0b5d578b3dea8fc7ef73022a90546ee1d0082fbf817b97560679466d632ddea9ed1b18f5044adb43d17b01ebcce68fa6e4c79787
7
+ data.tar.gz: a8df540d225f129c67d0d89923438e73ce9212b061cdfce2cd78300d13d18d8e44b2b68d7c4998246ded5dbb8ac1e0ca421a5dea55d1b4aeae07538302a7f88d
checksums.yaml.gz.sig CHANGED
Binary file
@@ -9,6 +9,7 @@
9
9
  # Copyright, 2023, by Flavio Fernandes.
10
10
  # Copyright, 2024, by Jacob Frautschi.
11
11
  # Copyright, 2025, by Nikolaos Anastopoulos.
12
+ # Copyright, 2025, by Pedro Fayolle.
12
13
 
13
14
  require "faraday"
14
15
  require "faraday/adapter"
@@ -177,10 +177,10 @@ module Async
177
177
  # This will close all clients associated with all threads.
178
178
  def close
179
179
  Thread.list.each do |thread|
180
- if clients = thread[@key]
181
- clients.close
180
+ if clients = thread.thread_variable_get(@key)
181
+ thread.thread_variable_set(@key, nil)
182
182
 
183
- thread[@key] = nil
183
+ clients.close
184
184
  end
185
185
  end
186
186
  end
@@ -6,7 +6,7 @@
6
6
  module Async
7
7
  module HTTP
8
8
  module Faraday
9
- VERSION = "0.22.0"
9
+ VERSION = "0.22.2"
10
10
  end
11
11
  end
12
12
  end
data/license.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # MIT License
2
2
 
3
- Copyright, 2018-2025, by Samuel Williams.
3
+ Copyright, 2018-2026, by Samuel Williams.
4
4
  Copyright, 2018, by Andreas Garnaes.
5
5
  Copyright, 2019, by Denis Talakevich.
6
6
  Copyright, 2019-2020, by Igor Sidorov.
@@ -10,6 +10,7 @@ Copyright, 2023, by Genki Takiuchi.
10
10
  Copyright, 2023, by Flavio Fernandes.
11
11
  Copyright, 2024, by Jacob Frautschi.
12
12
  Copyright, 2025, by Nikolaos Anastopoulos.
13
+ Copyright, 2025, by Pedro Fayolle.
13
14
 
14
15
  Permission is hereby granted, free of charge, to any person obtaining a copy
15
16
  of this software and associated documentation files (the "Software"), to deal
data/readme.md CHANGED
@@ -17,6 +17,10 @@ Please see the [project documentation](https://socketry.github.io/async-http-far
17
17
 
18
18
  Please see the [project releases](https://socketry.github.io/async-http-faraday/releases/index) for all releases.
19
19
 
20
+ ### v0.22.1
21
+
22
+ - Fix memory leak in `Async::HTTP::Faraday::PerThreadPersistentClients` by ensuring that the `close` method is called on all clients when the adapter is closed.
23
+
20
24
  ### v0.21.0
21
25
 
22
26
  - [Improved support for `timeout` and `read_timeout`.](https://socketry.github.io/async-http-faraday/releases/index#improved-support-for-timeout-and-read_timeout.)
@@ -48,6 +52,22 @@ We welcome contributions to this project.
48
52
  4. Push to the branch (`git push origin my-new-feature`).
49
53
  5. Create new Pull Request.
50
54
 
55
+ ### Running Tests
56
+
57
+ To run the test suite:
58
+
59
+ ``` shell
60
+ bundle exec sus
61
+ ```
62
+
63
+ ### Making Releases
64
+
65
+ To make a new release:
66
+
67
+ ``` shell
68
+ bundle exec bake gem:release:patch # or minor or major
69
+ ```
70
+
51
71
  ### Developer Certificate of Origin
52
72
 
53
73
  In order to protect users of this project, we require all contributors to comply with the [Developer Certificate of Origin](https://developercertificate.org/). This ensures that all contributions are properly licensed and attributed.
data/releases.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Releases
2
2
 
3
+ ## v0.22.1
4
+
5
+ - Fix memory leak in `Async::HTTP::Faraday::PerThreadPersistentClients` by ensuring that the `close` method is called on all clients when the adapter is closed.
6
+
3
7
  ## v0.21.0
4
8
 
5
9
  ### Improved support for `timeout` and `read_timeout`.
@@ -87,7 +91,7 @@ end
87
91
  Thread.new do
88
92
  Async do
89
93
  # Each thread has it's own client cache.
90
- adapter.get('http://example.com')
94
+ adapter.get("http://example.com")
91
95
  end
92
96
  end
93
97
  end
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.0
4
+ version: 0.22.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
@@ -14,6 +14,7 @@ authors:
14
14
  - Denis Talakevich
15
15
  - Flavio Fernandes
16
16
  - Jacob Frautschi
17
+ - Pedro Fayolle
17
18
  bindir: bin
18
19
  cert_chain:
19
20
  - |
@@ -103,14 +104,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
103
104
  requirements:
104
105
  - - ">="
105
106
  - !ruby/object:Gem::Version
106
- version: '3.1'
107
+ version: '3.3'
107
108
  required_rubygems_version: !ruby/object:Gem::Requirement
108
109
  requirements:
109
110
  - - ">="
110
111
  - !ruby/object:Gem::Version
111
112
  version: '0'
112
113
  requirements: []
113
- rubygems_version: 3.6.7
114
+ rubygems_version: 4.0.6
114
115
  specification_version: 4
115
116
  summary: Provides an adaptor between async-http and faraday.
116
117
  test_files: []
metadata.gz.sig CHANGED
Binary file