Author: kclark
Date: Tue Jun 17 18:03:03 2008
New Revision: 668933

URL: http://svn.apache.org/viewvc?rev=668933&view=rev
Log:
Fix more deprecated name usages

Modified:
    incubator/thrift/trunk/lib/rb/lib/thrift/protocol/binaryprotocol.rb
    incubator/thrift/trunk/lib/rb/lib/thrift/server.rb

Modified: incubator/thrift/trunk/lib/rb/lib/thrift/protocol/binaryprotocol.rb
URL: 
http://svn.apache.org/viewvc/incubator/thrift/trunk/lib/rb/lib/thrift/protocol/binaryprotocol.rb?rev=668933&r1=668932&r2=668933&view=diff
==============================================================================
--- incubator/thrift/trunk/lib/rb/lib/thrift/protocol/binaryprotocol.rb 
(original)
+++ incubator/thrift/trunk/lib/rb/lib/thrift/protocol/binaryprotocol.rb Tue Jun 
17 18:03:03 2008
@@ -184,7 +184,7 @@
 
   class BinaryProtocolFactory < ProtocolFactory
     def get_protocol(trans)
-      return TBinaryProtocol.new(trans)
+      return Thrift::BinaryProtocol.new(trans)
     end
   end
   deprecate_class! :TBinaryProtocolFactory => BinaryProtocolFactory

Modified: incubator/thrift/trunk/lib/rb/lib/thrift/server.rb
URL: 
http://svn.apache.org/viewvc/incubator/thrift/trunk/lib/rb/lib/thrift/server.rb?rev=668933&r1=668932&r2=668933&view=diff
==============================================================================
--- incubator/thrift/trunk/lib/rb/lib/thrift/server.rb (original)
+++ incubator/thrift/trunk/lib/rb/lib/thrift/server.rb Tue Jun 17 18:03:03 2008
@@ -39,7 +39,7 @@
             while (true)
               @processor.process(prot, prot)
             end
-          rescue TTransportException, Thrift::ProtocolException => ttx
+          rescue Thrift::TransportException, Thrift::ProtocolException => ttx
             #print ttx,"\n"
           ensure
             trans.close()
@@ -73,7 +73,7 @@
               while (true)
                 @processor.process(p, p)
               end
-            rescue TTransportException, Thrift::ProtocolException => e
+            rescue Thrift::TransportException, Thrift::ProtocolException => e
             ensure
               t.close()
             end
@@ -120,7 +120,7 @@
                   while (true)
                     @processor.process(prot, prot)
                   end
-                rescue TTransportException, Thrift::ProtocolException => e
+                rescue Thrift::TransportException, Thrift::ProtocolException 
=> e
                 ensure
                   trans.close()
                 end


Reply via email to