unicode-sequence_name 1.3.0 → 1.8.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: 434aa8e312ba7ff312bde9ca4e7a922d2494a35c78c1b58463c7514d47677d8c
4
- data.tar.gz: 7c7dcbd62fa7b061f6549a9d9bf6f6416daf901589a3a58de48c38f9c3df5c68
3
+ metadata.gz: 7ce16d9dd77769ad11c608f57ec99492f1c6e64d812146fd2c9451b6854d640d
4
+ data.tar.gz: 5ae055dc2079b8e18e2f95616fb03aef46fcc73912c272e417cd808848d68a19
5
5
  SHA512:
6
- metadata.gz: 9cfa24967c1ee4e1d1a031560096879f8f08c748040d511bb1fdc62b2b52c80954c8a9ebc811b4aa420016e082b70124c001a92b1e11d829a5595632bc4ddf70
7
- data.tar.gz: 2b7548a0ec071e8ab4d10a953f8fcbf34c0bc4f6e78a83d4398cac375a710b04cd11c4d8be1dd16ae5443f08416b730c781ab9389bed723e07dbc1853216856f
6
+ metadata.gz: db2b00362dec8c61a5b9427be558c123e181fcef7f6d679641308da75870f022e16359b9fc26604d105622f6f8f0326fc876bf2825dc59314864e1ffcc82782e
7
+ data.tar.gz: 77888ad3890fb0e0761f626ac351ed7a225ac382b3b6195fc8df71d2c256b849c92ee66ae8a14ea247bc0c13d95c67333083eae4d9a8d733e272f2f15526a13a
@@ -2,21 +2,18 @@ sudo: false
2
2
  language: ruby
3
3
 
4
4
  rvm:
5
- - 2.6.1
6
- - 2.5.3
7
- - 2.4.5
8
- - 2.3.8
9
- - 2.2
10
- - 2.1
11
- - 2.0
5
+ - 2.7
6
+ - 2.6
7
+ - 2.5
8
+ - 2.4
9
+ - 2.3
12
10
  - ruby-head
13
- - jruby-head
14
- - jruby-9.2.6.0
11
+ - jruby-9.2.11.1
12
+ - truffleruby-20.2.0
15
13
 
16
14
  matrix:
17
15
  allow_failures:
18
- - rvm: 2.3.8
19
- - rvm: 2.2
20
- - rvm: 2.1
21
- - rvm: 2.0
22
- - rvm: jruby-head
16
+ - rvm: 2.4
17
+ - rvm: 2.3
18
+ - rvm: ruby-head
19
+ # fast_finish: true
@@ -1,5 +1,25 @@
1
1
  ## CHANGELOG
2
2
 
3
+ ### 1.8.0
4
+
5
+ * Emoji 13.1
6
+
7
+ ### 1.7.0
8
+
9
+ - Unicode 13
10
+
11
+ ### 1.6.0
12
+
13
+ * Emoji 13.0
14
+
15
+ ### 1.5.0
16
+
17
+ * Emoji 12.1
18
+
19
+ ### 1.4.0
20
+
21
+ * Unicode 12.1
22
+
3
23
  ### 1.3.0
4
24
 
5
25
  * Unicode 12 / Emoji 12
data/Gemfile CHANGED
@@ -4,3 +4,4 @@ gemspec
4
4
 
5
5
  gem 'minitest'
6
6
  gem 'rake'
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,11 @@
2
2
 
3
3
  Returns the name of a Unicode codepoint sequence, if one exists.
4
4
 
5
- Unicode / Emoji version: **12.0** (March / February 2019)
5
+ Unicode / Emoji version: **13.0** / **13.1** (March 2020 / September 2020)
6
6
 
7
- Supported Rubies: **2.6**, **2.5**, **2.4**
7
+ Supported Rubies: **2.7**, **2.6**, **2.5** (also latest JRuby and TruffleRuby stable)
8
8
 
9
- Old Rubies but might still work: **2.3**, **2.2**, **2.1**, **2.0**
9
+ Old Rubies which might still work: **2.4**, **2.3**, **2.2**, **2.1**, **2.0**
10
10
 
11
11
  ## Usage
12
12
 
@@ -19,15 +19,19 @@ Unicode::SequenceName.of "င︀" # => "MYANMAR LETTER NGA (dotted form)"
19
19
  Unicode::SequenceName.of "நி" # => "TAMIL SYLLABLE NI"
20
20
  Unicode::SequenceName.of "🇺🇳" # => "Flag: UNITED NATIONS"
21
21
  Unicode::SequenceName.of "🏴󠁧󠁢󠁳󠁣󠁴󠁿" # => "SCOTLAND"
22
+ Unicode::SequenceName.of "🧑‍🦱" # => "PERSON: CURLY HAIR"
23
+ Unicode::SequenceName.of "👨‍🍼" # => MAN FEEDING BABY
24
+ Unicode::SequenceName.of "❤️‍🔥" # => HEART ON FIRE
22
25
  ```
23
26
 
27
+ Names for singular codepoints are not included, you can use [unicode-name](https://github.com/janlelis/unicode-name) for that purpose.
28
+
24
29
  ## Also See
25
30
 
26
31
  - [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
32
  - [unicode-x](https://github.com/janlelis/unicode-x) - more Unicode related micro libraries
29
33
 
30
34
  ## MIT License
31
35
 
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
36
+ - Copyright (C) 2017-2020 Jan Lelis <https://janlelis.com>. Released under the MIT license.
37
+ - Unicode data: https://www.unicode.org/copyright.html#Exhibit1
@@ -2,9 +2,9 @@
2
2
 
3
3
  module Unicode
4
4
  module SequenceName
5
- VERSION = "1.3.0"
6
- UNICODE_VERSION = "12.0.0"
7
- EMOJI_VERSION = "12.0"
5
+ VERSION = "1.8.0"
6
+ UNICODE_VERSION = "13.0.0"
7
+ EMOJI_VERSION = "13.1"
8
8
  DATA_DIRECTORY = File.expand_path(File.dirname(__FILE__) + "/../../../data/").freeze
9
9
  INDEX_FILENAME = (DATA_DIRECTORY + "/sequence_name.marshal.gz").freeze
10
10
  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}] 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.3.0
4
+ version: 1.8.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-03-05 00:00:00.000000000 Z
11
+ date: 2020-09-21 00:00:00.000000000 Z
12
12
  dependencies: []
13
- description: "[Unicode 12.0.0] Returns name of a Unicode codepoint sequence, if one
14
- 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.1
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