frnames 0.0.1 → 0.0.2

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: 1d05fdd8bfb8133171b28404bcc780832f19e772
4
- data.tar.gz: e29ba50ef418bbb4d7275d2130e818e1b8c3dd42
3
+ metadata.gz: c8a72d419439c961f6d9795a90de0ed4b75b5812
4
+ data.tar.gz: e824f27b23d676739c4615b894965445a044c0b1
5
5
  SHA512:
6
- metadata.gz: a344331c5352e4ac3f7775b729eef08541b928700603667871dc26602332a323a58ae60cc1a260c12e989d61d389b6cc6598abce4cb2777f0ae141198792a65c
7
- data.tar.gz: 76f6e21f383c6b662517af7478f30c964b3274fa86430c5aa3ab0587f23b520c9742053c9f2951ec5d97c256f85708a5ddcba22acc43c1606bf0957f130e8f45
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(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.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - poulet_a