google-protobuf 3.15.3-x86-linux → 3.15.4-x86-linux

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: baa9d45f0c885758e32b6d221977ef378567b0296dd0aa15b5b2e28801a662bd
4
- data.tar.gz: 33c18b9fb8e2de390a19cec01d5f73bbc2b2089dd1bf3a96ead061822007437d
3
+ metadata.gz: 7bc66aab39a0af4b61aeb262167e2d217be09e7e13f8768211c27e0b210d9bbe
4
+ data.tar.gz: 99b03c4e90cf0a3f1794fa8a3038749b8431e6ad590b5330db769d953e29a8d6
5
5
  SHA512:
6
- metadata.gz: 6fee0801f9c427747d0511023a81fa2d6199308178b08e42c4e75af8277263311b4a6057e0fabb4befe97eebae67e04d6e3694cf9ff0e94a2670128d4b3239df
7
- data.tar.gz: 436d37545240010cb2bcc0d5429b2727ba81c161cb95486a5d6a2a40ef09675eee6eb59eb512c4a79fc1fd30ea5bc7f1fc82deb6b9f1cb139e023778fcc15398
6
+ metadata.gz: ccfb526313a6d39c92f2dad29c5d8f9c6818c919de5d35d59aa21c784346e72b1898d8fff861fa7991567a2438ea3bba94ab8592e044745f550b5cbc0da97e88
7
+ data.tar.gz: 75dde0006ec8f2fc78c7c107316081bbe60c8fde6670ac79f0640be98d05ad01b548817120f572c9ddcd1e50b59b3e444e79c251eaf4c6147a66e18be9fe213a
@@ -1250,7 +1250,9 @@ upb_msg* Message_deep_copy(const upb_msg* msg, const upb_msgdef* m,
1250
1250
 
1251
1251
  const upb_msg* Message_GetUpbMessage(VALUE value, const upb_msgdef* m,
1252
1252
  const char* name, upb_arena* arena) {
1253
- if (value == Qnil) return NULL;
1253
+ if (value == Qnil) {
1254
+ rb_raise(cTypeError, "nil message not allowed here.");
1255
+ }
1254
1256
 
1255
1257
  VALUE klass = CLASS_OF(value);
1256
1258
  VALUE desc_rb = rb_ivar_get(klass, descriptor_instancevar_interned);
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
data/tests/basic.rb CHANGED
@@ -52,10 +52,15 @@ module BasicTest
52
52
 
53
53
  outer = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Outer").msgclass
54
54
 
55
- outer_proto = outer.new(
55
+ outer.new(
56
56
  inners: []
57
- )
58
- outer_proto['inners'].to_s
57
+ )['inners'].to_s
58
+
59
+ assert_raise Google::Protobuf::TypeError do
60
+ outer.new(
61
+ inners: [nil]
62
+ ).to_s
63
+ end
59
64
  end
60
65
 
61
66
  def test_has_field
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.15.3
4
+ version: 3.15.4
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: 2021-02-25 00:00:00.000000000 Z
11
+ date: 2021-03-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake-compiler-dock
@@ -128,7 +128,7 @@ homepage: https://developers.google.com/protocol-buffers
128
128
  licenses:
129
129
  - BSD-3-Clause
130
130
  metadata:
131
- source_code_uri: https://github.com/protocolbuffers/protobuf/tree/v3.15.3/ruby
131
+ source_code_uri: https://github.com/protocolbuffers/protobuf/tree/v3.15.4/ruby
132
132
  post_install_message:
133
133
  rdoc_options: []
134
134
  require_paths: