reality-naming 1.7.0 → 1.8.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8cebf64c05759645a560427e7c7e37b951ce9481
4
- data.tar.gz: 9fc335ac88e45c1068e6f5160e9d05d99dd3f32a
3
+ metadata.gz: 28b37072c218f88d81b3cced702bc125a0ef19d4
4
+ data.tar.gz: 573c6d79ddcb999f0e6e2fff96926976ab39c808
5
5
  SHA512:
6
- metadata.gz: 776ad52aa53d21e777212e220cb04f43a1ac0e72b2c8dc619620a60bdac06e42a5552127715b307641db72d27310383a9046b5ff6b5d72a1c896e511ab8ff7a1
7
- data.tar.gz: f0eafa59ec0829f68e033a584b9a41fdc2cbe2ab7be0a0ed692d866b297e131b99f28bee436e8864442679e9372e9be36aa3df3bbaebdc92dd0c787968f9f4c1
6
+ metadata.gz: 11451662ac4eca11860bb52eafc06eeb2d0f08b4aa686caf94bae28a66ac1a3be572ae5847559f1a5fed725f465bed6a47c0c21f48a004250cbdbee4f63820f9
7
+ data.tar.gz: 265a5e20e0f367496793df834ff31a8fe9134f29568dccd3a082d60d790891e2516a1ec5421a2b9117e58b99a7ac5ee498ac86f71e5e19bbe362640cc8add8ee
@@ -124,6 +124,7 @@ module Reality
124
124
  def default_pluralization_rules
125
125
  rules = []
126
126
  rules << Proc.new { |string| string == 'child' ? 'children' : nil }
127
+ rules << Proc.new { |string| string == 'Child' ? 'Children' : nil }
127
128
  rules
128
129
  end
129
130
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{reality-naming}
5
- s.version = '1.7.0'
5
+ s.version = '1.8.0'
6
6
  s.platform = Gem::Platform::RUBY
7
7
 
8
8
  s.authors = ['Peter Donald']
@@ -29,10 +29,13 @@ class TestNaming < Reality::Naming::TestCase
29
29
 
30
30
  def test_default_pluralization_rules
31
31
  assert_equal 'children', Reality::Naming.pluralize('child')
32
+ assert_equal 'Children', Reality::Naming.pluralize('Child')
32
33
  Reality::Naming.clear_pluralization_rules
33
34
  assert_equal 'childs', Reality::Naming.pluralize('child')
35
+ assert_equal 'Childs', Reality::Naming.pluralize('Child')
34
36
  Reality::Naming.reset
35
37
  assert_equal 'children', Reality::Naming.pluralize('child')
38
+ assert_equal 'Children', Reality::Naming.pluralize('Child')
36
39
  end
37
40
 
38
41
  def test_basics
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: reality-naming
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.0
4
+ version: 1.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Donald