mangrove 0.31.0 → 0.34.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +107 -43
- data/lib/mangrove/result.rb +50 -0
- data/lib/mangrove/version.rb +1 -1
- data/sorbet/config +1 -0
- data/sorbet/rbi/gems/benchmark@0.4.0.rbi +618 -0
- data/sorbet/rbi/gems/date@3.4.1.rbi +75 -0
- data/sorbet/rbi/gems/{docile@1.4.0.rbi → docile@1.4.1.rbi} +2 -1
- data/sorbet/rbi/gems/{erubi@1.12.0.rbi → erubi@1.13.1.rbi} +26 -17
- data/sorbet/rbi/gems/{json@2.7.2.rbi → json@2.9.1.rbi} +516 -134
- data/sorbet/rbi/gems/logger@1.6.5.rbi +940 -0
- data/sorbet/rbi/gems/{parallel@1.24.0.rbi → parallel@1.26.3.rbi} +31 -21
- data/sorbet/rbi/gems/{parser@3.3.2.0.rbi → parser@3.3.7.0.rbi} +23 -1736
- data/sorbet/rbi/gems/{prism@0.29.0.rbi → prism@1.3.0.rbi} +13817 -10401
- data/sorbet/rbi/gems/{psych@5.1.2.rbi → psych@5.2.3.rbi} +289 -236
- data/sorbet/rbi/gems/{racc@1.8.0.rbi → racc@1.8.1.rbi} +0 -4
- data/sorbet/rbi/gems/rbi@0.2.3.rbi +4542 -0
- data/sorbet/rbi/gems/rbs@3.8.1.rbi +6882 -0
- data/sorbet/rbi/gems/{rdoc@6.7.0.rbi → rdoc@6.11.0.rbi} +1115 -1058
- data/sorbet/rbi/gems/{regexp_parser@2.9.2.rbi → regexp_parser@2.10.0.rbi} +193 -170
- data/sorbet/rbi/gems/{rspec-core@3.13.0.rbi → rspec-core@3.13.2.rbi} +146 -280
- data/sorbet/rbi/gems/{rspec-expectations@3.13.0.rbi → rspec-expectations@3.13.3.rbi} +323 -294
- data/sorbet/rbi/gems/{rspec-mocks@3.13.1.rbi → rspec-mocks@3.13.2.rbi} +46 -46
- data/sorbet/rbi/gems/{rspec-support@3.13.1.rbi → rspec-support@3.13.2.rbi} +22 -22
- data/sorbet/rbi/gems/ruboclean@0.7.1.rbi +473 -0
- data/sorbet/rbi/gems/{rubocop-ast@1.31.3.rbi → rubocop-ast@1.37.0.rbi} +1293 -745
- data/sorbet/rbi/gems/{rubocop-rspec@2.30.0.rbi → rubocop-rspec@3.4.0.rbi} +341 -1073
- data/sorbet/rbi/gems/{rubocop@1.64.1.rbi → rubocop@1.70.0.rbi} +5693 -3796
- data/sorbet/rbi/gems/{simplecov-html@0.12.3.rbi → simplecov-html@0.13.1.rbi} +77 -68
- data/sorbet/rbi/gems/{spoom@1.3.2.rbi → spoom@1.5.1.rbi} +2306 -1701
- data/sorbet/rbi/gems/{stringio@3.1.0.rbi → stringio@3.1.2.rbi} +1 -0
- data/sorbet/rbi/gems/{tapioca@0.14.3.rbi → tapioca@0.16.8.rbi} +411 -332
- data/sorbet/rbi/gems/{thor@1.3.1.rbi → thor@1.3.2.rbi} +57 -31
- data/sorbet/rbi/gems/unicode-display_width@3.1.4.rbi +132 -0
- data/sorbet/rbi/gems/unicode-emoji@4.0.4.rbi +251 -0
- data/sorbet/rbi/gems/{webrick@1.8.1.rbi → webrick@1.9.1.rbi} +92 -72
- data/sorbet/rbi/gems/{yard-sorbet@0.8.1.rbi → yard-sorbet@0.9.0.rbi} +36 -29
- data/sorbet/rbi/gems/{yard@0.9.36.rbi → yard@0.9.37.rbi} +393 -235
- metadata +39 -42
- data/sorbet/rbi/gems/rbi@0.1.13.rbi +0 -3078
- data/sorbet/rbi/gems/rexml@3.2.8.rbi +0 -4794
- data/sorbet/rbi/gems/ruboclean@0.6.0.rbi +0 -315
- data/sorbet/rbi/gems/rubocop-capybara@2.20.0.rbi +0 -1208
- data/sorbet/rbi/gems/rubocop-factory_bot@2.25.1.rbi +0 -928
- data/sorbet/rbi/gems/rubocop-rspec_rails@2.28.3.rbi +0 -911
- data/sorbet/rbi/gems/strscan@3.1.0.rbi +0 -9
- data/sorbet/rbi/gems/unicode-display_width@2.5.0.rbi +0 -65
- /data/sorbet/rbi/gems/{io-console@0.7.2.rbi → io-console@0.8.0.rbi} +0 -0
- /data/sorbet/rbi/gems/{reline@0.5.8.rbi → reline@0.6.0.rbi} +0 -0
- /data/sorbet/rbi/gems/{ruby-lsp@0.17.2.rbi → ruby-lsp@0.23.6.rbi} +0 -0
@@ -37,7 +37,7 @@ class Thor
|
|
37
37
|
extend ::Thor::Base::ClassMethods
|
38
38
|
extend ::Thor::Invocation::ClassMethods
|
39
39
|
|
40
|
-
# source://thor//lib/thor.rb#
|
40
|
+
# source://thor//lib/thor.rb#663
|
41
41
|
def help(command = T.unsafe(nil), subcommand = T.unsafe(nil)); end
|
42
42
|
|
43
43
|
class << self
|
@@ -96,6 +96,19 @@ class Thor
|
|
96
96
|
# source://thor//lib/thor.rb#363
|
97
97
|
def check_unknown_options?(config); end
|
98
98
|
|
99
|
+
# Checks if a specified command exists.
|
100
|
+
#
|
101
|
+
# ==== Parameters
|
102
|
+
# command_name<String>:: The name of the command to check for existence.
|
103
|
+
#
|
104
|
+
# ==== Returns
|
105
|
+
# Boolean:: +true+ if the command exists, +false+ otherwise.
|
106
|
+
#
|
107
|
+
# @return [Boolean]
|
108
|
+
#
|
109
|
+
# source://thor//lib/thor.rb#449
|
110
|
+
def command_exists?(command_name); end
|
111
|
+
|
99
112
|
# Prints help information for the given command.
|
100
113
|
#
|
101
114
|
# ==== Parameters
|
@@ -471,48 +484,48 @@ class Thor
|
|
471
484
|
# the command that is going to be invoked and a boolean which indicates if
|
472
485
|
# the namespace should be displayed as arguments.
|
473
486
|
#
|
474
|
-
# source://thor//lib/thor.rb#
|
487
|
+
# source://thor//lib/thor.rb#546
|
475
488
|
def banner(command, namespace = T.unsafe(nil), subcommand = T.unsafe(nil)); end
|
476
489
|
|
477
|
-
# source://thor//lib/thor.rb#
|
490
|
+
# source://thor//lib/thor.rb#552
|
478
491
|
def baseclass; end
|
479
492
|
|
480
|
-
# source://thor//lib/thor.rb#
|
493
|
+
# source://thor//lib/thor.rb#560
|
481
494
|
def create_command(meth); end
|
482
495
|
|
483
|
-
# source://thor//lib/thor.rb#
|
496
|
+
# source://thor//lib/thor.rb#560
|
484
497
|
def create_task(meth); end
|
485
498
|
|
486
499
|
# help command has the required check disabled by default.
|
487
500
|
#
|
488
|
-
# source://thor//lib/thor.rb#
|
501
|
+
# source://thor//lib/thor.rb#478
|
489
502
|
def disable_required_check; end
|
490
503
|
|
491
504
|
# The method responsible for dispatching given the args.
|
492
505
|
#
|
493
506
|
# @yield [instance]
|
494
507
|
#
|
495
|
-
# source://thor//lib/thor.rb#
|
508
|
+
# source://thor//lib/thor.rb#505
|
496
509
|
def dispatch(meth, given_args, given_opts, config); end
|
497
510
|
|
498
|
-
# source://thor//lib/thor.rb#
|
511
|
+
# source://thor//lib/thor.rb#556
|
499
512
|
def dynamic_command_class; end
|
500
513
|
|
501
514
|
# this is the logic that takes the command name passed in by the user
|
502
515
|
# and determines whether it is an unambiguous substrings of a command or
|
503
516
|
# alias name.
|
504
517
|
#
|
505
|
-
# source://thor//lib/thor.rb#
|
518
|
+
# source://thor//lib/thor.rb#626
|
506
519
|
def find_command_possibilities(meth); end
|
507
520
|
|
508
521
|
# this is the logic that takes the command name passed in by the user
|
509
522
|
# and determines whether it is an unambiguous substrings of a command or
|
510
523
|
# alias name.
|
511
524
|
#
|
512
|
-
# source://thor//lib/thor.rb#
|
525
|
+
# source://thor//lib/thor.rb#626
|
513
526
|
def find_task_possibilities(meth); end
|
514
527
|
|
515
|
-
# source://thor//lib/thor.rb#
|
528
|
+
# source://thor//lib/thor.rb#586
|
516
529
|
def initialize_added; end
|
517
530
|
|
518
531
|
# Returns this class at least one of required options array set.
|
@@ -520,7 +533,7 @@ class Thor
|
|
520
533
|
# ==== Returns
|
521
534
|
# Array[Array[Thor::Option.name]]
|
522
535
|
#
|
523
|
-
# source://thor//lib/thor.rb#
|
536
|
+
# source://thor//lib/thor.rb#469
|
524
537
|
def method_at_least_one_option_names; end
|
525
538
|
|
526
539
|
# Returns this class exclusive options array set.
|
@@ -528,7 +541,7 @@ class Thor
|
|
528
541
|
# ==== Returns
|
529
542
|
# Array[Array[Thor::Option.name]]
|
530
543
|
#
|
531
|
-
# source://thor//lib/thor.rb#
|
544
|
+
# source://thor//lib/thor.rb#460
|
532
545
|
def method_exclusive_option_names; end
|
533
546
|
|
534
547
|
# receives a (possibly nil) command name and returns a name that is in
|
@@ -541,7 +554,7 @@ class Thor
|
|
541
554
|
#
|
542
555
|
# @raise [AmbiguousTaskError]
|
543
556
|
#
|
544
|
-
# source://thor//lib/thor.rb#
|
557
|
+
# source://thor//lib/thor.rb#605
|
545
558
|
def normalize_command_name(meth); end
|
546
559
|
|
547
560
|
# receives a (possibly nil) command name and returns a name that is in
|
@@ -554,23 +567,23 @@ class Thor
|
|
554
567
|
#
|
555
568
|
# @raise [AmbiguousTaskError]
|
556
569
|
#
|
557
|
-
# source://thor//lib/thor.rb#
|
570
|
+
# source://thor//lib/thor.rb#605
|
558
571
|
def normalize_task_name(meth); end
|
559
572
|
|
560
|
-
# source://thor//lib/thor.rb#
|
573
|
+
# source://thor//lib/thor.rb#493
|
561
574
|
def print_at_least_one_required_options(shell, command = T.unsafe(nil)); end
|
562
575
|
|
563
|
-
# source://thor//lib/thor.rb#
|
576
|
+
# source://thor//lib/thor.rb#482
|
564
577
|
def print_exclusive_options(shell, command = T.unsafe(nil)); end
|
565
578
|
|
566
579
|
# Retrieve the command name from given args.
|
567
580
|
#
|
568
|
-
# source://thor//lib/thor.rb#
|
581
|
+
# source://thor//lib/thor.rb#592
|
569
582
|
def retrieve_command_name(args); end
|
570
583
|
|
571
584
|
# Retrieve the command name from given args.
|
572
585
|
#
|
573
|
-
# source://thor//lib/thor.rb#
|
586
|
+
# source://thor//lib/thor.rb#592
|
574
587
|
def retrieve_task_name(args); end
|
575
588
|
|
576
589
|
# Sort the commands, lexicographically by default.
|
@@ -578,16 +591,16 @@ class Thor
|
|
578
591
|
# Can be overridden in the subclass to change the display order of the
|
579
592
|
# commands.
|
580
593
|
#
|
581
|
-
# source://thor//lib/thor.rb#
|
594
|
+
# source://thor//lib/thor.rb#653
|
582
595
|
def sort_commands!(list); end
|
583
596
|
|
584
|
-
# source://thor//lib/thor.rb#
|
597
|
+
# source://thor//lib/thor.rb#473
|
585
598
|
def stop_on_unknown_option; end
|
586
599
|
|
587
|
-
# source://thor//lib/thor.rb#
|
600
|
+
# source://thor//lib/thor.rb#641
|
588
601
|
def subcommand_help(cmd); end
|
589
602
|
|
590
|
-
# source://thor//lib/thor.rb#
|
603
|
+
# source://thor//lib/thor.rb#641
|
591
604
|
def subtask_help(cmd); end
|
592
605
|
end
|
593
606
|
end
|
@@ -2630,7 +2643,7 @@ class Thor::Group
|
|
2630
2643
|
# Shortcut to invoke with padding and block handling. Use internally by
|
2631
2644
|
# invoke and invoke_from_option class methods.
|
2632
2645
|
#
|
2633
|
-
# source://thor//lib/thor/group.rb#
|
2646
|
+
# source://thor//lib/thor/group.rb#276
|
2634
2647
|
def _invoke_for_class_method(klass, command = T.unsafe(nil), *args, &block); end
|
2635
2648
|
|
2636
2649
|
class << self
|
@@ -2640,6 +2653,19 @@ class Thor::Group
|
|
2640
2653
|
# source://thor//lib/thor/group.rb#161
|
2641
2654
|
def class_options_help(shell, groups = T.unsafe(nil)); end
|
2642
2655
|
|
2656
|
+
# Checks if a specified command exists.
|
2657
|
+
#
|
2658
|
+
# ==== Parameters
|
2659
|
+
# command_name<String>:: The name of the command to check for existence.
|
2660
|
+
#
|
2661
|
+
# ==== Returns
|
2662
|
+
# Boolean:: +true+ if the command exists, +false+ otherwise.
|
2663
|
+
#
|
2664
|
+
# @return [Boolean]
|
2665
|
+
#
|
2666
|
+
# source://thor//lib/thor/group.rb#221
|
2667
|
+
def command_exists?(command_name); end
|
2668
|
+
|
2643
2669
|
# The description for this Thor::Group. If none is provided, but a source root
|
2644
2670
|
# exists, tries to find the USAGE one folder above it, otherwise searches
|
2645
2671
|
# in the superclass.
|
@@ -2747,33 +2773,33 @@ class Thor::Group
|
|
2747
2773
|
# The banner for this class. You can customize it if you are invoking the
|
2748
2774
|
# thor class by another ways which is not the Thor::Runner.
|
2749
2775
|
#
|
2750
|
-
# source://thor//lib/thor/group.rb#
|
2776
|
+
# source://thor//lib/thor/group.rb#249
|
2751
2777
|
def banner; end
|
2752
2778
|
|
2753
|
-
# source://thor//lib/thor/group.rb#
|
2779
|
+
# source://thor//lib/thor/group.rb#259
|
2754
2780
|
def baseclass; end
|
2755
2781
|
|
2756
|
-
# source://thor//lib/thor/group.rb#
|
2782
|
+
# source://thor//lib/thor/group.rb#263
|
2757
2783
|
def create_command(meth); end
|
2758
2784
|
|
2759
|
-
# source://thor//lib/thor/group.rb#
|
2785
|
+
# source://thor//lib/thor/group.rb#263
|
2760
2786
|
def create_task(meth); end
|
2761
2787
|
|
2762
2788
|
# The method responsible for dispatching given the args.
|
2763
2789
|
#
|
2764
2790
|
# @yield [instance]
|
2765
2791
|
#
|
2766
|
-
# source://thor//lib/thor/group.rb#
|
2792
|
+
# source://thor//lib/thor/group.rb#228
|
2767
2793
|
def dispatch(command, given_args, given_opts, config); end
|
2768
2794
|
|
2769
2795
|
# Represents the whole class as a command.
|
2770
2796
|
#
|
2771
|
-
# source://thor//lib/thor/group.rb#
|
2797
|
+
# source://thor//lib/thor/group.rb#254
|
2772
2798
|
def self_command; end
|
2773
2799
|
|
2774
2800
|
# Represents the whole class as a command.
|
2775
2801
|
#
|
2776
|
-
# source://thor//lib/thor/group.rb#
|
2802
|
+
# source://thor//lib/thor/group.rb#254
|
2777
2803
|
def self_task; end
|
2778
2804
|
end
|
2779
2805
|
end
|
@@ -0,0 +1,132 @@
|
|
1
|
+
# typed: true
|
2
|
+
|
3
|
+
# DO NOT EDIT MANUALLY
|
4
|
+
# This is an autogenerated file for types exported from the `unicode-display_width` gem.
|
5
|
+
# Please instead update this file by running `bin/tapioca gem unicode-display_width`.
|
6
|
+
|
7
|
+
|
8
|
+
# require "rbconfig"
|
9
|
+
# RbConfig::CONFIG["host_os"] =~ /mswin|mingw/ # windows
|
10
|
+
#
|
11
|
+
# source://unicode-display_width//lib/unicode/display_width/constants.rb#3
|
12
|
+
module Unicode; end
|
13
|
+
|
14
|
+
# source://unicode-display_width//lib/unicode/display_width/constants.rb#4
|
15
|
+
class Unicode::DisplayWidth
|
16
|
+
# @return [DisplayWidth] a new instance of DisplayWidth
|
17
|
+
#
|
18
|
+
# source://unicode-display_width//lib/unicode/display_width.rb#229
|
19
|
+
def initialize(ambiguous: T.unsafe(nil), overwrite: T.unsafe(nil), emoji: T.unsafe(nil)); end
|
20
|
+
|
21
|
+
# source://unicode-display_width//lib/unicode/display_width.rb#235
|
22
|
+
def get_config(**kwargs); end
|
23
|
+
|
24
|
+
# source://unicode-display_width//lib/unicode/display_width.rb#243
|
25
|
+
def of(string, **kwargs); end
|
26
|
+
|
27
|
+
class << self
|
28
|
+
# source://unicode-display_width//lib/unicode/display_width/index.rb#14
|
29
|
+
def decompress_index(index, level); end
|
30
|
+
|
31
|
+
# Returns width of all considered Emoji and remaining string
|
32
|
+
#
|
33
|
+
# source://unicode-display_width//lib/unicode/display_width.rb#143
|
34
|
+
def emoji_width(string, mode = T.unsafe(nil), ambiguous = T.unsafe(nil)); end
|
35
|
+
|
36
|
+
# Match possible Emoji first, then refine
|
37
|
+
#
|
38
|
+
# source://unicode-display_width//lib/unicode/display_width.rb#173
|
39
|
+
def emoji_width_via_possible(string, emoji_set_regex, strict_eaw = T.unsafe(nil), ambiguous = T.unsafe(nil)); end
|
40
|
+
|
41
|
+
# source://unicode-display_width//lib/unicode/display_width.rb#201
|
42
|
+
def normalize_options(string, ambiguous = T.unsafe(nil), overwrite = T.unsafe(nil), old_options = T.unsafe(nil), **options); end
|
43
|
+
|
44
|
+
# Returns monospace display width of string
|
45
|
+
#
|
46
|
+
# source://unicode-display_width//lib/unicode/display_width.rb#51
|
47
|
+
def of(string, ambiguous = T.unsafe(nil), overwrite = T.unsafe(nil), old_options = T.unsafe(nil), **options); end
|
48
|
+
|
49
|
+
# Returns width for ASCII-only strings. Will consider zero-width control symbols.
|
50
|
+
#
|
51
|
+
# source://unicode-display_width//lib/unicode/display_width.rb#133
|
52
|
+
def width_ascii(string); end
|
53
|
+
|
54
|
+
# Returns width of custom overwrites and remaining string
|
55
|
+
#
|
56
|
+
# source://unicode-display_width//lib/unicode/display_width.rb#117
|
57
|
+
def width_custom(string, overwrite); end
|
58
|
+
end
|
59
|
+
end
|
60
|
+
|
61
|
+
# source://unicode-display_width//lib/unicode/display_width.rb#16
|
62
|
+
Unicode::DisplayWidth::AMBIGUOUS_MAP = T.let(T.unsafe(nil), Hash)
|
63
|
+
|
64
|
+
# source://unicode-display_width//lib/unicode/display_width.rb#15
|
65
|
+
Unicode::DisplayWidth::ASCII_BACKSPACE = T.let(T.unsafe(nil), String)
|
66
|
+
|
67
|
+
# source://unicode-display_width//lib/unicode/display_width.rb#13
|
68
|
+
Unicode::DisplayWidth::ASCII_NON_ZERO_REGEX = T.let(T.unsafe(nil), Regexp)
|
69
|
+
|
70
|
+
# source://unicode-display_width//lib/unicode/display_width.rb#14
|
71
|
+
Unicode::DisplayWidth::ASCII_NON_ZERO_STRING = T.let(T.unsafe(nil), String)
|
72
|
+
|
73
|
+
# source://unicode-display_width//lib/unicode/display_width/constants.rb#7
|
74
|
+
Unicode::DisplayWidth::DATA_DIRECTORY = T.let(T.unsafe(nil), String)
|
75
|
+
|
76
|
+
# source://unicode-display_width//lib/unicode/display_width.rb#11
|
77
|
+
Unicode::DisplayWidth::DEFAULT_AMBIGUOUS = T.let(T.unsafe(nil), Integer)
|
78
|
+
|
79
|
+
# source://unicode-display_width//lib/unicode/display_width.rb#32
|
80
|
+
Unicode::DisplayWidth::EMOJI_SEQUENCES_REGEX_MAPPING = T.let(T.unsafe(nil), Hash)
|
81
|
+
|
82
|
+
# source://unicode-display_width//lib/unicode/display_width/emoji_support.rb#6
|
83
|
+
module Unicode::DisplayWidth::EmojiSupport
|
84
|
+
class << self
|
85
|
+
# Tries to find out which terminal emulator is used to
|
86
|
+
# set emoji: config to best suiting value
|
87
|
+
#
|
88
|
+
# Please also see section in README.md and
|
89
|
+
# misc/terminal-emoji-width.rb
|
90
|
+
#
|
91
|
+
# Please note: Many terminals do not set any ENV vars,
|
92
|
+
# maybe CSI queries can help?
|
93
|
+
#
|
94
|
+
# source://unicode-display_width//lib/unicode/display_width/emoji_support.rb#15
|
95
|
+
def recommended; end
|
96
|
+
end
|
97
|
+
end
|
98
|
+
|
99
|
+
# source://unicode-display_width//lib/unicode/display_width.rb#28
|
100
|
+
Unicode::DisplayWidth::FIRST_4096 = T.let(T.unsafe(nil), Hash)
|
101
|
+
|
102
|
+
# source://unicode-display_width//lib/unicode/display_width.rb#20
|
103
|
+
Unicode::DisplayWidth::FIRST_AMBIGUOUS = T.let(T.unsafe(nil), Hash)
|
104
|
+
|
105
|
+
# source://unicode-display_width//lib/unicode/display_width/index.rb#11
|
106
|
+
Unicode::DisplayWidth::INDEX = T.let(T.unsafe(nil), Hash)
|
107
|
+
|
108
|
+
# source://unicode-display_width//lib/unicode/display_width/constants.rb#8
|
109
|
+
Unicode::DisplayWidth::INDEX_FILENAME = T.let(T.unsafe(nil), String)
|
110
|
+
|
111
|
+
# source://unicode-display_width//lib/unicode/display_width.rb#12
|
112
|
+
Unicode::DisplayWidth::INITIAL_DEPTH = T.let(T.unsafe(nil), Integer)
|
113
|
+
|
114
|
+
# source://unicode-display_width//lib/unicode/display_width.rb#24
|
115
|
+
Unicode::DisplayWidth::NOT_COMMON_NARROW_REGEX = T.let(T.unsafe(nil), Hash)
|
116
|
+
|
117
|
+
# ebase = Unicode::Emoji::REGEX_PROP_MODIFIER_BASE.source
|
118
|
+
#
|
119
|
+
# source://unicode-display_width//lib/unicode/display_width.rb#47
|
120
|
+
Unicode::DisplayWidth::REGEX_EMOJI_ALL_SEQUENCES = T.let(T.unsafe(nil), Regexp)
|
121
|
+
|
122
|
+
# source://unicode-display_width//lib/unicode/display_width.rb#48
|
123
|
+
Unicode::DisplayWidth::REGEX_EMOJI_ALL_SEQUENCES_AND_VS16 = T.let(T.unsafe(nil), Regexp)
|
124
|
+
|
125
|
+
# source://unicode-display_width//lib/unicode/display_width.rb#37
|
126
|
+
Unicode::DisplayWidth::REGEX_EMOJI_VS16 = T.let(T.unsafe(nil), Regexp)
|
127
|
+
|
128
|
+
# source://unicode-display_width//lib/unicode/display_width/constants.rb#6
|
129
|
+
Unicode::DisplayWidth::UNICODE_VERSION = T.let(T.unsafe(nil), String)
|
130
|
+
|
131
|
+
# source://unicode-display_width//lib/unicode/display_width/constants.rb#5
|
132
|
+
Unicode::DisplayWidth::VERSION = T.let(T.unsafe(nil), String)
|
@@ -0,0 +1,251 @@
|
|
1
|
+
# typed: true
|
2
|
+
|
3
|
+
# DO NOT EDIT MANUALLY
|
4
|
+
# This is an autogenerated file for types exported from the `unicode-emoji` gem.
|
5
|
+
# Please instead update this file by running `bin/tapioca gem unicode-emoji`.
|
6
|
+
|
7
|
+
|
8
|
+
# This file was generated by a script, please do not edit it by hand.
|
9
|
+
# See `$ rake generate_constants` and data/generate_constants.rb for more info.
|
10
|
+
#
|
11
|
+
# source://unicode-emoji//lib/unicode/emoji/constants.rb#3
|
12
|
+
module Unicode; end
|
13
|
+
|
14
|
+
# source://unicode-emoji//lib/unicode/emoji/constants.rb#4
|
15
|
+
module Unicode::Emoji
|
16
|
+
class << self
|
17
|
+
# Returns ordered list of Emoji, categorized in a three-level deep Hash structure
|
18
|
+
#
|
19
|
+
# source://unicode-emoji//lib/unicode/emoji.rb#80
|
20
|
+
def list(key = T.unsafe(nil), sub_key = T.unsafe(nil)); end
|
21
|
+
|
22
|
+
# Return Emoji properties of character as an Array or nil
|
23
|
+
# See PROPERTY_NAMES constant for possible properties
|
24
|
+
#
|
25
|
+
# Source: see https://www.unicode.org/Public/16.0.0/ucd/emoji/emoji-data.txt
|
26
|
+
#
|
27
|
+
# source://unicode-emoji//lib/unicode/emoji.rb#68
|
28
|
+
def properties(char); end
|
29
|
+
|
30
|
+
private
|
31
|
+
|
32
|
+
# source://unicode-emoji//lib/unicode/emoji.rb#88
|
33
|
+
def get_codepoint_value(char); end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
37
|
+
# Last codepoint of tag-based subdivision flags
|
38
|
+
#
|
39
|
+
# source://unicode-emoji//lib/unicode/emoji/constants.rb#31
|
40
|
+
Unicode::Emoji::CANCEL_TAG = T.let(T.unsafe(nil), Integer)
|
41
|
+
|
42
|
+
# source://unicode-emoji//lib/unicode/emoji/constants.rb#7
|
43
|
+
Unicode::Emoji::CLDR_VERSION = T.let(T.unsafe(nil), String)
|
44
|
+
|
45
|
+
# source://unicode-emoji//lib/unicode/emoji/constants.rb#8
|
46
|
+
Unicode::Emoji::DATA_DIRECTORY = T.let(T.unsafe(nil), String)
|
47
|
+
|
48
|
+
# The current list of codepoints with the "Emoji" property
|
49
|
+
# Same characters as \p{Emoji}
|
50
|
+
# (Emoji version of this gem might be more recent than Ruby's Emoji version)
|
51
|
+
#
|
52
|
+
# source://unicode-emoji//lib/unicode/emoji/lazy_constants.rb#8
|
53
|
+
Unicode::Emoji::EMOJI_CHAR = T.let(T.unsafe(nil), Array)
|
54
|
+
|
55
|
+
# The current list of codepoints with the "Emoji_Component" property
|
56
|
+
# Same characters as \p{Emoji Component} or \p{EComp}
|
57
|
+
# (Emoji version of this gem might be more recent than Ruby's Emoji version)
|
58
|
+
#
|
59
|
+
# source://unicode-emoji//lib/unicode/emoji/lazy_constants.rb#21
|
60
|
+
Unicode::Emoji::EMOJI_COMPONENT = T.let(T.unsafe(nil), Array)
|
61
|
+
|
62
|
+
# The list of characters that can be used as base for keycap sequences
|
63
|
+
#
|
64
|
+
# source://unicode-emoji//lib/unicode/emoji/lazy_constants.rb#42
|
65
|
+
Unicode::Emoji::EMOJI_KEYCAPS = T.let(T.unsafe(nil), Array)
|
66
|
+
|
67
|
+
# Combining Enclosing Keycap character
|
68
|
+
#
|
69
|
+
# source://unicode-emoji//lib/unicode/emoji/constants.rb#37
|
70
|
+
Unicode::Emoji::EMOJI_KEYCAP_SUFFIX = T.let(T.unsafe(nil), Integer)
|
71
|
+
|
72
|
+
# The current list of codepoints with the "Emoji_Modifier" property
|
73
|
+
# Same characters as \p{Emoji Modifier} or \p{EMod}
|
74
|
+
# (Emoji version of this gem might be more recent than Ruby's Emoji version)
|
75
|
+
#
|
76
|
+
# source://unicode-emoji//lib/unicode/emoji/lazy_constants.rb#31
|
77
|
+
Unicode::Emoji::EMOJI_MODIFIERS = T.let(T.unsafe(nil), Array)
|
78
|
+
|
79
|
+
# The current list of codepoints with the "Emoji_Modifier_Base" property
|
80
|
+
# Same characters as \p{Emoji Modifier Base} or \p{EBase}
|
81
|
+
# (Emoji version of this gem might be more recent than Ruby's Emoji version)
|
82
|
+
#
|
83
|
+
# source://unicode-emoji//lib/unicode/emoji/lazy_constants.rb#26
|
84
|
+
Unicode::Emoji::EMOJI_MODIFIER_BASES = T.let(T.unsafe(nil), Array)
|
85
|
+
|
86
|
+
# The current list of codepoints with the "Emoji_Presentation" property
|
87
|
+
# Same characters as \p{Emoji Presentation} or \p{EPres}
|
88
|
+
# (Emoji version of this gem might be more recent than Ruby's Emoji version)
|
89
|
+
#
|
90
|
+
# source://unicode-emoji//lib/unicode/emoji/lazy_constants.rb#13
|
91
|
+
Unicode::Emoji::EMOJI_PRESENTATION = T.let(T.unsafe(nil), Array)
|
92
|
+
|
93
|
+
# First codepoint of tag-based subdivision flags
|
94
|
+
#
|
95
|
+
# source://unicode-emoji//lib/unicode/emoji/constants.rb#28
|
96
|
+
Unicode::Emoji::EMOJI_TAG_BASE_FLAG = T.let(T.unsafe(nil), Integer)
|
97
|
+
|
98
|
+
# Variation Selector 16 (VS16), enables emoji presentation mode for preceding codepoint
|
99
|
+
#
|
100
|
+
# source://unicode-emoji//lib/unicode/emoji/constants.rb#22
|
101
|
+
Unicode::Emoji::EMOJI_VARIATION_SELECTOR = T.let(T.unsafe(nil), Integer)
|
102
|
+
|
103
|
+
# source://unicode-emoji//lib/unicode/emoji/constants.rb#6
|
104
|
+
Unicode::Emoji::EMOJI_VERSION = T.let(T.unsafe(nil), String)
|
105
|
+
|
106
|
+
# The current list of codepoints with the "Extended_Pictographic" property
|
107
|
+
# Same characters as \p{Extended Pictographic} or \p{ExtPict}
|
108
|
+
# (Emoji version of this gem might be more recent than Ruby's Emoji version)
|
109
|
+
#
|
110
|
+
# source://unicode-emoji//lib/unicode/emoji/lazy_constants.rb#36
|
111
|
+
Unicode::Emoji::EXTENDED_PICTOGRAPHIC = T.let(T.unsafe(nil), Array)
|
112
|
+
|
113
|
+
# The current list of codepoints with the "Extended_Pictographic" property that don't have the "Emoji" property
|
114
|
+
#
|
115
|
+
# source://unicode-emoji//lib/unicode/emoji/lazy_constants.rb#39
|
116
|
+
Unicode::Emoji::EXTENDED_PICTOGRAPHIC_NO_EMOJI = T.let(T.unsafe(nil), Array)
|
117
|
+
|
118
|
+
# source://unicode-emoji//lib/unicode/emoji/index.rb#11
|
119
|
+
Unicode::Emoji::INDEX = T.let(T.unsafe(nil), Hash)
|
120
|
+
|
121
|
+
# source://unicode-emoji//lib/unicode/emoji/constants.rb#9
|
122
|
+
Unicode::Emoji::INDEX_FILENAME = T.let(T.unsafe(nil), String)
|
123
|
+
|
124
|
+
# Contains an ordered and group list of all currently recommended Emoji (RGI/FQE)
|
125
|
+
#
|
126
|
+
# source://unicode-emoji//lib/unicode/emoji/list.rb#6
|
127
|
+
Unicode::Emoji::LIST = T.let(T.unsafe(nil), Hash)
|
128
|
+
|
129
|
+
# Sometimes, categories change, we issue a warning in these cases
|
130
|
+
#
|
131
|
+
# source://unicode-emoji//lib/unicode/emoji/list.rb#9
|
132
|
+
Unicode::Emoji::LIST_REMOVED_KEYS = T.let(T.unsafe(nil), Array)
|
133
|
+
|
134
|
+
# Unicode properties, see https://www.unicode.org/Public/16.0.0/ucd/emoji/emoji-data.txt
|
135
|
+
#
|
136
|
+
# source://unicode-emoji//lib/unicode/emoji/constants.rb#12
|
137
|
+
Unicode::Emoji::PROPERTY_NAMES = T.let(T.unsafe(nil), Hash)
|
138
|
+
|
139
|
+
# The list RGI tag sequence flags
|
140
|
+
#
|
141
|
+
# source://unicode-emoji//lib/unicode/emoji/lazy_constants.rb#51
|
142
|
+
Unicode::Emoji::RECOMMENDED_SUBDIVISION_FLAGS = T.let(T.unsafe(nil), Array)
|
143
|
+
|
144
|
+
# The list of fully-qualified RGI Emoji ZWJ sequences
|
145
|
+
#
|
146
|
+
# source://unicode-emoji//lib/unicode/emoji/lazy_constants.rb#54
|
147
|
+
Unicode::Emoji::RECOMMENDED_ZWJ_SEQUENCES = T.let(T.unsafe(nil), Array)
|
148
|
+
|
149
|
+
# source://unicode-emoji//lib/unicode/emoji/generated/regex.rb#6
|
150
|
+
Unicode::Emoji::REGEX = T.let(T.unsafe(nil), Regexp)
|
151
|
+
|
152
|
+
# source://unicode-emoji//lib/unicode/emoji/generated/regex_basic.rb#6
|
153
|
+
Unicode::Emoji::REGEX_BASIC = T.let(T.unsafe(nil), Regexp)
|
154
|
+
|
155
|
+
# source://unicode-emoji//lib/unicode/emoji/generated/regex_emoji_keycap.rb#6
|
156
|
+
Unicode::Emoji::REGEX_EMOJI_KEYCAP = T.let(T.unsafe(nil), Regexp)
|
157
|
+
|
158
|
+
# source://unicode-emoji//lib/unicode/emoji/generated/regex_include_mqe.rb#6
|
159
|
+
Unicode::Emoji::REGEX_INCLUDE_MQE = T.let(T.unsafe(nil), Regexp)
|
160
|
+
|
161
|
+
# source://unicode-emoji//lib/unicode/emoji/generated/regex_include_mqe_uqe.rb#6
|
162
|
+
Unicode::Emoji::REGEX_INCLUDE_MQE_UQE = T.let(T.unsafe(nil), Regexp)
|
163
|
+
|
164
|
+
# source://unicode-emoji//lib/unicode/emoji/generated/regex_include_text.rb#6
|
165
|
+
Unicode::Emoji::REGEX_INCLUDE_TEXT = T.let(T.unsafe(nil), Regexp)
|
166
|
+
|
167
|
+
# source://unicode-emoji//lib/unicode/emoji/generated/regex_picto.rb#6
|
168
|
+
Unicode::Emoji::REGEX_PICTO = T.let(T.unsafe(nil), Regexp)
|
169
|
+
|
170
|
+
# source://unicode-emoji//lib/unicode/emoji/generated/regex_picto_no_emoji.rb#6
|
171
|
+
Unicode::Emoji::REGEX_PICTO_NO_EMOJI = T.let(T.unsafe(nil), Regexp)
|
172
|
+
|
173
|
+
# source://unicode-emoji//lib/unicode/emoji/generated/regex_possible.rb#6
|
174
|
+
Unicode::Emoji::REGEX_POSSIBLE = T.let(T.unsafe(nil), Regexp)
|
175
|
+
|
176
|
+
# source://unicode-emoji//lib/unicode/emoji/generated/regex_prop_component.rb#6
|
177
|
+
Unicode::Emoji::REGEX_PROP_COMPONENT = T.let(T.unsafe(nil), Regexp)
|
178
|
+
|
179
|
+
# source://unicode-emoji//lib/unicode/emoji/generated/regex_prop_emoji.rb#6
|
180
|
+
Unicode::Emoji::REGEX_PROP_EMOJI = T.let(T.unsafe(nil), Regexp)
|
181
|
+
|
182
|
+
# source://unicode-emoji//lib/unicode/emoji/generated/regex_prop_modifier.rb#6
|
183
|
+
Unicode::Emoji::REGEX_PROP_MODIFIER = T.let(T.unsafe(nil), Regexp)
|
184
|
+
|
185
|
+
# source://unicode-emoji//lib/unicode/emoji/generated/regex_prop_modifier_base.rb#6
|
186
|
+
Unicode::Emoji::REGEX_PROP_MODIFIER_BASE = T.let(T.unsafe(nil), Regexp)
|
187
|
+
|
188
|
+
# source://unicode-emoji//lib/unicode/emoji/generated/regex_prop_presentation.rb#6
|
189
|
+
Unicode::Emoji::REGEX_PROP_PRESENTATION = T.let(T.unsafe(nil), Regexp)
|
190
|
+
|
191
|
+
# source://unicode-emoji//lib/unicode/emoji/generated/regex_text.rb#6
|
192
|
+
Unicode::Emoji::REGEX_TEXT = T.let(T.unsafe(nil), Regexp)
|
193
|
+
|
194
|
+
# source://unicode-emoji//lib/unicode/emoji/generated/regex_text_presentation.rb#6
|
195
|
+
Unicode::Emoji::REGEX_TEXT_PRESENTATION = T.let(T.unsafe(nil), Regexp)
|
196
|
+
|
197
|
+
# source://unicode-emoji//lib/unicode/emoji/generated/regex_valid.rb#6
|
198
|
+
Unicode::Emoji::REGEX_VALID = T.let(T.unsafe(nil), Regexp)
|
199
|
+
|
200
|
+
# source://unicode-emoji//lib/unicode/emoji/generated/regex_valid_include_text.rb#6
|
201
|
+
Unicode::Emoji::REGEX_VALID_INCLUDE_TEXT = T.let(T.unsafe(nil), Regexp)
|
202
|
+
|
203
|
+
# source://unicode-emoji//lib/unicode/emoji/generated/regex_well_formed.rb#6
|
204
|
+
Unicode::Emoji::REGEX_WELL_FORMED = T.let(T.unsafe(nil), Regexp)
|
205
|
+
|
206
|
+
# source://unicode-emoji//lib/unicode/emoji/generated/regex_well_formed_include_text.rb#6
|
207
|
+
Unicode::Emoji::REGEX_WELL_FORMED_INCLUDE_TEXT = T.let(T.unsafe(nil), Regexp)
|
208
|
+
|
209
|
+
# Two regional indicators make up a region
|
210
|
+
#
|
211
|
+
# source://unicode-emoji//lib/unicode/emoji/constants.rb#43
|
212
|
+
Unicode::Emoji::REGIONAL_INDICATORS = T.let(T.unsafe(nil), Array)
|
213
|
+
|
214
|
+
# Tags characters allowed in tag-based subdivision flags
|
215
|
+
#
|
216
|
+
# source://unicode-emoji//lib/unicode/emoji/constants.rb#34
|
217
|
+
Unicode::Emoji::SPEC_TAGS = T.let(T.unsafe(nil), Array)
|
218
|
+
|
219
|
+
# The current list of codepoints with the "Emoji" property that lack the "Emoji Presentation" property
|
220
|
+
#
|
221
|
+
# source://unicode-emoji//lib/unicode/emoji/lazy_constants.rb#16
|
222
|
+
Unicode::Emoji::TEXT_PRESENTATION = T.let(T.unsafe(nil), Array)
|
223
|
+
|
224
|
+
# Variation Selector 15 (VS15), enables text presentation mode for preceding codepoint
|
225
|
+
#
|
226
|
+
# source://unicode-emoji//lib/unicode/emoji/constants.rb#25
|
227
|
+
Unicode::Emoji::TEXT_VARIATION_SELECTOR = T.let(T.unsafe(nil), Integer)
|
228
|
+
|
229
|
+
# The list of valid regions
|
230
|
+
#
|
231
|
+
# source://unicode-emoji//lib/unicode/emoji/lazy_constants.rb#45
|
232
|
+
Unicode::Emoji::VALID_REGION_FLAGS = T.let(T.unsafe(nil), Array)
|
233
|
+
|
234
|
+
# The list of valid subdivisions in regex character class syntax
|
235
|
+
#
|
236
|
+
# source://unicode-emoji//lib/unicode/emoji/lazy_constants.rb#48
|
237
|
+
Unicode::Emoji::VALID_SUBDIVISIONS = T.let(T.unsafe(nil), Array)
|
238
|
+
|
239
|
+
# source://unicode-emoji//lib/unicode/emoji/constants.rb#5
|
240
|
+
Unicode::Emoji::VERSION = T.let(T.unsafe(nil), String)
|
241
|
+
|
242
|
+
# The current list of Emoji components that should have a visual representation
|
243
|
+
# Currently skin tone modifiers + hair components
|
244
|
+
#
|
245
|
+
# source://unicode-emoji//lib/unicode/emoji/constants.rb#47
|
246
|
+
Unicode::Emoji::VISUAL_COMPONENT = T.let(T.unsafe(nil), Array)
|
247
|
+
|
248
|
+
# Zero-width-joiner to enable combination of multiple Emoji in a sequence
|
249
|
+
#
|
250
|
+
# source://unicode-emoji//lib/unicode/emoji/constants.rb#40
|
251
|
+
Unicode::Emoji::ZWJ = T.let(T.unsafe(nil), Integer)
|