Author: kclark
Date: Tue Jun 17 17:56:30 2008
New Revision: 668911

URL: http://svn.apache.org/viewvc?rev=668911&view=rev
Log:
Set up the class deprecations

Modified:
    incubator/thrift/trunk/lib/rb/lib/thrift/client.rb
    incubator/thrift/trunk/lib/rb/lib/thrift/deprecation.rb
    incubator/thrift/trunk/lib/rb/lib/thrift/exceptions.rb
    incubator/thrift/trunk/lib/rb/lib/thrift/processor.rb
    incubator/thrift/trunk/lib/rb/lib/thrift/protocol/tbinaryprotocol.rb
    incubator/thrift/trunk/lib/rb/lib/thrift/protocol/tprotocol.rb
    incubator/thrift/trunk/lib/rb/lib/thrift/struct.rb
    incubator/thrift/trunk/lib/rb/lib/thrift/types.rb

Modified: incubator/thrift/trunk/lib/rb/lib/thrift/client.rb
URL: 
http://svn.apache.org/viewvc/incubator/thrift/trunk/lib/rb/lib/thrift/client.rb?rev=668911&r1=668910&r2=668911&view=diff
==============================================================================
--- incubator/thrift/trunk/lib/rb/lib/thrift/client.rb (original)
+++ incubator/thrift/trunk/lib/rb/lib/thrift/client.rb Tue Jun 17 17:56:30 2008
@@ -35,4 +35,5 @@
       end
     end
   end
+  deprecate_class! :ThriftClient => Client
 end

Modified: incubator/thrift/trunk/lib/rb/lib/thrift/deprecation.rb
URL: 
http://svn.apache.org/viewvc/incubator/thrift/trunk/lib/rb/lib/thrift/deprecation.rb?rev=668911&r1=668910&r2=668911&view=diff
==============================================================================
--- incubator/thrift/trunk/lib/rb/lib/thrift/deprecation.rb (original)
+++ incubator/thrift/trunk/lib/rb/lib/thrift/deprecation.rb Tue Jun 17 17:56:30 
2008
@@ -42,14 +42,3 @@
     end
   end
 end
-
-# TProtocol = Thrift::Protocol
-# TProtocolException = Thrift::ProtocolException
-# ThriftStruct = Thrift::Struct
-# ThriftClient = Thrift::Client
-# TProcessor = Thrift::Processor
-# TType = Thrift::Types
-# TMessageType = Thrift::MessageTypes
-# TException = Thrift::Exception
-# TApplicationException = Thrift::ApplicationException
-# TBinaryProtocol = Thrift::BinaryProtocol

Modified: incubator/thrift/trunk/lib/rb/lib/thrift/exceptions.rb
URL: 
http://svn.apache.org/viewvc/incubator/thrift/trunk/lib/rb/lib/thrift/exceptions.rb?rev=668911&r1=668910&r2=668911&view=diff
==============================================================================
--- incubator/thrift/trunk/lib/rb/lib/thrift/exceptions.rb (original)
+++ incubator/thrift/trunk/lib/rb/lib/thrift/exceptions.rb Tue Jun 17 17:56:30 
2008
@@ -7,6 +7,7 @@
 
     attr_reader :message
   end
+  deprecate_class! :TException => Exception
 
   class ApplicationException < Exception
 
@@ -68,4 +69,5 @@
     end
 
   end
+  deprecate_class! :TApplicationException => ApplicationException
 end
\ No newline at end of file

Modified: incubator/thrift/trunk/lib/rb/lib/thrift/processor.rb
URL: 
http://svn.apache.org/viewvc/incubator/thrift/trunk/lib/rb/lib/thrift/processor.rb?rev=668911&r1=668910&r2=668911&view=diff
==============================================================================
--- incubator/thrift/trunk/lib/rb/lib/thrift/processor.rb (original)
+++ incubator/thrift/trunk/lib/rb/lib/thrift/processor.rb Tue Jun 17 17:56:30 
2008
@@ -35,4 +35,5 @@
       oprot.trans.flush()
     end
   end
+  deprecate_class! :TProcessor => Processor
 end

Modified: incubator/thrift/trunk/lib/rb/lib/thrift/protocol/tbinaryprotocol.rb
URL: 
http://svn.apache.org/viewvc/incubator/thrift/trunk/lib/rb/lib/thrift/protocol/tbinaryprotocol.rb?rev=668911&r1=668910&r2=668911&view=diff
==============================================================================
--- incubator/thrift/trunk/lib/rb/lib/thrift/protocol/tbinaryprotocol.rb 
(original)
+++ incubator/thrift/trunk/lib/rb/lib/thrift/protocol/tbinaryprotocol.rb Tue 
Jun 17 17:56:30 2008
@@ -181,10 +181,7 @@
     end
 
   end
-end
-
-if Thrift::DEPRECATION
-  TBinaryProtocol = Thrift::BinaryProtocol
+  deprecate_class! :TBinaryProtocol => BinaryProtocol
 end
 
 class TBinaryProtocolFactory < TProtocolFactory

Modified: incubator/thrift/trunk/lib/rb/lib/thrift/protocol/tprotocol.rb
URL: 
http://svn.apache.org/viewvc/incubator/thrift/trunk/lib/rb/lib/thrift/protocol/tprotocol.rb?rev=668911&r1=668910&r2=668911&view=diff
==============================================================================
--- incubator/thrift/trunk/lib/rb/lib/thrift/protocol/tprotocol.rb (original)
+++ incubator/thrift/trunk/lib/rb/lib/thrift/protocol/tprotocol.rb Tue Jun 17 
17:56:30 2008
@@ -26,6 +26,7 @@
     end
 
   end
+  deprecate_class! :TProtocolException => ProtocolException
 
   class Protocol
 
@@ -215,6 +216,7 @@
     end
 
   end
+  deprecate_class! :TProtocol => Protocol
 end
 
 class TProtocolFactory

Modified: incubator/thrift/trunk/lib/rb/lib/thrift/struct.rb
URL: 
http://svn.apache.org/viewvc/incubator/thrift/trunk/lib/rb/lib/thrift/struct.rb?rev=668911&r1=668910&r2=668911&view=diff
==============================================================================
--- incubator/thrift/trunk/lib/rb/lib/thrift/struct.rb (original)
+++ incubator/thrift/trunk/lib/rb/lib/thrift/struct.rb Tue Jun 17 17:56:30 2008
@@ -134,4 +134,5 @@
         :element => field[:element] }
     end
   end
+    deprecate_class! :ThriftStruct => Struct
 end

Modified: incubator/thrift/trunk/lib/rb/lib/thrift/types.rb
URL: 
http://svn.apache.org/viewvc/incubator/thrift/trunk/lib/rb/lib/thrift/types.rb?rev=668911&r1=668910&r2=668911&view=diff
==============================================================================
--- incubator/thrift/trunk/lib/rb/lib/thrift/types.rb (original)
+++ incubator/thrift/trunk/lib/rb/lib/thrift/types.rb Tue Jun 17 17:56:30 2008
@@ -14,10 +14,12 @@
     SET = 14
     LIST = 15
   end
+  deprecate_class! :TType => Types
 
   module MessageTypes
     CALL = 1
     REPLY = 2
     EXCEPTION = 3
   end
+  deprecate_class! :TMessageType => MessageTypes
 end
\ No newline at end of file


Reply via email to