protobuf 3.9.0 → 3.10.0.pre0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/protobuf/rpc/env.rb +1 -0
- data/lib/protobuf/rpc/middleware/request_decoder.rb +1 -0
- data/lib/protobuf/rpc/rpc.pb.rb +7 -0
- data/lib/protobuf/version.rb +1 -1
- data/proto/rpc.proto +6 -0
- metadata +94 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 5f251d88d7525ca68f3757e5d15b3bf553f23e16c22b67f0cb501b4b7c57f9cf
|
4
|
+
data.tar.gz: 78bba5d0b84d72805c158498b0c707975b2b81c4e1a2f3537ba5eeca9c5f3b67
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 98f9d860e46359e348313e2c6e1093c39911b40ff7227d3b2e953e3fa574234f8c518427f9e26797ca50de2d7d5599a8ba78232826288f2255600bc27ad58ad9
|
7
|
+
data.tar.gz: 80643f875d7736c5883ce43b1903a61e08c78d9d11459621ca94f502f4f2e84748f85fbb6df2604886de0a708d11c0e6b7e80df9e03aa3bac7f65075cd795c2c
|
data/lib/protobuf/rpc/env.rb
CHANGED
data/lib/protobuf/rpc/rpc.pb.rb
CHANGED
@@ -31,6 +31,7 @@ module Protobuf
|
|
31
31
|
#
|
32
32
|
class Request < ::Protobuf::Message; end
|
33
33
|
class Response < ::Protobuf::Message; end
|
34
|
+
class Header < ::Protobuf::Message; end
|
34
35
|
|
35
36
|
|
36
37
|
##
|
@@ -41,6 +42,7 @@ module Protobuf
|
|
41
42
|
required :string, :method_name, 2
|
42
43
|
optional :bytes, :request_proto, 3
|
43
44
|
optional :string, :caller, 4
|
45
|
+
repeated ::Protobuf::Socketrpc::Header, :headers, 5
|
44
46
|
end
|
45
47
|
|
46
48
|
class Response
|
@@ -51,6 +53,11 @@ module Protobuf
|
|
51
53
|
optional :string, :server, 5
|
52
54
|
end
|
53
55
|
|
56
|
+
class Header
|
57
|
+
required :string, :key, 1
|
58
|
+
optional :string, :value, 2
|
59
|
+
end
|
60
|
+
|
54
61
|
end
|
55
62
|
|
56
63
|
end
|
data/lib/protobuf/version.rb
CHANGED
data/proto/rpc.proto
CHANGED
@@ -30,6 +30,7 @@ message Request
|
|
30
30
|
required string method_name = 2; // Service method to invoke
|
31
31
|
optional bytes request_proto = 3; // Serialized request bytes
|
32
32
|
optional string caller = 4; // Calling hostname or address
|
33
|
+
repeated Header headers = 5; // General purpose request headers
|
33
34
|
}
|
34
35
|
|
35
36
|
message Response
|
@@ -41,6 +42,11 @@ message Response
|
|
41
42
|
optional string server = 5; // Server hostname or address
|
42
43
|
}
|
43
44
|
|
45
|
+
message Header {
|
46
|
+
required string key = 1;
|
47
|
+
optional string value = 2;
|
48
|
+
}
|
49
|
+
|
44
50
|
// Possible error reasons
|
45
51
|
// The server-side errors are returned in the response from the server.
|
46
52
|
// The client-side errors are returned by the client-side code when it doesn't
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: protobuf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.10.0.pre0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- BJ Neilsen
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2019-02-
|
14
|
+
date: 2019-02-08 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: activesupport
|
@@ -480,13 +480,101 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
480
480
|
version: '0'
|
481
481
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
482
482
|
requirements:
|
483
|
-
- - "
|
483
|
+
- - ">"
|
484
484
|
- !ruby/object:Gem::Version
|
485
|
-
version:
|
485
|
+
version: 1.3.1
|
486
486
|
requirements: []
|
487
487
|
rubyforge_project:
|
488
|
-
rubygems_version: 2.6
|
488
|
+
rubygems_version: 2.7.6
|
489
489
|
signing_key:
|
490
490
|
specification_version: 4
|
491
491
|
summary: Google Protocol Buffers serialization and RPC implementation for Ruby.
|
492
|
-
test_files:
|
492
|
+
test_files:
|
493
|
+
- spec/benchmark/tasks.rb
|
494
|
+
- spec/bin/protoc-gen-ruby_spec.rb
|
495
|
+
- spec/encoding/all_types_spec.rb
|
496
|
+
- spec/encoding/extreme_values_spec.rb
|
497
|
+
- spec/functional/class_inheritance_spec.rb
|
498
|
+
- spec/functional/code_generator_spec.rb
|
499
|
+
- spec/functional/socket_server_spec.rb
|
500
|
+
- spec/functional/zmq_server_spec.rb
|
501
|
+
- spec/lib/protobuf/cli_spec.rb
|
502
|
+
- spec/lib/protobuf/code_generator_spec.rb
|
503
|
+
- spec/lib/protobuf/enum_spec.rb
|
504
|
+
- spec/lib/protobuf/field/bool_field_spec.rb
|
505
|
+
- spec/lib/protobuf/field/double_field_spec.rb
|
506
|
+
- spec/lib/protobuf/field/enum_field_spec.rb
|
507
|
+
- spec/lib/protobuf/field/field_array_spec.rb
|
508
|
+
- spec/lib/protobuf/field/field_hash_spec.rb
|
509
|
+
- spec/lib/protobuf/field/fixed32_field_spec.rb
|
510
|
+
- spec/lib/protobuf/field/fixed64_field_spec.rb
|
511
|
+
- spec/lib/protobuf/field/float_field_spec.rb
|
512
|
+
- spec/lib/protobuf/field/int32_field_spec.rb
|
513
|
+
- spec/lib/protobuf/field/int64_field_spec.rb
|
514
|
+
- spec/lib/protobuf/field/message_field_spec.rb
|
515
|
+
- spec/lib/protobuf/field/sfixed32_field_spec.rb
|
516
|
+
- spec/lib/protobuf/field/sfixed64_field_spec.rb
|
517
|
+
- spec/lib/protobuf/field/sint32_field_spec.rb
|
518
|
+
- spec/lib/protobuf/field/sint64_field_spec.rb
|
519
|
+
- spec/lib/protobuf/field/string_field_spec.rb
|
520
|
+
- spec/lib/protobuf/field/uint32_field_spec.rb
|
521
|
+
- spec/lib/protobuf/field/uint64_field_spec.rb
|
522
|
+
- spec/lib/protobuf/field_spec.rb
|
523
|
+
- spec/lib/protobuf/generators/base_spec.rb
|
524
|
+
- spec/lib/protobuf/generators/enum_generator_spec.rb
|
525
|
+
- spec/lib/protobuf/generators/extension_generator_spec.rb
|
526
|
+
- spec/lib/protobuf/generators/field_generator_spec.rb
|
527
|
+
- spec/lib/protobuf/generators/file_generator_spec.rb
|
528
|
+
- spec/lib/protobuf/generators/message_generator_spec.rb
|
529
|
+
- spec/lib/protobuf/generators/service_generator_spec.rb
|
530
|
+
- spec/lib/protobuf/lifecycle_spec.rb
|
531
|
+
- spec/lib/protobuf/message_spec.rb
|
532
|
+
- spec/lib/protobuf/optionable_spec.rb
|
533
|
+
- spec/lib/protobuf/rpc/client_spec.rb
|
534
|
+
- spec/lib/protobuf/rpc/connectors/base_spec.rb
|
535
|
+
- spec/lib/protobuf/rpc/connectors/ping_spec.rb
|
536
|
+
- spec/lib/protobuf/rpc/connectors/socket_spec.rb
|
537
|
+
- spec/lib/protobuf/rpc/connectors/zmq_spec.rb
|
538
|
+
- spec/lib/protobuf/rpc/middleware/exception_handler_spec.rb
|
539
|
+
- spec/lib/protobuf/rpc/middleware/logger_spec.rb
|
540
|
+
- spec/lib/protobuf/rpc/middleware/request_decoder_spec.rb
|
541
|
+
- spec/lib/protobuf/rpc/middleware/response_encoder_spec.rb
|
542
|
+
- spec/lib/protobuf/rpc/servers/socket_server_spec.rb
|
543
|
+
- spec/lib/protobuf/rpc/servers/zmq/server_spec.rb
|
544
|
+
- spec/lib/protobuf/rpc/servers/zmq/util_spec.rb
|
545
|
+
- spec/lib/protobuf/rpc/servers/zmq/worker_spec.rb
|
546
|
+
- spec/lib/protobuf/rpc/service_directory_spec.rb
|
547
|
+
- spec/lib/protobuf/rpc/service_dispatcher_spec.rb
|
548
|
+
- spec/lib/protobuf/rpc/service_filters_spec.rb
|
549
|
+
- spec/lib/protobuf/rpc/service_spec.rb
|
550
|
+
- spec/lib/protobuf/rpc/stat_spec.rb
|
551
|
+
- spec/lib/protobuf/varint_spec.rb
|
552
|
+
- spec/lib/protobuf_spec.rb
|
553
|
+
- spec/spec_helper.rb
|
554
|
+
- spec/support/all.rb
|
555
|
+
- spec/support/packed_field.rb
|
556
|
+
- spec/support/protos/all_types.data.bin
|
557
|
+
- spec/support/protos/all_types.data.txt
|
558
|
+
- spec/support/protos/enum.pb.rb
|
559
|
+
- spec/support/protos/enum.proto
|
560
|
+
- spec/support/protos/extreme_values.data.bin
|
561
|
+
- spec/support/protos/google_unittest.bin
|
562
|
+
- spec/support/protos/google_unittest.pb.rb
|
563
|
+
- spec/support/protos/google_unittest.proto
|
564
|
+
- spec/support/protos/google_unittest_custom_options.bin
|
565
|
+
- spec/support/protos/google_unittest_custom_options.pb.rb
|
566
|
+
- spec/support/protos/google_unittest_custom_options.proto
|
567
|
+
- spec/support/protos/google_unittest_import.pb.rb
|
568
|
+
- spec/support/protos/google_unittest_import.proto
|
569
|
+
- spec/support/protos/google_unittest_import_public.pb.rb
|
570
|
+
- spec/support/protos/google_unittest_import_public.proto
|
571
|
+
- spec/support/protos/map-test.bin
|
572
|
+
- spec/support/protos/map-test.pb.rb
|
573
|
+
- spec/support/protos/map-test.proto
|
574
|
+
- spec/support/protos/multi_field_extensions.pb.rb
|
575
|
+
- spec/support/protos/multi_field_extensions.proto
|
576
|
+
- spec/support/protos/resource.pb.rb
|
577
|
+
- spec/support/protos/resource.proto
|
578
|
+
- spec/support/resource_service.rb
|
579
|
+
- spec/support/server.rb
|
580
|
+
- spec/support/test_app_file.rb
|