webmock 3.23.0 → 3.23.1

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: 8a2d1add2b84d303329a722f0c7e9643f237949d0dc471ea1678021324cd41b4
4
- data.tar.gz: e00640f1b7664959922011ae2f7b922811d94be4fb1bea90a988f3cca83486bc
3
+ metadata.gz: 4cfe9b7372b311f25b6b531efc50e11297e19cb325306132b889bf2d67ab3fec
4
+ data.tar.gz: 4448d921dc29e08024392f7fe0c8ab5a832920a6e749801e1ca2257a1c050e0b
5
5
  SHA512:
6
- metadata.gz: 87f797196dedde96873a3740234d33f799745df144953ccfc36403ca6fbe4bd239f5f05818eb7cec25730823c2f99f83a1f42b79cf977b5672d720ed02bb3495
7
- data.tar.gz: af708a4202382fb1a55c90a7f2c14b1a9d9b277bc8c4ee898dd31b712162bee4e9fb1fb6dd2931c1e39123eee8f15545db9fcd198ea5751f746be7eabfad33eb
6
+ metadata.gz: b6afe5a627d5c3c1498e5b4f35d07f9118977af57f4b7915b04bdeb67f2eb676bbbf5bfc28a895681c6635fe74d736d9a83d50916c2f80b1adb4b68d455de283
7
+ data.tar.gz: 8843478e3cbcd78b3e4cc6d6a09c757ff02328549ea37768f23d721adb3721ab0daf49a000fcc8fa600382964538d6bc5aec7a6d1fdde4668a608b3b2b6fda08
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ # 3.23.1
4
+
5
+ * Added support for async-http version >= 0.65.0 [PR](https://github.com/bblimke/webmock/pull/1056)
6
+
7
+ Thanks to [Jacob Frautschi](https://github.com/jakeonfire)
8
+
3
9
  # 3.23.0
4
10
 
5
11
  * Fixed HTTP.rb adapter to support streaming real responses when WebMock is enabled.
data/README.md CHANGED
@@ -43,6 +43,7 @@ Supported Ruby Interpreters
43
43
  * MRI 3.0
44
44
  * MRI 3.1
45
45
  * MRI 3.2
46
+ * MRI 3.3
46
47
  * JRuby
47
48
 
48
49
  ## Installation
@@ -1202,6 +1203,7 @@ People who submitted patches and new features or suggested improvements. Many th
1202
1203
  * Victor Maslov
1203
1204
  * Gio Lodi
1204
1205
  * Ryan Brooks
1206
+ * Jacob Frautschi
1205
1207
 
1206
1208
  For a full list of contributors you can visit the
1207
1209
  [contributors](https://github.com/bblimke/webmock/contributors) page.
@@ -152,11 +152,15 @@ if defined?(Async::HTTP)
152
152
 
153
153
  private
154
154
 
155
+ def socket_class
156
+ defined?(Async::IO::Socket) ? Async::IO::Socket : Socket
157
+ end
158
+
155
159
  def create_connected_sockets
156
160
  pair = begin
157
- Async::IO::Socket.pair(Socket::AF_UNIX, Socket::SOCK_STREAM)
161
+ socket_class.pair(Socket::AF_UNIX, Socket::SOCK_STREAM)
158
162
  rescue Errno::EAFNOSUPPORT
159
- Async::IO::Socket.pair(Socket::AF_INET, Socket::SOCK_STREAM)
163
+ socket_class.pair(Socket::AF_INET, Socket::SOCK_STREAM)
160
164
  end
161
165
  pair.tap do |sockets|
162
166
  sockets.each do |socket|
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module WebMock
4
- VERSION = '3.23.0' unless defined?(::WebMock::VERSION)
4
+ VERSION = '3.23.1' unless defined?(::WebMock::VERSION)
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: webmock
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.23.0
4
+ version: 3.23.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bartosz Blimke
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-02-25 00:00:00.000000000 Z
11
+ date: 2024-05-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable
@@ -371,9 +371,9 @@ licenses:
371
371
  - MIT
372
372
  metadata:
373
373
  bug_tracker_uri: https://github.com/bblimke/webmock/issues
374
- changelog_uri: https://github.com/bblimke/webmock/blob/v3.23.0/CHANGELOG.md
375
- documentation_uri: https://www.rubydoc.info/gems/webmock/3.23.0
376
- source_code_uri: https://github.com/bblimke/webmock/tree/v3.23.0
374
+ changelog_uri: https://github.com/bblimke/webmock/blob/v3.23.1/CHANGELOG.md
375
+ documentation_uri: https://www.rubydoc.info/gems/webmock/3.23.1
376
+ source_code_uri: https://github.com/bblimke/webmock/tree/v3.23.1
377
377
  wiki_uri: https://github.com/bblimke/webmock/wiki
378
378
  post_install_message:
379
379
  rdoc_options: []
@@ -390,7 +390,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
390
390
  - !ruby/object:Gem::Version
391
391
  version: '0'
392
392
  requirements: []
393
- rubygems_version: 3.5.6
393
+ rubygems_version: 3.5.7
394
394
  signing_key:
395
395
  specification_version: 4
396
396
  summary: Library for stubbing HTTP requests in Ruby.