sixarm_ruby_unaccent 1.1.2 → 1.2.0
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
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/Rakefile +3 -38
- data/lib/sixarm_ruby_unaccent/string.rb +15423 -15384
- data/test/sixarm_ruby_unaccent_test.rb +1 -0
- data/test/sixarm_ruby_unaccent_test/string_test.rb +72 -0
- metadata +16 -6
- metadata.gz.sig +0 -0
@@ -27,4 +27,76 @@ describe String do
|
|
27
27
|
|
28
28
|
end
|
29
29
|
|
30
|
+
describe "#unaccent_via_scan" do
|
31
|
+
|
32
|
+
it "with plain" do
|
33
|
+
"abc".unaccent.must_equal "abc"
|
34
|
+
end
|
35
|
+
|
36
|
+
it "with angstrom" do
|
37
|
+
"Å".unaccent.must_equal "A"
|
38
|
+
end
|
39
|
+
|
40
|
+
it "with double letter" do
|
41
|
+
"Æ".unaccent.must_equal "AE"
|
42
|
+
end
|
43
|
+
|
44
|
+
it "with french" do
|
45
|
+
"déjà vu".unaccent.must_equal "deja vu"
|
46
|
+
end
|
47
|
+
|
48
|
+
it "with greek" do
|
49
|
+
"νέα".unaccent.must_equal "νεα"
|
50
|
+
end
|
51
|
+
|
52
|
+
end
|
53
|
+
|
54
|
+
describe "#unaccent_via_each_char" do
|
55
|
+
|
56
|
+
it "with plain" do
|
57
|
+
"abc".unaccent.must_equal "abc"
|
58
|
+
end
|
59
|
+
|
60
|
+
it "with angstrom" do
|
61
|
+
"Å".unaccent.must_equal "A"
|
62
|
+
end
|
63
|
+
|
64
|
+
it "with double letter" do
|
65
|
+
"Æ".unaccent.must_equal "AE"
|
66
|
+
end
|
67
|
+
|
68
|
+
it "with french" do
|
69
|
+
"déjà vu".unaccent.must_equal "deja vu"
|
70
|
+
end
|
71
|
+
|
72
|
+
it "with greek" do
|
73
|
+
"νέα".unaccent.must_equal "νεα"
|
74
|
+
end
|
75
|
+
|
76
|
+
end
|
77
|
+
|
78
|
+
describe "#unaccent_via_split_map" do
|
79
|
+
|
80
|
+
it "with plain" do
|
81
|
+
"abc".unaccent.must_equal "abc"
|
82
|
+
end
|
83
|
+
|
84
|
+
it "with angstrom" do
|
85
|
+
"Å".unaccent.must_equal "A"
|
86
|
+
end
|
87
|
+
|
88
|
+
it "with double letter" do
|
89
|
+
"Æ".unaccent.must_equal "AE"
|
90
|
+
end
|
91
|
+
|
92
|
+
it "with french" do
|
93
|
+
"déjà vu".unaccent.must_equal "deja vu"
|
94
|
+
end
|
95
|
+
|
96
|
+
it "with greek" do
|
97
|
+
"νέα".unaccent.must_equal "νεα"
|
98
|
+
end
|
99
|
+
|
100
|
+
end
|
101
|
+
|
30
102
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sixarm_ruby_unaccent
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- SixArm
|
@@ -44,7 +44,7 @@ cert_chain:
|
|
44
44
|
2AC9FOGkybW6DJEFSFFMlNk0IILsa/gNp8ufGuTVLWF9FUUdMNK+TMbghnifT8/1
|
45
45
|
n+ES/gQPOnvmVkLDGw==
|
46
46
|
-----END CERTIFICATE-----
|
47
|
-
date: 2017-
|
47
|
+
date: 2017-08-13 00:00:00.000000000 Z
|
48
48
|
dependencies:
|
49
49
|
- !ruby/object:Gem::Dependency
|
50
50
|
name: minitest
|
@@ -66,6 +66,20 @@ dependencies:
|
|
66
66
|
- - "<"
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '6'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: sixarm_ruby_minitest_extensions
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - '='
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 1.0.5
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - '='
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 1.0.5
|
69
83
|
- !ruby/object:Gem::Dependency
|
70
84
|
name: rake
|
71
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -142,13 +156,9 @@ licenses:
|
|
142
156
|
- Apache-2.0
|
143
157
|
- Artistic-2.0
|
144
158
|
- BSD-3-Clause
|
145
|
-
- CC-BY-NC-SA-4.0
|
146
|
-
- AGPL-3.0
|
147
159
|
- GPL-3.0
|
148
|
-
- LGPL-3.0
|
149
160
|
- MIT
|
150
161
|
- MPL-2.0
|
151
|
-
- Ruby
|
152
162
|
metadata: {}
|
153
163
|
post_install_message:
|
154
164
|
rdoc_options: []
|
metadata.gz.sig
CHANGED
Binary file
|