unicode-emoji 2.4.0 → 2.5.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: 01370a115b3b6135d1b2d495ed25ccc9f2bebec4b27d171f567ea7c134facc24
4
- data.tar.gz: b50bb761b4c556588bed13622e3926734f471f773648e033640bd274e450147f
3
+ metadata.gz: b594f6df1c8a1a6689e0b97cab1cf6d3e7d6ba7b94b615a8e3c57fe8304ab4af
4
+ data.tar.gz: 85555249c2b4855c8c90bca7c5a52130fb179ff1bd79e96f001185a462654525
5
5
  SHA512:
6
- metadata.gz: ecebc5a3f30904d12bb8170d44f596577a40a5895393448359d7fa6c52d3b0a83fab12d8da3ec708f76313b1a3286b4a7b23a415076f1b9c58468ad364576e57
7
- data.tar.gz: 72071ac2532ddab99aaac5fd9c61ad2f4047c3ab8428e6b9995f607d0f020c0596283291d3a43de00eb5e78d90f089ed8b563ec22c77adaa65e6016fd3908501
6
+ metadata.gz: d50d3efc9762038e778ab90d94911b252c1349659fcb638d2a73de6d016fba871922687d000a622da0cd65057553c6d0cde9c7295f3a0b749b63a9f593fa60c6
7
+ data.tar.gz: 5ff906f0cf45a194c938a2021371b5a0b4ba6f4e757bc4b0957f936c45f8b83e970924deecb28d2c1a4987c73c961d7664648417fd37bb61d43a551f856eea08
data/.travis.yml CHANGED
@@ -8,13 +8,13 @@ rvm:
8
8
  - 2.4
9
9
  - 2.3
10
10
  - ruby-head
11
- - jruby-9.2.9.0
11
+ - jruby-9.2.11.1
12
12
  - truffleruby
13
13
 
14
14
  matrix:
15
15
  allow_failures:
16
+ - rvm: 2.4
16
17
  - rvm: 2.3
17
18
  - rvm: ruby-head
18
- - rvm: jruby-2.9.2.0
19
19
  - rvm: truffleruby
20
20
  # fast_finish: true
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  ## CHANGELOG
2
2
 
3
- ### 2.4.0 (unreleased)
3
+ ### 2.5.0
4
+
5
+ - Use native Emoji regex properties when current Ruby's Emoji support is the same as our current Emoji version
6
+ - Update valid subdivisions to CLDR 37
7
+
8
+ ### 2.4.0
4
9
 
5
10
  - Emoji 13.0
6
11
 
data/README.md CHANGED
@@ -1,16 +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, incorporating the latest Unicode and Emoji standards.
3
+ 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
7
  Emoji version: **13.0** (January 2019)
8
8
 
9
- CLDR version (used for sub-region flags): **36** (October 2019)
9
+ CLDR version (used for sub-region flags): **37** (April 2020)
10
10
 
11
- Supported Rubies: **2.7**, **2.6**, **2.5**, **2.4**
11
+ Supported Rubies: **2.7**, **2.6**, **2.5**
12
12
 
13
- No longer supported Rubies, but might still work: **2.3**
13
+ No longer supported Rubies, but might still work: **2.4**, **2.3**
14
14
 
15
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.
16
16
 
Binary file
data/lib/unicode/emoji.rb CHANGED
@@ -1,5 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require "unicode/version"
4
+
3
5
  require_relative "emoji/constants"
4
6
  require_relative "emoji/index"
5
7
 
@@ -47,7 +49,7 @@ module Unicode
47
49
  join = -> (*strings){ "(?:" + strings.join("|") + ")" }
48
50
  pack_and_join = ->(ords){ join[*ords.map{ |ord| pack[ord] }] }
49
51
 
50
- if ENABLE_NATIVE_EMOJI_UNICODE_PROPERTIES
52
+ if EMOJI_VERSION == Unicode::Version.emoji_version
51
53
  emoji_character = "\\p{Emoji}"
52
54
  emoji_modifier = "\\p{Emoji Modifier}"
53
55
  emoji_modifier_base = "\\p{Emoji Modifier Base}"
@@ -2,14 +2,11 @@
2
2
 
3
3
  module Unicode
4
4
  module Emoji
5
- VERSION = "2.4.0"
5
+ VERSION = "2.5.0"
6
6
  EMOJI_VERSION = "13.0"
7
- CLDR_VERSION = "36"
7
+ CLDR_VERSION = "37"
8
8
  DATA_DIRECTORY = File.expand_path(File.dirname(__FILE__) + "/../../../data/").freeze
9
9
  INDEX_FILENAME = (DATA_DIRECTORY + "/emoji.marshal.gz").freeze
10
-
11
- ENABLE_NATIVE_EMOJI_UNICODE_PROPERTIES = false
12
- # As of Ruby 2.7.0, Emoji version 12.1 is included
13
10
  end
14
11
  end
15
12
 
@@ -18,4 +18,6 @@ Gem::Specification.new do |gem|
18
18
  gem.require_paths = ["lib"]
19
19
 
20
20
  gem.required_ruby_version = "~> 2.3"
21
+
22
+ gem.add_dependency "unicode-version", "~> 1.0"
21
23
  end
metadata CHANGED
@@ -1,15 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unicode-emoji
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.0
4
+ version: 2.5.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: 2020-02-01 00:00:00.000000000 Z
12
- dependencies: []
11
+ date: 2020-04-23 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: unicode-version
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.0'
13
27
  description: "[Emoji 13.0] A small Ruby library which provides Unicode Emoji data
14
28
  and regexes, incorporating the latest Unicode and Emoji standards. Includes a categorized
15
29
  list of recommended Emoji."
@@ -29,7 +43,6 @@ files:
29
43
  - README.md
30
44
  - Rakefile
31
45
  - data/emoji.marshal.gz
32
- - lib/unicode/.emoji.rb.swp
33
46
  - lib/unicode/emoji.rb
34
47
  - lib/unicode/emoji/constants.rb
35
48
  - lib/unicode/emoji/index.rb
@@ -54,7 +67,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
54
67
  - !ruby/object:Gem::Version
55
68
  version: '0'
56
69
  requirements: []
57
- rubygems_version: 3.1.2
70
+ rubygems_version: 3.0.8
58
71
  signing_key:
59
72
  specification_version: 4
60
73
  summary: Retrieve Emoji data about Unicode codepoints.
Binary file