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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/sus/fixtures/async/http/server_context.rb +8 -5
- data/lib/sus/fixtures/async/http/version.rb +2 -2
- data/license.md +2 -1
- data/readme.md +19 -13
- data.tar.gz.sig +0 -0
- metadata +10 -21
- 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: 2856a58aef69c13a8b9f050b680e3ce837849ca15c730429dfca87583775f92c
|
4
|
+
data.tar.gz: 3ef1c816c9a94b45926f67e998823c35509218b184065000fc85f606ffbb4715
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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-
|
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
|
-
|
131
|
-
|
132
|
-
|
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-
|
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.
|
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-
|
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/
|
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,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.
|
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-
|
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.
|
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.
|
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/
|
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:
|
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.
|
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
|