protobuf 3.5.5 → 3.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -0
- data/CHANGES.md +16 -0
- data/lib/protobuf/cli.rb +3 -1
- data/lib/protobuf/enum.rb +1 -0
- data/lib/protobuf/field/base_field.rb +1 -0
- data/lib/protobuf/field/varint_field.rb +16 -1
- data/lib/protobuf/message.rb +6 -7
- data/lib/protobuf/message/serialization.rb +0 -4
- data/lib/protobuf/rpc/connectors/ping.rb +87 -0
- data/lib/protobuf/rpc/connectors/zmq.rb +5 -16
- data/lib/protobuf/version.rb +1 -1
- data/spec/benchmark/tasks.rb +2 -1
- data/spec/encoding/all_types_spec.rb +28 -27
- data/spec/encoding/extreme_values_spec.rb +0 -0
- data/spec/functional/class_inheritance_spec.rb +1 -1
- data/spec/functional/socket_server_spec.rb +1 -1
- data/spec/functional/zmq_server_spec.rb +1 -1
- data/spec/lib/protobuf/field_spec.rb +1 -1
- data/spec/lib/protobuf/generators/base_spec.rb +2 -0
- data/spec/lib/protobuf/message_spec.rb +6 -4
- data/spec/lib/protobuf/rpc/client_spec.rb +1 -1
- data/spec/lib/protobuf/rpc/connectors/ping_spec.rb +69 -0
- data/spec/lib/protobuf/rpc/connectors/zmq_spec.rb +6 -13
- data/spec/lib/protobuf/rpc/servers/socket_server_spec.rb +1 -1
- data/spec/lib/protobuf/rpc/service_spec.rb +1 -1
- data/spec/lib/protobuf_spec.rb +1 -1
- data/spec/spec_helper.rb +5 -7
- data/spec/support/{test → protos}/all_types.data.bin +0 -0
- data/spec/support/{test → protos}/all_types.data.txt +0 -0
- data/spec/support/{test → protos}/enum.pb.rb +1 -1
- data/spec/support/{test → protos}/enum.proto +3 -1
- data/spec/support/{test → protos}/extreme_values.data.bin +0 -0
- data/spec/support/protos/google_unittest.bin +0 -0
- data/spec/support/{test → protos}/google_unittest.pb.rb +318 -77
- data/spec/support/{test → protos}/google_unittest.proto +230 -66
- data/spec/support/{test → protos}/google_unittest_import.pb.rb +13 -6
- data/spec/support/{test → protos}/google_unittest_import.proto +19 -10
- data/spec/support/protos/google_unittest_import_public.pb.rb +24 -0
- data/spec/support/{test → protos}/google_unittest_import_public.proto +8 -5
- data/spec/support/{test → protos}/multi_field_extensions.pb.rb +0 -0
- data/spec/support/{test → protos}/multi_field_extensions.proto +2 -0
- data/spec/support/{test → protos}/resource.pb.rb +0 -0
- data/spec/support/{test → protos}/resource.proto +2 -0
- data/spec/support/{test/resource_service.rb → resource_service.rb} +1 -1
- data/spec/support/server.rb +2 -1
- metadata +111 -160
- data/spec/data/data.bin +0 -3
- data/spec/data/types.bin +0 -0
- data/spec/support/test/defaults.pb.rb +0 -27
- data/spec/support/test/defaults.proto +0 -9
- data/spec/support/test/extended.pb.rb +0 -24
- data/spec/support/test/extended.proto +0 -10
- data/spec/support/test/google_unittest_import_public.pb.rb +0 -10
data/spec/data/data.bin
DELETED
data/spec/data/types.bin
DELETED
Binary file
|
@@ -1,27 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
|
3
|
-
##
|
4
|
-
# This file is auto-generated. DO NOT EDIT!
|
5
|
-
#
|
6
|
-
require 'protobuf/message'
|
7
|
-
|
8
|
-
module Test
|
9
|
-
|
10
|
-
##
|
11
|
-
# Message Classes
|
12
|
-
#
|
13
|
-
class Defaults < ::Protobuf::Message; end
|
14
|
-
|
15
|
-
|
16
|
-
##
|
17
|
-
# Message Fields
|
18
|
-
#
|
19
|
-
class Defaults
|
20
|
-
optional :bytes, :escaped_bytes, 1, :default => "\000\001\007\010\014\n\r\t\013\\\\'\"\376"
|
21
|
-
optional :double, :infinity_default, 2, :default => ::Float::INFINITY
|
22
|
-
optional :float, :neg_infinity_default, 3, :default => -::Float::INFINITY
|
23
|
-
optional :double, :nan_default, 4, :default => ::Float::NAN
|
24
|
-
end
|
25
|
-
|
26
|
-
end
|
27
|
-
|
@@ -1,9 +0,0 @@
|
|
1
|
-
package test;
|
2
|
-
|
3
|
-
message Defaults {
|
4
|
-
optional bytes escaped_bytes = 1 [default = "\0\001\a\b\f\n\r\t\v\\\'\"\xfe"];
|
5
|
-
optional double infinity_default = 2 [default = inf];
|
6
|
-
optional float neg_infinity_default = 3 [default = -inf];
|
7
|
-
optional double nan_default = 4 [default = nan];
|
8
|
-
}
|
9
|
-
|
@@ -1,24 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
|
3
|
-
##
|
4
|
-
# This file is auto-generated. DO NOT EDIT!
|
5
|
-
#
|
6
|
-
require 'protobuf/message'
|
7
|
-
|
8
|
-
|
9
|
-
##
|
10
|
-
# Imports
|
11
|
-
#
|
12
|
-
require 'test/resource.pb'
|
13
|
-
|
14
|
-
module Test
|
15
|
-
|
16
|
-
##
|
17
|
-
# Extended Message Fields
|
18
|
-
#
|
19
|
-
class ::Test::Resource < ::Protobuf::Message
|
20
|
-
optional :int64, :deleted_at, 300, :extension => true
|
21
|
-
end
|
22
|
-
|
23
|
-
end
|
24
|
-
|
@@ -1,10 +0,0 @@
|
|
1
|
-
package test;
|
2
|
-
import 'test/resource.proto';
|
3
|
-
|
4
|
-
// Test that we will re-open a class and add
|
5
|
-
// extension fields to it even if there are no
|
6
|
-
// message or enum definitions in this FileDescriptor.
|
7
|
-
|
8
|
-
extend test.Resource {
|
9
|
-
optional int64 deleted_at = 300;
|
10
|
-
}
|