sixarm_ruby_unaccent 1.2.0 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- checksums.yaml.gz.sig +0 -0
- data/Rakefile +0 -1
- data/lib/sixarm_ruby_unaccent/string.rb +15381 -15383
- data/test/sixarm_ruby_unaccent_test/string_test.rb +20 -20
- data/test/sixarm_ruby_unaccent_test.rb +2 -5
- data.tar.gz.sig +0 -0
- metadata +53 -71
- metadata.gz.sig +0 -0
@@ -6,23 +6,23 @@ describe String do
|
|
6
6
|
describe "#unaccent" do
|
7
7
|
|
8
8
|
it "with plain" do
|
9
|
-
"abc".unaccent.must_equal "abc"
|
9
|
+
_("abc".unaccent).must_equal "abc"
|
10
10
|
end
|
11
11
|
|
12
12
|
it "with angstrom" do
|
13
|
-
"Å".unaccent.must_equal "A"
|
13
|
+
_("Å".unaccent).must_equal "A"
|
14
14
|
end
|
15
15
|
|
16
16
|
it "with double letter" do
|
17
|
-
"Æ".unaccent.must_equal "AE"
|
17
|
+
_("Æ".unaccent).must_equal "AE"
|
18
18
|
end
|
19
19
|
|
20
20
|
it "with french" do
|
21
|
-
"déjà vu".unaccent.must_equal "deja vu"
|
21
|
+
_("déjà vu".unaccent).must_equal "deja vu"
|
22
22
|
end
|
23
23
|
|
24
24
|
it "with greek" do
|
25
|
-
"νέα".unaccent.must_equal "νεα"
|
25
|
+
_("νέα".unaccent).must_equal "νεα"
|
26
26
|
end
|
27
27
|
|
28
28
|
end
|
@@ -30,23 +30,23 @@ describe String do
|
|
30
30
|
describe "#unaccent_via_scan" do
|
31
31
|
|
32
32
|
it "with plain" do
|
33
|
-
"abc".unaccent.must_equal "abc"
|
33
|
+
_("abc".unaccent).must_equal "abc"
|
34
34
|
end
|
35
35
|
|
36
36
|
it "with angstrom" do
|
37
|
-
"Å".unaccent.must_equal "A"
|
37
|
+
_("Å".unaccent).must_equal "A"
|
38
38
|
end
|
39
39
|
|
40
40
|
it "with double letter" do
|
41
|
-
"Æ".unaccent.must_equal "AE"
|
41
|
+
_("Æ".unaccent).must_equal "AE"
|
42
42
|
end
|
43
43
|
|
44
44
|
it "with french" do
|
45
|
-
"déjà vu".unaccent.must_equal "deja vu"
|
45
|
+
_("déjà vu".unaccent).must_equal "deja vu"
|
46
46
|
end
|
47
47
|
|
48
48
|
it "with greek" do
|
49
|
-
"νέα".unaccent.must_equal "νεα"
|
49
|
+
_("νέα".unaccent).must_equal "νεα"
|
50
50
|
end
|
51
51
|
|
52
52
|
end
|
@@ -54,23 +54,23 @@ describe String do
|
|
54
54
|
describe "#unaccent_via_each_char" do
|
55
55
|
|
56
56
|
it "with plain" do
|
57
|
-
"abc".unaccent.must_equal "abc"
|
57
|
+
_("abc".unaccent).must_equal "abc"
|
58
58
|
end
|
59
59
|
|
60
60
|
it "with angstrom" do
|
61
|
-
"Å".unaccent.must_equal "A"
|
61
|
+
_("Å".unaccent).must_equal "A"
|
62
62
|
end
|
63
63
|
|
64
64
|
it "with double letter" do
|
65
|
-
"Æ".unaccent.must_equal "AE"
|
65
|
+
_("Æ".unaccent).must_equal "AE"
|
66
66
|
end
|
67
67
|
|
68
68
|
it "with french" do
|
69
|
-
"déjà vu".unaccent.must_equal "deja vu"
|
69
|
+
_("déjà vu".unaccent).must_equal "deja vu"
|
70
70
|
end
|
71
71
|
|
72
72
|
it "with greek" do
|
73
|
-
"νέα".unaccent.must_equal "νεα"
|
73
|
+
_("νέα".unaccent).must_equal "νεα"
|
74
74
|
end
|
75
75
|
|
76
76
|
end
|
@@ -78,23 +78,23 @@ describe String do
|
|
78
78
|
describe "#unaccent_via_split_map" do
|
79
79
|
|
80
80
|
it "with plain" do
|
81
|
-
"abc".unaccent.must_equal "abc"
|
81
|
+
_("abc".unaccent).must_equal "abc"
|
82
82
|
end
|
83
83
|
|
84
84
|
it "with angstrom" do
|
85
|
-
"Å".unaccent.must_equal "A"
|
85
|
+
_("Å".unaccent).must_equal "A"
|
86
86
|
end
|
87
87
|
|
88
88
|
it "with double letter" do
|
89
|
-
"Æ".unaccent.must_equal "AE"
|
89
|
+
_("Æ".unaccent).must_equal "AE"
|
90
90
|
end
|
91
91
|
|
92
92
|
it "with french" do
|
93
|
-
"déjà vu".unaccent.must_equal "deja vu"
|
93
|
+
_("déjà vu".unaccent).must_equal "deja vu"
|
94
94
|
end
|
95
95
|
|
96
96
|
it "with greek" do
|
97
|
-
"νέα".unaccent.must_equal "νεα"
|
97
|
+
_("νέα".unaccent).must_equal "νεα"
|
98
98
|
end
|
99
99
|
|
100
100
|
end
|
@@ -1,12 +1,9 @@
|
|
1
1
|
# -*- coding: utf-8 -*-
|
2
2
|
require "minitest/autorun"
|
3
3
|
#require "minitest/benchmark" if ENV["BENCH"]
|
4
|
-
require "coveralls"
|
5
4
|
require "simplecov"
|
6
|
-
|
7
|
-
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
|
5
|
+
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new([
|
8
6
|
SimpleCov::Formatter::HTMLFormatter,
|
9
|
-
|
10
|
-
]
|
7
|
+
])
|
11
8
|
SimpleCov.start
|
12
9
|
require "sixarm_ruby_unaccent"
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,50 +1,41 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sixarm_ruby_unaccent
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- SixArm
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain:
|
11
11
|
- |
|
12
12
|
-----BEGIN CERTIFICATE-----
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
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mMcy7JldkX/WgmeEQCzqlRy4l+jl2ZHxYJLXAiYkkzsWJQsQ4hqpVnx
|
34
|
+
1psx5VLih5iWoiEuthGA7x5i0HEgBWkI1BLyIlC2YsXpJ+YAWDowK+On40R07qOn
|
35
|
+
h3dRMKiZUNmDeYWbQZE/IU/yO1utU5j/g73CBa+J51KcypcvK0bdlBb8KQfrYbpt
|
36
|
+
Wpzwx/JmdyV61orp2CQUQxMmEOIh9d8OMAdjOw6ooaw=
|
46
37
|
-----END CERTIFICATE-----
|
47
|
-
date:
|
38
|
+
date: 2023-05-23 00:00:00.000000000 Z
|
48
39
|
dependencies:
|
49
40
|
- !ruby/object:Gem::Dependency
|
50
41
|
name: minitest
|
@@ -52,7 +43,7 @@ dependencies:
|
|
52
43
|
requirements:
|
53
44
|
- - ">="
|
54
45
|
- !ruby/object:Gem::Version
|
55
|
-
version: 5.
|
46
|
+
version: '5.12'
|
56
47
|
- - "<"
|
57
48
|
- !ruby/object:Gem::Version
|
58
49
|
version: '6'
|
@@ -62,7 +53,7 @@ dependencies:
|
|
62
53
|
requirements:
|
63
54
|
- - ">="
|
64
55
|
- !ruby/object:Gem::Version
|
65
|
-
version: 5.
|
56
|
+
version: '5.12'
|
66
57
|
- - "<"
|
67
58
|
- !ruby/object:Gem::Version
|
68
59
|
version: '6'
|
@@ -70,63 +61,49 @@ dependencies:
|
|
70
61
|
name: sixarm_ruby_minitest_extensions
|
71
62
|
requirement: !ruby/object:Gem::Requirement
|
72
63
|
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
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: rake
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - ">"
|
64
|
+
- - ">="
|
88
65
|
- !ruby/object:Gem::Version
|
89
|
-
version:
|
66
|
+
version: 1.0.8
|
90
67
|
- - "<"
|
91
68
|
- !ruby/object:Gem::Version
|
92
|
-
version: '
|
69
|
+
version: '2'
|
93
70
|
type: :development
|
94
71
|
prerelease: false
|
95
72
|
version_requirements: !ruby/object:Gem::Requirement
|
96
73
|
requirements:
|
97
|
-
- - "
|
74
|
+
- - ">="
|
98
75
|
- !ruby/object:Gem::Version
|
99
|
-
version:
|
76
|
+
version: 1.0.8
|
100
77
|
- - "<"
|
101
78
|
- !ruby/object:Gem::Version
|
102
|
-
version: '
|
79
|
+
version: '2'
|
103
80
|
- !ruby/object:Gem::Dependency
|
104
|
-
name:
|
81
|
+
name: rake
|
105
82
|
requirement: !ruby/object:Gem::Requirement
|
106
83
|
requirements:
|
107
84
|
- - ">="
|
108
85
|
- !ruby/object:Gem::Version
|
109
|
-
version:
|
86
|
+
version: 12.3.3
|
110
87
|
- - "<"
|
111
88
|
- !ruby/object:Gem::Version
|
112
|
-
version: '
|
89
|
+
version: '13'
|
113
90
|
type: :development
|
114
91
|
prerelease: false
|
115
92
|
version_requirements: !ruby/object:Gem::Requirement
|
116
93
|
requirements:
|
117
94
|
- - ">="
|
118
95
|
- !ruby/object:Gem::Version
|
119
|
-
version:
|
96
|
+
version: 12.3.3
|
120
97
|
- - "<"
|
121
98
|
- !ruby/object:Gem::Version
|
122
|
-
version: '
|
99
|
+
version: '13'
|
123
100
|
- !ruby/object:Gem::Dependency
|
124
|
-
name:
|
101
|
+
name: simplecov
|
125
102
|
requirement: !ruby/object:Gem::Requirement
|
126
103
|
requirements:
|
127
104
|
- - ">="
|
128
105
|
- !ruby/object:Gem::Version
|
129
|
-
version: 0.
|
106
|
+
version: 0.18.0
|
130
107
|
- - "<"
|
131
108
|
- !ruby/object:Gem::Version
|
132
109
|
version: '2'
|
@@ -136,7 +113,7 @@ dependencies:
|
|
136
113
|
requirements:
|
137
114
|
- - ">="
|
138
115
|
- !ruby/object:Gem::Version
|
139
|
-
version: 0.
|
116
|
+
version: 0.18.0
|
140
117
|
- - "<"
|
141
118
|
- !ruby/object:Gem::Version
|
142
119
|
version: '2'
|
@@ -156,11 +133,17 @@ licenses:
|
|
156
133
|
- Apache-2.0
|
157
134
|
- Artistic-2.0
|
158
135
|
- BSD-3-Clause
|
136
|
+
- CC-BY-NC-SA-4.0
|
137
|
+
- AGPL-3.0
|
138
|
+
- EPL-1.0
|
139
|
+
- GPL-2.0
|
159
140
|
- GPL-3.0
|
141
|
+
- LGPL-3.0
|
160
142
|
- MIT
|
161
143
|
- MPL-2.0
|
144
|
+
- Ruby
|
162
145
|
metadata: {}
|
163
|
-
post_install_message:
|
146
|
+
post_install_message:
|
164
147
|
rdoc_options: []
|
165
148
|
require_paths:
|
166
149
|
- lib
|
@@ -168,16 +151,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
168
151
|
requirements:
|
169
152
|
- - ">="
|
170
153
|
- !ruby/object:Gem::Version
|
171
|
-
version: '
|
154
|
+
version: '2.2'
|
172
155
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
173
156
|
requirements:
|
174
157
|
- - ">="
|
175
158
|
- !ruby/object:Gem::Version
|
176
159
|
version: '0'
|
177
160
|
requirements: []
|
178
|
-
|
179
|
-
|
180
|
-
signing_key:
|
161
|
+
rubygems_version: 3.3.26
|
162
|
+
signing_key:
|
181
163
|
specification_version: 4
|
182
164
|
summary: SixArm.com → Ruby → Unaccent
|
183
165
|
test_files:
|
metadata.gz.sig
CHANGED
Binary file
|