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
diff --git a/lib/rb/ext/thrift_native.c b/lib/rb/ext/thrift_native.c
index 4d5623d..b9afdc3 100644
--- a/lib/rb/ext/thrift_native.c
+++ b/lib/rb/ext/thrift_native.c
@@ -1,6 +1,7 @@
#include <ruby.h>
#include <struct.h>
#include <binary_protocol_accelerated.h>
+#include <compact_protocol.h>
#include <protocol.h>
#include <memory_buffer.h>
@@ -169,5 +170,6 @@
Init_protocol();
Init_struct();
Init_binary_protocol_accelerated();
+ Init_compact_protocol();
Init_memory_buffer();
}