From: Bryan Duxbury Date: Mon, 9 Aug 2010 15:25:34 +0000 (+0000) Subject: rb: Make MemoryTransport's inspect_buffer method work in Ruby 1.9 X-Git-Tag: 0.4.0~23 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=7e9ac7bf593a71b05b0879ddc34aaf82509052bb;p=common%2Fthrift.git rb: Make MemoryTransport's inspect_buffer method work in Ruby 1.9 Patch: Rajesh Malepati git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@983680 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/lib/rb/lib/thrift/transport/memory_buffer_transport.rb b/lib/rb/lib/thrift/transport/memory_buffer_transport.rb index b4a80f88..3169b2b2 100644 --- a/lib/rb/lib/thrift/transport/memory_buffer_transport.rb +++ b/lib/rb/lib/thrift/transport/memory_buffer_transport.rb @@ -88,9 +88,9 @@ module Thrift out << ">" end - out << @buf[idx].to_s(16) + out << @buf[idx].ord.to_s(16) end out.join(" ") end end -end \ No newline at end of file +end