Take the 2008 Git User's Survey and help out! [ hide ]

public
Description: My assistance repo w/ minor tweaks (original @ http://assistance.rubyforge.org/svn/trunk)
Homepage: http://assistance.rubyforge.org
Clone URL: git://github.com/bricooke/assistance.git
Search Repo:
Fixed case statement in Inflector to work in Ruby 1.9.

git-svn-id: http://assistance.rubyforge.org/svn/trunk@24 
76a3b97d-4fa4-4887-8470-eb0d8fc1b0f2
ciconia (author)
Mon Feb 04 12:51:09 -0800 2008
commit  e2a8e2e0c364130cabe28f49621a261837b35cc7
tree    210ae2f06caa350e5dca51a041c4710f420f8f20
parent  7fff2bd19a0e0017458be99d35f3cd01af07926f
...
 
 
 
 
1
2
3
...
1
2
3
4
5
6
7
0
@@ -1,3 +1,7 @@
0
+=== 0.1.3 (2008-02-04)
0
+
0
+* Fixed case statement in Inflector to work in Ruby 1.9.
0
+
0
 === 0.1.2 (2008-01-21)
0
 
0
 * Imported Validation from Sequel.
...
9
10
11
12
 
13
14
15
...
9
10
11
 
12
13
14
15
0
@@ -9,7 +9,7 @@ include FileUtils
0
 # Configuration
0
 ##############################################################################
0
 NAME = "assistance"
0
-VERS = "0.1.2"
0
+VERS = "0.1.3"
0
 CLEAN.include ["**/.*.sw?", "pkg/*", ".config", "doc/*", "coverage/*"]
0
 RDOC_OPTS = [
0
   "--quiet",
...
263
264
265
266
267
268
269
 
 
 
 
 
 
 
 
270
271
272
...
263
264
265
 
 
 
 
266
267
268
269
270
271
272
273
274
275
276
0
@@ -263,10 +263,14 @@ module Inflector
0
       "#{number}th"
0
     else
0
       case number.to_i % 10
0
- when 1: "#{number}st"
0
- when 2: "#{number}nd"
0
- when 3: "#{number}rd"
0
- else "#{number}th"
0
+ when 1
0
+ "#{number}st"
0
+ when 2
0
+ "#{number}nd"
0
+ when 3
0
+ "#{number}rd"
0
+ else
0
+ "#{number}th"
0
       end
0
     end
0
   end

Comments

    No one has commented yet.