assistance 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +4 -0
- data/Rakefile +1 -1
- data/lib/assistance/inflector.rb +8 -4
- metadata +2 -2
data/CHANGELOG
CHANGED
data/Rakefile
CHANGED
@@ -9,7 +9,7 @@ include FileUtils
|
|
9
9
|
# Configuration
|
10
10
|
##############################################################################
|
11
11
|
NAME = "assistance"
|
12
|
-
VERS = "0.1.
|
12
|
+
VERS = "0.1.3"
|
13
13
|
CLEAN.include ["**/.*.sw?", "pkg/*", ".config", "doc/*", "coverage/*"]
|
14
14
|
RDOC_OPTS = [
|
15
15
|
"--quiet",
|
data/lib/assistance/inflector.rb
CHANGED
@@ -263,10 +263,14 @@ module Inflector
|
|
263
263
|
"#{number}th"
|
264
264
|
else
|
265
265
|
case number.to_i % 10
|
266
|
-
when 1
|
267
|
-
|
268
|
-
when
|
269
|
-
|
266
|
+
when 1
|
267
|
+
"#{number}st"
|
268
|
+
when 2
|
269
|
+
"#{number}nd"
|
270
|
+
when 3
|
271
|
+
"#{number}rd"
|
272
|
+
else
|
273
|
+
"#{number}th"
|
270
274
|
end
|
271
275
|
end
|
272
276
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: assistance
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ezra Zygmuntowicz, Sam Smoot, Sharon Rosner
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-
|
12
|
+
date: 2008-02-04 00:00:00 +02:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|