unf_ext 0.0.7.3-x64-mingw32 → 0.0.7.4-x64-mingw32
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
- data/.travis.yml +2 -1
- data/CHANGELOG.md +4 -0
- data/LICENSE.txt +1 -1
- data/README.md +1 -1
- data/ext/unf_ext/unf/table.hh +1 -1
- data/lib/unf_ext/version.rb +1 -1
- data/test/test_unf_ext.rb +21 -21
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e2585690082ab1b13e5f63624d2d54c0e771db1c
|
4
|
+
data.tar.gz: f45365619752e37be2ad1764abb840354f9858ec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4c04126f9596b597fb6d3884d3df03651d4947ef234d907122fc33e67cf39dac5af370c55e0cc816c09b724c4c28fc53346f7157f7f934a5c24d76e3ad38bcde
|
7
|
+
data.tar.gz: c064d6220dd6ce744a95e3af15f81ebabd1d94f1df403570eeaf819d210777c0bbc989b18961c17708223073fab560d8cf80063329ffcfc3f4797c7bbf805d4c
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/LICENSE.txt
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
The MIT License
|
2
2
|
|
3
3
|
Copyright (c) 2010 Takeru Ohta <phjgt308@gmail.com>
|
4
|
-
Copyright (c) 2011-
|
4
|
+
Copyright (c) 2011-2017 Akinori MUSHA <knu@idaemons.org> (extended Ruby support)
|
5
5
|
|
6
6
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
7
|
of this software and associated documentation files (the "Software"), to deal
|
data/README.md
CHANGED
data/ext/unf_ext/unf/table.hh
CHANGED
@@ -6365,7 +6365,7 @@ const unsigned NODES[]={
|
|
6365
6365
|
0xFF000000,0xFF000000,0xFF000000,0xFF000000,0xFF000000,0xFF000000,0xFF000000,0xFF000000,0xFF000000,0xFF000000,
|
6366
6366
|
0xFF000000,0xFF000000,0xFF000000};
|
6367
6367
|
|
6368
|
-
const char STRINGS[]={
|
6368
|
+
const signed char STRINGS[]={
|
6369
6369
|
-27,-113, -81, -27, -66,-105, -23,-123,-115, -27,-106, -74, -25,-108, -77, -26, -70,-128, -27,-112,
|
6370
6370
|
-120, -25, -87, -70, -25, -90,-127, -26,-116,-121, -23,-127,-118, -26,-115,-107, -26,-118,-107, -26,
|
6371
6371
|
-68,-108, -27,-112, -71, -27, -93, -80, -24, -78, -87, -25, -75,-126, -27,-120, -99, -26,-106, -80,
|
data/lib/unf_ext/version.rb
CHANGED
data/test/test_unf_ext.rb
CHANGED
@@ -12,30 +12,30 @@ class TestUnf < Test::Unit::TestCase
|
|
12
12
|
normalizer = UNF::Normalizer.new
|
13
13
|
open(Pathname(__FILE__).dirname + 'normalization-test.txt', 'r:utf-8').each_slice(6) { |lines|
|
14
14
|
flunk "broken test file" if lines.size != 6 || lines.pop !~ /^$/
|
15
|
-
str, nfd,
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
15
|
+
str, nfc, nfd, nfkc, nfkd = lines
|
16
|
+
assert_equal nfd, normalizer.normalize(str, :nfd)
|
17
|
+
assert_equal nfd, normalizer.normalize(nfd, :nfd)
|
18
|
+
assert_equal nfd, normalizer.normalize(nfc, :nfd)
|
19
|
+
assert_equal nfkd, normalizer.normalize(nfkc, :nfd)
|
20
|
+
assert_equal nfkd, normalizer.normalize(nfkc, :nfd)
|
21
21
|
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
22
|
+
assert_equal nfc, normalizer.normalize(str, :nfc)
|
23
|
+
assert_equal nfc, normalizer.normalize(nfd, :nfc)
|
24
|
+
assert_equal nfc, normalizer.normalize(nfc, :nfc)
|
25
|
+
assert_equal nfkc, normalizer.normalize(nfkc, :nfc)
|
26
|
+
assert_equal nfkc, normalizer.normalize(nfkd, :nfc)
|
27
27
|
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
28
|
+
assert_equal nfkd, normalizer.normalize(str, :nfkd)
|
29
|
+
assert_equal nfkd, normalizer.normalize(nfd, :nfkd)
|
30
|
+
assert_equal nfkd, normalizer.normalize(nfc, :nfkd)
|
31
|
+
assert_equal nfkd, normalizer.normalize(nfkc, :nfkd)
|
32
|
+
assert_equal nfkd, normalizer.normalize(nfkd, :nfkd)
|
33
33
|
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
34
|
+
assert_equal nfkc, normalizer.normalize(str, :nfkc)
|
35
|
+
assert_equal nfkc, normalizer.normalize(nfd, :nfkc)
|
36
|
+
assert_equal nfkc, normalizer.normalize(nfc, :nfkc)
|
37
|
+
assert_equal nfkc, normalizer.normalize(nfkc, :nfkc)
|
38
|
+
assert_equal nfkc, normalizer.normalize(nfkd, :nfkc)
|
39
39
|
}
|
40
40
|
end
|
41
41
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: unf_ext
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.7.
|
4
|
+
version: 0.0.7.4
|
5
5
|
platform: x64-mingw32
|
6
6
|
authors:
|
7
7
|
- Takeru Ohta
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-04-
|
12
|
+
date: 2017-04-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|