accentless 0.1.1 → 0.1.2
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.
- data/.gitignore +2 -0
- data/lib/accentless/extend_string.rb +4 -4
- data/lib/accentless/version.rb +1 -1
- data/spec/accentless/extend_string_spec.rb +8 -0
- metadata +2 -2
data/.gitignore
CHANGED
@@ -6,12 +6,12 @@ class String
|
|
6
6
|
'a' => [224,225,226,227,228,229,230],
|
7
7
|
'C' => [199],
|
8
8
|
'c' => [231],
|
9
|
-
'O' => [210,211,212,213,214,216],
|
10
|
-
'o' => [242,243,244,245,246,248],
|
9
|
+
'O' => [210,211,212,213,214,216,336],
|
10
|
+
'o' => [242,243,244,245,246,248,337],
|
11
11
|
'I' => [204,205,206,207],
|
12
12
|
'i' => [236,237,238,239],
|
13
|
-
'U' => [217,218,219,220],
|
14
|
-
'u' => [249,250,251,252],
|
13
|
+
'U' => [217,218,219,220,368],
|
14
|
+
'u' => [249,250,251,252,369],
|
15
15
|
'N' => [209],
|
16
16
|
'n' => [241],
|
17
17
|
'Y' => [221],
|
data/lib/accentless/version.rb
CHANGED
@@ -7,6 +7,14 @@ describe String do
|
|
7
7
|
"São Paulo".remove_accents.should == "Sao Paulo"
|
8
8
|
end
|
9
9
|
|
10
|
+
it "should remove the most annoying Hungarian accents" do
|
11
|
+
"fejlődő".remove_accents.should == "fejlodo"
|
12
|
+
"FEJLŐDŐ".remove_accents.should == "FEJLODO"
|
13
|
+
|
14
|
+
"fű".remove_accents.should == "fu"
|
15
|
+
"FŰ".remove_accents.should == "FU"
|
16
|
+
end
|
17
|
+
|
10
18
|
it "should remove letter 'e' with tilde" do
|
11
19
|
"Tẽst".remove_accents.should == "Test"
|
12
20
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: accentless
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-01-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|