sus-fixtures-async-http 0.8.0 → 0.9.0

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: 471d3740244246ef662eae76bb71684344d63f751b3bcb1318128783bc39a4c4
4
- data.tar.gz: 426cc86ae59a9b7bf1c294e61d1547996ee359ceb2a9877d53080b73a2c27a7d
3
+ metadata.gz: 2856a58aef69c13a8b9f050b680e3ce837849ca15c730429dfca87583775f92c
4
+ data.tar.gz: 3ef1c816c9a94b45926f67e998823c35509218b184065000fc85f606ffbb4715
5
5
  SHA512:
6
- metadata.gz: 98e73e0b6c399b1a2b1710a2ebc4d021e3ae5a2e7c5efd72daa07fb24c3883a429940ca9f70b80491a9196e65006ee48c9f1ffea30c6e7bba486638992f49ff6
7
- data.tar.gz: 21d9273dcc95e6228f485471490f60cc1ab4b6507632f812225afa41dbba4fdb92854e13d15156eb399a21b15a896656fa5ea6ebccd16b209fc91dc1b787784e
6
+ metadata.gz: 53797aadfa8b7ab746d5297450b21cc0ff6f312441fdd533bf1dfa0a528a79b4cbef2f568576c583c8cd3adcfde4bb5f2c6734347c3fab59b41a31fc1159f084
7
+ data.tar.gz: f51f4520c165668ffd9906c23289c2d3aaede657b0542c861654b8cb0db4e30f6d96bd8dd67e8ff04d812aa1509dbc820d618a9337e39fc973bad7a54c77d87a
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
 
@@ -126,10 +126,13 @@ module Sus::Fixtures
126
126
  @client = make_client(@client_endpoint)
127
127
  end
128
128
 
129
- def after
130
- @client&.close
131
- @server_task&.stop
132
- @bound_endpoint&.close
129
+ def after(error = nil)
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.9.0"
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,22 +2,28 @@
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/suspecting/sus-fixtures-async-http/workflows/Test/badge.svg)](https://github.com/suspecting/sus-fixtures-async-http/actions?workflow=Test)
6
6
 
7
- ## Installation
7
+ ## Usage
8
8
 
9
- ``` bash
10
- $ bundle add sus-fixtures-async-http
11
- ```
9
+ Please see the [project documentation](https://suspecting.github.io/sus-fixtures-async-http/) for more details.
12
10
 
13
- ## Usage
11
+ - [Getting Started](https://suspecting.github.io/sus-fixtures-async-http/guides/getting-started/index) - This guide explains how to use the `sus-fixtures-async-http` gem to test HTTP clients and servers.
12
+
13
+ ## Contributing
14
+
15
+ We welcome contributions to this project.
16
+
17
+ 1. Fork it.
18
+ 2. Create your feature branch (`git checkout -b my-new-feature`).
19
+ 3. Commit your changes (`git commit -am 'Add some feature'`).
20
+ 4. Push to the branch (`git push origin my-new-feature`).
21
+ 5. Create new Pull Request.
22
+
23
+ ### Developer Certificate of Origin
14
24
 
15
- ``` ruby
16
- include Sus::Fixtures::Async::HTTP::ServerContext
25
+ 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.
17
26
 
18
- let(:response) {client.get("/")}
27
+ ### Community Guidelines
19
28
 
20
- it 'can perform a reqeust' do
21
- expect(response.read).to be == "Hello World!"
22
- end
23
- ```
29
+ This project is best served by a collaborative and respectful environment. Treat each other professionally, respect differing viewpoints, and engage constructively. Harassment, discrimination, or harmful behavior is not tolerated. Communicate clearly, listen actively, and support one another. If any issues arise, please inform the project maintainers.
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.9.0
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-28 00:00:00.000000000 Z
41
42
  dependencies:
42
43
  - !ruby/object:Gem::Dependency
43
44
  name: async-http
@@ -59,14 +60,14 @@ dependencies:
59
60
  requirements:
60
61
  - - "~>"
61
62
  - !ruby/object:Gem::Version
62
- version: '0.10'
63
+ version: '0.31'
63
64
  type: :runtime
64
65
  prerelease: false
65
66
  version_requirements: !ruby/object:Gem::Requirement
66
67
  requirements:
67
68
  - - "~>"
68
69
  - !ruby/object:Gem::Version
69
- version: '0.10'
70
+ version: '0.31'
70
71
  - !ruby/object:Gem::Dependency
71
72
  name: sus-fixtures-async
72
73
  requirement: !ruby/object:Gem::Requirement
@@ -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/suspecting/sus-fixtures-async-http
110
97
  licenses:
111
98
  - MIT
112
99
  metadata:
100
+ documentation_uri: https://suspecting.github.io/sus-fixtures-async-http/
113
101
  funding_uri: https://github.com/sponsors/ioquatix/
102
+ source_code_uri: https://github.com/suspecting/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
Binary file