unicode-emoji 2.3.1 → 2.4.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: 96c19c8ef114a465561a88fa90dc9c4faf156400f825f10f4fa71dd89fcade45
4
- data.tar.gz: 54e38e7d63e05e063a64760a5434559af6e972bf8265c70dfb6d8dee522008f5
3
+ metadata.gz: 01370a115b3b6135d1b2d495ed25ccc9f2bebec4b27d171f567ea7c134facc24
4
+ data.tar.gz: b50bb761b4c556588bed13622e3926734f471f773648e033640bd274e450147f
5
5
  SHA512:
6
- metadata.gz: ede630ec3d0f8dc44b97dfcaeaa475a68452da8a5cea9eeca03b3d7dde5ddd169e31e659a2ae357d69212ffa7985cf5f9ef36e182d04b1e58d64bf6ff6fad9f6
7
- data.tar.gz: 9c0266bb0de652d16144b19b9f40e09178fd9dd567b815476b06f55dec5d0e9b28147f55208080bf0234e6da512b65edb5540ab209b8df0ec3ba0202fd5ffc73
6
+ metadata.gz: ecebc5a3f30904d12bb8170d44f596577a40a5895393448359d7fa6c52d3b0a83fab12d8da3ec708f76313b1a3286b4a7b23a415076f1b9c58468ad364576e57
7
+ data.tar.gz: 72071ac2532ddab99aaac5fd9c61ad2f4047c3ab8428e6b9995f607d0f020c0596283291d3a43de00eb5e78d90f089ed8b563ec22c77adaa65e6016fd3908501
@@ -2,16 +2,19 @@ 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
5
+ - 2.7
6
+ - 2.6
7
+ - 2.5
8
+ - 2.4
9
+ - 2.3
9
10
  - ruby-head
10
- - jruby-head
11
- - jruby-9.2.6.0
11
+ - jruby-9.2.9.0
12
+ - truffleruby
12
13
 
13
14
  matrix:
14
15
  allow_failures:
15
- - rvm: jruby-head
16
+ - rvm: 2.3
16
17
  - rvm: ruby-head
18
+ - rvm: jruby-2.9.2.0
19
+ - rvm: truffleruby
17
20
  # fast_finish: true
@@ -1,5 +1,9 @@
1
1
  ## CHANGELOG
2
2
 
3
+ ### 2.4.0 (unreleased)
4
+
5
+ - Emoji 13.0
6
+
3
7
  ### 2.3.1
4
8
 
5
9
  - Fix index to actually include Emoji 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
@@ -1,14 +1,16 @@
1
1
  # Unicode::Emoji [![[version]](https://badge.fury.io/rb/unicode-emoji.svg)](https://badge.fury.io/rb/unicode-emoji) [![[travis]](https://travis-ci.org/janlelis/unicode-emoji.svg)](https://travis-ci.org/janlelis/unicode-emoji)
2
2
 
3
- A small Ruby library which provides Unicode Emoji data and regexes.
3
+ A small Ruby library which provides Unicode Emoji data and regexes, incorporating the latest Unicode and Emoji standards.
4
4
 
5
5
  Also includes a categorized list of recommended Emoji.
6
6
 
7
- Emoji version: **12.1** (October 2019)
7
+ Emoji version: **13.0** (January 2019)
8
8
 
9
9
  CLDR version (used for sub-region flags): **36** (October 2019)
10
10
 
11
- Supported Rubies: **2.6**, **2.5**, **2.4**, **2.3**
11
+ Supported Rubies: **2.7**, **2.6**, **2.5**, **2.4**
12
+
13
+ No longer supported Rubies, but might still work: **2.3**
12
14
 
13
15
  If you are stuck on an older Ruby version, checkout the latest [0.9 version](https://rubygems.org/gems/unicode-emoji/versions/0.9.3) of this gem.
14
16
 
@@ -129,7 +131,7 @@ A list of all Emoji can be found at [character.construction](https://character.c
129
131
 
130
132
  ### Properties
131
133
 
132
- Allows you to access the codepoint data form Unicode's [emoji-data.txt](https://unicode.org/Public/emoji/12.1/emoji-data.txt) file:
134
+ Allows you to access the codepoint data form Unicode's [emoji-data.txt](https://www.unicode.org/Public/13.0.0/ucd/emoji/emoji-data.txt) file:
133
135
 
134
136
  ```ruby
135
137
  require "unicode/emoji"
@@ -146,5 +148,5 @@ Unicode::Emoji.properties "☝" # => ["Emoji", "Emoji_Modifier_Base"]
146
148
 
147
149
  ## MIT
148
150
 
149
- - Copyright (C) 2017-2019 Jan Lelis <https://janlelis.com>. Released under the MIT license.
151
+ - Copyright (C) 2017-2020 Jan Lelis <https://janlelis.com>. Released under the MIT license.
150
152
  - Unicode data: https://www.unicode.org/copyright.html#Exhibit1
Binary file
Binary file
@@ -2,13 +2,14 @@
2
2
 
3
3
  module Unicode
4
4
  module Emoji
5
- VERSION = "2.3.1"
6
- EMOJI_VERSION = "12.1"
5
+ VERSION = "2.4.0"
6
+ EMOJI_VERSION = "13.0"
7
7
  CLDR_VERSION = "36"
8
8
  DATA_DIRECTORY = File.expand_path(File.dirname(__FILE__) + "/../../../data/").freeze
9
9
  INDEX_FILENAME = (DATA_DIRECTORY + "/emoji.marshal.gz").freeze
10
10
 
11
- ENABLE_NATIVE_EMOJI_UNICODE_PROPERTIES = false # As of Ruby 2.6.1, Emoji version 11 is included
11
+ ENABLE_NATIVE_EMOJI_UNICODE_PROPERTIES = false
12
+ # As of Ruby 2.7.0, Emoji version 12.1 is included
12
13
  end
13
14
  end
14
15
 
@@ -93,6 +93,11 @@ describe Unicode::Emoji do
93
93
  "🧑‍🦱 person: curly hair" =~ Unicode::Emoji::REGEX
94
94
  assert_equal "🧑‍🦱", $&
95
95
  end
96
+
97
+ it "matches 13.0 emoji" do
98
+ "👨‍🍼 man feeding baby" =~ Unicode::Emoji::REGEX
99
+ assert_equal "👨‍🍼", $&
100
+ end
96
101
  end
97
102
 
98
103
  describe "REGEX_VALID" do
@@ -6,9 +6,9 @@ Gem::Specification.new do |gem|
6
6
  gem.name = "unicode-emoji"
7
7
  gem.version = Unicode::Emoji::VERSION
8
8
  gem.summary = "Retrieve Emoji data about Unicode codepoints."
9
- gem.description = "[Emoji #{Unicode::Emoji::EMOJI_VERSION}] Retrieve emoji data about Unicode codepoints. Also contains a regex to match emoji."
9
+ gem.description = "[Emoji #{Unicode::Emoji::EMOJI_VERSION}] A small Ruby library which provides Unicode Emoji data and regexes, incorporating the latest Unicode and Emoji standards. Includes a categorized list of recommended Emoji."
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-emoji"
13
13
  gem.license = "MIT"
14
14
 
metadata CHANGED
@@ -1,19 +1,20 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unicode-emoji
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.1
4
+ version: 2.4.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-10-22 00:00:00.000000000 Z
11
+ date: 2020-02-01 00:00:00.000000000 Z
12
12
  dependencies: []
13
- description: "[Emoji 12.1] Retrieve emoji data about Unicode codepoints. Also contains
14
- a regex to match emoji."
13
+ description: "[Emoji 13.0] A small Ruby library which provides Unicode Emoji data
14
+ and regexes, incorporating the latest Unicode and Emoji standards. Includes a categorized
15
+ list of recommended Emoji."
15
16
  email:
16
- - mail@janlelis.de
17
+ - hi@ruby.consulting
17
18
  executables: []
18
19
  extensions: []
19
20
  extra_rdoc_files: []
@@ -28,6 +29,7 @@ files:
28
29
  - README.md
29
30
  - Rakefile
30
31
  - data/emoji.marshal.gz
32
+ - lib/unicode/.emoji.rb.swp
31
33
  - lib/unicode/emoji.rb
32
34
  - lib/unicode/emoji/constants.rb
33
35
  - lib/unicode/emoji/index.rb
@@ -52,7 +54,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
52
54
  - !ruby/object:Gem::Version
53
55
  version: '0'
54
56
  requirements: []
55
- rubygems_version: 3.0.6
57
+ rubygems_version: 3.1.2
56
58
  signing_key:
57
59
  specification_version: 4
58
60
  summary: Retrieve Emoji data about Unicode codepoints.