google-protobuf 3.6.0-x64-mingw32 → 3.6.1-x64-mingw32

Sign up to get free protection for your applications and to get access to all the features.

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: 5bf48c05cc15f69fb9372a2586421c56798cb7c69e5706d4dd42327ebfa66489
4
- data.tar.gz: 20dd0468bf3264eeb33909f581ab6282007c75909f068ae91d6ac47d7d55a164
3
+ metadata.gz: 11fb0823c6031696bd81f02712b69a05faf30d49855314b64c82bb6f7451e19f
4
+ data.tar.gz: 58fe90c1bae09225c4f49d7581811ed258934c1da936172b4456848f29db40d8
5
5
  SHA512:
6
- metadata.gz: 66b68fc8e54f80fdfd53a24a706048b6b837a4bba364d5a58ec67af089a327d4d9c1965093e31173277447dd080f09e275c389115c6a45f03e01fe814be6ba5a
7
- data.tar.gz: 44152247b3cb94334a46ed99a954015b30dbb6d007ee5b7a1bb9ffd7e67d795ae44b4e4f95f34eee51df133725887c6344d405f6a9319ad75ea400e9889c083c
6
+ metadata.gz: 68c0e8957c44128d310a8d9dd28a1ac6c851e811f096491b6e1d5ed75d5df51b99de9740df38b977677e1742948bfe683a1ea5b0620172e85cc251303c6a5e07
7
+ data.tar.gz: adcd67769f32a5d0ae350a2a726dd2ca2f951ae9da380dae26482601a82f05c3585ba581e2e30ddff62eba43dabdcfbcd163d41a564329b7e406cb4754192fef
@@ -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: x64-mingw32
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