unicode-confusable 1.4.0 → 1.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +5 -3
- data/CHANGELOG.md +4 -0
- data/MIT-LICENSE.txt +1 -1
- data/README.md +6 -6
- data/data/confusable.marshal.gz +0 -0
- data/lib/unicode/confusable/constants.rb +6 -4
- metadata +4 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c286dc084f40d5ec5d4c35933f2d8f55624fa90dff7b99b8853a39773b42d222
|
4
|
+
data.tar.gz: 4be86a8cd5c9b73866fc7f09f857989b2fb15718408744ec883065de52b7b6ac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f9e5d626eeff19a1ccc2cfdff564698d15bad60793edc4788a6efba8f64f3734f33cfa1a646c7f081aa44def4263df7befda7c12b637d22b7679d51644338269
|
7
|
+
data.tar.gz: 3f4db6352ad180e614a5bdb785f4a93ddced468f3bbb159ce2ae165313ebc2ea4c1d041b818aabea81c86ec7e226c859fcc1e17fad30c9604e399c84b59ab682
|
data/.travis.yml
CHANGED
@@ -4,15 +4,17 @@ language: ruby
|
|
4
4
|
script: bundle exec ruby spec/unicode_confusable_spec.rb
|
5
5
|
|
6
6
|
rvm:
|
7
|
-
- 2.
|
7
|
+
- 2.6.1
|
8
|
+
- 2.5.3
|
8
9
|
- 2.4.4
|
9
|
-
- 2.3.
|
10
|
+
- 2.3.8
|
10
11
|
- 2.2
|
11
12
|
- ruby-head
|
12
13
|
- jruby-head
|
13
|
-
- jruby-9.
|
14
|
+
- jruby-9.2.6.0
|
14
15
|
|
15
16
|
matrix:
|
16
17
|
allow_failures:
|
18
|
+
- rvm: 2.3.8
|
17
19
|
- rvm: 2.2
|
18
20
|
- rvm: jruby-head
|
data/CHANGELOG.md
CHANGED
data/MIT-LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -1,12 +1,12 @@
|
|
1
|
-
# Unicode::Confusable [![[version]](https://badge.fury.io/rb/unicode-confusable.svg)](
|
1
|
+
# Unicode::Confusable [![[version]](https://badge.fury.io/rb/unicode-confusable.svg)](https://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/12.0.0/confusables.txt), and normalizing the string again.
|
4
4
|
|
5
|
-
Unicode version: **
|
5
|
+
Unicode version: **12.0.0**
|
6
6
|
|
7
|
-
Supported Rubies: **2.
|
7
|
+
Supported Rubies: **2.6**, **2.5**, **2.4**
|
8
8
|
|
9
|
-
Old Rubies that might still work: **2.2**
|
9
|
+
Old Rubies that might still work: **2.3**, **2.2**
|
10
10
|
|
11
11
|
## Usage
|
12
12
|
|
@@ -61,5 +61,5 @@ See [unicode-x](https://github.com/janlelis/unicode-x) for more Unicode related
|
|
61
61
|
|
62
62
|
## MIT License
|
63
63
|
|
64
|
-
- Copyright (C) 2016-
|
64
|
+
- Copyright (C) 2016-2019 Jan Lelis <http://janlelis.com>. Released under the MIT license.
|
65
65
|
- Unicode data: http://www.unicode.org/copyright.html#Exhibit1
|
data/data/confusable.marshal.gz
CHANGED
Binary file
|
@@ -1,9 +1,11 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module Unicode
|
2
4
|
module Confusable
|
3
|
-
VERSION = "1.
|
4
|
-
UNICODE_VERSION = "
|
5
|
-
DATA_DIRECTORY = File.expand_path(File.dirname(__FILE__) +
|
6
|
-
INDEX_FILENAME = (DATA_DIRECTORY +
|
5
|
+
VERSION = "1.5.0"
|
6
|
+
UNICODE_VERSION = "12.0.0"
|
7
|
+
DATA_DIRECTORY = File.expand_path(File.dirname(__FILE__) + "/../../../data/").freeze
|
8
|
+
INDEX_FILENAME = (DATA_DIRECTORY + "/confusable.marshal.gz").freeze
|
7
9
|
end
|
8
10
|
end
|
9
11
|
|
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.5.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: 2019-03-05 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
|
-
description: "[Unicode
|
13
|
+
description: "[Unicode 12.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."
|
@@ -55,8 +55,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
55
55
|
- !ruby/object:Gem::Version
|
56
56
|
version: '0'
|
57
57
|
requirements: []
|
58
|
-
|
59
|
-
rubygems_version: 2.7.6
|
58
|
+
rubygems_version: 3.0.1
|
60
59
|
signing_key:
|
61
60
|
specification_version: 4
|
62
61
|
summary: Detect characters that look visually similar.
|