thrift 0.9.3.0 → 0.15.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. checksums.yaml +7 -0
  2. data/ext/compact_protocol.c +1 -0
  3. data/ext/struct.c +14 -1
  4. data/ext/thrift_native.c +17 -0
  5. data/lib/thrift/processor.rb +10 -3
  6. data/lib/thrift/protocol/base_protocol.rb +11 -3
  7. data/lib/thrift/protocol/binary_protocol.rb +8 -1
  8. data/lib/thrift/protocol/binary_protocol_accelerated.rb +8 -0
  9. data/lib/thrift/protocol/compact_protocol.rb +8 -0
  10. data/lib/thrift/protocol/json_protocol.rb +21 -4
  11. data/lib/thrift/protocol/multiplexed_protocol.rb +5 -1
  12. data/lib/thrift/server/base_server.rb +8 -2
  13. data/lib/thrift/server/simple_server.rb +5 -1
  14. data/lib/thrift/server/thread_pool_server.rb +5 -1
  15. data/lib/thrift/server/threaded_server.rb +5 -1
  16. data/lib/thrift/transport/base_server_transport.rb +1 -1
  17. data/lib/thrift/transport/base_transport.rb +8 -0
  18. data/lib/thrift/transport/buffered_transport.rb +9 -1
  19. data/lib/thrift/transport/framed_transport.rb +9 -1
  20. data/lib/thrift/transport/http_client_transport.rb +7 -0
  21. data/lib/thrift/transport/io_stream_transport.rb +4 -1
  22. data/lib/thrift/transport/memory_buffer_transport.rb +4 -0
  23. data/lib/thrift/transport/server_socket.rb +6 -1
  24. data/lib/thrift/transport/socket.rb +21 -17
  25. data/lib/thrift/transport/ssl_server_socket.rb +41 -0
  26. data/lib/thrift/transport/ssl_socket.rb +51 -0
  27. data/lib/thrift/transport/unix_server_socket.rb +5 -1
  28. data/lib/thrift/transport/unix_socket.rb +5 -1
  29. data/lib/thrift.rb +6 -4
  30. data/spec/base_protocol_spec.rb +79 -71
  31. data/spec/base_transport_spec.rb +155 -117
  32. data/spec/binary_protocol_accelerated_spec.rb +6 -2
  33. data/spec/binary_protocol_spec.rb +16 -8
  34. data/spec/binary_protocol_spec_shared.rb +75 -72
  35. data/spec/bytes_spec.rb +38 -38
  36. data/spec/client_spec.rb +41 -42
  37. data/spec/compact_protocol_spec.rb +32 -17
  38. data/spec/exception_spec.rb +54 -54
  39. data/spec/flat_spec.rb +5 -5
  40. data/spec/http_client_spec.rb +74 -33
  41. data/spec/json_protocol_spec.rb +170 -131
  42. data/spec/namespaced_spec.rb +5 -5
  43. data/spec/nonblocking_server_spec.rb +16 -16
  44. data/spec/processor_spec.rb +26 -26
  45. data/spec/serializer_spec.rb +20 -20
  46. data/spec/server_socket_spec.rb +27 -22
  47. data/spec/server_spec.rb +91 -51
  48. data/spec/socket_spec.rb +23 -16
  49. data/spec/socket_spec_shared.rb +31 -31
  50. data/spec/spec_helper.rb +6 -1
  51. data/spec/ssl_server_socket_spec.rb +34 -0
  52. data/spec/ssl_socket_spec.rb +78 -0
  53. data/spec/struct_nested_containers_spec.rb +24 -24
  54. data/spec/struct_spec.rb +120 -120
  55. data/spec/thin_http_server_spec.rb +18 -18
  56. data/spec/types_spec.rb +56 -53
  57. data/spec/union_spec.rb +47 -41
  58. data/spec/unix_socket_spec.rb +43 -34
  59. metadata +198 -148
metadata CHANGED
@@ -1,112 +1,155 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thrift
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.3.0
5
- prerelease:
4
+ version: 0.15.0
6
5
  platform: ruby
7
6
  authors:
8
- - Thrift Developers
9
- autorequire:
7
+ - Apache Thrift Developers
8
+ autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2015-09-30 00:00:00.000000000 Z
11
+ date: 2021-09-11 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
- name: rspec
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '1.11'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '1.11'
27
+ - !ruby/object:Gem::Dependency
28
+ name: pry
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 0.11.3
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 0.11.3
41
+ - !ruby/object:Gem::Dependency
42
+ name: pry-byebug
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3.6'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3.6'
55
+ - !ruby/object:Gem::Dependency
56
+ name: pry-stack_explorer
16
57
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
58
  requirements:
19
- - - ~>
59
+ - - "~>"
20
60
  - !ruby/object:Gem::Version
21
- version: 2.10.0
61
+ version: 0.4.9.2
22
62
  type: :development
23
63
  prerelease: false
24
64
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
65
  requirements:
27
- - - ~>
66
+ - - "~>"
28
67
  - !ruby/object:Gem::Version
29
- version: 2.10.0
68
+ version: 0.4.9.2
30
69
  - !ruby/object:Gem::Dependency
31
70
  name: rack
32
71
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
72
  requirements:
35
- - - ~>
73
+ - - '='
36
74
  - !ruby/object:Gem::Version
37
- version: 1.5.2
75
+ version: 2.0.8
38
76
  type: :development
39
77
  prerelease: false
40
78
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
79
  requirements:
43
- - - ~>
80
+ - - '='
44
81
  - !ruby/object:Gem::Version
45
- version: 1.5.2
82
+ version: 2.0.8
46
83
  - !ruby/object:Gem::Dependency
47
84
  name: rack-test
48
85
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
86
  requirements:
51
- - - ~>
87
+ - - "~>"
52
88
  - !ruby/object:Gem::Version
53
- version: 0.6.2
89
+ version: 0.8.3
54
90
  type: :development
55
91
  prerelease: false
56
92
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
93
  requirements:
59
- - - ~>
94
+ - - "~>"
60
95
  - !ruby/object:Gem::Version
61
- version: 0.6.2
96
+ version: 0.8.3
62
97
  - !ruby/object:Gem::Dependency
63
- name: thin
98
+ name: rake
64
99
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
100
  requirements:
67
- - - ~>
101
+ - - "~>"
68
102
  - !ruby/object:Gem::Version
69
- version: 1.5.0
103
+ version: '12.3'
70
104
  type: :development
71
105
  prerelease: false
72
106
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
107
  requirements:
75
- - - ~>
108
+ - - "~>"
76
109
  - !ruby/object:Gem::Version
77
- version: 1.5.0
110
+ version: '12.3'
78
111
  - !ruby/object:Gem::Dependency
79
- name: bundler
112
+ name: rspec
80
113
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
114
  requirements:
83
- - - ! '>='
115
+ - - "~>"
84
116
  - !ruby/object:Gem::Version
85
- version: '0'
117
+ version: '3.7'
86
118
  type: :development
87
119
  prerelease: false
88
120
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
121
  requirements:
91
- - - ! '>='
122
+ - - "~>"
92
123
  - !ruby/object:Gem::Version
93
- version: '0'
124
+ version: '3.7'
94
125
  - !ruby/object:Gem::Dependency
95
- name: rake
126
+ name: srv
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: '1.0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: '1.0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: thin
96
141
  requirement: !ruby/object:Gem::Requirement
97
- none: false
98
142
  requirements:
99
- - - ! '>='
143
+ - - "~>"
100
144
  - !ruby/object:Gem::Version
101
- version: '0'
145
+ version: '1.7'
102
146
  type: :development
103
147
  prerelease: false
104
148
  version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
149
  requirements:
107
- - - ! '>='
150
+ - - "~>"
108
151
  - !ruby/object:Gem::Version
109
- version: '0'
152
+ version: '1.7'
110
153
  description: Ruby bindings for the Apache Thrift RPC system
111
154
  email:
112
155
  - dev@thrift.apache.org
@@ -115,69 +158,96 @@ extensions:
115
158
  - ext/extconf.rb
116
159
  extra_rdoc_files:
117
160
  - README.md
118
- - ext/binary_protocol_accelerated.c
161
+ - ext/thrift_native.c
119
162
  - ext/bytes.c
120
- - ext/compact_protocol.c
121
- - ext/memory_buffer.c
122
163
  - ext/protocol.c
123
164
  - ext/strlcpy.c
165
+ - ext/memory_buffer.c
166
+ - ext/binary_protocol_accelerated.c
124
167
  - ext/struct.c
125
- - ext/thrift_native.c
126
- - ext/binary_protocol_accelerated.h
127
- - ext/bytes.h
128
- - ext/compact_protocol.h
168
+ - ext/compact_protocol.c
129
169
  - ext/constants.h
130
170
  - ext/macros.h
171
+ - ext/strlcpy.h
172
+ - ext/bytes.h
131
173
  - ext/memory_buffer.h
132
174
  - ext/protocol.h
133
- - ext/strlcpy.h
175
+ - ext/binary_protocol_accelerated.h
134
176
  - ext/struct.h
177
+ - ext/compact_protocol.h
135
178
  - ext/extconf.rb
136
- - lib/thrift/bytes.rb
137
- - lib/thrift/client.rb
138
- - lib/thrift/core_ext/fixnum.rb
139
- - lib/thrift/core_ext.rb
140
- - lib/thrift/exceptions.rb
141
- - lib/thrift/multiplexed_processor.rb
179
+ - lib/thrift/struct_union.rb
180
+ - lib/thrift/struct.rb
142
181
  - lib/thrift/processor.rb
143
- - lib/thrift/protocol/base_protocol.rb
144
- - lib/thrift/protocol/binary_protocol.rb
145
- - lib/thrift/protocol/binary_protocol_accelerated.rb
146
- - lib/thrift/protocol/compact_protocol.rb
147
182
  - lib/thrift/protocol/json_protocol.rb
148
183
  - lib/thrift/protocol/multiplexed_protocol.rb
149
184
  - lib/thrift/protocol/protocol_decorator.rb
150
- - lib/thrift/serializer/deserializer.rb
151
- - lib/thrift/serializer/serializer.rb
152
- - lib/thrift/server/base_server.rb
153
- - lib/thrift/server/mongrel_http_server.rb
154
- - lib/thrift/server/nonblocking_server.rb
155
- - lib/thrift/server/simple_server.rb
185
+ - lib/thrift/protocol/compact_protocol.rb
186
+ - lib/thrift/protocol/binary_protocol_accelerated.rb
187
+ - lib/thrift/protocol/binary_protocol.rb
188
+ - lib/thrift/protocol/base_protocol.rb
189
+ - lib/thrift/types.rb
190
+ - lib/thrift/thrift_native.rb
191
+ - lib/thrift/union.rb
192
+ - lib/thrift/bytes.rb
193
+ - lib/thrift/client.rb
194
+ - lib/thrift/multiplexed_processor.rb
156
195
  - lib/thrift/server/thin_http_server.rb
196
+ - lib/thrift/server/simple_server.rb
157
197
  - lib/thrift/server/thread_pool_server.rb
158
198
  - lib/thrift/server/threaded_server.rb
159
- - lib/thrift/struct.rb
160
- - lib/thrift/struct_union.rb
161
- - lib/thrift/thrift_native.rb
162
- - lib/thrift/transport/base_server_transport.rb
163
- - lib/thrift/transport/base_transport.rb
199
+ - lib/thrift/server/mongrel_http_server.rb
200
+ - lib/thrift/server/base_server.rb
201
+ - lib/thrift/server/nonblocking_server.rb
202
+ - lib/thrift/transport/ssl_socket.rb
203
+ - lib/thrift/transport/memory_buffer_transport.rb
164
204
  - lib/thrift/transport/buffered_transport.rb
205
+ - lib/thrift/transport/socket.rb
165
206
  - lib/thrift/transport/framed_transport.rb
166
207
  - lib/thrift/transport/http_client_transport.rb
208
+ - lib/thrift/transport/base_server_transport.rb
209
+ - lib/thrift/transport/ssl_server_socket.rb
210
+ - lib/thrift/transport/unix_server_socket.rb
211
+ - lib/thrift/transport/base_transport.rb
167
212
  - lib/thrift/transport/io_stream_transport.rb
168
- - lib/thrift/transport/memory_buffer_transport.rb
169
213
  - lib/thrift/transport/server_socket.rb
170
- - lib/thrift/transport/socket.rb
171
- - lib/thrift/transport/unix_server_socket.rb
172
214
  - lib/thrift/transport/unix_socket.rb
173
- - lib/thrift/types.rb
174
- - lib/thrift/union.rb
215
+ - lib/thrift/exceptions.rb
216
+ - lib/thrift/core_ext.rb
217
+ - lib/thrift/core_ext/fixnum.rb
218
+ - lib/thrift/serializer/deserializer.rb
219
+ - lib/thrift/serializer/serializer.rb
175
220
  - lib/thrift.rb
176
221
  files:
222
+ - README.md
223
+ - benchmark/Benchmark.thrift
224
+ - benchmark/benchmark.rb
225
+ - benchmark/client.rb
226
+ - benchmark/server.rb
227
+ - benchmark/thin_server.rb
228
+ - ext/binary_protocol_accelerated.c
229
+ - ext/binary_protocol_accelerated.h
230
+ - ext/bytes.c
231
+ - ext/bytes.h
232
+ - ext/compact_protocol.c
233
+ - ext/compact_protocol.h
234
+ - ext/constants.h
235
+ - ext/extconf.rb
236
+ - ext/macros.h
237
+ - ext/memory_buffer.c
238
+ - ext/memory_buffer.h
239
+ - ext/protocol.c
240
+ - ext/protocol.h
241
+ - ext/strlcpy.c
242
+ - ext/strlcpy.h
243
+ - ext/struct.c
244
+ - ext/struct.h
245
+ - ext/thrift_native.c
246
+ - lib/thrift.rb
177
247
  - lib/thrift/bytes.rb
178
248
  - lib/thrift/client.rb
179
- - lib/thrift/core_ext/fixnum.rb
180
249
  - lib/thrift/core_ext.rb
250
+ - lib/thrift/core_ext/fixnum.rb
181
251
  - lib/thrift/exceptions.rb
182
252
  - lib/thrift/multiplexed_processor.rb
183
253
  - lib/thrift/processor.rb
@@ -209,14 +279,19 @@ files:
209
279
  - lib/thrift/transport/memory_buffer_transport.rb
210
280
  - lib/thrift/transport/server_socket.rb
211
281
  - lib/thrift/transport/socket.rb
282
+ - lib/thrift/transport/ssl_server_socket.rb
283
+ - lib/thrift/transport/ssl_socket.rb
212
284
  - lib/thrift/transport/unix_server_socket.rb
213
285
  - lib/thrift/transport/unix_socket.rb
214
286
  - lib/thrift/types.rb
215
287
  - lib/thrift/union.rb
216
- - lib/thrift.rb
288
+ - spec/BaseService.thrift
289
+ - spec/ExtendedService.thrift
290
+ - spec/Referenced.thrift
291
+ - spec/ThriftNamespacedSpec.thrift
292
+ - spec/ThriftSpec.thrift
217
293
  - spec/base_protocol_spec.rb
218
294
  - spec/base_transport_spec.rb
219
- - spec/BaseService.thrift
220
295
  - spec/binary_protocol_accelerated_spec.rb
221
296
  - spec/binary_protocol_spec.rb
222
297
  - spec/binary_protocol_spec_shared.rb
@@ -224,119 +299,94 @@ files:
224
299
  - spec/client_spec.rb
225
300
  - spec/compact_protocol_spec.rb
226
301
  - spec/exception_spec.rb
227
- - spec/ExtendedService.thrift
228
302
  - spec/flat_spec.rb
229
303
  - spec/http_client_spec.rb
230
304
  - spec/json_protocol_spec.rb
231
305
  - spec/namespaced_spec.rb
232
306
  - spec/nonblocking_server_spec.rb
233
307
  - spec/processor_spec.rb
234
- - spec/Referenced.thrift
235
308
  - spec/serializer_spec.rb
236
309
  - spec/server_socket_spec.rb
237
310
  - spec/server_spec.rb
238
311
  - spec/socket_spec.rb
239
312
  - spec/socket_spec_shared.rb
240
313
  - spec/spec_helper.rb
314
+ - spec/ssl_server_socket_spec.rb
315
+ - spec/ssl_socket_spec.rb
241
316
  - spec/struct_nested_containers_spec.rb
242
317
  - spec/struct_spec.rb
243
318
  - spec/thin_http_server_spec.rb
244
- - spec/ThriftNamespacedSpec.thrift
245
- - spec/ThriftSpec.thrift
246
319
  - spec/types_spec.rb
247
320
  - spec/union_spec.rb
248
321
  - spec/unix_socket_spec.rb
249
- - README.md
250
- - ext/binary_protocol_accelerated.c
251
- - ext/bytes.c
252
- - ext/compact_protocol.c
253
- - ext/memory_buffer.c
254
- - ext/protocol.c
255
- - ext/strlcpy.c
256
- - ext/struct.c
257
- - ext/thrift_native.c
258
- - ext/binary_protocol_accelerated.h
259
- - ext/bytes.h
260
- - ext/compact_protocol.h
261
- - ext/constants.h
262
- - ext/macros.h
263
- - ext/memory_buffer.h
264
- - ext/protocol.h
265
- - ext/strlcpy.h
266
- - ext/struct.h
267
- - ext/extconf.rb
268
- - benchmark/benchmark.rb
269
- - benchmark/Benchmark.thrift
270
- - benchmark/client.rb
271
- - benchmark/server.rb
272
- - benchmark/thin_server.rb
273
322
  homepage: http://thrift.apache.org
274
323
  licenses:
275
- - Apache 2.0
276
- post_install_message:
324
+ - Apache-2.0
325
+ metadata: {}
326
+ post_install_message:
277
327
  rdoc_options:
278
- - --line-numbers
279
- - --inline-source
280
- - --title
328
+ - "--line-numbers"
329
+ - "--inline-source"
330
+ - "--title"
281
331
  - Thrift
282
- - --main
332
+ - "--main"
283
333
  - README
284
334
  require_paths:
285
335
  - lib
286
336
  - ext
287
337
  required_ruby_version: !ruby/object:Gem::Requirement
288
- none: false
289
338
  requirements:
290
- - - ! '>='
339
+ - - ">="
291
340
  - !ruby/object:Gem::Version
292
341
  version: '0'
293
342
  required_rubygems_version: !ruby/object:Gem::Requirement
294
- none: false
295
343
  requirements:
296
- - - ! '>='
344
+ - - ">="
297
345
  - !ruby/object:Gem::Version
298
346
  version: '0'
299
347
  requirements: []
300
348
  rubyforge_project: thrift
301
- rubygems_version: 1.8.23
302
- signing_key:
303
- specification_version: 3
349
+ rubygems_version: 2.7.6.2
350
+ signing_key:
351
+ specification_version: 4
304
352
  summary: Ruby bindings for Apache Thrift
305
353
  test_files:
306
- - spec/base_protocol_spec.rb
307
- - spec/base_transport_spec.rb
308
- - spec/BaseService.thrift
354
+ - spec/types_spec.rb
355
+ - spec/union_spec.rb
356
+ - spec/ThriftSpec.thrift
357
+ - spec/spec_helper.rb
309
358
  - spec/binary_protocol_accelerated_spec.rb
310
- - spec/binary_protocol_spec.rb
311
- - spec/binary_protocol_spec_shared.rb
359
+ - spec/ssl_socket_spec.rb
360
+ - spec/http_client_spec.rb
361
+ - spec/flat_spec.rb
362
+ - spec/server_socket_spec.rb
312
363
  - spec/bytes_spec.rb
313
- - spec/client_spec.rb
314
- - spec/compact_protocol_spec.rb
364
+ - spec/binary_protocol_spec.rb
365
+ - spec/socket_spec.rb
366
+ - spec/struct_spec.rb
315
367
  - spec/exception_spec.rb
368
+ - spec/thin_http_server_spec.rb
369
+ - spec/BaseService.thrift
370
+ - spec/compact_protocol_spec.rb
371
+ - spec/namespaced_spec.rb
372
+ - spec/processor_spec.rb
373
+ - spec/ssl_server_socket_spec.rb
316
374
  - spec/ExtendedService.thrift
317
- - spec/flat_spec.rb
318
- - spec/http_client_spec.rb
375
+ - spec/binary_protocol_spec_shared.rb
376
+ - spec/struct_nested_containers_spec.rb
377
+ - spec/base_protocol_spec.rb
378
+ - spec/serializer_spec.rb
319
379
  - spec/json_protocol_spec.rb
320
- - spec/namespaced_spec.rb
380
+ - spec/base_transport_spec.rb
321
381
  - spec/nonblocking_server_spec.rb
322
- - spec/processor_spec.rb
323
382
  - spec/Referenced.thrift
324
- - spec/serializer_spec.rb
325
- - spec/server_socket_spec.rb
326
- - spec/server_spec.rb
327
- - spec/socket_spec.rb
383
+ - spec/unix_socket_spec.rb
328
384
  - spec/socket_spec_shared.rb
329
- - spec/spec_helper.rb
330
- - spec/struct_nested_containers_spec.rb
331
- - spec/struct_spec.rb
332
- - spec/thin_http_server_spec.rb
333
385
  - spec/ThriftNamespacedSpec.thrift
334
- - spec/ThriftSpec.thrift
335
- - spec/types_spec.rb
336
- - spec/union_spec.rb
337
- - spec/unix_socket_spec.rb
386
+ - spec/server_spec.rb
387
+ - spec/client_spec.rb
338
388
  - benchmark/benchmark.rb
339
- - benchmark/Benchmark.thrift
340
- - benchmark/client.rb
341
389
  - benchmark/server.rb
342
390
  - benchmark/thin_server.rb
391
+ - benchmark/client.rb
392
+ - benchmark/Benchmark.thrift