unicode-confusable 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/unicode/confusable.rb +1 -2
- data/lib/unicode/confusable/constants.rb +1 -1
- 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: ce570a1ed8617f6dffbb76c2bba7983c8b51c3d2
|
4
|
+
data.tar.gz: 03e0ee28e754ead35f2ab83b0c700c6970a85a5f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 265a55061beea5d5c0e38afdc4575cd0826d721f72e0db4f2322dc8a38dd674d4317c14adb89e33197782d8cf1e0243f056c9608ee8d558f907e229e9cca85bc
|
7
|
+
data.tar.gz: 752ccfd18037c3003bd7e3eadea0f11c5b115961208380b3c90bb4c8b82b386e4ea2050149b0b25e04453fca7f2c67439874fb6bbac14eb9b91abf9f56c6448e
|
data/CHANGELOG.md
CHANGED
data/lib/unicode/confusable.rb
CHANGED
@@ -1,5 +1,4 @@
|
|
1
1
|
require_relative "confusable/constants"
|
2
|
-
require_relative "confusable/index"
|
3
2
|
|
4
3
|
require 'unicode_normalize/normalize'
|
5
4
|
|
@@ -10,7 +9,7 @@ module Unicode
|
|
10
9
|
end
|
11
10
|
|
12
11
|
def self.skeleton(string)
|
13
|
-
require_relative '
|
12
|
+
require_relative 'confusable/index' unless defined? ::Unicode::Confusable::INDEX
|
14
13
|
UnicodeNormalize.normalize(
|
15
14
|
UnicodeNormalize.normalize(string, :nfd).each_codepoint.map{ |codepoint|
|
16
15
|
INDEX[codepoint] || codepoint
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: unicode-confusable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jan Lelis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-03-
|
11
|
+
date: 2016-03-14 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: 'Compares two strings if they are visually confusable as described in
|
14
14
|
Unicode® Technical Standard #39: Both strings get transformed into a skeleton format
|