connectrpc-testing 0.1.2 → 0.2.0
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 +4 -4
- data/README.md +14 -2
- data/lib/connectrpc/testing/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c3835dc9d43695824135e6790ca2251d319f6ce4679fef00407cc25e05d05373
|
|
4
|
+
data.tar.gz: 8b7190738ccf7569c3643289033dc98629d8138e9d803e6de317ddc947237aac
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4d3859ed6dd04a75e9f7165d8714baab17bd26a265b0fa9f5e7ffd9fff129c30d3fa09c7dd19f73471cb10fa86631a30e882d2e935f4e0e1a49565aafea2a3c7
|
|
7
|
+
data.tar.gz: ab0e5321d668c27c7f02a11ba1a54bdef36b4c8c2691e71649ac3dac9086744f285d6d0068d34ab6e0e55ebfb713887b8c80e5bde178b47f1d69efdd6fda4f7d
|
data/README.md
CHANGED
|
@@ -33,11 +33,11 @@ Add the gem to your development or test group:
|
|
|
33
33
|
|
|
34
34
|
```ruby
|
|
35
35
|
group :development, :test do
|
|
36
|
-
gem "connectrpc-testing", "~> 0.
|
|
36
|
+
gem "connectrpc-testing", "~> 0.2.0"
|
|
37
37
|
end
|
|
38
38
|
```
|
|
39
39
|
|
|
40
|
-
The runtime dependency is only `connectrpc ~> 0.
|
|
40
|
+
The runtime dependency is only `connectrpc ~> 0.2.0`; Google protobuf and a
|
|
41
41
|
test framework are application choices.
|
|
42
42
|
|
|
43
43
|
## Usage
|
|
@@ -128,6 +128,18 @@ Testing forwards the read-only cancellation seam into a distinct server Context.
|
|
|
128
128
|
Completing server processing cannot complete its client or shared source. Checks
|
|
129
129
|
are cooperative; Testing does not interrupt a blocked handler.
|
|
130
130
|
|
|
131
|
+
## Interceptors
|
|
132
|
+
|
|
133
|
+
Client and Server [interceptors](../../docs/unary.md#interceptors) both run in
|
|
134
|
+
process on the calling thread. The client chain wraps the transport call. The
|
|
135
|
+
server chain runs inside `Transport#call`, after core decodes the request and
|
|
136
|
+
around the invoker. A call passes through the client interceptors, outermost
|
|
137
|
+
first, then the server interceptors, outermost first, then the handler. A
|
|
138
|
+
client interceptor that returns a `Response` without yielding skips the
|
|
139
|
+
transport, so the server interceptors and handler do not run for that call.
|
|
140
|
+
Streaming is not supported by this transport, so only `client_unary` and
|
|
141
|
+
`server_unary` run.
|
|
142
|
+
|
|
131
143
|
## What it does not cover
|
|
132
144
|
|
|
133
145
|
Execution is synchronous and cooperative. This transport cannot interrupt a
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: connectrpc-testing
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- jimeh
|
|
@@ -15,14 +15,14 @@ dependencies:
|
|
|
15
15
|
requirements:
|
|
16
16
|
- - "~>"
|
|
17
17
|
- !ruby/object:Gem::Version
|
|
18
|
-
version: 0.
|
|
18
|
+
version: 0.2.0
|
|
19
19
|
type: :runtime
|
|
20
20
|
prerelease: false
|
|
21
21
|
version_requirements: !ruby/object:Gem::Requirement
|
|
22
22
|
requirements:
|
|
23
23
|
- - "~>"
|
|
24
24
|
- !ruby/object:Gem::Version
|
|
25
|
-
version: 0.
|
|
25
|
+
version: 0.2.0
|
|
26
26
|
description: Synchronous transport that passes fully encoded Connect unary requests
|
|
27
27
|
from a connectrpc client to an application-owned server without sockets, exercising
|
|
28
28
|
codecs, errors, metadata, safe GET and compression. Part of the unofficial connectrpc-ruby
|