investtools-thrift 0.9.2.0.1

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