Author: hwright
Date: Thu Jun 24 11:12:53 2010
New Revision: 957507

URL: http://svn.apache.org/viewvc?rev=957507&view=rev
Log:
Fix ruby bindings for 1.9 compat.

Patch by: Joe Rozner <[email protected]>

* subversion/bindings/swig/ruby/svn/core.rb
  (infinity_or_empty_from_recurse, infinity_or_immediates_from_recurse):
    Use explicit 'then' statement for Ruby 1.9 compat.

Modified:
    subversion/trunk/subversion/bindings/swig/ruby/svn/core.rb

Modified: subversion/trunk/subversion/bindings/swig/ruby/svn/core.rb
URL: 
http://svn.apache.org/viewvc/subversion/trunk/subversion/bindings/swig/ruby/svn/core.rb?rev=957507&r1=957506&r2=957507&view=diff
==============================================================================
--- subversion/trunk/subversion/bindings/swig/ruby/svn/core.rb (original)
+++ subversion/trunk/subversion/bindings/swig/ruby/svn/core.rb Thu Jun 24 
11:12:53 2010
@@ -669,16 +669,16 @@ module Svn
 
       def infinity_or_empty_from_recurse(depth_or_recurse)
         case depth_or_recurse
-          when true  : DEPTH_INFINITY
-          when false : DEPTH_EMPTY
+          when true  then DEPTH_INFINITY
+          when false then DEPTH_EMPTY
           else depth_or_recurse
         end
       end
 
       def infinity_or_immediates_from_recurse(depth_or_recurse)
         case depth_or_recurse
-          when true  : DEPTH_INFINITY
-          when false : DEPTH_IMMEDIATES
+          when true  then DEPTH_INFINITY
+          when false then DEPTH_IMMEDIATES
           else depth_or_recurse
         end
       end


Reply via email to