google-protobuf 3.18.3-x64-mingw32 → 3.19.0.rc.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: f6d8ec0e9b12322459fb784d7c19c7095bd4f4f4c75b7c0fb196478a5ad64b3c
4
- data.tar.gz: 0f5beaeb354548206e0b52087b5a7410abc8d2eea08da3da122f0584888d1060
3
+ metadata.gz: 9efe95c439aa44d4d61238d8105b1d5bb30609ed328828bb2fd44eaf6173f1f5
4
+ data.tar.gz: 6dc56e9fc92681f91f3254443d47070fd21684ee0cbbe4f2836fbd1eaa871f9f
5
5
  SHA512:
6
- metadata.gz: d760794425532bec55495155a6ddef615a07cf8c5e5b3c55871a25a29e16cac4312c4e10117395f6e95dadce2a3f6e2ac6c8820456d02bed0f862681a3d65f94
7
- data.tar.gz: 887472417e9d07095510e640c09e7d703f568497ebc05ff48b0e457e087415ba3824953007152e55385ab68179fa8cb88aeeeeced35bc48aee9e3f0bb15ea9b1
6
+ metadata.gz: f02515606b6bdc2517dbc23391b889516b598606c26392eb971bf8d3c814b2f4cc598facf09fff146ea744ef5ca2aef5b75ff58315d7be742bda9d25021180b0
7
+ data.tar.gz: 7563ff5a3b24cb71c0a92aa75299e26734f11e2954b9e2926068add19b19a87c1ec2b0033b12dfc8b3a097e3acacea42f85fc3bde630cb889c80c5b8e0471fc1
@@ -680,7 +680,10 @@ void Map_register(VALUE module) {
680
680
  rb_define_method(klass, "delete", Map_delete, 1);
681
681
  rb_define_method(klass, "clear", Map_clear, 0);
682
682
  rb_define_method(klass, "length", Map_length, 0);
683
+ rb_define_method(klass, "size", Map_length, 0);
683
684
  rb_define_method(klass, "dup", Map_dup, 0);
685
+ // Also define #clone so that we don't inherit Object#clone.
686
+ rb_define_method(klass, "clone", Map_dup, 0);
684
687
  rb_define_method(klass, "==", Map_eq, 1);
685
688
  rb_define_method(klass, "freeze", Map_freeze, 0);
686
689
  rb_define_method(klass, "hash", Map_hash, 0);
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -85,6 +85,11 @@ module Google
85
85
  def from_time(time)
86
86
  self.seconds = time.to_i
87
87
  self.nanos = time.nsec
88
+ self
89
+ end
90
+
91
+ def self.from_time(time)
92
+ new.from_time(time)
88
93
  end
89
94
 
90
95
  def to_i
@@ -51,9 +51,9 @@ else
51
51
  require 'google/protobuf_c'
52
52
  end
53
53
 
54
- require 'google/protobuf/descriptor_dsl'
55
54
  end
56
55
 
56
+ require 'google/protobuf/descriptor_dsl'
57
57
  require 'google/protobuf/repeated_field'
58
58
 
59
59
  module Google
data/tests/basic.rb CHANGED
@@ -66,7 +66,8 @@ module BasicTest
66
66
  def test_issue_8559_crash
67
67
  msg = TestMessage.new
68
68
  msg.repeated_int32 = ::Google::Protobuf::RepeatedField.new(:int32, [1, 2, 3])
69
- GC.start(full_mark: true, immediate_sweep: true)
69
+ # TODO: Remove the platform check once https://github.com/jruby/jruby/issues/6818 is released in JRuby 9.3.0.0
70
+ GC.start(full_mark: true, immediate_sweep: true) unless RUBY_PLATFORM == "java"
70
71
  TestMessage.encode(msg)
71
72
  end
72
73
 
@@ -619,5 +620,21 @@ module BasicTest
619
620
  assert_raise(FrozenErrorType) { m.map_string_int32.delete('a') }
620
621
  assert_raise(FrozenErrorType) { m.map_string_int32.clear }
621
622
  end
623
+
624
+ def test_map_length
625
+ m = proto_module::MapMessage.new
626
+ assert_equal 0, m.map_string_int32.length
627
+ assert_equal 0, m.map_string_msg.length
628
+ assert_equal 0, m.map_string_int32.size
629
+ assert_equal 0, m.map_string_msg.size
630
+
631
+ m.map_string_int32['a'] = 1
632
+ m.map_string_int32['b'] = 2
633
+ m.map_string_msg['a'] = proto_module::TestMessage2.new
634
+ assert_equal 2, m.map_string_int32.length
635
+ assert_equal 1, m.map_string_msg.length
636
+ assert_equal 2, m.map_string_int32.size
637
+ assert_equal 1, m.map_string_msg.size
638
+ end
622
639
  end
623
640
  end
data/tests/stress.rb CHANGED
@@ -30,7 +30,7 @@ module StressTest
30
30
  100_000.times do
31
31
  mnew = TestMessage.decode(data)
32
32
  mnew = mnew.dup
33
- assert_equal mnew.inspect, m.inspect
33
+ assert_equal m.inspect, mnew.inspect
34
34
  assert TestMessage.encode(mnew) == data
35
35
  end
36
36
  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.18.3
4
+ version: 3.19.0.rc.1
5
5
  platform: x64-mingw32
6
6
  authors:
7
7
  - Protobuf Authors
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-09-14 00:00:00.000000000 Z
11
+ date: 2021-10-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake-compiler-dock
@@ -64,20 +64,6 @@ dependencies:
64
64
  - - ">="
65
65
  - !ruby/object:Gem::Version
66
66
  version: 3.0.9
67
- - !ruby/object:Gem::Dependency
68
- name: rubygems-tasks
69
- requirement: !ruby/object:Gem::Requirement
70
- requirements:
71
- - - "~>"
72
- - !ruby/object:Gem::Version
73
- version: 0.2.4
74
- type: :development
75
- prerelease: false
76
- version_requirements: !ruby/object:Gem::Requirement
77
- requirements:
78
- - - "~>"
79
- - !ruby/object:Gem::Version
80
- version: 0.2.4
81
67
  description: Protocol Buffers are Google's data interchange format.
82
68
  email: protobuf@googlegroups.com
83
69
  executables: []
@@ -100,6 +86,8 @@ files:
100
86
  - ext/google/protobuf_c/ruby-upb.c
101
87
  - ext/google/protobuf_c/ruby-upb.h
102
88
  - ext/google/protobuf_c/wrap_memcpy.c
89
+ - lib/google/2.3/protobuf_c.so
90
+ - lib/google/2.4/protobuf_c.so
103
91
  - lib/google/2.5/protobuf_c.so
104
92
  - lib/google/2.6/protobuf_c.so
105
93
  - lib/google/2.7/protobuf_c.so
@@ -127,8 +115,8 @@ homepage: https://developers.google.com/protocol-buffers
127
115
  licenses:
128
116
  - BSD-3-Clause
129
117
  metadata:
130
- source_code_uri: https://github.com/protocolbuffers/protobuf/tree/v3.18.3/ruby
131
- post_install_message:
118
+ source_code_uri: https://github.com/protocolbuffers/protobuf/tree/v3.19.0-rc1/ruby
119
+ post_install_message:
132
120
  rdoc_options: []
133
121
  require_paths:
134
122
  - lib
@@ -136,18 +124,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
136
124
  requirements:
137
125
  - - ">="
138
126
  - !ruby/object:Gem::Version
139
- version: '2.5'
127
+ version: '2.3'
140
128
  - - "<"
141
129
  - !ruby/object:Gem::Version
142
130
  version: 3.1.dev
143
131
  required_rubygems_version: !ruby/object:Gem::Requirement
144
132
  requirements:
145
- - - ">="
133
+ - - ">"
146
134
  - !ruby/object:Gem::Version
147
- version: '0'
135
+ version: 1.3.1
148
136
  requirements: []
149
- rubygems_version: 3.3.4
150
- signing_key:
137
+ rubygems_version: 3.2.3
138
+ signing_key:
151
139
  specification_version: 4
152
140
  summary: Protocol Buffers
153
141
  test_files: