Skip to content

Commit

Permalink
Update gem.
Browse files Browse the repository at this point in the history
  • Loading branch information
Evan Weaver committed Feb 5, 2010
1 parent fd08d79 commit 9e44cf0
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 8 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG
@@ -1,4 +1,6 @@

v0.0.820831. Update to Thrift trunk 820831.

v0.0.810255.1. Fixes for Ruby 1.9.

v0.0.789419. Initial release
19 changes: 11 additions & 8 deletions Manifest
@@ -1,17 +1,19 @@
CHANGELOG
Makefile.am
Manifest
Rakefile
README
setup.rb
benchmark/benchmark.rb
Rakefile
benchmark/Benchmark.thrift
benchmark/benchmark.rb
benchmark/client.rb
benchmark/server.rb
benchmark/thin_server.rb
ext/binary_protocol_accelerated.c
ext/binary_protocol_accelerated.h
ext/compact_protocol.c
ext/compact_protocol.h
ext/conftest.dSYM/Contents/Info.plist
ext/conftest.dSYM/Contents/Resources/DWARF/conftest
ext/constants.h
ext/extconf.rb
ext/macros.h
Expand All @@ -25,12 +27,9 @@ ext/thrift_native.c
lib/thrift.rb
lib/thrift/client.rb
lib/thrift/core_ext.rb
lib/thrift/core_ext/fixnum.rb
lib/thrift/exceptions.rb
lib/thrift/processor.rb
lib/thrift/struct.rb
lib/thrift/thrift_native.rb
lib/thrift/types.rb
lib/thrift/core_ext/fixnum.rb
lib/thrift/protocol/base_protocol.rb
lib/thrift/protocol/binary_protocol.rb
lib/thrift/protocol/binary_protocol_accelerated.rb
Expand All @@ -43,6 +42,8 @@ lib/thrift/server/nonblocking_server.rb
lib/thrift/server/simple_server.rb
lib/thrift/server/thread_pool_server.rb
lib/thrift/server/threaded_server.rb
lib/thrift/struct.rb
lib/thrift/thrift_native.rb
lib/thrift/transport/base_server_transport.rb
lib/thrift/transport/base_transport.rb
lib/thrift/transport/buffered_transport.rb
Expand All @@ -54,9 +55,12 @@ lib/thrift/transport/server_socket.rb
lib/thrift/transport/socket.rb
lib/thrift/transport/unix_server_socket.rb
lib/thrift/transport/unix_socket.rb
lib/thrift/types.rb
script/proto_benchmark.rb
script/read_struct.rb
script/write_struct.rb
setup.rb
spec/ThriftSpec.thrift
spec/base_protocol_spec.rb
spec/base_transport_spec.rb
spec/binary_protocol_accelerated_spec.rb
Expand All @@ -76,6 +80,5 @@ spec/socket_spec.rb
spec/socket_spec_shared.rb
spec/spec_helper.rb
spec/struct_spec.rb
spec/ThriftSpec.thrift
spec/types_spec.rb
spec/unix_socket_spec.rb
3 changes: 3 additions & 0 deletions ext/binary_protocol_accelerated.c
Expand Up @@ -76,6 +76,9 @@ static void write_i64_direct(VALUE trans, int64_t value) {
}

static void write_string_direct(VALUE trans, VALUE str) {
if (TYPE(str) != T_STRING) {
rb_raise(rb_eStandardError, "Value should be a string");
}
write_i32_direct(trans, RSTRING_LEN(str));
rb_funcall(trans, write_method_id, 1, str);
}
Expand Down
3 changes: 3 additions & 0 deletions ext/struct.c
Expand Up @@ -591,6 +591,9 @@ static VALUE rb_thrift_struct_read(VALUE self, VALUE protocol) {
// read struct end
mt->read_struct_end(protocol);

// call validate
rb_funcall(self, validate_method_id, 0);

return Qnil;
}

Expand Down

0 comments on commit 9e44cf0

Please sign in to comment.