frnames 0.0.4 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/frnames/caser.rb +1 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f92ed0216b0a3aa435d4595a22df864e1e357e0a
4
- data.tar.gz: fe75b8d09ca708e679d8deaea9427bfd0eafcf20
3
+ metadata.gz: 9bc497e8c319a208cf0d7e1deb473742dbb37b49
4
+ data.tar.gz: 360973ad2171325281bf0a3ed69f2d903c98b02a
5
5
  SHA512:
6
- metadata.gz: 5d5bc4b145e278ed31dc57de1ab5f57e5b908856992442db057bd174a26623f7bd39cf217492d42be0deadd9aeb668171cb6533fbb34ec9b82cd0b1fea29380e
7
- data.tar.gz: 8c29e5e5d53f4fc47f29a1c4f809bc3d6cea33dcb8cc4d1f16b11d1016529b217391e14ee50f14732f22359390cec7cffb7841d3354e1392fa3b8f830e1904d1
6
+ metadata.gz: 1d08a0f281e543ffec539f304cce2ce20aa2c5418793b8524240f2b0eae6d8e4c9ec2a0b1dde77696b320e08e211c7c69314213d03c509781c2535d5383ad9b5
7
+ data.tar.gz: 11efff0acb6a9dddc83b434506587edaeb9beb967c833b9d8bd3379c3066a0c7e282496954a2036df2f1cf11f355d75ae4fc3c7a4f835e519becf4acd465e43d
data/lib/frnames/caser.rb CHANGED
@@ -15,7 +15,7 @@ module StringHelper
15
15
  #EXCEPTION LE MANS
16
16
  return "Le Mans" if town == "Le-Mans"
17
17
  #Remove preposition
18
- town.gsub!(/\A(Le|La|Les|L\'|De|Des|D\') */, '')
18
+ town.gsub!(/\A(Le|La|Les|L\'|De|Des|D\')-*/, '')
19
19
  #replace the A, En, ...
20
20
  town.gsub!('Le-', 'le-')
21
21
  town.gsub!('La-', 'la-')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: frnames
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - poulet_a