lib/unicode/emoji.rb in unicode-emoji-3.6.0 vs lib/unicode/emoji.rb in unicode-emoji-3.7.0

- old
+ new

@@ -9,21 +9,27 @@ autoload :INDEX, File.expand_path('emoji/index', __dir__) %w[ EMOJI_CHAR EMOJI_CHAR EMOJI_PRESENTATION TEXT_PRESENTATION EMOJI_COMPONENT EMOJI_MODIFIER_BASES EMOJI_MODIFIERS EXTENDED_PICTOGRAPHIC EXTENDED_PICTOGRAPHIC_NO_EMOJI EMOJI_KEYCAPS VALID_REGION_FLAGS - VALID_SUBDIVISIONS RECOMMENDED_SUBDIVISION_FLAGS RECOMMENDED_ZWJ_SEQUENCES LIST LIST_REMOVED_KEYS + VALID_SUBDIVISIONS RECOMMENDED_SUBDIVISION_FLAGS RECOMMENDED_ZWJ_SEQUENCES ].each do |const_name| autoload const_name, File.expand_path('emoji/lazy_constants', __dir__) end + %w[ + LIST LIST_REMOVED_KEYS + ].each do |const_name| + autoload const_name, File.expand_path('emoji/list', __dir__) + end + generated_constants_dirpath = File.expand_path( EMOJI_VERSION == Unicode::Version.emoji_version ? "emoji/generated_native/" : "emoji/generated/", __dir__ ) %w[ - REGEX REGEX_VALID REGEX_WELL_FORMED REGEX_BASIC REGEX_TEXT REGEX_ANY REGEX_INCLUDE_TEXT + REGEX REGEX_VALID REGEX_WELL_FORMED REGEX_POSSIBLE REGEX_BASIC REGEX_TEXT REGEX_ANY REGEX_INCLUDE_TEXT REGEX_VALID_INCLUDE_TEXT REGEX_WELL_FORMED_INCLUDE_TEXT REGEX_PICTO REGEX_PICTO_NO_EMOJI ].each do |const_name| autoload const_name, File.join(generated_constants_dirpath, const_name.downcase) end