This is an automated email from the ASF dual-hosted git repository.

rubys pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git

commit 56ea35d6e8ca085632cb3c39c4068a3e7a174cbd
Author: Sam Ruby <[email protected]>
AuthorDate: Wed May 23 13:02:39 2018 -0400

    conditionally define new method
---
 www/board/agenda/views/committers_report.text.rb | 18 ++++++++++--------
 1 file changed, 10 insertions(+), 8 deletions(-)

diff --git a/www/board/agenda/views/committers_report.text.rb 
b/www/board/agenda/views/committers_report.text.rb
index 341828d..e9e3064 100644
--- a/www/board/agenda/views/committers_report.text.rb
+++ b/www/board/agenda/views/committers_report.text.rb
@@ -3,14 +3,16 @@ require 'chronic'
 ## This is a script to generate an email for [email protected]
 
 # Add the right prefix to a number
-class Integer
-  def ordinalize
-    if self % 10 == 1
-      self.to_s + "st"
-    elsif self % 10 == 2
-      self.to_s + "nd"
-    else
-      self.to_s + "th"
+unless Integer.public_method_defined? :ordinalize
+  class Integer
+    def ordinalize
+      if self % 10 == 1
+       self.to_s + "st"
+      elsif self % 10 == 2
+       self.to_s + "nd"
+      else
+       self.to_s + "th"
+      end
     end
   end
 end

-- 
To stop receiving notification emails like this one, please contact
[email protected].

Reply via email to