name-tamer 0.2.13 → 0.2.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/name-tamer/version.rb +1 -1
- data/lib/string_extras.rb +2 -1
- data/spec/name_tamer_spec.rb +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5db87ceb78cbdd1c4f46a674c0514430799dac05
|
|
4
|
+
data.tar.gz: 9269bd1897a577ec14ba3b8f792060ef27b5ccc0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 76db6dcdfb49fcd3cc449df4bcad7cfecef6a2bae6753b9799794866938e7ac571c9f3b7a424e3c119828814fca3a759296f9af4a51c2c12482801066920a440
|
|
7
|
+
data.tar.gz: 2523f85e57a9fb721cb91f099a4a844fddd3be306b911ae7799f96bd42cd5bad99b582de0967a74d04feaa1fe66b014e3137a98b504103231eac3d33d1e44ff0
|
data/Gemfile.lock
CHANGED
data/lib/name-tamer/version.rb
CHANGED
data/lib/string_extras.rb
CHANGED
|
@@ -239,7 +239,8 @@ class String
|
|
|
239
239
|
'î' => 'î', 'ï' => 'ï', 'ð' => 'ð', 'ñ' => 'ñ', 'ò' => 'ò',
|
|
240
240
|
'ó' => 'ó', 'ô' => 'ô', 'õ' => 'õ', 'ö' => 'ö', '÷' => '÷',
|
|
241
241
|
'ø' => 'ø', 'ù' => 'ù', 'ú' => 'ú', 'û' => 'û', 'ü' => 'ü',
|
|
242
|
-
'ý' => 'ý', 'þ' => 'þ', 'ÿ' => 'ÿ'
|
|
242
|
+
'ý' => 'ý', 'þ' => 'þ', 'ÿ' => 'ÿ',
|
|
243
|
+
"\x00" => '' # Manually added to avoid Bad Argument exception
|
|
243
244
|
}
|
|
244
245
|
|
|
245
246
|
BAD_ENCODING_PATTERNS = /(#{BAD_ENCODING.keys.join('|')})/
|
data/spec/name_tamer_spec.rb
CHANGED
|
@@ -192,6 +192,7 @@ describe NameTamer do
|
|
|
192
192
|
nn: 'John Smith', sn: 'John Smith', s: 'john-smith' }, # Zero-width characters
|
|
193
193
|
{ n: 'Herman Melville ,CLP', t: :person, nn:'Herman Melville', sn:'Herman Melville', s:'herman-melville'},
|
|
194
194
|
{ n: 'Melville ,Herman', t: :person, nn:'Herman Melville', sn:'Herman Melville', s:'herman-melville'},
|
|
195
|
+
{ n: "John\x00 Smith", t: :person, nn: 'John Smith', sn: 'John Smith', s: 'john-smith'}
|
|
195
196
|
]
|
|
196
197
|
end
|
|
197
198
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: name-tamer
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.14
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Xenapto
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-02-
|
|
11
|
+
date: 2015-02-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|