protobuf 3.7.5 → 3.8.0.pre1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,85 @@
1
+ # encoding: utf-8
2
+
3
+ ##
4
+ # This file is auto-generated. DO NOT EDIT!
5
+ #
6
+ require 'protobuf'
7
+
8
+ module Foo
9
+ ::Protobuf::Optionable.inject(self) { ::Google::Protobuf::FileOptions }
10
+
11
+ ##
12
+ # Enum Classes
13
+ #
14
+ class Frobnitz < ::Protobuf::Enum
15
+ define :FROB, 1
16
+ define :NITZ, 2
17
+ end
18
+
19
+
20
+ ##
21
+ # Message Classes
22
+ #
23
+ class Baz < ::Protobuf::Message
24
+ class DoesNotLookLikeMapEntry < ::Protobuf::Message; end
25
+
26
+ end
27
+
28
+ class Bar < ::Protobuf::Message
29
+ end
30
+
31
+
32
+
33
+ ##
34
+ # Message Fields
35
+ #
36
+ class Baz
37
+ class DoesNotLookLikeMapEntry
38
+ optional :string, :key, 1
39
+ optional :string, :value, 2
40
+ end
41
+
42
+ map :string, :string, :looks_like_map, 1
43
+ repeated ::Foo::Baz::DoesNotLookLikeMapEntry, :does_not_look_like_map, 2
44
+ end
45
+
46
+ class Bar
47
+ map :sint32, ::Foo::Baz, :sint32_to_baz, 1
48
+ map :sint64, ::Foo::Baz, :sint64_to_baz, 2
49
+ map :int32, ::Foo::Baz, :int32_to_baz, 3
50
+ map :int64, ::Foo::Baz, :int64_to_baz, 4
51
+ map :uint32, ::Foo::Baz, :uint32_to_baz, 5
52
+ map :uint64, ::Foo::Baz, :uint64_to_baz, 6
53
+ map :string, ::Foo::Baz, :string_to_baz, 7
54
+ map :sint32, ::Foo::Frobnitz, :sint32_to_frobnitz, 8
55
+ map :sint64, ::Foo::Frobnitz, :sint64_to_frobnitz, 9
56
+ map :int32, ::Foo::Frobnitz, :int32_to_frobnitz, 10
57
+ map :int64, ::Foo::Frobnitz, :int64_to_frobnitz, 11
58
+ map :uint32, ::Foo::Frobnitz, :uint32_to_frobnitz, 12
59
+ map :uint64, ::Foo::Frobnitz, :uint64_to_frobnitz, 13
60
+ map :string, ::Foo::Frobnitz, :string_to_frobnitz, 14
61
+ map :sint32, :string, :sint32_to_string, 15
62
+ map :sint64, :string, :sint64_to_string, 16
63
+ map :int32, :string, :int32_to_string, 17
64
+ map :int64, :string, :int64_to_string, 18
65
+ map :uint32, :string, :uint32_to_string, 19
66
+ map :uint64, :string, :uint64_to_string, 20
67
+ map :string, :string, :string_to_string, 21
68
+ map :sint32, :float, :sint32_to_float, 22
69
+ map :sint64, :float, :sint64_to_float, 23
70
+ map :int32, :float, :int32_to_float, 24
71
+ map :int64, :float, :int64_to_float, 25
72
+ map :uint32, :float, :uint32_to_float, 26
73
+ map :uint64, :float, :uint64_to_float, 27
74
+ map :string, :float, :string_to_float, 28
75
+ map :sint32, :double, :sint32_to_double, 29
76
+ map :sint64, :double, :sint64_to_double, 30
77
+ map :int32, :double, :int32_to_double, 31
78
+ map :int64, :double, :int64_to_double, 32
79
+ map :uint32, :double, :uint32_to_double, 33
80
+ map :uint64, :double, :uint64_to_double, 34
81
+ map :string, :double, :string_to_double, 35
82
+ end
83
+
84
+ end
85
+
@@ -0,0 +1,68 @@
1
+ // Use protoc v3.0.0 to compile this file into map-test.bin:
2
+ // protoc --descriptor_set_out=map-test.bin map-test.proto
3
+
4
+ syntax = "proto2";
5
+
6
+ package foo;
7
+
8
+ enum Frobnitz {
9
+ FROB = 1;
10
+ NITZ = 2;
11
+ }
12
+
13
+ message Baz {
14
+ message LooksLikeMapEntry {
15
+ option map_entry = true;
16
+ optional string key = 1;
17
+ optional string value = 2;
18
+ }
19
+ repeated LooksLikeMapEntry looks_like_map = 1;
20
+
21
+ message DoesNotLookLikeMapEntry {
22
+ optional string key = 1;
23
+ optional string value = 2;
24
+ }
25
+ repeated DoesNotLookLikeMapEntry does_not_look_like_map = 2;
26
+ }
27
+
28
+ message Bar {
29
+ map<sint32, Baz> sint32_to_baz = 1;
30
+ map<sint64, Baz> sint64_to_baz = 2;
31
+ map<int32, Baz> int32_to_baz = 3;
32
+ map<int64, Baz> int64_to_baz = 4;
33
+ map<uint32, Baz> uint32_to_baz = 5;
34
+ map<uint64, Baz> uint64_to_baz = 6;
35
+ map<string, Baz> string_to_baz = 7;
36
+
37
+ map<sint32, Frobnitz> sint32_to_frobnitz = 8;
38
+ map<sint64, Frobnitz> sint64_to_frobnitz = 9;
39
+ map<int32, Frobnitz> int32_to_frobnitz = 10;
40
+ map<int64, Frobnitz> int64_to_frobnitz = 11;
41
+ map<uint32, Frobnitz> uint32_to_frobnitz = 12;
42
+ map<uint64, Frobnitz> uint64_to_frobnitz = 13;
43
+ map<string, Frobnitz> string_to_frobnitz = 14;
44
+
45
+ map<sint32, string> sint32_to_string = 15;
46
+ map<sint64, string> sint64_to_string = 16;
47
+ map<int32, string> int32_to_string = 17;
48
+ map<int64, string> int64_to_string = 18;
49
+ map<uint32, string> uint32_to_string = 19;
50
+ map<uint64, string> uint64_to_string = 20;
51
+ map<string, string> string_to_string = 21;
52
+
53
+ map<sint32, float> sint32_to_float = 22;
54
+ map<sint64, float> sint64_to_float = 23;
55
+ map<int32, float> int32_to_float = 24;
56
+ map<int64, float> int64_to_float = 25;
57
+ map<uint32, float> uint32_to_float = 26;
58
+ map<uint64, float> uint64_to_float = 27;
59
+ map<string, float> string_to_float = 28;
60
+
61
+ map<sint32, double> sint32_to_double = 29;
62
+ map<sint64, double> sint64_to_double = 30;
63
+ map<int32, double> int32_to_double = 31;
64
+ map<int64, double> int64_to_double = 32;
65
+ map<uint32, double> uint32_to_double = 33;
66
+ map<uint64, double> uint64_to_double = 34;
67
+ map<string, double> string_to_double = 35;
68
+ }
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.7.5
4
+ version: 3.8.0.pre1
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: 2017-05-17 00:00:00.000000000 Z
14
+ date: 2017-08-15 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: activesupport
@@ -281,6 +281,7 @@ files:
281
281
  - lib/protobuf/field/double_field.rb
282
282
  - lib/protobuf/field/enum_field.rb
283
283
  - lib/protobuf/field/field_array.rb
284
+ - lib/protobuf/field/field_hash.rb
284
285
  - lib/protobuf/field/fixed32_field.rb
285
286
  - lib/protobuf/field/fixed64_field.rb
286
287
  - lib/protobuf/field/float_field.rb
@@ -374,6 +375,7 @@ files:
374
375
  - spec/lib/protobuf/field/double_field_spec.rb
375
376
  - spec/lib/protobuf/field/enum_field_spec.rb
376
377
  - spec/lib/protobuf/field/field_array_spec.rb
378
+ - spec/lib/protobuf/field/field_hash_spec.rb
377
379
  - spec/lib/protobuf/field/fixed32_field_spec.rb
378
380
  - spec/lib/protobuf/field/fixed64_field_spec.rb
379
381
  - spec/lib/protobuf/field/float_field_spec.rb
@@ -436,6 +438,9 @@ files:
436
438
  - spec/support/protos/google_unittest_import.proto
437
439
  - spec/support/protos/google_unittest_import_public.pb.rb
438
440
  - spec/support/protos/google_unittest_import_public.proto
441
+ - spec/support/protos/map-test.bin
442
+ - spec/support/protos/map-test.pb.rb
443
+ - spec/support/protos/map-test.proto
439
444
  - spec/support/protos/multi_field_extensions.pb.rb
440
445
  - spec/support/protos/multi_field_extensions.proto
441
446
  - spec/support/protos/resource.pb.rb
@@ -458,13 +463,101 @@ required_ruby_version: !ruby/object:Gem::Requirement
458
463
  version: '0'
459
464
  required_rubygems_version: !ruby/object:Gem::Requirement
460
465
  requirements:
461
- - - ">="
466
+ - - ">"
462
467
  - !ruby/object:Gem::Version
463
- version: '0'
468
+ version: 1.3.1
464
469
  requirements: []
465
470
  rubyforge_project:
466
- rubygems_version: 2.6.10
471
+ rubygems_version: 2.5.2
467
472
  signing_key:
468
473
  specification_version: 4
469
474
  summary: Google Protocol Buffers serialization and RPC implementation for Ruby.
470
- test_files: []
475
+ test_files:
476
+ - spec/benchmark/tasks.rb
477
+ - spec/bin/protoc-gen-ruby_spec.rb
478
+ - spec/encoding/all_types_spec.rb
479
+ - spec/encoding/extreme_values_spec.rb
480
+ - spec/functional/class_inheritance_spec.rb
481
+ - spec/functional/code_generator_spec.rb
482
+ - spec/functional/socket_server_spec.rb
483
+ - spec/functional/zmq_server_spec.rb
484
+ - spec/lib/protobuf/cli_spec.rb
485
+ - spec/lib/protobuf/code_generator_spec.rb
486
+ - spec/lib/protobuf/enum_spec.rb
487
+ - spec/lib/protobuf/field/bool_field_spec.rb
488
+ - spec/lib/protobuf/field/double_field_spec.rb
489
+ - spec/lib/protobuf/field/enum_field_spec.rb
490
+ - spec/lib/protobuf/field/field_array_spec.rb
491
+ - spec/lib/protobuf/field/field_hash_spec.rb
492
+ - spec/lib/protobuf/field/fixed32_field_spec.rb
493
+ - spec/lib/protobuf/field/fixed64_field_spec.rb
494
+ - spec/lib/protobuf/field/float_field_spec.rb
495
+ - spec/lib/protobuf/field/int32_field_spec.rb
496
+ - spec/lib/protobuf/field/int64_field_spec.rb
497
+ - spec/lib/protobuf/field/message_field_spec.rb
498
+ - spec/lib/protobuf/field/sfixed32_field_spec.rb
499
+ - spec/lib/protobuf/field/sfixed64_field_spec.rb
500
+ - spec/lib/protobuf/field/sint32_field_spec.rb
501
+ - spec/lib/protobuf/field/sint64_field_spec.rb
502
+ - spec/lib/protobuf/field/string_field_spec.rb
503
+ - spec/lib/protobuf/field/uint32_field_spec.rb
504
+ - spec/lib/protobuf/field/uint64_field_spec.rb
505
+ - spec/lib/protobuf/field_spec.rb
506
+ - spec/lib/protobuf/generators/base_spec.rb
507
+ - spec/lib/protobuf/generators/enum_generator_spec.rb
508
+ - spec/lib/protobuf/generators/extension_generator_spec.rb
509
+ - spec/lib/protobuf/generators/field_generator_spec.rb
510
+ - spec/lib/protobuf/generators/file_generator_spec.rb
511
+ - spec/lib/protobuf/generators/message_generator_spec.rb
512
+ - spec/lib/protobuf/generators/service_generator_spec.rb
513
+ - spec/lib/protobuf/lifecycle_spec.rb
514
+ - spec/lib/protobuf/message_spec.rb
515
+ - spec/lib/protobuf/optionable_spec.rb
516
+ - spec/lib/protobuf/rpc/client_spec.rb
517
+ - spec/lib/protobuf/rpc/connectors/base_spec.rb
518
+ - spec/lib/protobuf/rpc/connectors/ping_spec.rb
519
+ - spec/lib/protobuf/rpc/connectors/socket_spec.rb
520
+ - spec/lib/protobuf/rpc/connectors/zmq_spec.rb
521
+ - spec/lib/protobuf/rpc/middleware/exception_handler_spec.rb
522
+ - spec/lib/protobuf/rpc/middleware/logger_spec.rb
523
+ - spec/lib/protobuf/rpc/middleware/request_decoder_spec.rb
524
+ - spec/lib/protobuf/rpc/middleware/response_encoder_spec.rb
525
+ - spec/lib/protobuf/rpc/servers/socket_server_spec.rb
526
+ - spec/lib/protobuf/rpc/servers/zmq/server_spec.rb
527
+ - spec/lib/protobuf/rpc/servers/zmq/util_spec.rb
528
+ - spec/lib/protobuf/rpc/servers/zmq/worker_spec.rb
529
+ - spec/lib/protobuf/rpc/service_directory_spec.rb
530
+ - spec/lib/protobuf/rpc/service_dispatcher_spec.rb
531
+ - spec/lib/protobuf/rpc/service_filters_spec.rb
532
+ - spec/lib/protobuf/rpc/service_spec.rb
533
+ - spec/lib/protobuf/rpc/stat_spec.rb
534
+ - spec/lib/protobuf/varint_spec.rb
535
+ - spec/lib/protobuf_spec.rb
536
+ - spec/spec_helper.rb
537
+ - spec/support/all.rb
538
+ - spec/support/packed_field.rb
539
+ - spec/support/protos/all_types.data.bin
540
+ - spec/support/protos/all_types.data.txt
541
+ - spec/support/protos/enum.pb.rb
542
+ - spec/support/protos/enum.proto
543
+ - spec/support/protos/extreme_values.data.bin
544
+ - spec/support/protos/google_unittest.bin
545
+ - spec/support/protos/google_unittest.pb.rb
546
+ - spec/support/protos/google_unittest.proto
547
+ - spec/support/protos/google_unittest_custom_options.bin
548
+ - spec/support/protos/google_unittest_custom_options.pb.rb
549
+ - spec/support/protos/google_unittest_custom_options.proto
550
+ - spec/support/protos/google_unittest_import.pb.rb
551
+ - spec/support/protos/google_unittest_import.proto
552
+ - spec/support/protos/google_unittest_import_public.pb.rb
553
+ - spec/support/protos/google_unittest_import_public.proto
554
+ - spec/support/protos/map-test.bin
555
+ - spec/support/protos/map-test.pb.rb
556
+ - spec/support/protos/map-test.proto
557
+ - spec/support/protos/multi_field_extensions.pb.rb
558
+ - spec/support/protos/multi_field_extensions.proto
559
+ - spec/support/protos/resource.pb.rb
560
+ - spec/support/protos/resource.proto
561
+ - spec/support/resource_service.rb
562
+ - spec/support/server.rb
563
+ - spec/support/test_app_file.rb