google-protobuf 3.0.0 → 3.20.0

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.

Files changed (46) hide show
  1. checksums.yaml +5 -5
  2. data/ext/google/protobuf_c/convert.c +361 -0
  3. data/ext/google/protobuf_c/convert.h +75 -0
  4. data/ext/google/protobuf_c/defs.c +760 -1243
  5. data/ext/google/protobuf_c/defs.h +107 -0
  6. data/ext/google/protobuf_c/extconf.rb +22 -4
  7. data/ext/google/protobuf_c/map.c +342 -450
  8. data/ext/google/protobuf_c/map.h +66 -0
  9. data/ext/google/protobuf_c/message.c +1108 -284
  10. data/ext/google/protobuf_c/message.h +104 -0
  11. data/ext/google/protobuf_c/protobuf.c +416 -51
  12. data/ext/google/protobuf_c/protobuf.h +53 -472
  13. data/ext/google/protobuf_c/repeated_field.c +318 -317
  14. data/ext/google/protobuf_c/repeated_field.h +63 -0
  15. data/ext/google/protobuf_c/ruby-upb.c +11115 -0
  16. data/ext/google/protobuf_c/ruby-upb.h +5612 -0
  17. data/ext/google/protobuf_c/third_party/utf8_range/LICENSE +21 -0
  18. data/ext/google/protobuf_c/third_party/utf8_range/naive.c +92 -0
  19. data/ext/google/protobuf_c/third_party/utf8_range/range2-neon.c +157 -0
  20. data/ext/google/protobuf_c/third_party/utf8_range/range2-sse.c +170 -0
  21. data/ext/google/protobuf_c/third_party/utf8_range/utf8_range.h +9 -0
  22. data/ext/google/protobuf_c/wrap_memcpy.c +52 -0
  23. data/lib/google/protobuf/any_pb.rb +6 -4
  24. data/lib/google/protobuf/api_pb.rb +27 -24
  25. data/lib/google/protobuf/descriptor_dsl.rb +465 -0
  26. data/lib/google/protobuf/descriptor_pb.rb +269 -0
  27. data/lib/google/protobuf/duration_pb.rb +6 -4
  28. data/lib/google/protobuf/empty_pb.rb +4 -2
  29. data/lib/google/protobuf/field_mask_pb.rb +5 -3
  30. data/lib/google/protobuf/message_exts.rb +4 -4
  31. data/lib/google/protobuf/repeated_field.rb +4 -4
  32. data/lib/google/protobuf/source_context_pb.rb +5 -3
  33. data/lib/google/protobuf/struct_pb.rb +23 -21
  34. data/lib/google/protobuf/timestamp_pb.rb +6 -4
  35. data/lib/google/protobuf/type_pb.rb +77 -74
  36. data/lib/google/protobuf/well_known_types.rb +240 -0
  37. data/lib/google/protobuf/wrappers_pb.rb +37 -35
  38. data/lib/google/protobuf.rb +12 -9
  39. data/tests/basic.rb +489 -1001
  40. data/tests/generated_code_test.rb +6 -2
  41. data/tests/stress.rb +1 -1
  42. metadata +39 -34
  43. data/ext/google/protobuf_c/encode_decode.c +0 -1264
  44. data/ext/google/protobuf_c/storage.c +0 -893
  45. data/ext/google/protobuf_c/upb.c +0 -12812
  46. data/ext/google/protobuf_c/upb.h +0 -8569
@@ -5,6 +5,7 @@ $LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__)))
5
5
 
6
6
  require 'generated_code_pb'
7
7
  require 'test_import_pb'
8
+ require 'test_ruby_package_pb'
8
9
  require 'test/unit'
9
10
 
10
11
  class GeneratedCodeTest < Test::Unit::TestCase
@@ -13,7 +14,10 @@ class GeneratedCodeTest < Test::Unit::TestCase
13
14
  # is to ensure that the output of the code generator is valid Ruby and
14
15
  # successfully creates message definitions and classes, not to test every
15
16
  # aspect of the extension (basic.rb is for that).
16
- m = A::B::C::TestMessage.new()
17
- m2 = FooBar::TestImportedMessage.new()
17
+ A::B::C::TestMessage.new
18
+ A::B::C::TestMessage::NestedMessage.new
19
+ A::B::C::TestLowercaseNested::Lowercase.new
20
+ FooBar::TestImportedMessage.new
21
+ A::B::TestRubyPackageMessage.new
18
22
  end
19
23
  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,71 +1,63 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-protobuf
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.20.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Protobuf Authors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-29 00:00:00.000000000 Z
11
+ date: 2022-04-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake-compiler-dock
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: 1.2.1
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: '0'
26
+ version: 1.2.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake-compiler
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '0'
33
+ version: 1.1.0
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ">="
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '0'
40
+ version: 1.1.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: test-unit
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ">="
46
- - !ruby/object:Gem::Version
47
- version: '0'
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - ">="
45
+ - - "~>"
53
46
  - !ruby/object:Gem::Version
54
- version: '0'
55
- - !ruby/object:Gem::Dependency
56
- name: rubygems-tasks
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
47
+ version: '3.0'
59
48
  - - ">="
60
49
  - !ruby/object:Gem::Version
61
- version: '0'
50
+ version: 3.0.9
62
51
  type: :development
63
52
  prerelease: false
64
53
  version_requirements: !ruby/object:Gem::Requirement
65
54
  requirements:
55
+ - - "~>"
56
+ - !ruby/object:Gem::Version
57
+ version: '3.0'
66
58
  - - ">="
67
59
  - !ruby/object:Gem::Version
68
- version: '0'
60
+ version: 3.0.9
69
61
  description: Protocol Buffers are Google's data interchange format.
70
62
  email: protobuf@googlegroups.com
71
63
  executables: []
@@ -73,20 +65,32 @@ extensions:
73
65
  - ext/google/protobuf_c/extconf.rb
74
66
  extra_rdoc_files: []
75
67
  files:
68
+ - ext/google/protobuf_c/convert.c
69
+ - ext/google/protobuf_c/convert.h
76
70
  - ext/google/protobuf_c/defs.c
77
- - ext/google/protobuf_c/encode_decode.c
71
+ - ext/google/protobuf_c/defs.h
78
72
  - ext/google/protobuf_c/extconf.rb
79
73
  - ext/google/protobuf_c/map.c
74
+ - ext/google/protobuf_c/map.h
80
75
  - ext/google/protobuf_c/message.c
76
+ - ext/google/protobuf_c/message.h
81
77
  - ext/google/protobuf_c/protobuf.c
82
78
  - ext/google/protobuf_c/protobuf.h
83
79
  - ext/google/protobuf_c/repeated_field.c
84
- - ext/google/protobuf_c/storage.c
85
- - ext/google/protobuf_c/upb.c
86
- - ext/google/protobuf_c/upb.h
80
+ - ext/google/protobuf_c/repeated_field.h
81
+ - ext/google/protobuf_c/ruby-upb.c
82
+ - ext/google/protobuf_c/ruby-upb.h
83
+ - ext/google/protobuf_c/third_party/utf8_range/LICENSE
84
+ - ext/google/protobuf_c/third_party/utf8_range/naive.c
85
+ - ext/google/protobuf_c/third_party/utf8_range/range2-neon.c
86
+ - ext/google/protobuf_c/third_party/utf8_range/range2-sse.c
87
+ - ext/google/protobuf_c/third_party/utf8_range/utf8_range.h
88
+ - ext/google/protobuf_c/wrap_memcpy.c
87
89
  - lib/google/protobuf.rb
88
90
  - lib/google/protobuf/any_pb.rb
89
91
  - lib/google/protobuf/api_pb.rb
92
+ - lib/google/protobuf/descriptor_dsl.rb
93
+ - lib/google/protobuf/descriptor_pb.rb
90
94
  - lib/google/protobuf/duration_pb.rb
91
95
  - lib/google/protobuf/empty_pb.rb
92
96
  - lib/google/protobuf/field_mask_pb.rb
@@ -96,14 +100,16 @@ files:
96
100
  - lib/google/protobuf/struct_pb.rb
97
101
  - lib/google/protobuf/timestamp_pb.rb
98
102
  - lib/google/protobuf/type_pb.rb
103
+ - lib/google/protobuf/well_known_types.rb
99
104
  - lib/google/protobuf/wrappers_pb.rb
100
105
  - tests/basic.rb
101
106
  - tests/generated_code_test.rb
102
107
  - tests/stress.rb
103
108
  homepage: https://developers.google.com/protocol-buffers
104
109
  licenses:
105
- - BSD
106
- metadata: {}
110
+ - BSD-3-Clause
111
+ metadata:
112
+ source_code_uri: https://github.com/protocolbuffers/protobuf/tree/v3.20.0/ruby
107
113
  post_install_message:
108
114
  rdoc_options: []
109
115
  require_paths:
@@ -112,15 +118,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
112
118
  requirements:
113
119
  - - ">="
114
120
  - !ruby/object:Gem::Version
115
- version: '0'
121
+ version: '2.3'
116
122
  required_rubygems_version: !ruby/object:Gem::Requirement
117
123
  requirements:
118
124
  - - ">="
119
125
  - !ruby/object:Gem::Version
120
126
  version: '0'
121
127
  requirements: []
122
- rubyforge_project:
123
- rubygems_version: 2.5.1
128
+ rubygems_version: 3.3.10
124
129
  signing_key:
125
130
  specification_version: 4
126
131
  summary: Protocol Buffers