unicode-sequence_name 1.4.0 → 1.9.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: 33623c850b5836ccfb996165ec1ffb059c570c50cff70a11b0c352477e8f1d76
4
- data.tar.gz: edd7d0fe3091f810d89c8730521099e54ac80ba51d3ca38bdf0c4dfdfb5bbfa6
3
+ metadata.gz: 0c6958e746cb34e3f2cf0b3680f4e4dd6063bfa2de553adc0ef481bfd8ebe7f4
4
+ data.tar.gz: b1074b7ac65a33786ecbf1b9895e8a08afd1195189846e414c2768db6a720034
5
5
  SHA512:
6
- metadata.gz: 190ae9133f76494a23795de5bb7ecac60b9bfb1856c85d1929940eb6d79cd4a8e0b1e11986b61e66c6189684d797316fa2b1bed0294bac8c1eee0aad3532aae3
7
- data.tar.gz: '03059ad1f96b282216df184166db7ba814950e363aa1f838c5c60b2d17a5afc25534bacb96753fa2f8192ba4175ca67f3d0c31815de029ae12915dda43e6f1d4'
6
+ metadata.gz: ec50040cb5159b4b50819a45c24068256cb026d6fc3f0e2b894a51d773562f132aacf66c4bef98ad6e9cf1a2563b89e5bda0a907d6f76b8211f92e1225c5447f
7
+ data.tar.gz: eaa769f79e97da308f7536f88c481c7748c3825abdde6d8eadfdf2ebed607c09c7b67aa3ba5aeb53f0d9d27ffbc47853aee0e42416a471e2f8393d6f10cd7768
@@ -2,21 +2,18 @@ sudo: false
2
2
  language: ruby
3
3
 
4
4
  rvm:
5
+ - 2.7
5
6
  - 2.6
6
7
  - 2.5
7
8
  - 2.4
8
9
  - 2.3
9
- - 2.2
10
- - 2.1
11
- - 2.0
12
10
  - ruby-head
13
- - jruby-head
14
- - jruby-9.2.7.0
11
+ - jruby-9.2.11.1
12
+ - truffleruby-20.2.0
15
13
 
16
14
  matrix:
17
15
  allow_failures:
16
+ - rvm: 2.4
18
17
  - rvm: 2.3
19
- - rvm: 2.2
20
- - rvm: 2.1
21
- - rvm: 2.0
22
- - rvm: jruby-head
18
+ - rvm: ruby-head
19
+ # fast_finish: true
@@ -1,5 +1,25 @@
1
1
  ## CHANGELOG
2
2
 
3
+ ### 1.9.0
4
+
5
+ * IVD 2020-11-06
6
+
7
+ ### 1.8.0
8
+
9
+ * Emoji 13.1
10
+
11
+ ### 1.7.0
12
+
13
+ - Unicode 13
14
+
15
+ ### 1.6.0
16
+
17
+ * Emoji 13.0
18
+
19
+ ### 1.5.0
20
+
21
+ * Emoji 12.1
22
+
3
23
  ### 1.4.0
4
24
 
5
25
  * Unicode 12.1
data/Gemfile CHANGED
@@ -4,4 +4,4 @@ gemspec
4
4
 
5
5
  gem 'minitest'
6
6
  gem 'rake'
7
- gem 'irb'
7
+ gem 'irb' unless RUBY_ENGINE == "jruby"
@@ -1,4 +1,4 @@
1
- Copyright (c) 2017-2019 Jan Lelis, mail@janlelis.de
1
+ Copyright (c) 2017-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
@@ -2,11 +2,15 @@
2
2
 
3
3
  Returns the name of a Unicode codepoint sequence, if one exists.
4
4
 
5
- Unicode / Emoji version: **12.1** / **12.0** (May / February 2019)
5
+ Unicode version: **13.0** (March 2020)
6
6
 
7
- Supported Rubies: **2.6**, **2.5**, **2.4**
7
+ Emoji version: **13.1** (September 2020)
8
8
 
9
- Old Rubies but might still work: **2.3**, **2.2**, **2.1**, **2.0**
9
+ IVD version: **2020-11-06** (November 2020)
10
+
11
+ Supported Rubies: **2.7**, **2.6**, **2.5** (also latest JRuby and TruffleRuby stable)
12
+
13
+ Old Rubies which might still work: **2.4**, **2.3**, **2.2**, **2.1**, **2.0**
10
14
 
11
15
  ## Usage
12
16
 
@@ -19,15 +23,19 @@ Unicode::SequenceName.of "င︀" # => "MYANMAR LETTER NGA (dotted form)"
19
23
  Unicode::SequenceName.of "நி" # => "TAMIL SYLLABLE NI"
20
24
  Unicode::SequenceName.of "🇺🇳" # => "Flag: UNITED NATIONS"
21
25
  Unicode::SequenceName.of "🏴󠁧󠁢󠁳󠁣󠁴󠁿" # => "SCOTLAND"
26
+ Unicode::SequenceName.of "🧑‍🦱" # => "PERSON: CURLY HAIR"
27
+ Unicode::SequenceName.of "👨‍🍼" # => MAN FEEDING BABY
28
+ Unicode::SequenceName.of "❤️‍🔥" # => HEART ON FIRE
22
29
  ```
23
30
 
31
+ Names for singular codepoints are not included, you can use [unicode-name](https://github.com/janlelis/unicode-name) for that purpose.
32
+
24
33
  ## Also See
25
34
 
26
35
  - [uniscribe](https://github.com/janlelis/uniscribe) - cli utility that makes use of unicode_sequence-name
27
- - [unicode-name](https://github.com/janlelis/unicode-name) - single codepoint names
28
36
  - [unicode-x](https://github.com/janlelis/unicode-x) - more Unicode related micro libraries
29
37
 
30
38
  ## MIT License
31
39
 
32
- - Copyright (C) 2017-2019 Jan Lelis <http://janlelis.com>. Released under the MIT license.
33
- - Unicode data: http://www.unicode.org/copyright.html#Exhibit1
40
+ - Copyright (C) 2017-2020 Jan Lelis <https://janlelis.com>. Released under the MIT license.
41
+ - Unicode data: https://www.unicode.org/copyright.html#Exhibit1
@@ -2,9 +2,10 @@
2
2
 
3
3
  module Unicode
4
4
  module SequenceName
5
- VERSION = "1.4.0"
6
- UNICODE_VERSION = "12.1.0"
7
- EMOJI_VERSION = "12.0"
5
+ VERSION = "1.9.0"
6
+ UNICODE_VERSION = "13.0.0"
7
+ EMOJI_VERSION = "13.1"
8
+ IVD_VERSION = "2020-11-06"
8
9
  DATA_DIRECTORY = File.expand_path(File.dirname(__FILE__) + "/../../../data/").freeze
9
10
  INDEX_FILENAME = (DATA_DIRECTORY + "/sequence_name.marshal.gz").freeze
10
11
  end
@@ -10,6 +10,9 @@ describe Unicode::SequenceName do
10
10
  assert_equal "TAMIL SYLLABLE NI", Unicode::SequenceName.of("நி")
11
11
  assert_equal "FLAG: UNITED NATIONS", Unicode::SequenceName.of("🇺🇳")
12
12
  assert_equal "FLAG: SCOTLAND", Unicode::SequenceName.of("🏴󠁧󠁢󠁳󠁣󠁴󠁿")
13
+ assert_equal "PERSON: CURLY HAIR", Unicode::SequenceName.of("🧑‍🦱") # Emoji 12.1
14
+ assert_equal "MAN FEEDING BABY", Unicode::SequenceName.of("👨‍🍼") # Emoji 13.0
15
+ assert_equal "HEART ON FIRE", Unicode::SequenceName.of("❤️‍🔥") # Emoji 13.1
13
16
  end
14
17
 
15
18
  it "will return nil for characters without name" do
@@ -5,10 +5,10 @@ require File.dirname(__FILE__) + "/lib/unicode/sequence_name/constants"
5
5
  Gem::Specification.new do |gem|
6
6
  gem.name = "unicode-sequence_name"
7
7
  gem.version = Unicode::SequenceName::VERSION
8
- gem.summary = "Returns name of a Unicode codepoint sequence, if one exists"
9
- gem.description = "[Unicode #{Unicode::SequenceName::UNICODE_VERSION}][Emoji #{Unicode::SequenceName::EMOJI_VERSION}] Returns name of a Unicode codepoint sequence, if one exists"
8
+ gem.summary = "Returns the name of a Unicode codepoint sequence, if one exists"
9
+ gem.description = "[Unicode #{Unicode::SequenceName::UNICODE_VERSION}][Emoji #{Unicode::SequenceName::EMOJI_VERSION}] Returns the name of a Unicode code point sequence, if one exists"
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-sequence_name"
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.0"
20
+ gem.required_ruby_version = ">= 2.0"
21
21
  end
metadata CHANGED
@@ -1,19 +1,19 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unicode-sequence_name
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.9.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-12-24 00:00:00.000000000 Z
12
12
  dependencies: []
13
- description: "[Unicode 12.1.0][Emoji 12.0] Returns name of a Unicode codepoint sequence,
14
- if one exists"
13
+ description: "[Unicode 13.0.0][Emoji 13.1] Returns the name of a Unicode code point
14
+ sequence, if one exists"
15
15
  email:
16
- - mail@janlelis.de
16
+ - hi@ruby.consulting
17
17
  executables: []
18
18
  extensions: []
19
19
  extra_rdoc_files: []
@@ -44,7 +44,7 @@ require_paths:
44
44
  - lib
45
45
  required_ruby_version: !ruby/object:Gem::Requirement
46
46
  requirements:
47
- - - "~>"
47
+ - - ">="
48
48
  - !ruby/object:Gem::Version
49
49
  version: '2.0'
50
50
  required_rubygems_version: !ruby/object:Gem::Requirement
@@ -53,9 +53,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  requirements: []
56
- rubygems_version: 3.0.3
56
+ rubygems_version: 3.1.2
57
57
  signing_key:
58
58
  specification_version: 4
59
- summary: Returns name of a Unicode codepoint sequence, if one exists
59
+ summary: Returns the name of a Unicode codepoint sequence, if one exists
60
60
  test_files:
61
61
  - spec/unicode_sequence_name_spec.rb