From 3a8b744287075bba92e9f95b355f1ebca20285ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rados=C5=82aw=20Bu=C5=82at?= Date: Mon, 4 Oct 2021 18:21:32 +0200 Subject: [PATCH] Add rake task to generate regex constants --- Rakefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Rakefile b/Rakefile index 7e33142..4880ff9 100644 --- a/Rakefile +++ b/Rakefile @@ -35,3 +35,8 @@ task :spec do ruby "spec/unicode_emoji_spec.rb" end task default: :spec + +desc "#{gemspec.name} | Generates all regex constants and saves them to lib/unicode/emoji/{generated,generated_native} directories" +task :generate_constants do + load "data/generate_constants.rb", true +end