google-protobuf 3.5.1.2-x86-mingw32 → 3.6.0-x86-mingw32
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/extconf.rb +3 -1
- data/ext/google/protobuf_c/message.c +2 -2
- data/ext/google/protobuf_c/storage.c +12 -4
- data/lib/google/2.0/protobuf_c.so +0 -0
- data/lib/google/2.1/protobuf_c.so +0 -0
- data/lib/google/2.2/protobuf_c.so +0 -0
- data/lib/google/2.3/protobuf_c.so +0 -0
- data/lib/google/2.4/protobuf_c.so +0 -0
- data/lib/google/2.5/protobuf_c.so +0 -0
- data/lib/google/protobuf.rb +2 -2
- data/lib/google/protobuf/message_exts.rb +2 -2
- data/lib/google/protobuf/repeated_field.rb +2 -2
- data/tests/generated_code_test.rb +2 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 21cb98947ceb60e539d5e17d91bb2c1776d7afce6ddf42fa7598caef7248d2fd
|
4
|
+
data.tar.gz: b12b875f691d822e8a3dd0876155fc46e789caa943607c551ab5a807a8d890a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 37041c185969eeeb156f8146f33342bdca11216b0583a11cabd027e1b3823114ff8ca3fed94ab49fa771056c6b39e10c9c5fdf910dad9d27875d0b83c3e32527
|
7
|
+
data.tar.gz: afbdc52dbeef8f08a88ea00cc4e9dbe958c446558053d9268c8dd4ed19c4f8c02a9e88a53764da2b07bb5851519c6b1cf636bc73e7a8e3ab3955695bdc922771
|
@@ -540,9 +540,9 @@ VALUE build_class_from_descriptor(Descriptor* desc) {
|
|
540
540
|
get_def_obj(desc->msgdef));
|
541
541
|
rb_define_alloc_func(klass, Message_alloc);
|
542
542
|
rb_require("google/protobuf/message_exts");
|
543
|
-
rb_include_module(klass, rb_eval_string("Google::Protobuf::MessageExts"));
|
543
|
+
rb_include_module(klass, rb_eval_string("::Google::Protobuf::MessageExts"));
|
544
544
|
rb_extend_object(
|
545
|
-
klass, rb_eval_string("Google::Protobuf::MessageExts::ClassMethods"));
|
545
|
+
klass, rb_eval_string("::Google::Protobuf::MessageExts::ClassMethods"));
|
546
546
|
|
547
547
|
rb_define_method(klass, "method_missing",
|
548
548
|
Message_method_missing, -1);
|
@@ -606,12 +606,20 @@ static void check_repeated_field_type(VALUE val, const upb_fielddef* field) {
|
|
606
606
|
rb_raise(rb_eTypeError, "Repeated field array has wrong element type");
|
607
607
|
}
|
608
608
|
|
609
|
-
if (self->field_type == UPB_TYPE_MESSAGE
|
610
|
-
self->field_type == UPB_TYPE_ENUM) {
|
609
|
+
if (self->field_type == UPB_TYPE_MESSAGE) {
|
611
610
|
if (self->field_type_class !=
|
612
|
-
get_def_obj(upb_fielddef_subdef(field))) {
|
611
|
+
Descriptor_msgclass(get_def_obj(upb_fielddef_subdef(field)))) {
|
613
612
|
rb_raise(rb_eTypeError,
|
614
|
-
"Repeated field array has wrong message
|
613
|
+
"Repeated field array has wrong message class");
|
614
|
+
}
|
615
|
+
}
|
616
|
+
|
617
|
+
|
618
|
+
if (self->field_type == UPB_TYPE_ENUM) {
|
619
|
+
if (self->field_type_class !=
|
620
|
+
EnumDescriptor_enummodule(get_def_obj(upb_fielddef_subdef(field)))) {
|
621
|
+
rb_raise(rb_eTypeError,
|
622
|
+
"Repeated field array has wrong enum class");
|
615
623
|
}
|
616
624
|
}
|
617
625
|
}
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/lib/google/protobuf.rb
CHANGED
@@ -150,12 +150,12 @@ module Google
|
|
150
150
|
end
|
151
151
|
|
152
152
|
|
153
|
-
%w(delete delete_at
|
153
|
+
%w(delete delete_at shift slice! unshift).each do |method_name|
|
154
154
|
define_array_wrapper_method(method_name)
|
155
155
|
end
|
156
156
|
|
157
157
|
|
158
|
-
%w(collect! compact! fill flatten! insert reverse!
|
158
|
+
%w(collect! compact! delete_if fill flatten! insert reverse!
|
159
159
|
rotate! select! shuffle! sort! sort_by! uniq!).each do |method_name|
|
160
160
|
define_array_wrapper_with_result_method(method_name)
|
161
161
|
end
|
@@ -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
|
@@ -15,5 +16,6 @@ class GeneratedCodeTest < Test::Unit::TestCase
|
|
15
16
|
# aspect of the extension (basic.rb is for that).
|
16
17
|
m = A::B::C::TestMessage.new()
|
17
18
|
m2 = FooBar::TestImportedMessage.new()
|
19
|
+
m3 = A::B::TestRubyPackageMessage.new()
|
18
20
|
end
|
19
21
|
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.6.0
|
5
5
|
platform: x86-mingw32
|
6
6
|
authors:
|
7
7
|
- Protobuf Authors
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-06-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake-compiler-dock
|
@@ -133,7 +133,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
133
133
|
version: '0'
|
134
134
|
requirements: []
|
135
135
|
rubyforge_project:
|
136
|
-
rubygems_version: 2.
|
136
|
+
rubygems_version: 2.7.3
|
137
137
|
signing_key:
|
138
138
|
specification_version: 4
|
139
139
|
summary: Protocol Buffers
|