google-protobuf 3.6.0-x86-linux → 3.6.1-x86-linux

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 47b5ab58e98b499a6d2e1cdf0612572a011e0e103e42f94c09530faebc18fd8e
4
- data.tar.gz: 7ebb782b8e7ce6d56b0c4edb197c89c78e6f1e648201601e55768b54b805dfd0
3
+ metadata.gz: 7667454cd59977c5a272e88c81870cdb5d5f6d4a342a6b19c573e20ff3baedff
4
+ data.tar.gz: 668ef17b67ea46d1eeb5991dc3a3e68787e09321f639098f55ec1b0ae4a2571e
5
5
  SHA512:
6
- metadata.gz: 97c23abd82faeb77da290e870cc257aa9329d2d92063d3945f0fcfdbccecb56212654f96afae075b6fcfcea7b7ec3c0ca61b17bff775ce79cb05d62819f6d359
7
- data.tar.gz: 2be97edb819c0387bd058695b9f7a747955a962aa850074858fc967aeff88d8b326f195d622ab63b33d4b4e21c4e1d07fc28232610a57d356842b92e59ed15be
6
+ metadata.gz: 302763ef3c277294e212a2e3ca266f3f68eb3286e04199d5e69bccd1e0da37239d95047a79d128b790191ee3a2953f5426e70d8b09f77c45bca53f6091f0d3d0
7
+ data.tar.gz: cf18bafe8865c96138ee45bfb04b17f3c382da9cba6d86d880f6fb83433f0624570167e6eb2c9a3e54c85a2975b7e8fa9d94cf1f26854df67b6e85a11aa75a99
@@ -1106,6 +1106,13 @@ static void putmsg(VALUE msg_rb, const Descriptor* desc,
1106
1106
 
1107
1107
  TypedData_Get_Struct(msg_rb, MessageHeader, &Message_type, msg);
1108
1108
 
1109
+ if (desc != msg->descriptor) {
1110
+ rb_raise(rb_eArgError,
1111
+ "The type of given msg is '%s', expect '%s'.",
1112
+ upb_msgdef_fullname(msg->descriptor->msgdef),
1113
+ upb_msgdef_fullname(desc->msgdef));
1114
+ }
1115
+
1109
1116
  for (upb_msg_field_begin(&i, desc->msgdef);
1110
1117
  !upb_msg_field_done(&i);
1111
1118
  upb_msg_field_next(&i)) {
@@ -177,7 +177,7 @@ void native_slot_set_value_and_case(upb_fieldtype_t type, VALUE type_class,
177
177
  }
178
178
  case UPB_TYPE_STRING:
179
179
  if (CLASS_OF(value) == rb_cSymbol) {
180
- value = rb_funcall(value, rb_intern("to_s"), 0, NULL);
180
+ value = rb_funcall(value, rb_intern("to_s"), 0);
181
181
  } else if (CLASS_OF(value) != rb_cString) {
182
182
  rb_raise(rb_eTypeError, "Invalid argument for string field.");
183
183
  }
@@ -207,7 +207,7 @@ void native_slot_set_value_and_case(upb_fieldtype_t type, VALUE type_class,
207
207
  case UPB_TYPE_ENUM: {
208
208
  int32_t int_val = 0;
209
209
  if (TYPE(value) == T_STRING) {
210
- value = rb_funcall(value, rb_intern("to_sym"), 0, NULL);
210
+ value = rb_funcall(value, rb_intern("to_sym"), 0);
211
211
  } else if (!is_ruby_num(value) && TYPE(value) != T_SYMBOL) {
212
212
  rb_raise(rb_eTypeError,
213
213
  "Expected number or symbol type for enum field.");
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -336,7 +336,9 @@ module BasicTest
336
336
 
337
337
  # strings are immutable so we can't do this, but serialize should catch it.
338
338
  m.optional_string = "asdf".encode!('UTF-8')
339
- assert_raise RuntimeError do
339
+ # Ruby 2.5 changed to raise FrozenError. However, assert_raise don't
340
+ # accept subclass. Don't specify type here.
341
+ assert_raise do
340
342
  m.optional_string.encode!('ASCII-8BIT')
341
343
  end
342
344
  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.6.0
4
+ version: 3.6.1
5
5
  platform: x86-linux
6
6
  authors:
7
7
  - Protobuf Authors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-06-22 00:00:00.000000000 Z
11
+ date: 2018-07-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake-compiler-dock