google-protobuf 3.2.0 → 3.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of google-protobuf might be problematic. Click here for more details.
- checksums.yaml +5 -5
- data/ext/google/protobuf_c/defs.c +575 -81
- data/ext/google/protobuf_c/encode_decode.c +456 -149
- data/ext/google/protobuf_c/extconf.rb +15 -2
- data/ext/google/protobuf_c/map.c +47 -3
- data/ext/google/protobuf_c/message.c +308 -82
- data/ext/google/protobuf_c/protobuf.c +7 -3
- data/ext/google/protobuf_c/protobuf.h +86 -12
- data/ext/google/protobuf_c/repeated_field.c +10 -4
- data/ext/google/protobuf_c/storage.c +286 -117
- data/ext/google/protobuf_c/upb.c +14482 -10935
- data/ext/google/protobuf_c/upb.h +2401 -613
- data/ext/google/protobuf_c/wrap_memcpy.c +51 -0
- data/lib/google/protobuf.rb +5 -4
- data/lib/google/protobuf/any_pb.rb +5 -3
- data/lib/google/protobuf/api_pb.rb +23 -21
- data/lib/google/protobuf/duration_pb.rb +5 -3
- data/lib/google/protobuf/empty_pb.rb +3 -1
- data/lib/google/protobuf/field_mask_pb.rb +4 -2
- data/lib/google/protobuf/message_exts.rb +2 -2
- data/lib/google/protobuf/repeated_field.rb +3 -3
- data/lib/google/protobuf/source_context_pb.rb +4 -2
- data/lib/google/protobuf/struct_pb.rb +19 -17
- data/lib/google/protobuf/timestamp_pb.rb +5 -3
- data/lib/google/protobuf/type_pb.rb +68 -66
- data/lib/google/protobuf/well_known_types.rb +13 -1
- data/lib/google/protobuf/wrappers_pb.rb +28 -26
- data/tests/basic.rb +206 -1023
- data/tests/generated_code_test.rb +6 -2
- metadata +5 -5
@@ -5,6 +5,7 @@ $LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__)))
|
|
5
5
|
|
6
6
|
require 'generated_code_pb'
|
7
7
|
require 'test_import_pb'
|
8
|
+
require 'test_ruby_package_pb'
|
8
9
|
require 'test/unit'
|
9
10
|
|
10
11
|
class GeneratedCodeTest < Test::Unit::TestCase
|
@@ -13,7 +14,10 @@ class GeneratedCodeTest < Test::Unit::TestCase
|
|
13
14
|
# is to ensure that the output of the code generator is valid Ruby and
|
14
15
|
# successfully creates message definitions and classes, not to test every
|
15
16
|
# aspect of the extension (basic.rb is for that).
|
16
|
-
|
17
|
-
|
17
|
+
A::B::C::TestMessage.new
|
18
|
+
A::B::C::TestMessage::NestedMessage.new
|
19
|
+
A::B::C::TestLowercaseNested::Lowercase.new
|
20
|
+
FooBar::TestImportedMessage.new
|
21
|
+
A::B::TestRubyPackageMessage.new
|
18
22
|
end
|
19
23
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-protobuf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.9.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Protobuf Authors
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-08-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake-compiler-dock
|
@@ -90,6 +90,7 @@ files:
|
|
90
90
|
- ext/google/protobuf_c/storage.c
|
91
91
|
- ext/google/protobuf_c/upb.c
|
92
92
|
- ext/google/protobuf_c/upb.h
|
93
|
+
- ext/google/protobuf_c/wrap_memcpy.c
|
93
94
|
- lib/google/protobuf.rb
|
94
95
|
- lib/google/protobuf/any_pb.rb
|
95
96
|
- lib/google/protobuf/api_pb.rb
|
@@ -119,15 +120,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
119
120
|
requirements:
|
120
121
|
- - ">="
|
121
122
|
- !ruby/object:Gem::Version
|
122
|
-
version: '
|
123
|
+
version: '2.3'
|
123
124
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
124
125
|
requirements:
|
125
126
|
- - ">="
|
126
127
|
- !ruby/object:Gem::Version
|
127
128
|
version: '0'
|
128
129
|
requirements: []
|
129
|
-
|
130
|
-
rubygems_version: 2.6.10
|
130
|
+
rubygems_version: 3.0.4
|
131
131
|
signing_key:
|
132
132
|
specification_version: 4
|
133
133
|
summary: Protocol Buffers
|