protobuf-core 3.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (110) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +10 -0
  3. data/.rspec +2 -0
  4. data/.travis.yml +18 -0
  5. data/Gemfile +4 -0
  6. data/LICENSE.txt +21 -0
  7. data/README.md +23 -0
  8. data/Rakefile +5 -0
  9. data/bin/protoc-gen-ruby +16 -0
  10. data/lib/protobuf.rb +27 -0
  11. data/lib/protobuf/code_generator.rb +44 -0
  12. data/lib/protobuf/core.rb +2 -0
  13. data/lib/protobuf/core/version.rb +5 -0
  14. data/lib/protobuf/decoder.rb +73 -0
  15. data/lib/protobuf/deprecation.rb +112 -0
  16. data/lib/protobuf/descriptors.rb +3 -0
  17. data/lib/protobuf/descriptors/google/protobuf/compiler/plugin.pb.rb +54 -0
  18. data/lib/protobuf/descriptors/google/protobuf/descriptor.pb.rb +251 -0
  19. data/lib/protobuf/encoder.rb +67 -0
  20. data/lib/protobuf/enum.rb +303 -0
  21. data/lib/protobuf/exceptions.rb +9 -0
  22. data/lib/protobuf/field.rb +74 -0
  23. data/lib/protobuf/field/base_field.rb +267 -0
  24. data/lib/protobuf/field/bool_field.rb +59 -0
  25. data/lib/protobuf/field/bytes_field.rb +82 -0
  26. data/lib/protobuf/field/double_field.rb +25 -0
  27. data/lib/protobuf/field/enum_field.rb +68 -0
  28. data/lib/protobuf/field/field_array.rb +87 -0
  29. data/lib/protobuf/field/fixed32_field.rb +25 -0
  30. data/lib/protobuf/field/fixed64_field.rb +28 -0
  31. data/lib/protobuf/field/float_field.rb +41 -0
  32. data/lib/protobuf/field/int32_field.rb +21 -0
  33. data/lib/protobuf/field/int64_field.rb +21 -0
  34. data/lib/protobuf/field/integer_field.rb +23 -0
  35. data/lib/protobuf/field/message_field.rb +65 -0
  36. data/lib/protobuf/field/sfixed32_field.rb +27 -0
  37. data/lib/protobuf/field/sfixed64_field.rb +28 -0
  38. data/lib/protobuf/field/signed_integer_field.rb +29 -0
  39. data/lib/protobuf/field/sint32_field.rb +21 -0
  40. data/lib/protobuf/field/sint64_field.rb +21 -0
  41. data/lib/protobuf/field/string_field.rb +34 -0
  42. data/lib/protobuf/field/uint32_field.rb +21 -0
  43. data/lib/protobuf/field/uint64_field.rb +21 -0
  44. data/lib/protobuf/field/varint_field.rb +73 -0
  45. data/lib/protobuf/generators/base.rb +70 -0
  46. data/lib/protobuf/generators/enum_generator.rb +41 -0
  47. data/lib/protobuf/generators/extension_generator.rb +27 -0
  48. data/lib/protobuf/generators/field_generator.rb +131 -0
  49. data/lib/protobuf/generators/file_generator.rb +132 -0
  50. data/lib/protobuf/generators/group_generator.rb +105 -0
  51. data/lib/protobuf/generators/message_generator.rb +98 -0
  52. data/lib/protobuf/generators/printable.rb +160 -0
  53. data/lib/protobuf/logging.rb +39 -0
  54. data/lib/protobuf/message.rb +193 -0
  55. data/lib/protobuf/message/fields.rb +133 -0
  56. data/lib/protobuf/message/serialization.rb +89 -0
  57. data/lib/protobuf/optionable.rb +23 -0
  58. data/lib/protobuf/wire_type.rb +10 -0
  59. data/proto/dynamic_discovery.proto +44 -0
  60. data/proto/google/protobuf/compiler/plugin.proto +147 -0
  61. data/proto/google/protobuf/descriptor.proto +620 -0
  62. data/proto/rpc.proto +62 -0
  63. data/protobuf-core.gemspec +31 -0
  64. data/spec/bin/protoc-gen-ruby_spec.rb +23 -0
  65. data/spec/data/data.bin +3 -0
  66. data/spec/data/types.bin +0 -0
  67. data/spec/encoding/all_types_spec.rb +105 -0
  68. data/spec/encoding/extreme_values_spec.rb +0 -0
  69. data/spec/functional/class_inheritance_spec.rb +52 -0
  70. data/spec/functional/compile_and_require_spec.rb +29 -0
  71. data/spec/lib/protobuf/base_spec.rb +84 -0
  72. data/spec/lib/protobuf/code_generator_spec.rb +60 -0
  73. data/spec/lib/protobuf/enum_generator_spec.rb +73 -0
  74. data/spec/lib/protobuf/enum_spec.rb +265 -0
  75. data/spec/lib/protobuf/extension_generator_spec.rb +42 -0
  76. data/spec/lib/protobuf/field/bool_field_spec.rb +51 -0
  77. data/spec/lib/protobuf/field/field_array_spec.rb +69 -0
  78. data/spec/lib/protobuf/field/float_field_spec.rb +55 -0
  79. data/spec/lib/protobuf/field/int32_field_spec.rb +90 -0
  80. data/spec/lib/protobuf/field/string_field_spec.rb +45 -0
  81. data/spec/lib/protobuf/field_generator_spec.rb +102 -0
  82. data/spec/lib/protobuf/field_spec.rb +191 -0
  83. data/spec/lib/protobuf/file_generator_spec.rb +32 -0
  84. data/spec/lib/protobuf/message_generator_spec.rb +0 -0
  85. data/spec/lib/protobuf/message_spec.rb +526 -0
  86. data/spec/lib/protobuf/optionable_spec.rb +46 -0
  87. data/spec/lib/protobuf_spec.rb +45 -0
  88. data/spec/spec_helper.rb +9 -0
  89. data/spec/support/packed_field.rb +22 -0
  90. data/spec/support/test/all_types.data.bin +0 -0
  91. data/spec/support/test/all_types.data.txt +119 -0
  92. data/spec/support/test/bacon.proto +14 -0
  93. data/spec/support/test/defaults.pb.rb +27 -0
  94. data/spec/support/test/defaults.proto +9 -0
  95. data/spec/support/test/enum.pb.rb +61 -0
  96. data/spec/support/test/enum.proto +34 -0
  97. data/spec/support/test/extended.pb.rb +24 -0
  98. data/spec/support/test/extended.proto +10 -0
  99. data/spec/support/test/extreme_values.data.bin +0 -0
  100. data/spec/support/test/google_unittest.pb.rb +530 -0
  101. data/spec/support/test/google_unittest.proto +713 -0
  102. data/spec/support/test/google_unittest_import.pb.rb +39 -0
  103. data/spec/support/test/google_unittest_import.proto +64 -0
  104. data/spec/support/test/google_unittest_import_public.pb.rb +10 -0
  105. data/spec/support/test/google_unittest_import_public.proto +38 -0
  106. data/spec/support/test/multi_field_extensions.pb.rb +58 -0
  107. data/spec/support/test/multi_field_extensions.proto +33 -0
  108. data/spec/support/test/resource.pb.rb +106 -0
  109. data/spec/support/test/resource.proto +94 -0
  110. metadata +306 -0
metadata ADDED
@@ -0,0 +1,306 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: protobuf-core
3
+ version: !ruby/object:Gem::Version
4
+ version: 3.5.0
5
+ platform: ruby
6
+ authors:
7
+ - BJ Neilsen
8
+ - Brandon Dewitt
9
+ - Devin Christensen
10
+ - Adam Hutchison
11
+ - Michael Ries
12
+ autorequire:
13
+ bindir: bin
14
+ cert_chain: []
15
+ date: 2017-08-02 00:00:00.000000000 Z
16
+ dependencies:
17
+ - !ruby/object:Gem::Dependency
18
+ name: activesupport
19
+ requirement: !ruby/object:Gem::Requirement
20
+ requirements:
21
+ - - ">="
22
+ - !ruby/object:Gem::Version
23
+ version: '3.2'
24
+ type: :runtime
25
+ prerelease: false
26
+ version_requirements: !ruby/object:Gem::Requirement
27
+ requirements:
28
+ - - ">="
29
+ - !ruby/object:Gem::Version
30
+ version: '3.2'
31
+ - !ruby/object:Gem::Dependency
32
+ name: bundler
33
+ requirement: !ruby/object:Gem::Requirement
34
+ requirements:
35
+ - - "~>"
36
+ - !ruby/object:Gem::Version
37
+ version: '1.9'
38
+ type: :development
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ requirements:
42
+ - - "~>"
43
+ - !ruby/object:Gem::Version
44
+ version: '1.9'
45
+ - !ruby/object:Gem::Dependency
46
+ name: pry
47
+ requirement: !ruby/object:Gem::Requirement
48
+ requirements:
49
+ - - ">="
50
+ - !ruby/object:Gem::Version
51
+ version: '0'
52
+ type: :development
53
+ prerelease: false
54
+ version_requirements: !ruby/object:Gem::Requirement
55
+ requirements:
56
+ - - ">="
57
+ - !ruby/object:Gem::Version
58
+ version: '0'
59
+ - !ruby/object:Gem::Dependency
60
+ name: rake
61
+ requirement: !ruby/object:Gem::Requirement
62
+ requirements:
63
+ - - "~>"
64
+ - !ruby/object:Gem::Version
65
+ version: '10.0'
66
+ type: :development
67
+ prerelease: false
68
+ version_requirements: !ruby/object:Gem::Requirement
69
+ requirements:
70
+ - - "~>"
71
+ - !ruby/object:Gem::Version
72
+ version: '10.0'
73
+ - !ruby/object:Gem::Dependency
74
+ name: rspec
75
+ requirement: !ruby/object:Gem::Requirement
76
+ requirements:
77
+ - - ">="
78
+ - !ruby/object:Gem::Version
79
+ version: '3.2'
80
+ type: :development
81
+ prerelease: false
82
+ version_requirements: !ruby/object:Gem::Requirement
83
+ requirements:
84
+ - - ">="
85
+ - !ruby/object:Gem::Version
86
+ version: '3.2'
87
+ - !ruby/object:Gem::Dependency
88
+ name: ruby-prof
89
+ requirement: !ruby/object:Gem::Requirement
90
+ requirements:
91
+ - - ">="
92
+ - !ruby/object:Gem::Version
93
+ version: '0'
94
+ type: :development
95
+ prerelease: false
96
+ version_requirements: !ruby/object:Gem::Requirement
97
+ requirements:
98
+ - - ">="
99
+ - !ruby/object:Gem::Version
100
+ version: '0'
101
+ - !ruby/object:Gem::Dependency
102
+ name: timecop
103
+ requirement: !ruby/object:Gem::Requirement
104
+ requirements:
105
+ - - ">="
106
+ - !ruby/object:Gem::Version
107
+ version: '0'
108
+ type: :development
109
+ prerelease: false
110
+ version_requirements: !ruby/object:Gem::Requirement
111
+ requirements:
112
+ - - ">="
113
+ - !ruby/object:Gem::Version
114
+ version: '0'
115
+ description: Google Protocol Buffers serialization and compiler implementation for
116
+ Ruby.
117
+ email:
118
+ - bj.neilsen+protobuf@gmail.com
119
+ - brandonsdewitt+protobuf@gmail.com
120
+ - quixoten@gmail.com
121
+ - liveh2o@gmail.com
122
+ - michael@riesd.com
123
+ executables:
124
+ - protoc-gen-ruby
125
+ extensions: []
126
+ extra_rdoc_files: []
127
+ files:
128
+ - ".gitignore"
129
+ - ".rspec"
130
+ - ".travis.yml"
131
+ - Gemfile
132
+ - LICENSE.txt
133
+ - README.md
134
+ - Rakefile
135
+ - bin/protoc-gen-ruby
136
+ - lib/protobuf.rb
137
+ - lib/protobuf/code_generator.rb
138
+ - lib/protobuf/core.rb
139
+ - lib/protobuf/core/version.rb
140
+ - lib/protobuf/decoder.rb
141
+ - lib/protobuf/deprecation.rb
142
+ - lib/protobuf/descriptors.rb
143
+ - lib/protobuf/descriptors/google/protobuf/compiler/plugin.pb.rb
144
+ - lib/protobuf/descriptors/google/protobuf/descriptor.pb.rb
145
+ - lib/protobuf/encoder.rb
146
+ - lib/protobuf/enum.rb
147
+ - lib/protobuf/exceptions.rb
148
+ - lib/protobuf/field.rb
149
+ - lib/protobuf/field/base_field.rb
150
+ - lib/protobuf/field/bool_field.rb
151
+ - lib/protobuf/field/bytes_field.rb
152
+ - lib/protobuf/field/double_field.rb
153
+ - lib/protobuf/field/enum_field.rb
154
+ - lib/protobuf/field/field_array.rb
155
+ - lib/protobuf/field/fixed32_field.rb
156
+ - lib/protobuf/field/fixed64_field.rb
157
+ - lib/protobuf/field/float_field.rb
158
+ - lib/protobuf/field/int32_field.rb
159
+ - lib/protobuf/field/int64_field.rb
160
+ - lib/protobuf/field/integer_field.rb
161
+ - lib/protobuf/field/message_field.rb
162
+ - lib/protobuf/field/sfixed32_field.rb
163
+ - lib/protobuf/field/sfixed64_field.rb
164
+ - lib/protobuf/field/signed_integer_field.rb
165
+ - lib/protobuf/field/sint32_field.rb
166
+ - lib/protobuf/field/sint64_field.rb
167
+ - lib/protobuf/field/string_field.rb
168
+ - lib/protobuf/field/uint32_field.rb
169
+ - lib/protobuf/field/uint64_field.rb
170
+ - lib/protobuf/field/varint_field.rb
171
+ - lib/protobuf/generators/base.rb
172
+ - lib/protobuf/generators/enum_generator.rb
173
+ - lib/protobuf/generators/extension_generator.rb
174
+ - lib/protobuf/generators/field_generator.rb
175
+ - lib/protobuf/generators/file_generator.rb
176
+ - lib/protobuf/generators/group_generator.rb
177
+ - lib/protobuf/generators/message_generator.rb
178
+ - lib/protobuf/generators/printable.rb
179
+ - lib/protobuf/logging.rb
180
+ - lib/protobuf/message.rb
181
+ - lib/protobuf/message/fields.rb
182
+ - lib/protobuf/message/serialization.rb
183
+ - lib/protobuf/optionable.rb
184
+ - lib/protobuf/wire_type.rb
185
+ - proto/dynamic_discovery.proto
186
+ - proto/google/protobuf/compiler/plugin.proto
187
+ - proto/google/protobuf/descriptor.proto
188
+ - proto/rpc.proto
189
+ - protobuf-core.gemspec
190
+ - spec/bin/protoc-gen-ruby_spec.rb
191
+ - spec/data/data.bin
192
+ - spec/data/types.bin
193
+ - spec/encoding/all_types_spec.rb
194
+ - spec/encoding/extreme_values_spec.rb
195
+ - spec/functional/class_inheritance_spec.rb
196
+ - spec/functional/compile_and_require_spec.rb
197
+ - spec/lib/protobuf/base_spec.rb
198
+ - spec/lib/protobuf/code_generator_spec.rb
199
+ - spec/lib/protobuf/enum_generator_spec.rb
200
+ - spec/lib/protobuf/enum_spec.rb
201
+ - spec/lib/protobuf/extension_generator_spec.rb
202
+ - spec/lib/protobuf/field/bool_field_spec.rb
203
+ - spec/lib/protobuf/field/field_array_spec.rb
204
+ - spec/lib/protobuf/field/float_field_spec.rb
205
+ - spec/lib/protobuf/field/int32_field_spec.rb
206
+ - spec/lib/protobuf/field/string_field_spec.rb
207
+ - spec/lib/protobuf/field_generator_spec.rb
208
+ - spec/lib/protobuf/field_spec.rb
209
+ - spec/lib/protobuf/file_generator_spec.rb
210
+ - spec/lib/protobuf/message_generator_spec.rb
211
+ - spec/lib/protobuf/message_spec.rb
212
+ - spec/lib/protobuf/optionable_spec.rb
213
+ - spec/lib/protobuf_spec.rb
214
+ - spec/spec_helper.rb
215
+ - spec/support/packed_field.rb
216
+ - spec/support/test/all_types.data.bin
217
+ - spec/support/test/all_types.data.txt
218
+ - spec/support/test/bacon.proto
219
+ - spec/support/test/defaults.pb.rb
220
+ - spec/support/test/defaults.proto
221
+ - spec/support/test/enum.pb.rb
222
+ - spec/support/test/enum.proto
223
+ - spec/support/test/extended.pb.rb
224
+ - spec/support/test/extended.proto
225
+ - spec/support/test/extreme_values.data.bin
226
+ - spec/support/test/google_unittest.pb.rb
227
+ - spec/support/test/google_unittest.proto
228
+ - spec/support/test/google_unittest_import.pb.rb
229
+ - spec/support/test/google_unittest_import.proto
230
+ - spec/support/test/google_unittest_import_public.pb.rb
231
+ - spec/support/test/google_unittest_import_public.proto
232
+ - spec/support/test/multi_field_extensions.pb.rb
233
+ - spec/support/test/multi_field_extensions.proto
234
+ - spec/support/test/resource.pb.rb
235
+ - spec/support/test/resource.proto
236
+ homepage: https://github.com/ruby-protobuf/protobuf-core
237
+ licenses:
238
+ - MIT
239
+ metadata: {}
240
+ post_install_message:
241
+ rdoc_options: []
242
+ require_paths:
243
+ - lib
244
+ required_ruby_version: !ruby/object:Gem::Requirement
245
+ requirements:
246
+ - - ">="
247
+ - !ruby/object:Gem::Version
248
+ version: '0'
249
+ required_rubygems_version: !ruby/object:Gem::Requirement
250
+ requirements:
251
+ - - ">="
252
+ - !ruby/object:Gem::Version
253
+ version: '0'
254
+ requirements: []
255
+ rubyforge_project:
256
+ rubygems_version: 2.6.11
257
+ signing_key:
258
+ specification_version: 4
259
+ summary: Google Protocol Buffers serialization and compiler implementation for Ruby.
260
+ test_files:
261
+ - spec/bin/protoc-gen-ruby_spec.rb
262
+ - spec/data/data.bin
263
+ - spec/data/types.bin
264
+ - spec/encoding/all_types_spec.rb
265
+ - spec/encoding/extreme_values_spec.rb
266
+ - spec/functional/class_inheritance_spec.rb
267
+ - spec/functional/compile_and_require_spec.rb
268
+ - spec/lib/protobuf/base_spec.rb
269
+ - spec/lib/protobuf/code_generator_spec.rb
270
+ - spec/lib/protobuf/enum_generator_spec.rb
271
+ - spec/lib/protobuf/enum_spec.rb
272
+ - spec/lib/protobuf/extension_generator_spec.rb
273
+ - spec/lib/protobuf/field/bool_field_spec.rb
274
+ - spec/lib/protobuf/field/field_array_spec.rb
275
+ - spec/lib/protobuf/field/float_field_spec.rb
276
+ - spec/lib/protobuf/field/int32_field_spec.rb
277
+ - spec/lib/protobuf/field/string_field_spec.rb
278
+ - spec/lib/protobuf/field_generator_spec.rb
279
+ - spec/lib/protobuf/field_spec.rb
280
+ - spec/lib/protobuf/file_generator_spec.rb
281
+ - spec/lib/protobuf/message_generator_spec.rb
282
+ - spec/lib/protobuf/message_spec.rb
283
+ - spec/lib/protobuf/optionable_spec.rb
284
+ - spec/lib/protobuf_spec.rb
285
+ - spec/spec_helper.rb
286
+ - spec/support/packed_field.rb
287
+ - spec/support/test/all_types.data.bin
288
+ - spec/support/test/all_types.data.txt
289
+ - spec/support/test/bacon.proto
290
+ - spec/support/test/defaults.pb.rb
291
+ - spec/support/test/defaults.proto
292
+ - spec/support/test/enum.pb.rb
293
+ - spec/support/test/enum.proto
294
+ - spec/support/test/extended.pb.rb
295
+ - spec/support/test/extended.proto
296
+ - spec/support/test/extreme_values.data.bin
297
+ - spec/support/test/google_unittest.pb.rb
298
+ - spec/support/test/google_unittest.proto
299
+ - spec/support/test/google_unittest_import.pb.rb
300
+ - spec/support/test/google_unittest_import.proto
301
+ - spec/support/test/google_unittest_import_public.pb.rb
302
+ - spec/support/test/google_unittest_import_public.proto
303
+ - spec/support/test/multi_field_extensions.pb.rb
304
+ - spec/support/test/multi_field_extensions.proto
305
+ - spec/support/test/resource.pb.rb
306
+ - spec/support/test/resource.proto