ori-rb 0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.rubocop.yml +8 -0
- data/.ruby-version +1 -0
- data/LICENSE +9 -0
- data/README.md +444 -0
- data/Rakefile +17 -0
- data/docs/images/example_boundary.png +0 -0
- data/docs/images/example_boundary_cancellation.png +0 -0
- data/docs/images/example_channel.png +0 -0
- data/docs/images/example_mutex.png +0 -0
- data/docs/images/example_promise.png +0 -0
- data/docs/images/example_semaphore.png +0 -0
- data/docs/images/example_trace.png +0 -0
- data/docs/images/example_trace_tag.png +0 -0
- data/lib/ori/channel.rb +148 -0
- data/lib/ori/lazy.rb +163 -0
- data/lib/ori/mutex.rb +9 -0
- data/lib/ori/out/index.html +146 -0
- data/lib/ori/out/script.js +3 -0
- data/lib/ori/promise.rb +39 -0
- data/lib/ori/reentrant_semaphore.rb +68 -0
- data/lib/ori/scope.rb +620 -0
- data/lib/ori/select.rb +35 -0
- data/lib/ori/selectable.rb +9 -0
- data/lib/ori/semaphore.rb +49 -0
- data/lib/ori/task.rb +78 -0
- data/lib/ori/timeout.rb +16 -0
- data/lib/ori/tracer.rb +335 -0
- data/lib/ori/version.rb +5 -0
- data/lib/ori.rb +68 -0
- data/mise-tasks/test +15 -0
- data/mise.toml +40 -0
- data/sorbet/config +8 -0
- data/sorbet/rbi/gems/.gitattributes +1 -0
- data/sorbet/rbi/gems/ast@2.4.3.rbi +585 -0
- data/sorbet/rbi/gems/benchmark@0.4.1.rbi +619 -0
- data/sorbet/rbi/gems/date@3.4.1.rbi +75 -0
- data/sorbet/rbi/gems/erb@5.1.1.rbi +845 -0
- data/sorbet/rbi/gems/erubi@1.13.1.rbi +155 -0
- data/sorbet/rbi/gems/io-console@0.8.1.rbi +9 -0
- data/sorbet/rbi/gems/json@2.15.1.rbi +2101 -0
- data/sorbet/rbi/gems/language_server-protocol@3.17.0.5.rbi +9 -0
- data/sorbet/rbi/gems/lint_roller@1.1.0.rbi +240 -0
- data/sorbet/rbi/gems/logger@1.7.0.rbi +963 -0
- data/sorbet/rbi/gems/minitest@5.26.0.rbi +2234 -0
- data/sorbet/rbi/gems/netrc@0.11.0.rbi +159 -0
- data/sorbet/rbi/gems/nio4r@2.7.4.rbi +293 -0
- data/sorbet/rbi/gems/parallel@1.27.0.rbi +291 -0
- data/sorbet/rbi/gems/parser@3.3.9.0.rbi +5535 -0
- data/sorbet/rbi/gems/pp@0.6.3.rbi +376 -0
- data/sorbet/rbi/gems/prettyprint@0.2.0.rbi +477 -0
- data/sorbet/rbi/gems/prism@1.5.2.rbi +42056 -0
- data/sorbet/rbi/gems/psych@5.2.6.rbi +2469 -0
- data/sorbet/rbi/gems/racc@1.8.1.rbi +160 -0
- data/sorbet/rbi/gems/rainbow@3.1.1.rbi +403 -0
- data/sorbet/rbi/gems/rake@13.3.0.rbi +3036 -0
- data/sorbet/rbi/gems/rbi@0.3.7.rbi +7115 -0
- data/sorbet/rbi/gems/rbs@3.9.5.rbi +6978 -0
- data/sorbet/rbi/gems/rdoc@6.15.0.rbi +12777 -0
- data/sorbet/rbi/gems/regexp_parser@2.11.3.rbi +3845 -0
- data/sorbet/rbi/gems/reline@0.6.2.rbi +9 -0
- data/sorbet/rbi/gems/rexml@3.4.4.rbi +5285 -0
- data/sorbet/rbi/gems/rubocop-ast@1.47.1.rbi +7780 -0
- data/sorbet/rbi/gems/rubocop-shopify@2.17.1.rbi +9 -0
- data/sorbet/rbi/gems/rubocop-sorbet@0.11.0.rbi +2506 -0
- data/sorbet/rbi/gems/rubocop@1.81.1.rbi +63489 -0
- data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +1318 -0
- data/sorbet/rbi/gems/spoom@1.6.3.rbi +6985 -0
- data/sorbet/rbi/gems/stringio@3.1.7.rbi +9 -0
- data/sorbet/rbi/gems/tapioca@0.16.11.rbi +3628 -0
- data/sorbet/rbi/gems/thor@1.4.0.rbi +4399 -0
- data/sorbet/rbi/gems/tsort@0.2.0.rbi +393 -0
- data/sorbet/rbi/gems/unicode-display_width@3.2.0.rbi +132 -0
- data/sorbet/rbi/gems/unicode-emoji@4.1.0.rbi +251 -0
- data/sorbet/rbi/gems/vernier@1.8.1-96ce5c739bfe6a18d2f4393f4219a1bf48674b87.rbi +904 -0
- data/sorbet/rbi/gems/yard-sorbet@0.9.0.rbi +435 -0
- data/sorbet/rbi/gems/yard@0.9.37.rbi +18379 -0
- data/sorbet/rbi/gems/zeitwerk@2.7.3.rbi +1429 -0
- data/sorbet/shims/fiber.rbi +21 -0
- data/sorbet/shims/io.rbi +8 -0
- data/sorbet/shims/random.rbi +9 -0
- data/sorbet/shims/rdoc.rbi +3 -0
- data/sorbet/tapioca/require.rb +7 -0
- metadata +169 -0
@@ -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)
|