From: Kevin Clark Date: Wed, 18 Jun 2008 01:02:31 +0000 (+0000) Subject: Use deprecate_module! where appropriate X-Git-Tag: 0.2.0~618 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=fe897d32f19a5c3a919b49669113587ad160badc;p=common%2Fthrift.git Use deprecate_module! where appropriate git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668931 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/lib/rb/lib/thrift/client.rb b/lib/rb/lib/thrift/client.rb index 0b0d13e3..ab2bff7a 100644 --- a/lib/rb/lib/thrift/client.rb +++ b/lib/rb/lib/thrift/client.rb @@ -35,5 +35,5 @@ module Thrift end end end - deprecate_class! :ThriftClient => Client + deprecate_module! :ThriftClient => Client end diff --git a/lib/rb/lib/thrift/processor.rb b/lib/rb/lib/thrift/processor.rb index 8314f599..60d3ca8d 100644 --- a/lib/rb/lib/thrift/processor.rb +++ b/lib/rb/lib/thrift/processor.rb @@ -35,5 +35,5 @@ module Thrift oprot.trans.flush() end end - deprecate_class! :TProcessor => Processor + deprecate_module! :TProcessor => Processor end diff --git a/lib/rb/lib/thrift/struct.rb b/lib/rb/lib/thrift/struct.rb index 583d3da9..ce113bf9 100644 --- a/lib/rb/lib/thrift/struct.rb +++ b/lib/rb/lib/thrift/struct.rb @@ -134,5 +134,5 @@ module Thrift :element => field[:element] } end end - deprecate_class! :ThriftStruct => Struct + deprecate_module! :ThriftStruct => Struct end diff --git a/lib/rb/lib/thrift/types.rb b/lib/rb/lib/thrift/types.rb index 2831748b..237df3ca 100644 --- a/lib/rb/lib/thrift/types.rb +++ b/lib/rb/lib/thrift/types.rb @@ -14,12 +14,12 @@ module Thrift SET = 14 LIST = 15 end - deprecate_class! :TType => Types + deprecate_module! :TType => Types module MessageTypes CALL = 1 REPLY = 2 EXCEPTION = 3 end - deprecate_class! :TMessageType => MessageTypes + deprecate_module! :TMessageType => MessageTypes end