protobuf 3.5.5 → 3.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +1 -0
  3. data/CHANGES.md +16 -0
  4. data/lib/protobuf/cli.rb +3 -1
  5. data/lib/protobuf/enum.rb +1 -0
  6. data/lib/protobuf/field/base_field.rb +1 -0
  7. data/lib/protobuf/field/varint_field.rb +16 -1
  8. data/lib/protobuf/message.rb +6 -7
  9. data/lib/protobuf/message/serialization.rb +0 -4
  10. data/lib/protobuf/rpc/connectors/ping.rb +87 -0
  11. data/lib/protobuf/rpc/connectors/zmq.rb +5 -16
  12. data/lib/protobuf/version.rb +1 -1
  13. data/spec/benchmark/tasks.rb +2 -1
  14. data/spec/encoding/all_types_spec.rb +28 -27
  15. data/spec/encoding/extreme_values_spec.rb +0 -0
  16. data/spec/functional/class_inheritance_spec.rb +1 -1
  17. data/spec/functional/socket_server_spec.rb +1 -1
  18. data/spec/functional/zmq_server_spec.rb +1 -1
  19. data/spec/lib/protobuf/field_spec.rb +1 -1
  20. data/spec/lib/protobuf/generators/base_spec.rb +2 -0
  21. data/spec/lib/protobuf/message_spec.rb +6 -4
  22. data/spec/lib/protobuf/rpc/client_spec.rb +1 -1
  23. data/spec/lib/protobuf/rpc/connectors/ping_spec.rb +69 -0
  24. data/spec/lib/protobuf/rpc/connectors/zmq_spec.rb +6 -13
  25. data/spec/lib/protobuf/rpc/servers/socket_server_spec.rb +1 -1
  26. data/spec/lib/protobuf/rpc/service_spec.rb +1 -1
  27. data/spec/lib/protobuf_spec.rb +1 -1
  28. data/spec/spec_helper.rb +5 -7
  29. data/spec/support/{test → protos}/all_types.data.bin +0 -0
  30. data/spec/support/{test → protos}/all_types.data.txt +0 -0
  31. data/spec/support/{test → protos}/enum.pb.rb +1 -1
  32. data/spec/support/{test → protos}/enum.proto +3 -1
  33. data/spec/support/{test → protos}/extreme_values.data.bin +0 -0
  34. data/spec/support/protos/google_unittest.bin +0 -0
  35. data/spec/support/{test → protos}/google_unittest.pb.rb +318 -77
  36. data/spec/support/{test → protos}/google_unittest.proto +230 -66
  37. data/spec/support/{test → protos}/google_unittest_import.pb.rb +13 -6
  38. data/spec/support/{test → protos}/google_unittest_import.proto +19 -10
  39. data/spec/support/protos/google_unittest_import_public.pb.rb +24 -0
  40. data/spec/support/{test → protos}/google_unittest_import_public.proto +8 -5
  41. data/spec/support/{test → protos}/multi_field_extensions.pb.rb +0 -0
  42. data/spec/support/{test → protos}/multi_field_extensions.proto +2 -0
  43. data/spec/support/{test → protos}/resource.pb.rb +0 -0
  44. data/spec/support/{test → protos}/resource.proto +2 -0
  45. data/spec/support/{test/resource_service.rb → resource_service.rb} +1 -1
  46. data/spec/support/server.rb +2 -1
  47. metadata +111 -160
  48. data/spec/data/data.bin +0 -3
  49. data/spec/data/types.bin +0 -0
  50. data/spec/support/test/defaults.pb.rb +0 -27
  51. data/spec/support/test/defaults.proto +0 -9
  52. data/spec/support/test/extended.pb.rb +0 -24
  53. data/spec/support/test/extended.proto +0 -10
  54. data/spec/support/test/google_unittest_import_public.pb.rb +0 -10
data/spec/data/data.bin DELETED
@@ -1,3 +0,0 @@
1
-
2
- John Doe� jdoe@example.com"
3
- 555-4321
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
- }
@@ -1,10 +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 GoogleUnittestImport
9
- end
10
-