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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d8c8e349451ea68559ba19ff01ac84268c6f0ddb
4
- data.tar.gz: 209ca999b1767568c2e5fe80c7ac455605770339
3
+ metadata.gz: ce570a1ed8617f6dffbb76c2bba7983c8b51c3d2
4
+ data.tar.gz: 03e0ee28e754ead35f2ab83b0c700c6970a85a5f
5
5
  SHA512:
6
- metadata.gz: 6790f06f877a5d792a7307b4bd422708d9eb98da4e581637fd8cfd4dae254ba6988768785b210514d09ffb4d62bc905a45ad41eb8cd67a0fcf9a3f3c2d6de6b9
7
- data.tar.gz: be3dc3e9bf16d151f4beb8e6ae39989fe10252c71e545ce5b485654a9a21b2b3da617bf0dc898804eb4b873ea4a5808a4d4feda058d826d334601aad95e45839
6
+ metadata.gz: 265a55061beea5d5c0e38afdc4575cd0826d721f72e0db4f2322dc8a38dd674d4317c14adb89e33197782d8cf1e0243f056c9608ee8d558f907e229e9cca85bc
7
+ data.tar.gz: 752ccfd18037c3003bd7e3eadea0f11c5b115961208380b3c90bb4c8b82b386e4ea2050149b0b25e04453fca7f2c67439874fb6bbac14eb9b91abf9f56c6448e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## CHANGELOG
2
2
 
3
+ ### 1.0.1
4
+
5
+ * Fix: Only load index if skeleton method is actually invoked
6
+
3
7
  ### 1.0.0
4
8
 
5
9
  * Inital release
@@ -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 'display_width/index' unless defined? ::Unicode::Confusable::INDEX
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
@@ -1,6 +1,6 @@
1
1
  module Unicode
2
2
  module Confusable
3
- VERSION = "1.0.0".freeze
3
+ VERSION = "1.0.1".freeze
4
4
  DATA_DIRECTORY = File.expand_path(File.dirname(__FILE__) + '/../../../data/').freeze
5
5
  INDEX_FILENAME = (DATA_DIRECTORY + '/confusable.marshal.gz').freeze
6
6
  end
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.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-12 00:00:00.000000000 Z
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