google-protobuf 3.6.0-x86-mingw32 → 3.6.1-x86-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: 21cb98947ceb60e539d5e17d91bb2c1776d7afce6ddf42fa7598caef7248d2fd
4
- data.tar.gz: b12b875f691d822e8a3dd0876155fc46e789caa943607c551ab5a807a8d890a2
3
+ metadata.gz: 8ae99c60d07ea472fe76ad66afb1fca5a493dce9f0ed696dfa79b6ec08b61236
4
+ data.tar.gz: 211a0435909b906b2ad3492fc364c9a6466ce71f474eb1acb766be2c7d3106df
5
5
  SHA512:
6
- metadata.gz: 37041c185969eeeb156f8146f33342bdca11216b0583a11cabd027e1b3823114ff8ca3fed94ab49fa771056c6b39e10c9c5fdf910dad9d27875d0b83c3e32527
7
- data.tar.gz: afbdc52dbeef8f08a88ea00cc4e9dbe958c446558053d9268c8dd4ed19c4f8c02a9e88a53764da2b07bb5851519c6b1cf636bc73e7a8e3ab3955695bdc922771
6
+ metadata.gz: 2b05fd47b557e1c5e6e486c573db3d192bbe3ce0d9b54362b6fc42c2f58214a67ba5d9382209ab4f66d522ad8f25462bee0f35e772561680e39703bccdf43cc8
7
+ data.tar.gz: be78be18ad0273d1d911d7d4cc06479ede0e9ea578242227534edd43f1187ddecae028ee660070144209f9717769c417ad914f3f829e7c644c6a379cc324d106
@@ -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-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