twirp 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/twirp/client.rb +0 -1
- data/lib/twirp/version.rb +1 -1
- data/test/client_json_test.rb +0 -1
- data/test/client_test.rb +0 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1465cef8ea8070380498d84e1678ef5edd495a6e
|
4
|
+
data.tar.gz: 97dda993421db600ef94146eede425f198f22145
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 206d4febd931eb71b6cbccf555bbd05edf53d74104a9bcec72676298c49b38a6c1cb390efeb489fd7271fc4504c76276d9f588fba6bada377e83a0d706a7837a
|
7
|
+
data.tar.gz: 230f965eeca4501b4618acc32cb7ccc89563831b9d70c621b5c05c88a4c180e86d0b98ee4fe7dca3805faa13583e72ca66d3666f761f49fa4d67e6ed25d14cf1
|
data/lib/twirp/client.rb
CHANGED
data/lib/twirp/version.rb
CHANGED
data/test/client_json_test.rb
CHANGED
@@ -18,7 +18,6 @@ class ClientJSONTest < Minitest::Test
|
|
18
18
|
def test_client_json_success
|
19
19
|
c = Twirp::ClientJSON.new(conn_stub("/my.pkg.Talking/Blah") {|req|
|
20
20
|
assert_equal "application/json", req.request_headers['Content-Type']
|
21
|
-
assert_equal "application/json", req.request_headers['Accept']
|
22
21
|
assert_equal '{"blah1":1,"blah2":2}', req.body # body is json
|
23
22
|
|
24
23
|
[200, {}, '{"blah_resp": 3}']
|
data/test/client_test.rb
CHANGED
@@ -87,7 +87,6 @@ class ClientTest < Minitest::Test
|
|
87
87
|
def test_proto_serialized_request_body
|
88
88
|
c = Example::HaberdasherClient.new(conn_stub("/example.Haberdasher/MakeHat") {|req|
|
89
89
|
assert_equal "application/protobuf", req.request_headers['Content-Type']
|
90
|
-
assert_equal "application/protobuf", req.request_headers['Accept']
|
91
90
|
|
92
91
|
size = Example::Size.decode(req.body) # body is valid protobuf
|
93
92
|
assert_equal 666, size.inches
|
@@ -189,7 +188,6 @@ class ClientTest < Minitest::Test
|
|
189
188
|
def test_json_serialized_request_body_attrs
|
190
189
|
c = Example::HaberdasherClient.new(conn_stub("/example.Haberdasher/MakeHat") {|req|
|
191
190
|
assert_equal "application/json", req.request_headers['Content-Type']
|
192
|
-
assert_equal "application/json", req.request_headers['Accept']
|
193
191
|
assert_equal '{"inches":666}', req.body # body is valid json
|
194
192
|
[200, jsonheader, '{}']
|
195
193
|
}, content_type: "application/json")
|
@@ -202,7 +200,6 @@ class ClientTest < Minitest::Test
|
|
202
200
|
def test_json_serialized_request_body_object
|
203
201
|
c = Example::HaberdasherClient.new(conn_stub("/example.Haberdasher/MakeHat") {|req|
|
204
202
|
assert_equal "application/json", req.request_headers['Content-Type']
|
205
|
-
assert_equal "application/json", req.request_headers['Accept']
|
206
203
|
assert_equal '{"inches":666}', req.body # body is valid json
|
207
204
|
[200, jsonheader, '{}']
|
208
205
|
}, content_type: "application/json")
|