sus-fixtures-async-http 0.8.1 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/sus/fixtures/async/http/server_context.rb +2 -2
- data/lib/sus/fixtures/async/http/version.rb +1 -1
- data/readme.md +19 -13
- data.tar.gz.sig +0 -0
- metadata +8 -8
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 32a14ffa1d2c0acd49dfc634ffc4e8af1c5480b80fa2aaae535c385f074ff6e3
|
4
|
+
data.tar.gz: 428bc19a33d7ae373737ff17ec5c127ca99a2630b0cca67fecf46c05df2790b7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6f3f59b6e955fe10f477bdf7e7122926bf852586946334184bd1123af541baea5ee329da36dc924995b52b7f08a2049a0c99588eec398d289e9da721bc39ffc7
|
7
|
+
data.tar.gz: 3dc402301a6fe6b1c8d3f30e36c9453e2e84e8f76707e96bd659b5bbc747761c678509b4a84f7e2951d703bc960876785be8b6bbc48ad94b4f49d86a3b9333ee
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
@@ -49,7 +49,7 @@ module Sus::Fixtures
|
|
49
49
|
end
|
50
50
|
|
51
51
|
def endpoint
|
52
|
-
::Async::HTTP::Endpoint.parse(url,
|
52
|
+
::Async::HTTP::Endpoint.parse(url, reuse_port: true, protocol: protocol)
|
53
53
|
end
|
54
54
|
|
55
55
|
def retries
|
@@ -126,7 +126,7 @@ module Sus::Fixtures
|
|
126
126
|
@client = make_client(@client_endpoint)
|
127
127
|
end
|
128
128
|
|
129
|
-
def after
|
129
|
+
def after(error = nil)
|
130
130
|
# We add a timeout here, to avoid hanging in `@client.close`:
|
131
131
|
::Async::Task.current.with_timeout(1) do
|
132
132
|
@client&.close
|
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/
|
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
|
-
##
|
7
|
+
## Usage
|
8
8
|
|
9
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
27
|
+
### Community Guidelines
|
19
28
|
|
20
|
-
|
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,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sus-fixtures-async-http
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
@@ -38,7 +38,7 @@ cert_chain:
|
|
38
38
|
Q2K9NVun/S785AP05vKkXZEFYxqG6EW012U4oLcFl5MySFajYXRYbuUpH6AY+HP8
|
39
39
|
voD0MPg1DssDLKwXyt1eKD/+Fq0bFWhwVM/1XiAXL7lyYUyOq24KHgQ2Csg=
|
40
40
|
-----END CERTIFICATE-----
|
41
|
-
date: 2024-
|
41
|
+
date: 2024-11-13 00:00:00.000000000 Z
|
42
42
|
dependencies:
|
43
43
|
- !ruby/object:Gem::Dependency
|
44
44
|
name: async-http
|
@@ -60,14 +60,14 @@ dependencies:
|
|
60
60
|
requirements:
|
61
61
|
- - "~>"
|
62
62
|
- !ruby/object:Gem::Version
|
63
|
-
version: '0.
|
63
|
+
version: '0.31'
|
64
64
|
type: :runtime
|
65
65
|
prerelease: false
|
66
66
|
version_requirements: !ruby/object:Gem::Requirement
|
67
67
|
requirements:
|
68
68
|
- - "~>"
|
69
69
|
- !ruby/object:Gem::Version
|
70
|
-
version: '0.
|
70
|
+
version: '0.31'
|
71
71
|
- !ruby/object:Gem::Dependency
|
72
72
|
name: sus-fixtures-async
|
73
73
|
requirement: !ruby/object:Gem::Requirement
|
@@ -93,13 +93,13 @@ files:
|
|
93
93
|
- lib/sus/fixtures/async/http/version.rb
|
94
94
|
- license.md
|
95
95
|
- readme.md
|
96
|
-
homepage: https://github.com/
|
96
|
+
homepage: https://github.com/suspecting/sus-fixtures-async-http
|
97
97
|
licenses:
|
98
98
|
- MIT
|
99
99
|
metadata:
|
100
|
-
documentation_uri: https://
|
100
|
+
documentation_uri: https://suspecting.github.io/sus-fixtures-async-http/
|
101
101
|
funding_uri: https://github.com/sponsors/ioquatix/
|
102
|
-
source_code_uri: https://github.com/
|
102
|
+
source_code_uri: https://github.com/suspecting/sus-fixtures-async-http.git
|
103
103
|
post_install_message:
|
104
104
|
rdoc_options: []
|
105
105
|
require_paths:
|
@@ -115,7 +115,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
115
115
|
- !ruby/object:Gem::Version
|
116
116
|
version: '0'
|
117
117
|
requirements: []
|
118
|
-
rubygems_version: 3.5.
|
118
|
+
rubygems_version: 3.5.22
|
119
119
|
signing_key:
|
120
120
|
specification_version: 4
|
121
121
|
summary: Test fixtures for running in Async::HTTP.
|
metadata.gz.sig
CHANGED
Binary file
|