Skip to content

Commit 1afedf2

Browse files
committed
Move visual components
1 parent b7feb94 commit 1afedf2

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

lib/unicode/emoji/constants.rb

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
module Unicode
44
module Emoji
5-
VERSION = "3.8.0"
5+
VERSION = "4.0.0"
66
EMOJI_VERSION = "16.0"
7-
CLDR_VERSION = "45"
7+
CLDR_VERSION = "46"
88
DATA_DIRECTORY = File.expand_path('../../../data', __dir__).freeze
99
INDEX_FILENAME = (DATA_DIRECTORY + "/emoji.marshal.gz").freeze
1010

@@ -41,5 +41,9 @@ module Emoji
4141

4242
# Two regional indicators make up a region
4343
REGIONAL_INDICATORS = [*0x1F1E6..0x1F1FF].freeze
44+
45+
# The current list of Emoji components that should have a visual representation
46+
# Currently skin tone modifiers + hair components
47+
VISUAL_COMPONENT = [*0x1F3FB..0x1F3FF, *0x1F9B0..0x1F9B3]
4448
end
4549
end

lib/unicode/emoji/lazy_constants.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,6 @@ module Emoji
2020
# (Emoji version of this gem might be more recent than Ruby's Emoji version)
2121
EMOJI_COMPONENT = INDEX[:PROPERTIES].select{ |ord, props| props.include?(:C) }.keys.freeze
2222

23-
# The current list of Emoji components that should have a visual representation
24-
# Currently skin tone modifiers + hair components
25-
VISUAL_COMPONENT = [*0x1F3FB..0x1F3FF, *0x1F9B0..0x1F9B3]
26-
2723
# The current list of codepoints with the "Emoji_Modifier_Base" property
2824
# Same characters as \p{Emoji Modifier Base} or \p{EBase}
2925
# (Emoji version of this gem might be more recent than Ruby's Emoji version)

0 commit comments

Comments
 (0)