slayer-thrift 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (105) hide show
  1. data/CHANGELOG +1 -0
  2. data/InstalledFiles +1 -0
  3. data/Makefile +512 -0
  4. data/Makefile.am +49 -0
  5. data/Makefile.in +512 -0
  6. data/Manifest +103 -0
  7. data/README +43 -0
  8. data/Rakefile +102 -0
  9. data/benchmark/Benchmark.thrift +24 -0
  10. data/benchmark/benchmark.rb +271 -0
  11. data/benchmark/client.rb +74 -0
  12. data/benchmark/gen-rb/benchmark_constants.rb +10 -0
  13. data/benchmark/gen-rb/benchmark_service.rb +80 -0
  14. data/benchmark/gen-rb/benchmark_types.rb +9 -0
  15. data/benchmark/server.rb +82 -0
  16. data/benchmark/thin_server.rb +44 -0
  17. data/debug_proto_test/gen-rb/debug_proto_test_constants.rb +273 -0
  18. data/debug_proto_test/gen-rb/debug_proto_test_types.rb +705 -0
  19. data/debug_proto_test/gen-rb/empty_service.rb +24 -0
  20. data/debug_proto_test/gen-rb/inherited.rb +79 -0
  21. data/debug_proto_test/gen-rb/reverse_order_service.rb +82 -0
  22. data/debug_proto_test/gen-rb/service_for_exception_with_a_map.rb +81 -0
  23. data/debug_proto_test/gen-rb/srv.rb +330 -0
  24. data/ext/binary_protocol_accelerated.c +441 -0
  25. data/ext/binary_protocol_accelerated.h +20 -0
  26. data/ext/compact_protocol.c +618 -0
  27. data/ext/compact_protocol.h +20 -0
  28. data/ext/constants.h +96 -0
  29. data/ext/extconf.rb +30 -0
  30. data/ext/macros.h +41 -0
  31. data/ext/memory_buffer.c +131 -0
  32. data/ext/memory_buffer.h +20 -0
  33. data/ext/protocol.c +185 -0
  34. data/ext/protocol.h +20 -0
  35. data/ext/struct.c +716 -0
  36. data/ext/struct.h +25 -0
  37. data/ext/thrift_native.c +196 -0
  38. data/lib/thrift.rb +64 -0
  39. data/lib/thrift/client.rb +62 -0
  40. data/lib/thrift/core_ext.rb +23 -0
  41. data/lib/thrift/core_ext/fixnum.rb +29 -0
  42. data/lib/thrift/exceptions.rb +84 -0
  43. data/lib/thrift/processor.rb +57 -0
  44. data/lib/thrift/protocol/base_protocol.rb +290 -0
  45. data/lib/thrift/protocol/binary_protocol.rb +229 -0
  46. data/lib/thrift/protocol/binary_protocol_accelerated.rb +39 -0
  47. data/lib/thrift/protocol/compact_protocol.rb +426 -0
  48. data/lib/thrift/serializer/deserializer.rb +33 -0
  49. data/lib/thrift/serializer/serializer.rb +34 -0
  50. data/lib/thrift/server/base_server.rb +31 -0
  51. data/lib/thrift/server/mongrel_http_server.rb +58 -0
  52. data/lib/thrift/server/nonblocking_server.rb +305 -0
  53. data/lib/thrift/server/simple_server.rb +43 -0
  54. data/lib/thrift/server/thread_pool_server.rb +75 -0
  55. data/lib/thrift/server/threaded_server.rb +47 -0
  56. data/lib/thrift/struct.rb +237 -0
  57. data/lib/thrift/struct_union.rb +192 -0
  58. data/lib/thrift/thrift_native.rb +24 -0
  59. data/lib/thrift/transport/base_server_transport.rb +37 -0
  60. data/lib/thrift/transport/base_transport.rb +107 -0
  61. data/lib/thrift/transport/buffered_transport.rb +108 -0
  62. data/lib/thrift/transport/framed_transport.rb +116 -0
  63. data/lib/thrift/transport/http_client_transport.rb +51 -0
  64. data/lib/thrift/transport/io_stream_transport.rb +39 -0
  65. data/lib/thrift/transport/memory_buffer_transport.rb +125 -0
  66. data/lib/thrift/transport/server_socket.rb +63 -0
  67. data/lib/thrift/transport/socket.rb +137 -0
  68. data/lib/thrift/transport/unix_server_socket.rb +60 -0
  69. data/lib/thrift/transport/unix_socket.rb +40 -0
  70. data/lib/thrift/types.rb +101 -0
  71. data/lib/thrift/union.rb +179 -0
  72. data/script/proto_benchmark.rb +121 -0
  73. data/script/read_struct.rb +43 -0
  74. data/script/write_struct.rb +30 -0
  75. data/setup.rb +1585 -0
  76. data/slayer-thrift.gemspec +30 -0
  77. data/spec/ThriftSpec.thrift +132 -0
  78. data/spec/base_protocol_spec.rb +160 -0
  79. data/spec/base_transport_spec.rb +351 -0
  80. data/spec/binary_protocol_accelerated_spec.rb +46 -0
  81. data/spec/binary_protocol_spec.rb +61 -0
  82. data/spec/binary_protocol_spec_shared.rb +375 -0
  83. data/spec/client_spec.rb +100 -0
  84. data/spec/compact_protocol_spec.rb +133 -0
  85. data/spec/exception_spec.rb +142 -0
  86. data/spec/gen-rb/nonblocking_service.rb +272 -0
  87. data/spec/gen-rb/thrift_spec_constants.rb +10 -0
  88. data/spec/gen-rb/thrift_spec_types.rb +345 -0
  89. data/spec/http_client_spec.rb +64 -0
  90. data/spec/mongrel_http_server_spec.rb +117 -0
  91. data/spec/nonblocking_server_spec.rb +265 -0
  92. data/spec/processor_spec.rb +83 -0
  93. data/spec/serializer_spec.rb +69 -0
  94. data/spec/server_socket_spec.rb +80 -0
  95. data/spec/server_spec.rb +160 -0
  96. data/spec/socket_spec.rb +61 -0
  97. data/spec/socket_spec_shared.rb +104 -0
  98. data/spec/spec_helper.rb +58 -0
  99. data/spec/struct_spec.rb +295 -0
  100. data/spec/types_spec.rb +116 -0
  101. data/spec/union_spec.rb +193 -0
  102. data/spec/unix_socket_spec.rb +108 -0
  103. data/thrift.gemspec +30 -0
  104. data/tmp/thrift-0.7.0.gem +0 -0
  105. metadata +207 -0
Binary file
metadata ADDED
@@ -0,0 +1,207 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: slayer-thrift
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.7.0
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Thrift Developers
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2011-12-07 00:00:00.000000000Z
13
+ dependencies: []
14
+ description: Ruby bindings for the Apache Thrift RPC system
15
+ email:
16
+ - dev@thrift.apache.org
17
+ executables: []
18
+ extensions:
19
+ - ext/extconf.rb
20
+ extra_rdoc_files:
21
+ - CHANGELOG
22
+ - README
23
+ - ext/binary_protocol_accelerated.c
24
+ - ext/binary_protocol_accelerated.h
25
+ - ext/compact_protocol.c
26
+ - ext/compact_protocol.h
27
+ - ext/constants.h
28
+ - ext/extconf.rb
29
+ - ext/macros.h
30
+ - ext/memory_buffer.c
31
+ - ext/memory_buffer.h
32
+ - ext/protocol.c
33
+ - ext/protocol.h
34
+ - ext/struct.c
35
+ - ext/struct.h
36
+ - ext/thrift_native.c
37
+ - lib/thrift.rb
38
+ - lib/thrift/client.rb
39
+ - lib/thrift/core_ext.rb
40
+ - lib/thrift/core_ext/fixnum.rb
41
+ - lib/thrift/exceptions.rb
42
+ - lib/thrift/processor.rb
43
+ - lib/thrift/protocol/base_protocol.rb
44
+ - lib/thrift/protocol/binary_protocol.rb
45
+ - lib/thrift/protocol/binary_protocol_accelerated.rb
46
+ - lib/thrift/protocol/compact_protocol.rb
47
+ - lib/thrift/serializer/deserializer.rb
48
+ - lib/thrift/serializer/serializer.rb
49
+ - lib/thrift/server/base_server.rb
50
+ - lib/thrift/server/mongrel_http_server.rb
51
+ - lib/thrift/server/nonblocking_server.rb
52
+ - lib/thrift/server/simple_server.rb
53
+ - lib/thrift/server/thread_pool_server.rb
54
+ - lib/thrift/server/threaded_server.rb
55
+ - lib/thrift/struct.rb
56
+ - lib/thrift/struct_union.rb
57
+ - lib/thrift/thrift_native.rb
58
+ - lib/thrift/transport/base_server_transport.rb
59
+ - lib/thrift/transport/base_transport.rb
60
+ - lib/thrift/transport/buffered_transport.rb
61
+ - lib/thrift/transport/framed_transport.rb
62
+ - lib/thrift/transport/http_client_transport.rb
63
+ - lib/thrift/transport/io_stream_transport.rb
64
+ - lib/thrift/transport/memory_buffer_transport.rb
65
+ - lib/thrift/transport/server_socket.rb
66
+ - lib/thrift/transport/socket.rb
67
+ - lib/thrift/transport/unix_server_socket.rb
68
+ - lib/thrift/transport/unix_socket.rb
69
+ - lib/thrift/types.rb
70
+ - lib/thrift/union.rb
71
+ files:
72
+ - CHANGELOG
73
+ - InstalledFiles
74
+ - Makefile
75
+ - Makefile.am
76
+ - Makefile.in
77
+ - Manifest
78
+ - README
79
+ - Rakefile
80
+ - benchmark/Benchmark.thrift
81
+ - benchmark/benchmark.rb
82
+ - benchmark/client.rb
83
+ - benchmark/gen-rb/benchmark_constants.rb
84
+ - benchmark/gen-rb/benchmark_service.rb
85
+ - benchmark/gen-rb/benchmark_types.rb
86
+ - benchmark/server.rb
87
+ - benchmark/thin_server.rb
88
+ - debug_proto_test/gen-rb/debug_proto_test_constants.rb
89
+ - debug_proto_test/gen-rb/debug_proto_test_types.rb
90
+ - debug_proto_test/gen-rb/empty_service.rb
91
+ - debug_proto_test/gen-rb/inherited.rb
92
+ - debug_proto_test/gen-rb/reverse_order_service.rb
93
+ - debug_proto_test/gen-rb/service_for_exception_with_a_map.rb
94
+ - debug_proto_test/gen-rb/srv.rb
95
+ - ext/binary_protocol_accelerated.c
96
+ - ext/binary_protocol_accelerated.h
97
+ - ext/compact_protocol.c
98
+ - ext/compact_protocol.h
99
+ - ext/constants.h
100
+ - ext/extconf.rb
101
+ - ext/macros.h
102
+ - ext/memory_buffer.c
103
+ - ext/memory_buffer.h
104
+ - ext/protocol.c
105
+ - ext/protocol.h
106
+ - ext/struct.c
107
+ - ext/struct.h
108
+ - ext/thrift_native.c
109
+ - lib/thrift.rb
110
+ - lib/thrift/client.rb
111
+ - lib/thrift/core_ext.rb
112
+ - lib/thrift/core_ext/fixnum.rb
113
+ - lib/thrift/exceptions.rb
114
+ - lib/thrift/processor.rb
115
+ - lib/thrift/protocol/base_protocol.rb
116
+ - lib/thrift/protocol/binary_protocol.rb
117
+ - lib/thrift/protocol/binary_protocol_accelerated.rb
118
+ - lib/thrift/protocol/compact_protocol.rb
119
+ - lib/thrift/serializer/deserializer.rb
120
+ - lib/thrift/serializer/serializer.rb
121
+ - lib/thrift/server/base_server.rb
122
+ - lib/thrift/server/mongrel_http_server.rb
123
+ - lib/thrift/server/nonblocking_server.rb
124
+ - lib/thrift/server/simple_server.rb
125
+ - lib/thrift/server/thread_pool_server.rb
126
+ - lib/thrift/server/threaded_server.rb
127
+ - lib/thrift/struct.rb
128
+ - lib/thrift/struct_union.rb
129
+ - lib/thrift/thrift_native.rb
130
+ - lib/thrift/transport/base_server_transport.rb
131
+ - lib/thrift/transport/base_transport.rb
132
+ - lib/thrift/transport/buffered_transport.rb
133
+ - lib/thrift/transport/framed_transport.rb
134
+ - lib/thrift/transport/http_client_transport.rb
135
+ - lib/thrift/transport/io_stream_transport.rb
136
+ - lib/thrift/transport/memory_buffer_transport.rb
137
+ - lib/thrift/transport/server_socket.rb
138
+ - lib/thrift/transport/socket.rb
139
+ - lib/thrift/transport/unix_server_socket.rb
140
+ - lib/thrift/transport/unix_socket.rb
141
+ - lib/thrift/types.rb
142
+ - lib/thrift/union.rb
143
+ - script/proto_benchmark.rb
144
+ - script/read_struct.rb
145
+ - script/write_struct.rb
146
+ - setup.rb
147
+ - spec/ThriftSpec.thrift
148
+ - spec/base_protocol_spec.rb
149
+ - spec/base_transport_spec.rb
150
+ - spec/binary_protocol_accelerated_spec.rb
151
+ - spec/binary_protocol_spec.rb
152
+ - spec/binary_protocol_spec_shared.rb
153
+ - spec/client_spec.rb
154
+ - spec/compact_protocol_spec.rb
155
+ - spec/exception_spec.rb
156
+ - spec/gen-rb/nonblocking_service.rb
157
+ - spec/gen-rb/thrift_spec_constants.rb
158
+ - spec/gen-rb/thrift_spec_types.rb
159
+ - spec/http_client_spec.rb
160
+ - spec/mongrel_http_server_spec.rb
161
+ - spec/nonblocking_server_spec.rb
162
+ - spec/processor_spec.rb
163
+ - spec/serializer_spec.rb
164
+ - spec/server_socket_spec.rb
165
+ - spec/server_spec.rb
166
+ - spec/socket_spec.rb
167
+ - spec/socket_spec_shared.rb
168
+ - spec/spec_helper.rb
169
+ - spec/struct_spec.rb
170
+ - spec/types_spec.rb
171
+ - spec/union_spec.rb
172
+ - spec/unix_socket_spec.rb
173
+ - thrift.gemspec
174
+ - tmp/thrift-0.7.0.gem
175
+ - slayer-thrift.gemspec
176
+ homepage: http://thrift.apache.org
177
+ licenses: []
178
+ post_install_message:
179
+ rdoc_options:
180
+ - --line-numbers
181
+ - --inline-source
182
+ - --title
183
+ - Slayer-thrift
184
+ - --main
185
+ - README
186
+ require_paths:
187
+ - lib
188
+ - ext
189
+ required_ruby_version: !ruby/object:Gem::Requirement
190
+ none: false
191
+ requirements:
192
+ - - ! '>='
193
+ - !ruby/object:Gem::Version
194
+ version: '0'
195
+ required_rubygems_version: !ruby/object:Gem::Requirement
196
+ none: false
197
+ requirements:
198
+ - - ! '>='
199
+ - !ruby/object:Gem::Version
200
+ version: 1.2.0
201
+ requirements: []
202
+ rubyforge_project: slayer-thrift
203
+ rubygems_version: 1.8.11
204
+ signing_key:
205
+ specification_version: 3
206
+ summary: Ruby bindings for the Apache Thrift RPC system
207
+ test_files: []