thrift-mavericks 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (95) hide show
  1. checksums.yaml +15 -0
  2. data/CHANGELOG +1 -0
  3. data/README +43 -0
  4. data/benchmark/Benchmark.thrift +24 -0
  5. data/benchmark/benchmark.rb +271 -0
  6. data/benchmark/client.rb +74 -0
  7. data/benchmark/gen-rb/benchmark_constants.rb +11 -0
  8. data/benchmark/gen-rb/benchmark_service.rb +80 -0
  9. data/benchmark/gen-rb/benchmark_types.rb +10 -0
  10. data/benchmark/server.rb +82 -0
  11. data/benchmark/thin_server.rb +44 -0
  12. data/ext/binary_protocol_accelerated.c +441 -0
  13. data/ext/binary_protocol_accelerated.h +20 -0
  14. data/ext/compact_protocol.c +618 -0
  15. data/ext/compact_protocol.h +20 -0
  16. data/ext/constants.h +96 -0
  17. data/ext/extconf.rb +30 -0
  18. data/ext/macros.h +41 -0
  19. data/ext/memory_buffer.c +131 -0
  20. data/ext/memory_buffer.h +20 -0
  21. data/ext/protocol.c +185 -0
  22. data/ext/protocol.h +20 -0
  23. data/ext/strlcpy.c +41 -0
  24. data/ext/strlcpy.h +32 -0
  25. data/ext/struct.c +691 -0
  26. data/ext/struct.h +25 -0
  27. data/ext/thrift_native.c +196 -0
  28. data/lib/thrift.rb +64 -0
  29. data/lib/thrift/client.rb +62 -0
  30. data/lib/thrift/core_ext.rb +23 -0
  31. data/lib/thrift/core_ext/fixnum.rb +29 -0
  32. data/lib/thrift/exceptions.rb +84 -0
  33. data/lib/thrift/processor.rb +57 -0
  34. data/lib/thrift/protocol/base_protocol.rb +290 -0
  35. data/lib/thrift/protocol/binary_protocol.rb +229 -0
  36. data/lib/thrift/protocol/binary_protocol_accelerated.rb +39 -0
  37. data/lib/thrift/protocol/compact_protocol.rb +426 -0
  38. data/lib/thrift/serializer/deserializer.rb +33 -0
  39. data/lib/thrift/serializer/serializer.rb +34 -0
  40. data/lib/thrift/server/base_server.rb +31 -0
  41. data/lib/thrift/server/mongrel_http_server.rb +58 -0
  42. data/lib/thrift/server/nonblocking_server.rb +305 -0
  43. data/lib/thrift/server/simple_server.rb +43 -0
  44. data/lib/thrift/server/thread_pool_server.rb +75 -0
  45. data/lib/thrift/server/threaded_server.rb +47 -0
  46. data/lib/thrift/struct.rb +237 -0
  47. data/lib/thrift/struct_union.rb +192 -0
  48. data/lib/thrift/thrift_native.rb +24 -0
  49. data/lib/thrift/transport/base_server_transport.rb +37 -0
  50. data/lib/thrift/transport/base_transport.rb +107 -0
  51. data/lib/thrift/transport/buffered_transport.rb +108 -0
  52. data/lib/thrift/transport/framed_transport.rb +116 -0
  53. data/lib/thrift/transport/http_client_transport.rb +51 -0
  54. data/lib/thrift/transport/io_stream_transport.rb +39 -0
  55. data/lib/thrift/transport/memory_buffer_transport.rb +125 -0
  56. data/lib/thrift/transport/server_socket.rb +63 -0
  57. data/lib/thrift/transport/socket.rb +137 -0
  58. data/lib/thrift/transport/unix_server_socket.rb +60 -0
  59. data/lib/thrift/transport/unix_socket.rb +40 -0
  60. data/lib/thrift/types.rb +101 -0
  61. data/lib/thrift/union.rb +179 -0
  62. data/spec/ThriftSpec.thrift +132 -0
  63. data/spec/base_protocol_spec.rb +160 -0
  64. data/spec/base_transport_spec.rb +351 -0
  65. data/spec/binary_protocol_accelerated_spec.rb +46 -0
  66. data/spec/binary_protocol_spec.rb +61 -0
  67. data/spec/binary_protocol_spec_shared.rb +375 -0
  68. data/spec/client_spec.rb +100 -0
  69. data/spec/compact_protocol_spec.rb +144 -0
  70. data/spec/exception_spec.rb +142 -0
  71. data/spec/gen-rb/nonblocking_service.rb +272 -0
  72. data/spec/gen-rb/thrift_spec_constants.rb +11 -0
  73. data/spec/gen-rb/thrift_spec_types.rb +346 -0
  74. data/spec/http_client_spec.rb +64 -0
  75. data/spec/mongrel_http_server_spec.rb +117 -0
  76. data/spec/nonblocking_server_spec.rb +265 -0
  77. data/spec/processor_spec.rb +83 -0
  78. data/spec/serializer_spec.rb +69 -0
  79. data/spec/server_socket_spec.rb +80 -0
  80. data/spec/server_spec.rb +159 -0
  81. data/spec/socket_spec.rb +61 -0
  82. data/spec/socket_spec_shared.rb +104 -0
  83. data/spec/spec_helper.rb +58 -0
  84. data/spec/struct_spec.rb +295 -0
  85. data/spec/types_spec.rb +116 -0
  86. data/spec/union_spec.rb +193 -0
  87. data/spec/unix_socket_spec.rb +108 -0
  88. data/test/debug_proto/gen-rb/debug_proto_test_constants.rb +274 -0
  89. data/test/debug_proto/gen-rb/debug_proto_test_types.rb +761 -0
  90. data/test/debug_proto/gen-rb/empty_service.rb +24 -0
  91. data/test/debug_proto/gen-rb/inherited.rb +79 -0
  92. data/test/debug_proto/gen-rb/reverse_order_service.rb +82 -0
  93. data/test/debug_proto/gen-rb/service_for_exception_with_a_map.rb +81 -0
  94. data/test/debug_proto/gen-rb/srv.rb +330 -0
  95. metadata +281 -0
metadata ADDED
@@ -0,0 +1,281 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: thrift-mavericks
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.8.0
5
+ platform: ruby
6
+ authors:
7
+ - Thrift Developers
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2013-08-13 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rake
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ! '>='
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ! '>='
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rspec
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '='
32
+ - !ruby/object:Gem::Version
33
+ version: 1.3.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.3.2
41
+ - !ruby/object:Gem::Dependency
42
+ name: mongrel
43
+ requirement: !ruby/object:Gem::Requirement
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
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ description: Ruby bindings for the Apache Thrift RPC system
56
+ email:
57
+ - dev@thrift.apache.org
58
+ executables: []
59
+ extensions:
60
+ - ext/extconf.rb
61
+ extra_rdoc_files:
62
+ - CHANGELOG
63
+ - README
64
+ - ext/binary_protocol_accelerated.c
65
+ - ext/compact_protocol.c
66
+ - ext/memory_buffer.c
67
+ - ext/protocol.c
68
+ - ext/strlcpy.c
69
+ - ext/struct.c
70
+ - ext/thrift_native.c
71
+ - ext/binary_protocol_accelerated.h
72
+ - ext/compact_protocol.h
73
+ - ext/constants.h
74
+ - ext/macros.h
75
+ - ext/memory_buffer.h
76
+ - ext/protocol.h
77
+ - ext/strlcpy.h
78
+ - ext/struct.h
79
+ - ext/extconf.rb
80
+ - lib/thrift/client.rb
81
+ - lib/thrift/core_ext/fixnum.rb
82
+ - lib/thrift/core_ext.rb
83
+ - lib/thrift/exceptions.rb
84
+ - lib/thrift/processor.rb
85
+ - lib/thrift/protocol/base_protocol.rb
86
+ - lib/thrift/protocol/binary_protocol.rb
87
+ - lib/thrift/protocol/binary_protocol_accelerated.rb
88
+ - lib/thrift/protocol/compact_protocol.rb
89
+ - lib/thrift/serializer/deserializer.rb
90
+ - lib/thrift/serializer/serializer.rb
91
+ - lib/thrift/server/base_server.rb
92
+ - lib/thrift/server/mongrel_http_server.rb
93
+ - lib/thrift/server/nonblocking_server.rb
94
+ - lib/thrift/server/simple_server.rb
95
+ - lib/thrift/server/thread_pool_server.rb
96
+ - lib/thrift/server/threaded_server.rb
97
+ - lib/thrift/struct.rb
98
+ - lib/thrift/struct_union.rb
99
+ - lib/thrift/thrift_native.rb
100
+ - lib/thrift/transport/base_server_transport.rb
101
+ - lib/thrift/transport/base_transport.rb
102
+ - lib/thrift/transport/buffered_transport.rb
103
+ - lib/thrift/transport/framed_transport.rb
104
+ - lib/thrift/transport/http_client_transport.rb
105
+ - lib/thrift/transport/io_stream_transport.rb
106
+ - lib/thrift/transport/memory_buffer_transport.rb
107
+ - lib/thrift/transport/server_socket.rb
108
+ - lib/thrift/transport/socket.rb
109
+ - lib/thrift/transport/unix_server_socket.rb
110
+ - lib/thrift/transport/unix_socket.rb
111
+ - lib/thrift/types.rb
112
+ - lib/thrift/union.rb
113
+ - lib/thrift.rb
114
+ files:
115
+ - lib/thrift/client.rb
116
+ - lib/thrift/core_ext/fixnum.rb
117
+ - lib/thrift/core_ext.rb
118
+ - lib/thrift/exceptions.rb
119
+ - lib/thrift/processor.rb
120
+ - lib/thrift/protocol/base_protocol.rb
121
+ - lib/thrift/protocol/binary_protocol.rb
122
+ - lib/thrift/protocol/binary_protocol_accelerated.rb
123
+ - lib/thrift/protocol/compact_protocol.rb
124
+ - lib/thrift/serializer/deserializer.rb
125
+ - lib/thrift/serializer/serializer.rb
126
+ - lib/thrift/server/base_server.rb
127
+ - lib/thrift/server/mongrel_http_server.rb
128
+ - lib/thrift/server/nonblocking_server.rb
129
+ - lib/thrift/server/simple_server.rb
130
+ - lib/thrift/server/thread_pool_server.rb
131
+ - lib/thrift/server/threaded_server.rb
132
+ - lib/thrift/struct.rb
133
+ - lib/thrift/struct_union.rb
134
+ - lib/thrift/thrift_native.rb
135
+ - lib/thrift/transport/base_server_transport.rb
136
+ - lib/thrift/transport/base_transport.rb
137
+ - lib/thrift/transport/buffered_transport.rb
138
+ - lib/thrift/transport/framed_transport.rb
139
+ - lib/thrift/transport/http_client_transport.rb
140
+ - lib/thrift/transport/io_stream_transport.rb
141
+ - lib/thrift/transport/memory_buffer_transport.rb
142
+ - lib/thrift/transport/server_socket.rb
143
+ - lib/thrift/transport/socket.rb
144
+ - lib/thrift/transport/unix_server_socket.rb
145
+ - lib/thrift/transport/unix_socket.rb
146
+ - lib/thrift/types.rb
147
+ - lib/thrift/union.rb
148
+ - lib/thrift.rb
149
+ - spec/base_protocol_spec.rb
150
+ - spec/base_transport_spec.rb
151
+ - spec/binary_protocol_accelerated_spec.rb
152
+ - spec/binary_protocol_spec.rb
153
+ - spec/binary_protocol_spec_shared.rb
154
+ - spec/client_spec.rb
155
+ - spec/compact_protocol_spec.rb
156
+ - spec/exception_spec.rb
157
+ - spec/gen-rb/nonblocking_service.rb
158
+ - spec/gen-rb/thrift_spec_constants.rb
159
+ - spec/gen-rb/thrift_spec_types.rb
160
+ - spec/http_client_spec.rb
161
+ - spec/mongrel_http_server_spec.rb
162
+ - spec/nonblocking_server_spec.rb
163
+ - spec/processor_spec.rb
164
+ - spec/serializer_spec.rb
165
+ - spec/server_socket_spec.rb
166
+ - spec/server_spec.rb
167
+ - spec/socket_spec.rb
168
+ - spec/socket_spec_shared.rb
169
+ - spec/spec_helper.rb
170
+ - spec/struct_spec.rb
171
+ - spec/ThriftSpec.thrift
172
+ - spec/types_spec.rb
173
+ - spec/union_spec.rb
174
+ - spec/unix_socket_spec.rb
175
+ - CHANGELOG
176
+ - README
177
+ - ext/binary_protocol_accelerated.c
178
+ - ext/compact_protocol.c
179
+ - ext/memory_buffer.c
180
+ - ext/protocol.c
181
+ - ext/strlcpy.c
182
+ - ext/struct.c
183
+ - ext/thrift_native.c
184
+ - ext/binary_protocol_accelerated.h
185
+ - ext/compact_protocol.h
186
+ - ext/constants.h
187
+ - ext/macros.h
188
+ - ext/memory_buffer.h
189
+ - ext/protocol.h
190
+ - ext/strlcpy.h
191
+ - ext/struct.h
192
+ - ext/extconf.rb
193
+ - test/debug_proto/gen-rb/debug_proto_test_constants.rb
194
+ - test/debug_proto/gen-rb/debug_proto_test_types.rb
195
+ - test/debug_proto/gen-rb/empty_service.rb
196
+ - test/debug_proto/gen-rb/inherited.rb
197
+ - test/debug_proto/gen-rb/reverse_order_service.rb
198
+ - test/debug_proto/gen-rb/service_for_exception_with_a_map.rb
199
+ - test/debug_proto/gen-rb/srv.rb
200
+ - benchmark/benchmark.rb
201
+ - benchmark/Benchmark.thrift
202
+ - benchmark/client.rb
203
+ - benchmark/gen-rb/benchmark_constants.rb
204
+ - benchmark/gen-rb/benchmark_service.rb
205
+ - benchmark/gen-rb/benchmark_types.rb
206
+ - benchmark/server.rb
207
+ - benchmark/thin_server.rb
208
+ homepage: http://thrift.apache.org
209
+ licenses:
210
+ - Apache 2.0
211
+ metadata: {}
212
+ post_install_message:
213
+ rdoc_options:
214
+ - --line-numbers
215
+ - --inline-source
216
+ - --title
217
+ - Thrift
218
+ - --main
219
+ - README
220
+ require_paths:
221
+ - lib
222
+ - ext
223
+ required_ruby_version: !ruby/object:Gem::Requirement
224
+ requirements:
225
+ - - ! '>='
226
+ - !ruby/object:Gem::Version
227
+ version: '0'
228
+ required_rubygems_version: !ruby/object:Gem::Requirement
229
+ requirements:
230
+ - - ! '>='
231
+ - !ruby/object:Gem::Version
232
+ version: '0'
233
+ requirements: []
234
+ rubyforge_project: thrift
235
+ rubygems_version: 2.0.4
236
+ signing_key:
237
+ specification_version: 4
238
+ summary: Ruby bindings for Apache Thrift
239
+ test_files:
240
+ - test/debug_proto/gen-rb/debug_proto_test_constants.rb
241
+ - test/debug_proto/gen-rb/debug_proto_test_types.rb
242
+ - test/debug_proto/gen-rb/empty_service.rb
243
+ - test/debug_proto/gen-rb/inherited.rb
244
+ - test/debug_proto/gen-rb/reverse_order_service.rb
245
+ - test/debug_proto/gen-rb/service_for_exception_with_a_map.rb
246
+ - test/debug_proto/gen-rb/srv.rb
247
+ - spec/base_protocol_spec.rb
248
+ - spec/base_transport_spec.rb
249
+ - spec/binary_protocol_accelerated_spec.rb
250
+ - spec/binary_protocol_spec.rb
251
+ - spec/binary_protocol_spec_shared.rb
252
+ - spec/client_spec.rb
253
+ - spec/compact_protocol_spec.rb
254
+ - spec/exception_spec.rb
255
+ - spec/gen-rb/nonblocking_service.rb
256
+ - spec/gen-rb/thrift_spec_constants.rb
257
+ - spec/gen-rb/thrift_spec_types.rb
258
+ - spec/http_client_spec.rb
259
+ - spec/mongrel_http_server_spec.rb
260
+ - spec/nonblocking_server_spec.rb
261
+ - spec/processor_spec.rb
262
+ - spec/serializer_spec.rb
263
+ - spec/server_socket_spec.rb
264
+ - spec/server_spec.rb
265
+ - spec/socket_spec.rb
266
+ - spec/socket_spec_shared.rb
267
+ - spec/spec_helper.rb
268
+ - spec/struct_spec.rb
269
+ - spec/ThriftSpec.thrift
270
+ - spec/types_spec.rb
271
+ - spec/union_spec.rb
272
+ - spec/unix_socket_spec.rb
273
+ - benchmark/benchmark.rb
274
+ - benchmark/Benchmark.thrift
275
+ - benchmark/client.rb
276
+ - benchmark/gen-rb/benchmark_constants.rb
277
+ - benchmark/gen-rb/benchmark_service.rb
278
+ - benchmark/gen-rb/benchmark_types.rb
279
+ - benchmark/server.rb
280
+ - benchmark/thin_server.rb
281
+ has_rdoc: true