thrift 0.11.0.0 → 0.22.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.
Files changed (89) hide show
  1. checksums.yaml +5 -5
  2. data/ext/binary_protocol_accelerated.c +5 -5
  3. data/ext/compact_protocol.c +10 -9
  4. data/ext/memory_buffer.c +1 -1
  5. data/ext/struct.c +10 -1
  6. data/ext/thrift_native.c +17 -0
  7. data/lib/thrift/client.rb +10 -2
  8. data/lib/thrift/protocol/base_protocol.rb +11 -3
  9. data/lib/thrift/protocol/binary_protocol.rb +8 -1
  10. data/lib/thrift/protocol/binary_protocol_accelerated.rb +8 -0
  11. data/lib/thrift/protocol/compact_protocol.rb +8 -0
  12. data/lib/thrift/protocol/json_protocol.rb +8 -0
  13. data/lib/thrift/protocol/multiplexed_protocol.rb +5 -1
  14. data/lib/thrift/server/base_server.rb +8 -2
  15. data/lib/thrift/server/simple_server.rb +5 -1
  16. data/lib/thrift/server/thread_pool_server.rb +5 -1
  17. data/lib/thrift/server/threaded_server.rb +5 -1
  18. data/lib/thrift/transport/base_server_transport.rb +1 -1
  19. data/lib/thrift/transport/base_transport.rb +8 -0
  20. data/lib/thrift/transport/buffered_transport.rb +9 -1
  21. data/lib/thrift/transport/framed_transport.rb +9 -1
  22. data/lib/thrift/transport/http_client_transport.rb +6 -0
  23. data/lib/thrift/transport/io_stream_transport.rb +4 -1
  24. data/lib/thrift/transport/memory_buffer_transport.rb +4 -0
  25. data/lib/thrift/transport/server_socket.rb +6 -1
  26. data/lib/thrift/transport/socket.rb +4 -2
  27. data/lib/thrift/transport/ssl_server_socket.rb +4 -0
  28. data/lib/thrift/transport/ssl_socket.rb +4 -0
  29. data/lib/thrift/transport/unix_server_socket.rb +5 -1
  30. data/lib/thrift/transport/unix_socket.rb +5 -1
  31. data/spec/base_protocol_spec.rb +79 -71
  32. data/spec/base_transport_spec.rb +155 -117
  33. data/spec/binary_protocol_accelerated_spec.rb +6 -2
  34. data/spec/binary_protocol_spec.rb +16 -8
  35. data/spec/binary_protocol_spec_shared.rb +73 -70
  36. data/spec/bytes_spec.rb +38 -38
  37. data/spec/client_spec.rb +43 -42
  38. data/spec/compact_protocol_spec.rb +23 -8
  39. data/spec/exception_spec.rb +54 -54
  40. data/spec/flat_spec.rb +5 -5
  41. data/spec/http_client_spec.rb +64 -38
  42. data/spec/json_protocol_spec.rb +146 -138
  43. data/spec/namespaced_spec.rb +5 -5
  44. data/spec/nonblocking_server_spec.rb +16 -16
  45. data/spec/processor_spec.rb +26 -26
  46. data/spec/serializer_spec.rb +20 -20
  47. data/spec/server_socket_spec.rb +27 -22
  48. data/spec/server_spec.rb +91 -52
  49. data/spec/socket_spec.rb +23 -16
  50. data/spec/socket_spec_shared.rb +31 -31
  51. data/spec/spec_helper.rb +5 -0
  52. data/spec/ssl_server_socket_spec.rb +34 -0
  53. data/spec/ssl_socket_spec.rb +26 -22
  54. data/spec/struct_nested_containers_spec.rb +24 -24
  55. data/spec/struct_spec.rb +120 -120
  56. data/spec/thin_http_server_spec.rb +18 -18
  57. data/spec/types_spec.rb +56 -53
  58. data/spec/union_spec.rb +42 -43
  59. data/spec/unix_socket_spec.rb +43 -34
  60. metadata +152 -159
  61. data/benchmark/gen-rb/benchmark_constants.rb +0 -11
  62. data/benchmark/gen-rb/benchmark_service.rb +0 -80
  63. data/benchmark/gen-rb/benchmark_types.rb +0 -10
  64. data/spec/gen-rb/base/base_service.rb +0 -80
  65. data/spec/gen-rb/base/base_service_constants.rb +0 -11
  66. data/spec/gen-rb/base/base_service_types.rb +0 -26
  67. data/spec/gen-rb/extended/extended_service.rb +0 -78
  68. data/spec/gen-rb/extended/extended_service_constants.rb +0 -11
  69. data/spec/gen-rb/extended/extended_service_types.rb +0 -12
  70. data/spec/gen-rb/flat/namespaced_nonblocking_service.rb +0 -272
  71. data/spec/gen-rb/flat/referenced_constants.rb +0 -11
  72. data/spec/gen-rb/flat/referenced_types.rb +0 -17
  73. data/spec/gen-rb/flat/thrift_namespaced_spec_constants.rb +0 -11
  74. data/spec/gen-rb/flat/thrift_namespaced_spec_types.rb +0 -28
  75. data/spec/gen-rb/namespaced_spec_namespace/namespaced_nonblocking_service.rb +0 -272
  76. data/spec/gen-rb/namespaced_spec_namespace/thrift_namespaced_spec_constants.rb +0 -11
  77. data/spec/gen-rb/namespaced_spec_namespace/thrift_namespaced_spec_types.rb +0 -28
  78. data/spec/gen-rb/nonblocking_service.rb +0 -272
  79. data/spec/gen-rb/other_namespace/referenced_constants.rb +0 -11
  80. data/spec/gen-rb/other_namespace/referenced_types.rb +0 -17
  81. data/spec/gen-rb/thrift_spec_constants.rb +0 -11
  82. data/spec/gen-rb/thrift_spec_types.rb +0 -538
  83. data/test/debug_proto/gen-rb/debug_proto_test_constants.rb +0 -278
  84. data/test/debug_proto/gen-rb/debug_proto_test_types.rb +0 -781
  85. data/test/debug_proto/gen-rb/empty_service.rb +0 -28
  86. data/test/debug_proto/gen-rb/inherited.rb +0 -83
  87. data/test/debug_proto/gen-rb/reverse_order_service.rb +0 -86
  88. data/test/debug_proto/gen-rb/service_for_exception_with_a_map.rb +0 -85
  89. data/test/debug_proto/gen-rb/srv.rb +0 -395
metadata CHANGED
@@ -1,105 +1,155 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thrift
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.0.0
4
+ version: 0.22.0
5
5
  platform: ruby
6
6
  authors:
7
- - Thrift Developers
8
- autorequire:
7
+ - Apache Thrift Developers
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-01-09 00:00:00.000000000 Z
11
+ date: 2025-05-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: rspec
14
+ name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 2.10.0
20
- - - "<"
21
- - !ruby/object:Gem::Version
22
- version: 2.14.0
19
+ version: '1.11'
23
20
  type: :development
24
21
  prerelease: false
25
22
  version_requirements: !ruby/object:Gem::Requirement
26
23
  requirements:
27
24
  - - ">="
28
25
  - !ruby/object:Gem::Version
29
- version: 2.10.0
30
- - - "<"
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
+ - - "~>"
31
39
  - !ruby/object:Gem::Version
32
- version: 2.14.0
40
+ version: 0.11.3
33
41
  - !ruby/object:Gem::Dependency
34
- name: rack
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
35
57
  requirement: !ruby/object:Gem::Requirement
36
58
  requirements:
37
59
  - - "~>"
38
60
  - !ruby/object:Gem::Version
39
- version: '1.5'
61
+ version: 0.4.9.2
40
62
  type: :development
41
63
  prerelease: false
42
64
  version_requirements: !ruby/object:Gem::Requirement
43
65
  requirements:
44
66
  - - "~>"
45
67
  - !ruby/object:Gem::Version
46
- version: '1.5'
68
+ version: 0.4.9.2
69
+ - !ruby/object:Gem::Dependency
70
+ name: rack
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - '='
74
+ - !ruby/object:Gem::Version
75
+ version: 2.2.6.4
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - '='
81
+ - !ruby/object:Gem::Version
82
+ version: 2.2.6.4
47
83
  - !ruby/object:Gem::Dependency
48
84
  name: rack-test
49
85
  requirement: !ruby/object:Gem::Requirement
50
86
  requirements:
51
87
  - - "~>"
52
88
  - !ruby/object:Gem::Version
53
- version: '0.6'
89
+ version: 0.8.3
54
90
  type: :development
55
91
  prerelease: false
56
92
  version_requirements: !ruby/object:Gem::Requirement
57
93
  requirements:
58
94
  - - "~>"
59
95
  - !ruby/object:Gem::Version
60
- version: '0.6'
96
+ version: 0.8.3
61
97
  - !ruby/object:Gem::Dependency
62
- name: thin
98
+ name: rake
63
99
  requirement: !ruby/object:Gem::Requirement
64
100
  requirements:
65
101
  - - "~>"
66
102
  - !ruby/object:Gem::Version
67
- version: '1.5'
103
+ version: '12.3'
68
104
  type: :development
69
105
  prerelease: false
70
106
  version_requirements: !ruby/object:Gem::Requirement
71
107
  requirements:
72
108
  - - "~>"
73
109
  - !ruby/object:Gem::Version
74
- version: '1.5'
110
+ version: '12.3'
75
111
  - !ruby/object:Gem::Dependency
76
- name: bundler
112
+ name: rspec
77
113
  requirement: !ruby/object:Gem::Requirement
78
114
  requirements:
79
115
  - - "~>"
80
116
  - !ruby/object:Gem::Version
81
- version: '1'
117
+ version: '3.7'
82
118
  type: :development
83
119
  prerelease: false
84
120
  version_requirements: !ruby/object:Gem::Requirement
85
121
  requirements:
86
122
  - - "~>"
87
123
  - !ruby/object:Gem::Version
88
- version: '1'
124
+ version: '3.7'
89
125
  - !ruby/object:Gem::Dependency
90
- 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
91
141
  requirement: !ruby/object:Gem::Requirement
92
142
  requirements:
93
143
  - - "~>"
94
144
  - !ruby/object:Gem::Version
95
- version: '10.5'
145
+ version: '1.7'
96
146
  type: :development
97
147
  prerelease: false
98
148
  version_requirements: !ruby/object:Gem::Requirement
99
149
  requirements:
100
150
  - - "~>"
101
151
  - !ruby/object:Gem::Version
102
- version: '10.5'
152
+ version: '1.7'
103
153
  description: Ruby bindings for the Apache Thrift RPC system
104
154
  email:
105
155
  - dev@thrift.apache.org
@@ -108,74 +158,71 @@ extensions:
108
158
  - ext/extconf.rb
109
159
  extra_rdoc_files:
110
160
  - README.md
111
- - ext/strlcpy.c
112
- - ext/bytes.c
113
161
  - ext/binary_protocol_accelerated.c
162
+ - ext/bytes.c
114
163
  - ext/compact_protocol.c
115
164
  - ext/memory_buffer.c
116
165
  - ext/protocol.c
117
- - ext/thrift_native.c
166
+ - ext/strlcpy.c
118
167
  - ext/struct.c
119
- - ext/protocol.h
120
- - ext/struct.h
121
- - ext/constants.h
122
- - ext/macros.h
168
+ - ext/thrift_native.c
169
+ - ext/binary_protocol_accelerated.h
123
170
  - ext/bytes.h
124
- - ext/strlcpy.h
125
171
  - ext/compact_protocol.h
126
- - ext/binary_protocol_accelerated.h
172
+ - ext/constants.h
173
+ - ext/macros.h
127
174
  - ext/memory_buffer.h
175
+ - ext/protocol.h
176
+ - ext/strlcpy.h
177
+ - ext/struct.h
128
178
  - ext/extconf.rb
129
- - lib/thrift.rb
179
+ - lib/thrift/bytes.rb
180
+ - lib/thrift/client.rb
181
+ - lib/thrift/core_ext/fixnum.rb
130
182
  - lib/thrift/core_ext.rb
131
- - lib/thrift/struct_union.rb
132
- - lib/thrift/struct.rb
133
- - lib/thrift/union.rb
134
- - lib/thrift/serializer/serializer.rb
183
+ - lib/thrift/exceptions.rb
184
+ - lib/thrift/multiplexed_processor.rb
185
+ - lib/thrift/processor.rb
186
+ - lib/thrift/protocol/base_protocol.rb
187
+ - lib/thrift/protocol/binary_protocol.rb
188
+ - lib/thrift/protocol/binary_protocol_accelerated.rb
189
+ - lib/thrift/protocol/compact_protocol.rb
190
+ - lib/thrift/protocol/json_protocol.rb
191
+ - lib/thrift/protocol/multiplexed_protocol.rb
192
+ - lib/thrift/protocol/protocol_decorator.rb
135
193
  - lib/thrift/serializer/deserializer.rb
136
- - lib/thrift/transport/ssl_socket.rb
194
+ - lib/thrift/serializer/serializer.rb
195
+ - lib/thrift/server/base_server.rb
196
+ - lib/thrift/server/mongrel_http_server.rb
197
+ - lib/thrift/server/nonblocking_server.rb
198
+ - lib/thrift/server/simple_server.rb
199
+ - lib/thrift/server/thin_http_server.rb
200
+ - lib/thrift/server/thread_pool_server.rb
201
+ - lib/thrift/server/threaded_server.rb
202
+ - lib/thrift/struct.rb
203
+ - lib/thrift/struct_union.rb
204
+ - lib/thrift/thrift_native.rb
137
205
  - lib/thrift/transport/base_server_transport.rb
138
- - lib/thrift/transport/framed_transport.rb
139
- - lib/thrift/transport/socket.rb
140
206
  - lib/thrift/transport/base_transport.rb
141
- - lib/thrift/transport/server_socket.rb
142
- - lib/thrift/transport/unix_socket.rb
207
+ - lib/thrift/transport/buffered_transport.rb
208
+ - lib/thrift/transport/framed_transport.rb
209
+ - lib/thrift/transport/http_client_transport.rb
210
+ - lib/thrift/transport/io_stream_transport.rb
143
211
  - lib/thrift/transport/memory_buffer_transport.rb
212
+ - lib/thrift/transport/server_socket.rb
213
+ - lib/thrift/transport/socket.rb
144
214
  - lib/thrift/transport/ssl_server_socket.rb
145
- - lib/thrift/transport/io_stream_transport.rb
146
- - lib/thrift/transport/buffered_transport.rb
215
+ - lib/thrift/transport/ssl_socket.rb
147
216
  - lib/thrift/transport/unix_server_socket.rb
148
- - lib/thrift/transport/http_client_transport.rb
149
- - lib/thrift/bytes.rb
150
- - lib/thrift/core_ext/fixnum.rb
151
- - lib/thrift/multiplexed_processor.rb
152
- - lib/thrift/thrift_native.rb
153
- - lib/thrift/exceptions.rb
154
- - lib/thrift/server/threaded_server.rb
155
- - lib/thrift/server/mongrel_http_server.rb
156
- - lib/thrift/server/thread_pool_server.rb
157
- - lib/thrift/server/simple_server.rb
158
- - lib/thrift/server/nonblocking_server.rb
159
- - lib/thrift/server/thin_http_server.rb
160
- - lib/thrift/server/base_server.rb
161
- - lib/thrift/protocol/binary_protocol_accelerated.rb
162
- - lib/thrift/protocol/base_protocol.rb
163
- - lib/thrift/protocol/protocol_decorator.rb
164
- - lib/thrift/protocol/json_protocol.rb
165
- - lib/thrift/protocol/multiplexed_protocol.rb
166
- - lib/thrift/protocol/binary_protocol.rb
167
- - lib/thrift/protocol/compact_protocol.rb
168
- - lib/thrift/processor.rb
217
+ - lib/thrift/transport/unix_socket.rb
169
218
  - lib/thrift/types.rb
170
- - lib/thrift/client.rb
219
+ - lib/thrift/union.rb
220
+ - lib/thrift.rb
171
221
  files:
172
222
  - README.md
173
223
  - benchmark/Benchmark.thrift
174
224
  - benchmark/benchmark.rb
175
225
  - benchmark/client.rb
176
- - benchmark/gen-rb/benchmark_constants.rb
177
- - benchmark/gen-rb/benchmark_service.rb
178
- - benchmark/gen-rb/benchmark_types.rb
179
226
  - benchmark/server.rb
180
227
  - benchmark/thin_server.rb
181
228
  - ext/binary_protocol_accelerated.c
@@ -253,25 +300,6 @@ files:
253
300
  - spec/compact_protocol_spec.rb
254
301
  - spec/exception_spec.rb
255
302
  - spec/flat_spec.rb
256
- - spec/gen-rb/base/base_service.rb
257
- - spec/gen-rb/base/base_service_constants.rb
258
- - spec/gen-rb/base/base_service_types.rb
259
- - spec/gen-rb/extended/extended_service.rb
260
- - spec/gen-rb/extended/extended_service_constants.rb
261
- - spec/gen-rb/extended/extended_service_types.rb
262
- - spec/gen-rb/flat/namespaced_nonblocking_service.rb
263
- - spec/gen-rb/flat/referenced_constants.rb
264
- - spec/gen-rb/flat/referenced_types.rb
265
- - spec/gen-rb/flat/thrift_namespaced_spec_constants.rb
266
- - spec/gen-rb/flat/thrift_namespaced_spec_types.rb
267
- - spec/gen-rb/namespaced_spec_namespace/namespaced_nonblocking_service.rb
268
- - spec/gen-rb/namespaced_spec_namespace/thrift_namespaced_spec_constants.rb
269
- - spec/gen-rb/namespaced_spec_namespace/thrift_namespaced_spec_types.rb
270
- - spec/gen-rb/nonblocking_service.rb
271
- - spec/gen-rb/other_namespace/referenced_constants.rb
272
- - spec/gen-rb/other_namespace/referenced_types.rb
273
- - spec/gen-rb/thrift_spec_constants.rb
274
- - spec/gen-rb/thrift_spec_types.rb
275
303
  - spec/http_client_spec.rb
276
304
  - spec/json_protocol_spec.rb
277
305
  - spec/namespaced_spec.rb
@@ -283,6 +311,7 @@ files:
283
311
  - spec/socket_spec.rb
284
312
  - spec/socket_spec_shared.rb
285
313
  - spec/spec_helper.rb
314
+ - spec/ssl_server_socket_spec.rb
286
315
  - spec/ssl_socket_spec.rb
287
316
  - spec/struct_nested_containers_spec.rb
288
317
  - spec/struct_spec.rb
@@ -290,18 +319,11 @@ files:
290
319
  - spec/types_spec.rb
291
320
  - spec/union_spec.rb
292
321
  - spec/unix_socket_spec.rb
293
- - test/debug_proto/gen-rb/debug_proto_test_constants.rb
294
- - test/debug_proto/gen-rb/debug_proto_test_types.rb
295
- - test/debug_proto/gen-rb/empty_service.rb
296
- - test/debug_proto/gen-rb/inherited.rb
297
- - test/debug_proto/gen-rb/reverse_order_service.rb
298
- - test/debug_proto/gen-rb/service_for_exception_with_a_map.rb
299
- - test/debug_proto/gen-rb/srv.rb
300
322
  homepage: http://thrift.apache.org
301
323
  licenses:
302
- - Apache 2.0
324
+ - Apache-2.0
303
325
  metadata: {}
304
- post_install_message:
326
+ post_install_message:
305
327
  rdoc_options:
306
328
  - "--line-numbers"
307
329
  - "--inline-source"
@@ -323,76 +345,47 @@ required_rubygems_version: !ruby/object:Gem::Requirement
323
345
  - !ruby/object:Gem::Version
324
346
  version: '0'
325
347
  requirements: []
326
- rubyforge_project: thrift
327
- rubygems_version: 2.5.1
328
- signing_key:
348
+ rubygems_version: 3.3.15
349
+ signing_key:
329
350
  specification_version: 4
330
351
  summary: Ruby bindings for Apache Thrift
331
352
  test_files:
332
- - test/debug_proto/gen-rb/debug_proto_test_constants.rb
333
- - test/debug_proto/gen-rb/debug_proto_test_types.rb
334
- - test/debug_proto/gen-rb/service_for_exception_with_a_map.rb
335
- - test/debug_proto/gen-rb/inherited.rb
336
- - test/debug_proto/gen-rb/reverse_order_service.rb
337
- - test/debug_proto/gen-rb/empty_service.rb
338
- - test/debug_proto/gen-rb/srv.rb
353
+ - spec/BaseService.thrift
354
+ - spec/ExtendedService.thrift
355
+ - spec/Referenced.thrift
356
+ - spec/ThriftNamespacedSpec.thrift
339
357
  - spec/ThriftSpec.thrift
340
- - spec/struct_nested_containers_spec.rb
341
- - spec/http_client_spec.rb
342
- - spec/thin_http_server_spec.rb
343
- - spec/spec_helper.rb
344
- - spec/compact_protocol_spec.rb
345
358
  - spec/base_protocol_spec.rb
359
+ - spec/base_transport_spec.rb
360
+ - spec/binary_protocol_accelerated_spec.rb
361
+ - spec/binary_protocol_spec.rb
362
+ - spec/binary_protocol_spec_shared.rb
363
+ - spec/bytes_spec.rb
346
364
  - spec/client_spec.rb
347
- - spec/server_spec.rb
365
+ - spec/compact_protocol_spec.rb
366
+ - spec/exception_spec.rb
367
+ - spec/flat_spec.rb
368
+ - spec/http_client_spec.rb
369
+ - spec/json_protocol_spec.rb
370
+ - spec/namespaced_spec.rb
371
+ - spec/nonblocking_server_spec.rb
372
+ - spec/processor_spec.rb
373
+ - spec/serializer_spec.rb
348
374
  - spec/server_socket_spec.rb
349
- - spec/bytes_spec.rb
350
- - spec/BaseService.thrift
375
+ - spec/server_spec.rb
351
376
  - spec/socket_spec.rb
352
- - spec/json_protocol_spec.rb
377
+ - spec/socket_spec_shared.rb
378
+ - spec/spec_helper.rb
379
+ - spec/ssl_server_socket_spec.rb
353
380
  - spec/ssl_socket_spec.rb
354
- - spec/Referenced.thrift
355
- - spec/binary_protocol_spec.rb
356
- - spec/binary_protocol_accelerated_spec.rb
357
- - spec/unix_socket_spec.rb
358
- - spec/ExtendedService.thrift
359
- - spec/types_spec.rb
360
- - spec/gen-rb/flat/thrift_namespaced_spec_constants.rb
361
- - spec/gen-rb/flat/namespaced_nonblocking_service.rb
362
- - spec/gen-rb/flat/referenced_constants.rb
363
- - spec/gen-rb/flat/referenced_types.rb
364
- - spec/gen-rb/flat/thrift_namespaced_spec_types.rb
365
- - spec/gen-rb/other_namespace/referenced_constants.rb
366
- - spec/gen-rb/other_namespace/referenced_types.rb
367
- - spec/gen-rb/extended/extended_service.rb
368
- - spec/gen-rb/extended/extended_service_types.rb
369
- - spec/gen-rb/extended/extended_service_constants.rb
370
- - spec/gen-rb/thrift_spec_constants.rb
371
- - spec/gen-rb/nonblocking_service.rb
372
- - spec/gen-rb/thrift_spec_types.rb
373
- - spec/gen-rb/namespaced_spec_namespace/thrift_namespaced_spec_constants.rb
374
- - spec/gen-rb/namespaced_spec_namespace/namespaced_nonblocking_service.rb
375
- - spec/gen-rb/namespaced_spec_namespace/thrift_namespaced_spec_types.rb
376
- - spec/gen-rb/base/base_service.rb
377
- - spec/gen-rb/base/base_service_constants.rb
378
- - spec/gen-rb/base/base_service_types.rb
379
- - spec/exception_spec.rb
380
- - spec/ThriftNamespacedSpec.thrift
381
+ - spec/struct_nested_containers_spec.rb
381
382
  - spec/struct_spec.rb
383
+ - spec/thin_http_server_spec.rb
384
+ - spec/types_spec.rb
382
385
  - spec/union_spec.rb
383
- - spec/namespaced_spec.rb
384
- - spec/serializer_spec.rb
385
- - spec/socket_spec_shared.rb
386
- - spec/binary_protocol_spec_shared.rb
387
- - spec/processor_spec.rb
388
- - spec/flat_spec.rb
389
- - spec/base_transport_spec.rb
390
- - spec/nonblocking_server_spec.rb
386
+ - spec/unix_socket_spec.rb
391
387
  - benchmark/Benchmark.thrift
392
- - benchmark/gen-rb/benchmark_service.rb
393
- - benchmark/gen-rb/benchmark_constants.rb
394
- - benchmark/gen-rb/benchmark_types.rb
395
- - benchmark/client.rb
396
388
  - benchmark/benchmark.rb
397
- - benchmark/thin_server.rb
389
+ - benchmark/client.rb
398
390
  - benchmark/server.rb
391
+ - benchmark/thin_server.rb
@@ -1,11 +0,0 @@
1
- #
2
- # Autogenerated by Thrift Compiler (0.11.0)
3
- #
4
- # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
- #
6
-
7
- require 'thrift'
8
- require 'benchmark_types'
9
-
10
- module ThriftBenchmark
11
- end
@@ -1,80 +0,0 @@
1
- #
2
- # Autogenerated by Thrift Compiler (0.11.0)
3
- #
4
- # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
- #
6
-
7
- require 'thrift'
8
- require 'benchmark_types'
9
-
10
- module ThriftBenchmark
11
- module BenchmarkService
12
- class Client
13
- include ::Thrift::Client
14
-
15
- def fibonacci(n)
16
- send_fibonacci(n)
17
- return recv_fibonacci()
18
- end
19
-
20
- def send_fibonacci(n)
21
- send_message('fibonacci', Fibonacci_args, :n => n)
22
- end
23
-
24
- def recv_fibonacci()
25
- result = receive_message(Fibonacci_result)
26
- return result.success unless result.success.nil?
27
- raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'fibonacci failed: unknown result')
28
- end
29
-
30
- end
31
-
32
- class Processor
33
- include ::Thrift::Processor
34
-
35
- def process_fibonacci(seqid, iprot, oprot)
36
- args = read_args(iprot, Fibonacci_args)
37
- result = Fibonacci_result.new()
38
- result.success = @handler.fibonacci(args.n)
39
- write_result(result, oprot, 'fibonacci', seqid)
40
- end
41
-
42
- end
43
-
44
- # HELPER FUNCTIONS AND STRUCTURES
45
-
46
- class Fibonacci_args
47
- include ::Thrift::Struct, ::Thrift::Struct_Union
48
- N = 1
49
-
50
- FIELDS = {
51
- N => {:type => ::Thrift::Types::BYTE, :name => 'n'}
52
- }
53
-
54
- def struct_fields; FIELDS; end
55
-
56
- def validate
57
- end
58
-
59
- ::Thrift::Struct.generate_accessors self
60
- end
61
-
62
- class Fibonacci_result
63
- include ::Thrift::Struct, ::Thrift::Struct_Union
64
- SUCCESS = 0
65
-
66
- FIELDS = {
67
- SUCCESS => {:type => ::Thrift::Types::I32, :name => 'success'}
68
- }
69
-
70
- def struct_fields; FIELDS; end
71
-
72
- def validate
73
- end
74
-
75
- ::Thrift::Struct.generate_accessors self
76
- end
77
-
78
- end
79
-
80
- end
@@ -1,10 +0,0 @@
1
- #
2
- # Autogenerated by Thrift Compiler (0.11.0)
3
- #
4
- # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
- #
6
-
7
- require 'thrift'
8
-
9
- module ThriftBenchmark
10
- end
@@ -1,80 +0,0 @@
1
- #
2
- # Autogenerated by Thrift Compiler (0.11.0)
3
- #
4
- # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
- #
6
-
7
- require 'thrift'
8
- require 'base/base_service_types'
9
-
10
- module Base
11
- module BaseService
12
- class Client
13
- include ::Thrift::Client
14
-
15
- def greeting(english)
16
- send_greeting(english)
17
- return recv_greeting()
18
- end
19
-
20
- def send_greeting(english)
21
- send_message('greeting', Greeting_args, :english => english)
22
- end
23
-
24
- def recv_greeting()
25
- result = receive_message(Greeting_result)
26
- return result.success unless result.success.nil?
27
- raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'greeting failed: unknown result')
28
- end
29
-
30
- end
31
-
32
- class Processor
33
- include ::Thrift::Processor
34
-
35
- def process_greeting(seqid, iprot, oprot)
36
- args = read_args(iprot, Greeting_args)
37
- result = Greeting_result.new()
38
- result.success = @handler.greeting(args.english)
39
- write_result(result, oprot, 'greeting', seqid)
40
- end
41
-
42
- end
43
-
44
- # HELPER FUNCTIONS AND STRUCTURES
45
-
46
- class Greeting_args
47
- include ::Thrift::Struct, ::Thrift::Struct_Union
48
- ENGLISH = 1
49
-
50
- FIELDS = {
51
- ENGLISH => {:type => ::Thrift::Types::BOOL, :name => 'english'}
52
- }
53
-
54
- def struct_fields; FIELDS; end
55
-
56
- def validate
57
- end
58
-
59
- ::Thrift::Struct.generate_accessors self
60
- end
61
-
62
- class Greeting_result
63
- include ::Thrift::Struct, ::Thrift::Struct_Union
64
- SUCCESS = 0
65
-
66
- FIELDS = {
67
- SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Base::Hello}
68
- }
69
-
70
- def struct_fields; FIELDS; end
71
-
72
- def validate
73
- end
74
-
75
- ::Thrift::Struct.generate_accessors self
76
- end
77
-
78
- end
79
-
80
- end
@@ -1,11 +0,0 @@
1
- #
2
- # Autogenerated by Thrift Compiler (0.11.0)
3
- #
4
- # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
- #
6
-
7
- require 'thrift'
8
- require 'base/base_service_types'
9
-
10
- module Base
11
- end
@@ -1,26 +0,0 @@
1
- #
2
- # Autogenerated by Thrift Compiler (0.11.0)
3
- #
4
- # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
- #
6
-
7
- require 'thrift'
8
-
9
- module Base
10
- class Hello
11
- include ::Thrift::Struct, ::Thrift::Struct_Union
12
- GREETING = 1
13
-
14
- FIELDS = {
15
- GREETING => {:type => ::Thrift::Types::STRING, :name => 'greeting', :default => %q"hello world"}
16
- }
17
-
18
- def struct_fields; FIELDS; end
19
-
20
- def validate
21
- end
22
-
23
- ::Thrift::Struct.generate_accessors self
24
- end
25
-
26
- end