sixarm_ruby_unaccent 1.1.2 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,6 @@
1
1
  # -*- coding: utf-8 -*-
2
2
  require "minitest/autorun"
3
+ #require "minitest/benchmark" if ENV["BENCH"]
3
4
  require "coveralls"
4
5
  require "simplecov"
5
6
  Coveralls.wear!
@@ -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.1.2
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-06-05 00:00:00.000000000 Z
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