unicode-confusable 1.6.0 → 1.7.0

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
  SHA256:
3
- metadata.gz: 73e1cdc3efe0de7c8f7631bf621fbc75373271d5a8c92f4191ca883352acff1a
4
- data.tar.gz: 2ed0a75085eb3dd702299e7a222a691a87e65f213453df3d42d66897cc59dcef
3
+ metadata.gz: f45afb4becd4f7e38fdbaeb65ad293fd4ba9afaaa9df475db59ec5ed0424908d
4
+ data.tar.gz: 0aa2dd5b0e52d04527c1eafd662228ac2d1ba8cb33cd3720038b788904e2dc5c
5
5
  SHA512:
6
- metadata.gz: 5166a223ecbc20d353d02117a2c9d037e2aa7f478e5e7e0d12fcf93f11143e76b5a24c8e865d0db78f4cafe8229c990e132978ee72d02441164565122ff12bcb
7
- data.tar.gz: 16d52312e4e7faf94ba4dbb394fa158a7fc0b1cfe9710bb754469192bb939ce2e8d4a37e6a6bb4cfc961f38cd8855fb9eddd83cd41463a6f8166d6462040bba7
6
+ metadata.gz: c353fdaf8138b9667306313329b35916b3054eac6e4c012d0ea300e9488d0f39d3e593416a431d5d7fdb90a4c1e717c560df460cef15e302b9ca4f80943ccb7b
7
+ data.tar.gz: 787e0357eaa8278912bdd2c7f696686a916d6dd18e2f2d1f7643834cb1402d6f6de88f87b23d93873a5a80b9a59f4ec3c2af2bd0330b76f6fd10083c7ed5fe0c
@@ -1,20 +1,20 @@
1
1
  sudo: false
2
2
  language: ruby
3
3
 
4
- script: bundle exec ruby spec/unicode_confusable_spec.rb
5
-
6
4
  rvm:
5
+ - 2.7
7
6
  - 2.6
8
7
  - 2.5
9
8
  - 2.4
10
9
  - 2.3
11
- - 2.2
12
10
  - ruby-head
13
- - jruby-head
14
- - jruby-9.2.7.0
11
+ - jruby-9.2.9.0
12
+ - truffleruby
15
13
 
16
14
  matrix:
17
15
  allow_failures:
18
16
  - rvm: 2.3
19
- - rvm: 2.2
20
- - rvm: jruby-head
17
+ - rvm: ruby-head
18
+ - rvm: jruby-2.9.2.0
19
+ - rvm: truffleruby
20
+ # fast_finish: true
@@ -1,5 +1,9 @@
1
1
  ## CHANGELOG
2
2
 
3
+ ### 1.7.0
4
+
5
+ - Unicode 13
6
+
3
7
  ### 1.6.0
4
8
 
5
9
  * Unicode 12.1
data/Gemfile CHANGED
@@ -4,5 +4,5 @@ gemspec
4
4
 
5
5
  gem 'minitest'
6
6
  gem 'rake'
7
- gem 'irb'
7
+ gem 'irb' unless RUBY_ENGINE == "jruby"
8
8
 
@@ -1,4 +1,4 @@
1
- Copyright (c) 2016-2019 Jan Lelis, mail@janlelis.de
1
+ Copyright (c) 2016-2020 Jan Lelis, https://janlelis.com
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/README.md CHANGED
@@ -1,12 +1,12 @@
1
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/12.0.0/confusables.txt), and normalizing the string again.
3
+ Compares two strings if they are visually confusable as described in [Unicode® Technical Standard #39](https://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](https://unicode.org/Public/security/12.1.0/confusables.txt), and normalizing the string again.
4
4
 
5
- Unicode version: **12.1.0** (May 2019)
5
+ Unicode version: **13.0.0** (March 2020)
6
6
 
7
- Supported Rubies: **2.6**, **2.5**, **2.4**
7
+ Supported Rubies: **2.7**, **2.6**, **2.5**, **2.4**
8
8
 
9
- Old Rubies that might still work: **2.3**, **2.2**
9
+ Old Rubies which might still work: **2.3**, **2.2**
10
10
 
11
11
  ## Usage
12
12
 
@@ -29,11 +29,11 @@ Unicode::Confusable.confusable? "⁇", "??" # => true
29
29
  Unicode::Confusable.skeleton "ℜ𝘂ᖯʏ" # => "Ruby"
30
30
  ```
31
31
 
32
- **Please note:** The skeleton is an intermediate representation, not meant for any other use than testing confusability, [according to the standard](http://www.unicode.org/reports/tr39/#Confusable_Detection).
32
+ **Please note:** The skeleton is an intermediate representation, not meant for any other use than testing confusability, [according to the standard](https://www.unicode.org/reports/tr39/#Confusable_Detection).
33
33
 
34
34
  ### List
35
35
 
36
- List all confusables of specific character:
36
+ List all confusables of a specific character:
37
37
 
38
38
  ```ruby
39
39
  Unicode::Confusable.list("o", false)
@@ -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-2019 Jan Lelis <http://janlelis.com>. Released under the MIT license.
65
- - Unicode data: http://www.unicode.org/copyright.html#Exhibit1
64
+ - Copyright (C) 2016-2020 Jan Lelis <https://janlelis.com>. Released under the MIT license.
65
+ - Unicode data: https://www.unicode.org/copyright.html#Exhibit1
Binary file
@@ -2,8 +2,8 @@
2
2
 
3
3
  module Unicode
4
4
  module Confusable
5
- VERSION = "1.6.0"
6
- UNICODE_VERSION = "12.1.0"
5
+ VERSION = "1.7.0"
6
+ UNICODE_VERSION = "13.0.0"
7
7
  DATA_DIRECTORY = File.expand_path(File.dirname(__FILE__) + "/../../../data/").freeze
8
8
  INDEX_FILENAME = (DATA_DIRECTORY + "/confusable.marshal.gz").freeze
9
9
  end
@@ -6,9 +6,9 @@ Gem::Specification.new do |gem|
6
6
  gem.name = "unicode-confusable"
7
7
  gem.version = Unicode::Confusable::VERSION
8
8
  gem.summary = "Detect characters that look visually similar."
9
- gem.description = "[Unicode #{Unicode::Confusable::UNICODE_VERSION}] Compares two strings if they are visually confusable as described in Unicode® Technical Standard #39: Both strings get transformed into a skeleton format before comparing them. The skeleton is generated by normalizing the string, replacing confusable characters, and normalizing the string again."
9
+ gem.description = "[Unicode #{Unicode::Confusable::UNICODE_VERSION}] Compares two strings if they are visually confusable as described in Unicode® Technical Standard #39: Both strings get transformed into a skeleton format before comparing them. The skeleton is generated by normalizing the string, replacing confusable characters, and then normalizing the string again."
10
10
  gem.authors = ["Jan Lelis"]
11
- gem.email = ["mail@janlelis.de"]
11
+ gem.email = ["hi@ruby.consulting"]
12
12
  gem.homepage = "https://github.com/janlelis/unicode-confusable"
13
13
  gem.license = "MIT"
14
14
 
@@ -17,5 +17,5 @@ Gem::Specification.new do |gem|
17
17
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
18
18
  gem.require_paths = ["lib"]
19
19
 
20
- gem.required_ruby_version = "~> 2.2"
20
+ gem.required_ruby_version = ">= 2.2"
21
21
  end
metadata CHANGED
@@ -1,21 +1,21 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unicode-confusable
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.0
4
+ version: 1.7.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: 2019-05-08 00:00:00.000000000 Z
11
+ date: 2020-03-11 00:00:00.000000000 Z
12
12
  dependencies: []
13
- description: "[Unicode 12.1.0] Compares two strings if they are visually confusable
13
+ description: "[Unicode 13.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
- the string, replacing confusable characters, and normalizing the string again."
16
+ the string, replacing confusable characters, and then normalizing the string again."
17
17
  email:
18
- - mail@janlelis.de
18
+ - hi@ruby.consulting
19
19
  executables: []
20
20
  extensions: []
21
21
  extra_rdoc_files: []
@@ -46,7 +46,7 @@ require_paths:
46
46
  - lib
47
47
  required_ruby_version: !ruby/object:Gem::Requirement
48
48
  requirements:
49
- - - "~>"
49
+ - - ">="
50
50
  - !ruby/object:Gem::Version
51
51
  version: '2.2'
52
52
  required_rubygems_version: !ruby/object:Gem::Requirement
@@ -55,7 +55,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
55
55
  - !ruby/object:Gem::Version
56
56
  version: '0'
57
57
  requirements: []
58
- rubygems_version: 3.0.3
58
+ rubygems_version: 3.1.2
59
59
  signing_key:
60
60
  specification_version: 4
61
61
  summary: Detect characters that look visually similar.