Author: kclark
Date: Tue Jun 17 17:58:58 2008
New Revision: 668919

URL: http://svn.apache.org/viewvc?rev=668919&view=rev
Log:
Add comment and convert super(args)->super

Modified:
    incubator/thrift/trunk/lib/rb/lib/thrift/deprecation.rb
    incubator/thrift/trunk/lib/rb/lib/thrift/exceptions.rb

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=668919&r1=668918&r2=668919&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:58:58 
2008
@@ -10,6 +10,10 @@
   # Wraps the given methods to print a warning and call the real method
   # Example:
   #   deprecate! :readAll => :read_all
+  #--
+  # Yeah, this is ugly, passing a string to module_eval, but unfortunately
+  # using a block removes the ability to pass blocks to the defined method
+  # and breaks spec
   def deprecate!(methods)
     return unless Thrift::DEPRECATION
     methods.each_pair do |old, new|

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=668919&r1=668918&r2=668919&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:58:58 
2008
@@ -1,7 +1,7 @@
 module Thrift
   class Exception < StandardError
     def initialize(message)
-      super(message)
+      super
       @message = message
     end
 
@@ -21,7 +21,7 @@
     attr_reader :type
 
     def initialize(type=UNKNOWN, message=nil)
-      super(message)
+      super
       @type = type
     end
 


Reply via email to