THRIFT-332. rb: Compact Protocol in Ruby
authorBryan Duxbury <bryanduxbury@apache.org>
Thu, 19 Mar 2009 18:57:43 +0000 (18:57 +0000)
committerBryan Duxbury <bryanduxbury@apache.org>
Thu, 19 Mar 2009 18:57:43 +0000 (18:57 +0000)
commitd815c218c8c48ab7bd930aa0ea8913bc9b2ce872
tree6344fafd1300682cd8a6822d19dc380c6a412fe1
parent00a8dd633c4ebdd2536b70901343d0beb36da0f1
THRIFT-332. rb: Compact Protocol in Ruby

This patch includes both a pure Ruby and C-extension port of the Compact Protocol described in THRIFT-110. It also fixes a bug in struct.c that was interfering with native protocol method calls, and adds some utility classes to the Java library for serializing/deserializing to a file for the purpose of testing protocols cross-language.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@756133 13f79535-47bb-0310-9956-ffa450edef68
21 files changed:
lib/java/test/org/apache/thrift/test/ReadStruct.java [new file with mode: 0644]
lib/java/test/org/apache/thrift/test/TCompactProtocolTest.java
lib/java/test/org/apache/thrift/test/WriteStruct.java [new file with mode: 0644]
lib/rb/Manifest
lib/rb/Rakefile
lib/rb/ext/binary_protocol_accelerated.c
lib/rb/ext/compact_protocol.c [new file with mode: 0644]
lib/rb/ext/compact_protocol.h [new file with mode: 0644]
lib/rb/ext/macros.h [new file with mode: 0644]
lib/rb/ext/struct.c
lib/rb/ext/thrift_native.c
lib/rb/lib/thrift/protocol/compact_protocol.rb [new file with mode: 0644]
lib/rb/lib/thrift/struct.rb
lib/rb/lib/thrift/transport.rb
lib/rb/script/proto_benchmark.rb [new file with mode: 0644]
lib/rb/script/read_struct.rb [new file with mode: 0644]
lib/rb/script/write_struct.rb [new file with mode: 0644]
lib/rb/spec/compact_protocol_spec.rb [new file with mode: 0644]
lib/rb/spec/deprecation_spec.rb
lib/rb/spec/spec_helper.rb
lib/rb/spec/struct_spec.rb