unicode-confusable 1.1.0 → 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
- data/.travis.yml +3 -7
- data/CHANGELOG.md +4 -0
- data/Gemfile +2 -0
- data/README.md +6 -4
- data/data/confusable.marshal.gz +0 -0
- data/lib/unicode/confusable/constants.rb +2 -2
- metadata +5 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7c5d87eb8d09b0db6a0467eb43aee2a0f1666841
|
|
4
|
+
data.tar.gz: 79c5a68b5d65d5dc2c3f75c31bb214d53585687d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b5b39e475e55bc30f617db53e1ad3d41a4bf8c9e88ed690eef3caa061fdec805186bc7a640b7a5d1202f3d8995331db6056ea13bdefb2da464800bdbdc0c30b5
|
|
7
|
+
data.tar.gz: ce09d7f44f527fe5509ebd6757b4eb8a1eb74b7f98d95212882c359f12238184030122290848e6542c37d0ee6f25198231370a36e4f9b3c844465861ec836da3
|
data/.travis.yml
CHANGED
|
@@ -4,17 +4,13 @@ language: ruby
|
|
|
4
4
|
script: bundle exec ruby spec/unicode_confusable_spec.rb
|
|
5
5
|
|
|
6
6
|
rvm:
|
|
7
|
-
- 2.
|
|
7
|
+
- 2.4.1
|
|
8
|
+
- 2.3.4
|
|
8
9
|
- 2.2
|
|
9
10
|
- ruby-head
|
|
10
|
-
- rbx-2
|
|
11
11
|
- jruby-head
|
|
12
|
-
- jruby-9.
|
|
13
|
-
|
|
14
|
-
cache:
|
|
15
|
-
- bundler
|
|
12
|
+
- jruby-9.1.12.0
|
|
16
13
|
|
|
17
14
|
matrix:
|
|
18
15
|
allow_failures:
|
|
19
16
|
- rvm: jruby-head
|
|
20
|
-
- rvm: rbx-2
|
data/CHANGELOG.md
CHANGED
data/Gemfile
CHANGED
data/README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# Unicode::Confusable [![[version]](https://badge.fury.io/rb/unicode-confusable.svg)](http://badge.fury.io/rb/unicode-confusable) [![[travis]](https://travis-ci.org/janlelis/unicode-confusable.png)](https://travis-ci.org/janlelis/unicode-confusable)
|
|
2
2
|
|
|
3
|
-
Compares two strings if they are visually confusable as described in [Unicode® Technical Standard #39](http://www.unicode.org/reports/tr39/#Confusable_Detection): Both strings get transformed into a skeleton format before comparing them. The skeleton is generated by normalizing the string ([NFD](http://unicode.org/reports/tr15/#Norm_Forms)), replacing [confusable characters](ftp://ftp.unicode.org/Public/security/
|
|
3
|
+
Compares two strings if they are visually confusable as described in [Unicode® Technical Standard #39](http://www.unicode.org/reports/tr39/#Confusable_Detection): Both strings get transformed into a skeleton format before comparing them. The skeleton is generated by normalizing the string ([NFD](http://unicode.org/reports/tr15/#Norm_Forms)), replacing [confusable characters](ftp://ftp.unicode.org/Public/security/10.0.0/confusables.txt), and normalizing the string again.
|
|
4
4
|
|
|
5
|
-
Unicode version: **
|
|
5
|
+
Unicode version: **10.0.0**
|
|
6
6
|
|
|
7
|
-
Supported Rubies: **2.3**, **2.2**
|
|
7
|
+
Supported Rubies: **2.4**, **2.3**, **2.2**
|
|
8
8
|
|
|
9
9
|
## Usage
|
|
10
10
|
|
|
@@ -37,7 +37,9 @@ TR 39 also describes mechanisms for a more exact recognition of confusables, als
|
|
|
37
37
|
|
|
38
38
|
This is currently **not** supported by this gem.
|
|
39
39
|
|
|
40
|
+
See [unicode-x](https://github.com/janlelis/unicode-x) for more Unicode related micro libraries.
|
|
41
|
+
|
|
40
42
|
## MIT License
|
|
41
43
|
|
|
42
|
-
- Copyright (C) 2016 Jan Lelis <http://janlelis.com>. Released under the MIT license.
|
|
44
|
+
- Copyright (C) 2016-2017 Jan Lelis <http://janlelis.com>. Released under the MIT license.
|
|
43
45
|
- Unicode data: http://www.unicode.org/copyright.html#Exhibit1
|
data/data/confusable.marshal.gz
CHANGED
|
Binary file
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
module Unicode
|
|
2
2
|
module Confusable
|
|
3
|
-
VERSION = "1.
|
|
4
|
-
UNICODE_VERSION = "
|
|
3
|
+
VERSION = "1.2.0".freeze
|
|
4
|
+
UNICODE_VERSION = "10.0.0".freeze
|
|
5
5
|
DATA_DIRECTORY = File.expand_path(File.dirname(__FILE__) + '/../../../data/').freeze
|
|
6
6
|
INDEX_FILENAME = (DATA_DIRECTORY + '/confusable.marshal.gz').freeze
|
|
7
7
|
end
|
metadata
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: unicode-confusable
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jan Lelis
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2017-06-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
|
-
description: "[Unicode
|
|
13
|
+
description: "[Unicode 10.0.0] Compares two strings if they are visually confusable
|
|
14
14
|
as described in Unicode® Technical Standard #39: Both strings get transformed into
|
|
15
15
|
a skeleton format before comparing them. The skeleton is generated by normalizing
|
|
16
16
|
the string, replacing confusable characters, and normalizing the string again."
|
|
@@ -25,6 +25,7 @@ files:
|
|
|
25
25
|
- CHANGELOG.md
|
|
26
26
|
- CODE_OF_CONDUCT.md
|
|
27
27
|
- Gemfile
|
|
28
|
+
- Gemfile.lock
|
|
28
29
|
- MIT-LICENSE.txt
|
|
29
30
|
- README.md
|
|
30
31
|
- Rakefile
|
|
@@ -55,7 +56,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
55
56
|
version: '0'
|
|
56
57
|
requirements: []
|
|
57
58
|
rubyforge_project:
|
|
58
|
-
rubygems_version: 2.
|
|
59
|
+
rubygems_version: 2.6.11
|
|
59
60
|
signing_key:
|
|
60
61
|
specification_version: 4
|
|
61
62
|
summary: Detect characters that look visually similar.
|