frnames 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/frnames/caser.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c8a72d419439c961f6d9795a90de0ed4b75b5812
|
4
|
+
data.tar.gz: e824f27b23d676739c4615b894965445a044c0b1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 90d2d73097ebcf0af9bd8d8d371662c378c472293385b54b681e8c979e14c51ac1476b44354866c6ed0921a5f411a6dcfdd44e59ab603c8f73300f8d482665a1
|
7
|
+
data.tar.gz: 46fbfc6cfd8682b4b44c5db94ade2671b31c15943e90e15d5940159511902e7f783773491cfee57a2a8e4b4dce912c1aed104b568e968241e2005786d6f1773e
|
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(
|
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-')
|