rich_pluralization 1.0.4 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
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.4
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
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{rich_pluralization}
8
- s.version = "1.0.4"
8
+ s.version = "1.0.5"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Paul Engel"]
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: 31
4
+ hash: 29
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 4
10
- version: 1.0.4
9
+ - 5
10
+ version: 1.0.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Paul Engel