accentless 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -2,3 +2,5 @@
2
2
  Gemfile.lock
3
3
  pkg/*
4
4
  .*sw[op]
5
+ .rbenv-version
6
+ .rvmrc
@@ -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],
@@ -1,3 +1,3 @@
1
1
  module Accentless
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
@@ -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.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: 2012-12-01 00:00:00.000000000 Z
12
+ date: 2013-01-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec