unicode-emoji 4.0.3 → 4.0.4

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: 6380c3c0ad44728037efba8733373e0c2b923b959239544cb0efda1ac595815d
4
- data.tar.gz: 9c45c4d5ba6134933472459e8223657f23aa779fb0e2d0bc68822da3a8b726e3
3
+ metadata.gz: 3b08d6adaddfcbca3e754c9a52a0c0d5c772da86ca708affc9799ad113c5a005
4
+ data.tar.gz: e9f3817a215ef38b7933d69b4f0563d848a03f6a6b8728ecd06a74417fb5f8a7
5
5
  SHA512:
6
- metadata.gz: d5ec122b5aad377bf3e4f17b11d9428a4eaaeaaa3245b2302cfed5befdb40a53e7b549c08e215c9eb43c445f5dd1cb69ac000343ecc7fc88473cb3a1475aa6e3
7
- data.tar.gz: 36427662e0a3d911884d45d7d7d0ab3313449598deda482a22dd64c99c3720ef12a16aecb7f3f446913e591cea9517b7a312bcc8731a74f06ff99498a973d070
6
+ metadata.gz: cedad0ceb5f1039be614bbca170cccc3f29e8f05bd7fc74714ed586ddf20edb5da25a6c8fd840acfb7dfbeb918ec6e2218cf427e5e510eb2406235253e32ad74
7
+ data.tar.gz: 4680b526737abd7491351ff87c5d323f3a6acf5996dffa4c2f4737e10bc8083da16928dbab34362b6014ae5a17863266eb456ab2d382f25350339eaf71a175bf
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 4.0.4
4
+
5
+ - Add `REGEX_TEXT_PRESENTATION` to be able to match for raw default-text Emoji codepoints
6
+
3
7
  ## 4.0.3
4
8
 
5
9
  - Remove emoji-test.txt from Rubygems package
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- unicode-emoji (4.0.3)
4
+ unicode-emoji (4.0.4)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -153,6 +153,7 @@ Gem Regex (`Unicode::Emoji`'s Emoji support level) | Native Regex (Ruby's Emoji
153
153
  `Unicode::Emoji::REGEX_PROP_MODIFIER_BASE` | `/\p{EBase}/`
154
154
  `Unicode::Emoji::REGEX_PROP_COMPONENT` | `/\p{EComp}/`
155
155
  `Unicode::Emoji::REGEX_PROP_PRESENTATION` | `/\p{EPres}/`
156
+ `Unicode::Emoji::REGEX_TEXT_PRESENTATION` | `/[\p{Emoji}&&\P{EPres}]/`
156
157
 
157
158
  #### Extended Pictographic Regex
158
159
 
@@ -300,6 +300,7 @@ def compile(emoji_character:, emoji_modifier:, emoji_modifier_base:, emoji_compo
300
300
 
301
301
  # Matches only basic single, textual emoji, ignores components like modifiers or simple digits
302
302
  regexes[:REGEX_TEXT] = Regexp.compile(text_emoji)
303
+ regexes[:REGEX_TEXT_PRESENTATION] = Regexp.compile(text_presentation)
303
304
 
304
305
  # Export regexes for Emoji properties so they can be used with newer Unicode than Ruby's
305
306
  regexes[:REGEX_PROP_EMOJI] = Regexp.compile(emoji_character)
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Unicode
4
4
  module Emoji
5
- VERSION = "4.0.3"
5
+ VERSION = "4.0.4"
6
6
  EMOJI_VERSION = "16.0"
7
7
  CLDR_VERSION = "46"
8
8
  DATA_DIRECTORY = File.expand_path('../../../data', __dir__).freeze
@@ -0,0 +1,8 @@
1
+ # This file was generated by a script, please do not edit it by hand.
2
+ # See `$ rake generate_constants` and data/generate_constants.rb for more info.
3
+
4
+ module Unicode
5
+ module Emoji
6
+ REGEX_TEXT_PRESENTATION = /[\#\*0-9©®‼⁉™ℹ↔-↙↩↪⌨⏏⏭-⏯⏱⏲⏸-⏺Ⓜ▪▫▶◀◻◼☀-☄☎☑☘☝☠☢☣☦☪☮☯☸-☺♀♂♟♠♣♥♦♨♻♾⚒⚔-⚗⚙⚛⚜⚠⚧⚰⚱⛈⛏⛑⛓⛩⛰⛱⛴⛷-⛹✂✈✉✌✍✏✒✔✖✝✡✳✴❄❇❣❤➡⤴⤵⬅-⬇〰〽㊗㊙🅰🅱🅾🅿🈂🈷🌡🌤-🌬🌶🍽🎖🎗🎙-🎛🎞🎟🏋-🏎🏔-🏟🏳🏵🏷🐿👁📽🕉🕊🕯🕰🕳-🕹🖇🖊-🖍🖐🖥🖨🖱🖲🖼🗂-🗄🗑-🗓🗜-🗞🗡🗣🗨🗯🗳🗺🛋🛍-🛏🛠-🛥🛩🛰🛳]/
7
+ end
8
+ end
@@ -0,0 +1,8 @@
1
+ # This file was generated by a script, please do not edit it by hand.
2
+ # See `$ rake generate_constants` and data/generate_constants.rb for more info.
3
+
4
+ module Unicode
5
+ module Emoji
6
+ REGEX_TEXT_PRESENTATION = /[\p{Emoji}&&\P{EPres}]/
7
+ end
8
+ end
data/lib/unicode/emoji.rb CHANGED
@@ -48,6 +48,7 @@ module Unicode
48
48
  REGEX_POSSIBLE
49
49
  REGEX_BASIC
50
50
  REGEX_TEXT
51
+ REGEX_TEXT_PRESENTATION
51
52
  REGEX_PROP_EMOJI
52
53
  REGEX_PROP_MODIFIER
53
54
  REGEX_PROP_MODIFIER_BASE
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unicode-emoji
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.3
4
+ version: 4.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Lelis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-11-13 00:00:00.000000000 Z
11
+ date: 2024-11-19 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: "[Emoji 16.0] Provides Unicode Emoji data and regexes, incorporating
14
14
  the latest Unicode and Emoji standards. Includes a categorized list of recommended
@@ -47,6 +47,7 @@ files:
47
47
  - lib/unicode/emoji/generated/regex_prop_modifier_base.rb
48
48
  - lib/unicode/emoji/generated/regex_prop_presentation.rb
49
49
  - lib/unicode/emoji/generated/regex_text.rb
50
+ - lib/unicode/emoji/generated/regex_text_presentation.rb
50
51
  - lib/unicode/emoji/generated/regex_valid.rb
51
52
  - lib/unicode/emoji/generated/regex_valid_include_text.rb
52
53
  - lib/unicode/emoji/generated/regex_well_formed.rb
@@ -66,6 +67,7 @@ files:
66
67
  - lib/unicode/emoji/generated_native/regex_prop_modifier_base.rb
67
68
  - lib/unicode/emoji/generated_native/regex_prop_presentation.rb
68
69
  - lib/unicode/emoji/generated_native/regex_text.rb
70
+ - lib/unicode/emoji/generated_native/regex_text_presentation.rb
69
71
  - lib/unicode/emoji/generated_native/regex_valid.rb
70
72
  - lib/unicode/emoji/generated_native/regex_valid_include_text.rb
71
73
  - lib/unicode/emoji/generated_native/regex_well_formed.rb