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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d7fe4e46acc856459d41f59cce0d4bed2269f9863f593ade3cce6ea439ef922a
4
- data.tar.gz: d5489826a134e01013f7602f8510b7272e5814bc6c9b3513a4f71177f15beb42
3
+ metadata.gz: c3835dc9d43695824135e6790ca2251d319f6ce4679fef00407cc25e05d05373
4
+ data.tar.gz: 8b7190738ccf7569c3643289033dc98629d8138e9d803e6de317ddc947237aac
5
5
  SHA512:
6
- metadata.gz: 6e5b70a6b3581501ecc875982f436f2a3a471bf32781c7133a638da2f03029a0e8392ecd33e3d3fc62f4d853d9b0a7a139d9dc27a9286242fbf11b266b3c4eb6
7
- data.tar.gz: 6b5d6d0178ac6c229fc03573c0c81dd29b999c0b07112c6a62a42c04da5a7d3ec0326d4feae24bd9b3b9fd9795a8f94dd3f5d2d790fb4c69d172c052da655328
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.1.0"
36
+ gem "connectrpc-testing", "~> 0.2.0"
37
37
  end
38
38
  ```
39
39
 
40
- The runtime dependency is only `connectrpc ~> 0.1.0`; Google protobuf and a
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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module ConnectRPC
4
4
  module Testing
5
- VERSION = "0.1.2" # x-release-please-version
5
+ VERSION = "0.2.0" # x-release-please-version
6
6
  end
7
7
  end
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.1.2
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.1.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.1.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