frnames 0.0.2 → 0.0.3

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 +2 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c8a72d419439c961f6d9795a90de0ed4b75b5812
4
- data.tar.gz: e824f27b23d676739c4615b894965445a044c0b1
3
+ metadata.gz: 226422f35ce691fdbd592e5f1dc14eea99fa8058
4
+ data.tar.gz: ed860670c20ddc9098484e241e4b1b7c5fb585ec
5
5
  SHA512:
6
- metadata.gz: 90d2d73097ebcf0af9bd8d8d371662c378c472293385b54b681e8c979e14c51ac1476b44354866c6ed0921a5f411a6dcfdd44e59ab603c8f73300f8d482665a1
7
- data.tar.gz: 46fbfc6cfd8682b4b44c5db94ade2671b31c15943e90e15d5940159511902e7f783773491cfee57a2a8e4b4dce912c1aed104b568e968241e2005786d6f1773e
6
+ metadata.gz: 706f8f4862063a4a3242e9a578bb056bf9b76931fdf26ce1b74fe34f5bff1ee6b6a9d2e086a6934b6af9785cf214b61d0a6e5d7f5094b8fed128a007f1f13cfb
7
+ data.tar.gz: 859b5b420b0499b6c524c78c8bbc685c75e2e0bd539fbfb79830ea7c936587fb78cc4667ceb48b4839d62b5bbe3fac21e685f39dd2a4ecd3511a39653a17815b
data/lib/frnames/caser.rb CHANGED
@@ -4,7 +4,7 @@ module StringHelper
4
4
 
5
5
  # == Returns
6
6
  # Good and valid french town name
7
- def frnameup
7
+ def frnamesup
8
8
  town = self
9
9
  #remove non chars
10
10
  town.gsub!(/[^[[:alpha:]]']+/, '-')
@@ -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.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - poulet_a