sus-fixtures-async-http 0.8.0 → 0.8.1

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: 471d3740244246ef662eae76bb71684344d63f751b3bcb1318128783bc39a4c4
4
- data.tar.gz: 426cc86ae59a9b7bf1c294e61d1547996ee359ceb2a9877d53080b73a2c27a7d
3
+ metadata.gz: df078bbaa8b6c50c55f0377a2cb1147d7e58171d4a8eda76c0d15b03bc14a650
4
+ data.tar.gz: bfc47968b18f18401542766d273e9b4701236713d8ab50d3ffe53f82dbbee965
5
5
  SHA512:
6
- metadata.gz: 98e73e0b6c399b1a2b1710a2ebc4d021e3ae5a2e7c5efd72daa07fb24c3883a429940ca9f70b80491a9196e65006ee48c9f1ffea30c6e7bba486638992f49ff6
7
- data.tar.gz: 21d9273dcc95e6228f485471490f60cc1ab4b6507632f812225afa41dbba4fdb92854e13d15156eb399a21b15a896656fa5ea6ebccd16b209fc91dc1b787784e
6
+ metadata.gz: e61109a5cd4f88e633bd68433602fa8e309cbb86e4bf86818b99057c3281ad157c9b5870a16a0cc86800c44ffc37e0875dd9ca8a5b907651ce6da83bf3c9c9a7
7
+ data.tar.gz: 3089c1e739fd5b5dfa0281d1c046eac58ff8b576aff298271e28755d2529061f0740a089b1de50f755c306d9ed3688d05be1e8264bd5e1c496aebef7f3179209
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, 2022-2023, by Samuel Williams.
4
+ # Copyright, 2022-2024, by Samuel Williams.
5
5
 
6
6
  require 'sus/fixtures/async/reactor_context'
7
7
 
@@ -127,9 +127,12 @@ module Sus::Fixtures
127
127
  end
128
128
 
129
129
  def after
130
- @client&.close
131
- @server_task&.stop
132
- @bound_endpoint&.close
130
+ # We add a timeout here, to avoid hanging in `@client.close`:
131
+ ::Async::Task.current.with_timeout(1) do
132
+ @client&.close
133
+ @server_task&.stop
134
+ @bound_endpoint&.close
135
+ end
133
136
 
134
137
  super
135
138
  end
@@ -1,13 +1,13 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2022-2023, by Samuel Williams.
4
+ # Copyright, 2022-2024, by Samuel Williams.
5
5
 
6
6
  module Sus
7
7
  module Fixtures
8
8
  module Async
9
9
  module HTTP
10
- VERSION = "0.8.0"
10
+ VERSION = "0.8.1"
11
11
  end
12
12
  end
13
13
  end
data/license.md CHANGED
@@ -1,6 +1,7 @@
1
1
  # MIT License
2
2
 
3
- Copyright, 2022-2023, by Samuel Williams.
3
+ Copyright, 2022-2024, by Samuel Williams.
4
+ Copyright, 2023, by Felix Yan.
4
5
 
5
6
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
7
  of this software and associated documentation files (the "Software"), to deal
data/readme.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Provides a convenient fixture for running a web server.
4
4
 
5
- [![Development Status](https://github.com/socketry/sus-fixtures-async-http/workflows/Test/badge.svg)](https://github.com/socketry/sus-fixtures-async-http/actions?workflow=Test)
5
+ [![Development Status](https://github.com/sus-rb/sus-fixtures-async-http/workflows/Test/badge.svg)](https://github.com/sus-rb/sus-fixtures-async-http/actions?workflow=Test)
6
6
 
7
7
  ## Installation
8
8
 
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,10 +1,11 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sus-fixtures-async-http
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
8
+ - Felix Yan
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain:
@@ -37,7 +38,7 @@ cert_chain:
37
38
  Q2K9NVun/S785AP05vKkXZEFYxqG6EW012U4oLcFl5MySFajYXRYbuUpH6AY+HP8
38
39
  voD0MPg1DssDLKwXyt1eKD/+Fq0bFWhwVM/1XiAXL7lyYUyOq24KHgQ2Csg=
39
40
  -----END CERTIFICATE-----
40
- date: 2024-01-22 00:00:00.000000000 Z
41
+ date: 2024-07-18 00:00:00.000000000 Z
41
42
  dependencies:
42
43
  - !ruby/object:Gem::Dependency
43
44
  name: async-http
@@ -81,20 +82,6 @@ dependencies:
81
82
  - - "~>"
82
83
  - !ruby/object:Gem::Version
83
84
  version: '0.1'
84
- - !ruby/object:Gem::Dependency
85
- name: covered
86
- requirement: !ruby/object:Gem::Requirement
87
- requirements:
88
- - - "~>"
89
- - !ruby/object:Gem::Version
90
- version: '0.20'
91
- type: :development
92
- prerelease: false
93
- version_requirements: !ruby/object:Gem::Requirement
94
- requirements:
95
- - - "~>"
96
- - !ruby/object:Gem::Version
97
- version: '0.20'
98
85
  description:
99
86
  email:
100
87
  executables: []
@@ -106,11 +93,13 @@ files:
106
93
  - lib/sus/fixtures/async/http/version.rb
107
94
  - license.md
108
95
  - readme.md
109
- homepage: https://github.com/socketry/sus-fixtures-async-http
96
+ homepage: https://github.com/sus-rb/sus-fixtures-async-http
110
97
  licenses:
111
98
  - MIT
112
99
  metadata:
100
+ documentation_uri: https://sus-rb.github.io/sus-fixtures-async-http/
113
101
  funding_uri: https://github.com/sponsors/ioquatix/
102
+ source_code_uri: https://github.com/sus-rb/sus-fixtures-async-http.git
114
103
  post_install_message:
115
104
  rdoc_options: []
116
105
  require_paths:
@@ -119,14 +108,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
119
108
  requirements:
120
109
  - - ">="
121
110
  - !ruby/object:Gem::Version
122
- version: 2.7.0
111
+ version: '3.1'
123
112
  required_rubygems_version: !ruby/object:Gem::Requirement
124
113
  requirements:
125
114
  - - ">="
126
115
  - !ruby/object:Gem::Version
127
116
  version: '0'
128
117
  requirements: []
129
- rubygems_version: 3.4.22
118
+ rubygems_version: 3.5.11
130
119
  signing_key:
131
120
  specification_version: 4
132
121
  summary: Test fixtures for running in Async::HTTP.
metadata.gz.sig CHANGED
@@ -1,2 +1,4 @@
1
- YO<����NX׃r� T�D�LnBU2M�� 1[O/΂�$��x��}����Ne�$
2
- �!?]o��u5����������X�:w�d�>��1/QDL��cD5W9*'��8?����/�J��R�� ���ũ���>.2�ܭ��|�XD�խ��Ql6�ҩaJ5�o�2��j��K����,e�ߩ��K
1
+ '��D�Izq$�wC���#��u��fdJf ��.GcW�3_[��T�D�M�
2
+ :�]�vf�,x�|��#n���7- �ø&x��z�&*�]vQGz?��!%AsL�&���g���4 ��#B��ʂ����2I�!����Pzg���^���|�2��|��Xk`��T
3
+ ��
4
+ ����nwu*נ�շrN6k�8����j����L��2�d�@D��L�\IP��c��{��