THRIFT-276. rb: Ruby libraries should have one class per file
authorBryan Duxbury <bryanduxbury@apache.org>
Sat, 4 Apr 2009 00:58:03 +0000 (00:58 +0000)
committerBryan Duxbury <bryanduxbury@apache.org>
Sat, 4 Apr 2009 00:58:03 +0000 (00:58 +0000)
commitd1d1542e1e307756f7637de0d759d9fc02677a93
treee4e906515afe79e8ce5388b854b39f2ac166acfa
parentcf8c94acb4ca63d92b73fda6351b6a8f315f4895
THRIFT-276. rb: Ruby libraries should have one class per file

This monster of a patch moves all the classes into their own files and specs as appropriate. Additionally, it concentrates all the requires into thrift.rb, removing the need to require any other file. (Changes were made to the compiler to reflect this reduced requirement.)

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@761849 13f79535-47bb-0310-9956-ffa450edef68
54 files changed:
compiler/cpp/src/generate/t_rb_generator.cc
lib/rb/Manifest
lib/rb/benchmark/benchmark.rb
lib/rb/benchmark/client.rb
lib/rb/benchmark/server.rb
lib/rb/benchmark/thin_server.rb
lib/rb/ext/memory_buffer.c
lib/rb/ext/protocol.c
lib/rb/lib/thrift.rb
lib/rb/lib/thrift/protocol/base_protocol.rb [moved from lib/rb/lib/thrift/protocol.rb with 99% similarity]
lib/rb/lib/thrift/protocol/binary_protocol.rb [moved from lib/rb/lib/thrift/protocol/binaryprotocol.rb with 97% similarity]
lib/rb/lib/thrift/protocol/binary_protocol_accelerated.rb [moved from lib/rb/lib/thrift/protocol/binaryprotocolaccelerated.rb with 80% similarity]
lib/rb/lib/thrift/protocol/compact_protocol.rb
lib/rb/lib/thrift/serializer/deserializer.rb [new file with mode: 0644]
lib/rb/lib/thrift/serializer/serializer.rb [moved from lib/rb/lib/thrift/serializer.rb with 67% similarity]
lib/rb/lib/thrift/server.rb [deleted file]
lib/rb/lib/thrift/server/base_server.rb [new file with mode: 0644]
lib/rb/lib/thrift/server/mongrel_http_server.rb [moved from lib/rb/lib/thrift/server/httpserver.rb with 93% similarity]
lib/rb/lib/thrift/server/nonblocking_server.rb [moved from lib/rb/lib/thrift/server/nonblockingserver.rb with 83% similarity]
lib/rb/lib/thrift/server/simple_server.rb [new file with mode: 0644]
lib/rb/lib/thrift/server/thread_pool_server.rb [new file with mode: 0644]
lib/rb/lib/thrift/server/threaded_server.rb [new file with mode: 0644]
lib/rb/lib/thrift/struct.rb
lib/rb/lib/thrift/transport.rb [deleted file]
lib/rb/lib/thrift/transport/base_server_transport.rb [new file with mode: 0644]
lib/rb/lib/thrift/transport/base_transport.rb [new file with mode: 0644]
lib/rb/lib/thrift/transport/buffered_transport.rb [new file with mode: 0644]
lib/rb/lib/thrift/transport/framed_transport.rb [new file with mode: 0644]
lib/rb/lib/thrift/transport/http_client_transport.rb [moved from lib/rb/lib/thrift/transport/httpclient.rb with 93% similarity]
lib/rb/lib/thrift/transport/io_stream_transport.rb [new file with mode: 0644]
lib/rb/lib/thrift/transport/memory_buffer_transport.rb [new file with mode: 0644]
lib/rb/lib/thrift/transport/server_socket.rb [new file with mode: 0644]
lib/rb/lib/thrift/transport/socket.rb
lib/rb/lib/thrift/transport/unix_server_socket.rb [moved from lib/rb/lib/thrift/transport/unixsocket.rb with 75% similarity]
lib/rb/lib/thrift/transport/unix_socket.rb [new file with mode: 0644]
lib/rb/script/proto_benchmark.rb
lib/rb/script/read_struct.rb
lib/rb/script/write_struct.rb
lib/rb/spec/base_protocol_spec.rb [moved from lib/rb/spec/protocol_spec.rb with 95% similarity]
lib/rb/spec/base_transport_spec.rb [moved from lib/rb/spec/transport_spec.rb with 94% similarity]
lib/rb/spec/binary_protocol_accelerated_spec.rb [moved from lib/rb/spec/binaryprotocolaccelerated_spec.rb with 92% similarity]
lib/rb/spec/binary_protocol_spec.rb [moved from lib/rb/spec/binaryprotocol_spec.rb with 95% similarity]
lib/rb/spec/binary_protocol_spec_shared.rb [moved from lib/rb/spec/binaryprotocol_spec_shared.rb with 94% similarity]
lib/rb/spec/compact_protocol_spec.rb
lib/rb/spec/http_client_spec.rb [moved from lib/rb/spec/httpclient_spec.rb with 89% similarity]
lib/rb/spec/mongrel_http_server_spec.rb [moved from lib/rb/spec/httpserver_spec.rb with 92% similarity]
lib/rb/spec/nonblocking_server_spec.rb [moved from lib/rb/spec/nonblockingserver_spec.rb with 97% similarity]
lib/rb/spec/serializer_spec.rb
lib/rb/spec/server_socket_spec.rb [new file with mode: 0644]
lib/rb/spec/server_spec.rb
lib/rb/spec/socket_spec.rb
lib/rb/spec/spec_helper.rb
lib/rb/spec/struct_spec.rb
lib/rb/spec/unix_socket_spec.rb [moved from lib/rb/spec/unixsocket_spec.rb with 98% similarity]