protobuf 3.10.1 → 3.10.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +48 -0
- data/CHANGES.md +1 -0
- data/Rakefile +7 -5
- data/lib/protobuf/cli.rb +2 -0
- data/lib/protobuf/code_generator.rb +10 -1
- data/lib/protobuf/descriptors/google/protobuf/compiler/plugin.pb.rb +17 -0
- data/lib/protobuf/descriptors/google/protobuf/descriptor.pb.rb +65 -6
- data/lib/protobuf/version.rb +1 -1
- data/lib/protobuf.rb +12 -0
- data/proto/dynamic_discovery.proto +2 -0
- data/proto/google/protobuf/compiler/plugin.proto +37 -1
- data/proto/google/protobuf/descriptor.proto +228 -96
- data/proto/rpc.proto +2 -0
- data/spec/functional/code_generator_spec.rb +2 -2
- data/spec/lib/protobuf/cli_spec.rb +35 -0
- data/spec/lib/protobuf/code_generator_spec.rb +1 -1
- data/spec/support/google/protobuf/descriptor.pb.rb +360 -0
- data/spec/support/protos/map-test.bin +0 -0
- data/spec/support/protos/map-test.pb.rb +2 -2
- data/spec/support/protos/map-test.proto +3 -3
- data/spec/support/protos/optional_v3_fields.pb.rb +22 -0
- data/spec/support/protos/optional_v3_fields.proto +6 -0
- metadata +13 -9
- data/.travis.yml +0 -40
- data/install-protobuf.sh +0 -28
@@ -1,13 +1,13 @@
|
|
1
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
|
2
|
+
// protoc --descriptor_set_out=map-test.bin map-test.proto
|
3
3
|
|
4
4
|
syntax = "proto2";
|
5
5
|
|
6
6
|
package foo;
|
7
7
|
|
8
8
|
enum Frobnitz {
|
9
|
-
FROB =
|
10
|
-
NITZ =
|
9
|
+
FROB = 0;
|
10
|
+
NITZ = 1;
|
11
11
|
}
|
12
12
|
|
13
13
|
message Baz {
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
##
|
4
|
+
# This file is auto-generated. DO NOT EDIT!
|
5
|
+
#
|
6
|
+
require 'protobuf'
|
7
|
+
|
8
|
+
|
9
|
+
##
|
10
|
+
# Message Classes
|
11
|
+
#
|
12
|
+
class SomethingWithOptionalFields < ::Protobuf::Message; end
|
13
|
+
|
14
|
+
|
15
|
+
##
|
16
|
+
# Message Fields
|
17
|
+
#
|
18
|
+
class SomethingWithOptionalFields
|
19
|
+
optional :string, :i_am_optional, 1
|
20
|
+
optional :string, :i_am_not_optional, 2
|
21
|
+
end
|
22
|
+
|
metadata
CHANGED
@@ -1,17 +1,17 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: protobuf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.10.
|
4
|
+
version: 3.10.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- BJ Neilsen
|
8
8
|
- Brandon Dewitt
|
9
9
|
- Devin Christensen
|
10
10
|
- Adam Hutchison
|
11
|
-
autorequire:
|
11
|
+
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date:
|
14
|
+
date: 2021-09-13 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: activesupport
|
@@ -263,10 +263,10 @@ executables:
|
|
263
263
|
extensions: []
|
264
264
|
extra_rdoc_files: []
|
265
265
|
files:
|
266
|
+
- ".circleci/config.yml"
|
266
267
|
- ".gitignore"
|
267
268
|
- ".rubocop.yml"
|
268
269
|
- ".rubocop_todo.yml"
|
269
|
-
- ".travis.yml"
|
270
270
|
- ".yardopts"
|
271
271
|
- CHANGES.md
|
272
272
|
- CONTRIBUTING.md
|
@@ -276,7 +276,6 @@ files:
|
|
276
276
|
- Rakefile
|
277
277
|
- bin/protoc-gen-ruby
|
278
278
|
- bin/rpc_server
|
279
|
-
- install-protobuf.sh
|
280
279
|
- lib/protobuf.rb
|
281
280
|
- lib/protobuf/cli.rb
|
282
281
|
- lib/protobuf/code_generator.rb
|
@@ -438,6 +437,7 @@ files:
|
|
438
437
|
- spec/lib/protobuf_spec.rb
|
439
438
|
- spec/spec_helper.rb
|
440
439
|
- spec/support/all.rb
|
440
|
+
- spec/support/google/protobuf/descriptor.pb.rb
|
441
441
|
- spec/support/packed_field.rb
|
442
442
|
- spec/support/protos/all_types.data.bin
|
443
443
|
- spec/support/protos/all_types.data.txt
|
@@ -459,6 +459,8 @@ files:
|
|
459
459
|
- spec/support/protos/map-test.proto
|
460
460
|
- spec/support/protos/multi_field_extensions.pb.rb
|
461
461
|
- spec/support/protos/multi_field_extensions.proto
|
462
|
+
- spec/support/protos/optional_v3_fields.pb.rb
|
463
|
+
- spec/support/protos/optional_v3_fields.proto
|
462
464
|
- spec/support/protos/resource.pb.rb
|
463
465
|
- spec/support/protos/resource.proto
|
464
466
|
- spec/support/resource_service.rb
|
@@ -469,7 +471,7 @@ homepage: https://github.com/localshred/protobuf
|
|
469
471
|
licenses:
|
470
472
|
- MIT
|
471
473
|
metadata: {}
|
472
|
-
post_install_message:
|
474
|
+
post_install_message:
|
473
475
|
rdoc_options: []
|
474
476
|
require_paths:
|
475
477
|
- lib
|
@@ -484,9 +486,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
484
486
|
- !ruby/object:Gem::Version
|
485
487
|
version: '0'
|
486
488
|
requirements: []
|
487
|
-
|
488
|
-
|
489
|
-
signing_key:
|
489
|
+
rubygems_version: 3.2.27
|
490
|
+
signing_key:
|
490
491
|
specification_version: 4
|
491
492
|
summary: Google Protocol Buffers serialization and RPC implementation for Ruby.
|
492
493
|
test_files:
|
@@ -552,6 +553,7 @@ test_files:
|
|
552
553
|
- spec/lib/protobuf_spec.rb
|
553
554
|
- spec/spec_helper.rb
|
554
555
|
- spec/support/all.rb
|
556
|
+
- spec/support/google/protobuf/descriptor.pb.rb
|
555
557
|
- spec/support/packed_field.rb
|
556
558
|
- spec/support/protos/all_types.data.bin
|
557
559
|
- spec/support/protos/all_types.data.txt
|
@@ -573,6 +575,8 @@ test_files:
|
|
573
575
|
- spec/support/protos/map-test.proto
|
574
576
|
- spec/support/protos/multi_field_extensions.pb.rb
|
575
577
|
- spec/support/protos/multi_field_extensions.proto
|
578
|
+
- spec/support/protos/optional_v3_fields.pb.rb
|
579
|
+
- spec/support/protos/optional_v3_fields.proto
|
576
580
|
- spec/support/protos/resource.pb.rb
|
577
581
|
- spec/support/protos/resource.proto
|
578
582
|
- spec/support/resource_service.rb
|
data/.travis.yml
DELETED
@@ -1,40 +0,0 @@
|
|
1
|
-
before_install:
|
2
|
-
- wget https://github.com/zeromq/libzmq/releases/download/v4.2.1/zeromq-4.2.1.tar.gz
|
3
|
-
- tar xvf zeromq-4.2.1.tar.gz
|
4
|
-
- cd zeromq-4.2.1
|
5
|
-
- ./configure
|
6
|
-
- make -j4
|
7
|
-
- sudo make install
|
8
|
-
# Retrun to project directory
|
9
|
-
- cd ..
|
10
|
-
- sudo -E ./install-protobuf.sh
|
11
|
-
- java -Xmx1g -version
|
12
|
-
- javac -J-Xmx1g -version
|
13
|
-
- export JRUBY_OPTS=-J-Xmx1g
|
14
|
-
- gem update bundler
|
15
|
-
language: ruby
|
16
|
-
rvm:
|
17
|
-
- 1.9.3
|
18
|
-
- 2.0.0
|
19
|
-
- 2.1
|
20
|
-
- 2.2
|
21
|
-
- 2.3
|
22
|
-
- 2.4
|
23
|
-
- 2.5
|
24
|
-
- jruby-9.1.17.0
|
25
|
-
- jruby-9.2.5.0
|
26
|
-
- rbx-2
|
27
|
-
env:
|
28
|
-
- PROTOBUF_VERSION=2.6.1
|
29
|
-
- PROTOBUF_VERSION=3.0.0-alpha-2
|
30
|
-
matrix:
|
31
|
-
allow_failures:
|
32
|
-
- rvm: rbx-2
|
33
|
-
- env: PROTOBUF_VERSION=3.0.0-alpha-2
|
34
|
-
notifications:
|
35
|
-
webhooks:
|
36
|
-
urls:
|
37
|
-
- https://webhooks.gitter.im/e/51a956bcd2b1854d6756
|
38
|
-
on_success: change # options: [always|never|change] default: always
|
39
|
-
on_failure: always # options: [always|never|change] default: always
|
40
|
-
on_start: false # default: false
|
data/install-protobuf.sh
DELETED
@@ -1,28 +0,0 @@
|
|
1
|
-
#!/usr/bin/env sh
|
2
|
-
|
3
|
-
set -ex
|
4
|
-
|
5
|
-
gdie() {
|
6
|
-
echo "$@" >&2
|
7
|
-
exit 1
|
8
|
-
}
|
9
|
-
|
10
|
-
test -n "$PROTOBUF_VERSION" || die "PROTOBUF_VERSION env var is undefined"
|
11
|
-
|
12
|
-
case "$PROTOBUF_VERSION" in
|
13
|
-
2*)
|
14
|
-
basename=protobuf-$PROTOBUF_VERSION
|
15
|
-
;;
|
16
|
-
3*)
|
17
|
-
basename=protobuf-cpp-$PROTOBUF_VERSION
|
18
|
-
;;
|
19
|
-
*)
|
20
|
-
die "unknown protobuf version: $PROTOBUF_VERSION"
|
21
|
-
;;
|
22
|
-
esac
|
23
|
-
|
24
|
-
curl -sL https://github.com/google/protobuf/releases/download/v$PROTOBUF_VERSION/$basename.tar.gz | tar zx
|
25
|
-
|
26
|
-
cd protobuf-$PROTOBUF_VERSION
|
27
|
-
|
28
|
-
./configure --prefix=/usr && make -j2 && make install
|