rich_pluralization 1.0.4 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGELOG +4 -0
- data/VERSION +1 -1
- data/lib/rich/pluralization/inflector.rb +2 -2
- data/rich_pluralization.gemspec +1 -1
- metadata +3 -3
data/CHANGELOG
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
= Rich-pluralization CHANGELOG
|
2
2
|
|
3
|
+
== Version 1.0.5 (October 4, 2010)
|
4
|
+
|
5
|
+
* Fix: Copying letter casing after inflecting in English
|
6
|
+
|
3
7
|
== Version 1.0.4 (October 4, 2010)
|
4
8
|
|
5
9
|
* Using ActiveSupport::CoreExtensions::String::Inflections.pluralize (and singularize) when current locale is English
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.5
|
@@ -14,11 +14,11 @@ module Rich
|
|
14
14
|
end
|
15
15
|
|
16
16
|
def singularize(word)
|
17
|
-
in_english? ? word.singularize : inflect(:singulars, word)
|
17
|
+
in_english? ? word.singularize.cp_case(word) : inflect(:singulars, word)
|
18
18
|
end
|
19
19
|
|
20
20
|
def pluralize(word, count = nil)
|
21
|
-
count == 1 ? singularize(word) : (in_english? ? word.pluralize : inflect(:plurals, word))
|
21
|
+
count == 1 ? singularize(word) : (in_english? ? word.pluralize.cp_case(word) : inflect(:plurals, word))
|
22
22
|
end
|
23
23
|
|
24
24
|
private
|
data/rich_pluralization.gemspec
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rich_pluralization
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 29
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
9
|
+
- 5
|
10
|
+
version: 1.0.5
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Paul Engel
|