checkoff 0.200.0 → 0.203.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (149) hide show
  1. checksums.yaml +4 -4
  2. data/.circleci/config.yml +130 -28
  3. data/.git-hooks/pre_commit/solargraph_typecheck.rb +12 -11
  4. data/.overcommit.yml +27 -2
  5. data/.rubocop.yml +20 -2
  6. data/.rubocop_todo.yml +90 -0
  7. data/.solargraph.yml +10 -1
  8. data/DEVELOPMENT.md +1 -1
  9. data/Gemfile +11 -8
  10. data/Gemfile.lock +66 -42
  11. data/LICENSE +1 -1
  12. data/Makefile +14 -12
  13. data/bin/brakeman +27 -0
  14. data/bin/overcommit_branch +117 -0
  15. data/bin/spoom +27 -0
  16. data/bin/srb +27 -0
  17. data/bin/srb-rbi +27 -0
  18. data/bin/tapioca +27 -0
  19. data/config/annotations_misc.rb +35 -0
  20. data/docs/cookiecutter_input.json +1 -0
  21. data/fix.sh +14 -6
  22. data/lib/checkoff/custom_fields.rb +3 -2
  23. data/lib/checkoff/internal/search_url/simple_param_converter.rb +11 -0
  24. data/lib/checkoff/version.rb +1 -1
  25. data/requirements_dev.txt +1 -1
  26. data/sorbet/config +4 -0
  27. data/sorbet/rbi/annotations/.gitattributes +1 -0
  28. data/sorbet/rbi/annotations/activesupport.rbi +453 -0
  29. data/sorbet/rbi/annotations/faraday.rbi +17 -0
  30. data/sorbet/rbi/annotations/minitest.rbi +119 -0
  31. data/sorbet/rbi/annotations/mocha.rbi +34 -0
  32. data/sorbet/rbi/annotations/rainbow.rbi +269 -0
  33. data/sorbet/rbi/annotations/webmock.rbi +9 -0
  34. data/sorbet/rbi/dsl/.gitattributes +1 -0
  35. data/sorbet/rbi/dsl/active_support/callbacks.rbi +23 -0
  36. data/sorbet/rbi/gems/.gitattributes +1 -0
  37. data/sorbet/rbi/gems/activesupport@7.1.3.rbi +18749 -0
  38. data/sorbet/rbi/gems/addressable@2.8.6.rbi +1994 -0
  39. data/sorbet/rbi/gems/ansi@1.5.0.rbi +688 -0
  40. data/sorbet/rbi/gems/asana@0.10.6-ab9393136d9ca59b75e42a661fdddc1c65c8f7c3.rbi +6142 -0
  41. data/sorbet/rbi/gems/ast@2.4.2.rbi +585 -0
  42. data/sorbet/rbi/gems/backport@1.2.0.rbi +523 -0
  43. data/sorbet/rbi/gems/base64@0.2.0.rbi +509 -0
  44. data/sorbet/rbi/gems/benchmark@0.4.0.rbi +618 -0
  45. data/sorbet/rbi/gems/bigdecimal@3.1.5.rbi +78 -0
  46. data/sorbet/rbi/gems/builder@3.2.4.rbi +505 -0
  47. data/sorbet/rbi/gems/bump@0.10.0.rbi +169 -0
  48. data/sorbet/rbi/gems/cache@0.4.1.rbi +211 -0
  49. data/sorbet/rbi/gems/cache_method@0.2.7.rbi +293 -0
  50. data/sorbet/rbi/gems/chef-utils@18.3.0.rbi +9 -0
  51. data/sorbet/rbi/gems/childprocess@5.1.0.rbi +383 -0
  52. data/sorbet/rbi/gems/coderay@1.1.3.rbi +3427 -0
  53. data/sorbet/rbi/gems/concurrent-ruby@1.2.3.rbi +11591 -0
  54. data/sorbet/rbi/gems/connection_pool@2.4.1.rbi +9 -0
  55. data/sorbet/rbi/gems/crack@0.4.5.rbi +145 -0
  56. data/sorbet/rbi/gems/diff-lcs@1.5.1.rbi +969 -0
  57. data/sorbet/rbi/gems/docile@1.4.0.rbi +377 -0
  58. data/sorbet/rbi/gems/drb@2.2.0.rbi +1347 -0
  59. data/sorbet/rbi/gems/e2mmap@0.1.0.rbi +9 -0
  60. data/sorbet/rbi/gems/erubi@1.13.0.rbi +152 -0
  61. data/sorbet/rbi/gems/faraday-em_http@1.0.0.rbi +222 -0
  62. data/sorbet/rbi/gems/faraday-em_synchrony@1.0.0.rbi +126 -0
  63. data/sorbet/rbi/gems/faraday-excon@1.1.0.rbi +136 -0
  64. data/sorbet/rbi/gems/faraday-httpclient@1.0.1.rbi +145 -0
  65. data/sorbet/rbi/gems/faraday-multipart@1.0.4.rbi +259 -0
  66. data/sorbet/rbi/gems/faraday-net_http@1.0.1.rbi +142 -0
  67. data/sorbet/rbi/gems/faraday-net_http_persistent@1.2.0.rbi +118 -0
  68. data/sorbet/rbi/gems/faraday-patron@1.0.0.rbi +125 -0
  69. data/sorbet/rbi/gems/faraday-rack@1.0.0.rbi +133 -0
  70. data/sorbet/rbi/gems/faraday-retry@1.0.3.rbi +198 -0
  71. data/sorbet/rbi/gems/faraday@1.10.3.rbi +2729 -0
  72. data/sorbet/rbi/gems/faraday_middleware-multi_json@0.0.6.rbi +29 -0
  73. data/sorbet/rbi/gems/faraday_middleware@1.2.0.rbi +1004 -0
  74. data/sorbet/rbi/gems/gli@2.21.1.rbi +9 -0
  75. data/sorbet/rbi/gems/hashdiff@1.0.1.rbi +351 -0
  76. data/sorbet/rbi/gems/i18n@1.14.1.rbi +2326 -0
  77. data/sorbet/rbi/gems/imagen@0.1.8.rbi +340 -0
  78. data/sorbet/rbi/gems/iniparse@1.5.0.rbi +899 -0
  79. data/sorbet/rbi/gems/jaro_winkler@1.6.0.rbi +22 -0
  80. data/sorbet/rbi/gems/json@2.7.1.rbi +1562 -0
  81. data/sorbet/rbi/gems/jwt@2.7.1.rbi +1405 -0
  82. data/sorbet/rbi/gems/kramdown-parser-gfm@1.1.0.rbi +128 -0
  83. data/sorbet/rbi/gems/kramdown@2.4.0.rbi +3272 -0
  84. data/sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi +14238 -0
  85. data/sorbet/rbi/gems/logger@1.6.1.rbi +920 -0
  86. data/sorbet/rbi/gems/mdl@0.13.0.rbi +445 -0
  87. data/sorbet/rbi/gems/method_source@1.0.0.rbi +273 -0
  88. data/sorbet/rbi/gems/mime-types-data@3.2023.1205.rbi +127 -0
  89. data/sorbet/rbi/gems/mime-types@3.5.1.rbi +1252 -0
  90. data/sorbet/rbi/gems/minitest-profile@0.0.2.rbi +136 -0
  91. data/sorbet/rbi/gems/minitest-reporters@1.6.1.rbi +1014 -0
  92. data/sorbet/rbi/gems/minitest@5.21.1.rbi +1539 -0
  93. data/sorbet/rbi/gems/mixlib-cli@2.1.8.rbi +314 -0
  94. data/sorbet/rbi/gems/mixlib-config@3.0.27.rbi +581 -0
  95. data/sorbet/rbi/gems/mixlib-shellout@3.2.7.rbi +629 -0
  96. data/sorbet/rbi/gems/mocha@2.1.0.rbi +12 -0
  97. data/sorbet/rbi/gems/multi_json@1.15.0.rbi +268 -0
  98. data/sorbet/rbi/gems/multi_xml@0.6.0.rbi +102 -0
  99. data/sorbet/rbi/gems/multipart-post@2.3.0.rbi +234 -0
  100. data/sorbet/rbi/gems/mutex_m@0.2.0.rbi +94 -0
  101. data/sorbet/rbi/gems/netrc@0.11.0.rbi +159 -0
  102. data/sorbet/rbi/gems/nokogiri@1.16.7.rbi +7311 -0
  103. data/sorbet/rbi/gems/oauth2@1.4.11.rbi +833 -0
  104. data/sorbet/rbi/gems/ostruct@0.6.1.rbi +354 -0
  105. data/sorbet/rbi/gems/overcommit@0.64.0.rbi +2400 -0
  106. data/sorbet/rbi/gems/parallel@1.23.0.rbi +274 -0
  107. data/sorbet/rbi/gems/parser@3.2.2.4.rbi +7253 -0
  108. data/sorbet/rbi/gems/prism@1.2.0.rbi +39085 -0
  109. data/sorbet/rbi/gems/pry@0.14.2.rbi +10070 -0
  110. data/sorbet/rbi/gems/public_suffix@5.0.4.rbi +936 -0
  111. data/sorbet/rbi/gems/punchlist@1.3.2.rbi +173 -0
  112. data/sorbet/rbi/gems/racc@1.7.3.rbi +162 -0
  113. data/sorbet/rbi/gems/rack@3.0.8.rbi +5184 -0
  114. data/sorbet/rbi/gems/rainbow@3.1.1.rbi +403 -0
  115. data/sorbet/rbi/gems/rake@13.1.0.rbi +3022 -0
  116. data/sorbet/rbi/gems/rbi@0.2.1.rbi +4535 -0
  117. data/sorbet/rbi/gems/rbs@2.8.4.rbi +5613 -0
  118. data/sorbet/rbi/gems/regexp_parser@2.8.3.rbi +3750 -0
  119. data/sorbet/rbi/gems/reverse_markdown@2.1.1.rbi +390 -0
  120. data/sorbet/rbi/gems/rexml@3.2.6.rbi +4888 -0
  121. data/sorbet/rbi/gems/rubocop-ast@1.30.0.rbi +7061 -0
  122. data/sorbet/rbi/gems/rubocop-minitest@0.34.5.rbi +2577 -0
  123. data/sorbet/rbi/gems/rubocop-performance@1.20.2.rbi +3262 -0
  124. data/sorbet/rbi/gems/rubocop-rake@0.6.0.rbi +329 -0
  125. data/sorbet/rbi/gems/rubocop@1.59.0.rbi +57238 -0
  126. data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +1318 -0
  127. data/sorbet/rbi/gems/ruby2_keywords@0.0.5.rbi +9 -0
  128. data/sorbet/rbi/gems/rugged@1.6.3.rbi +1577 -0
  129. data/sorbet/rbi/gems/simplecov-html@0.12.3.rbi +217 -0
  130. data/sorbet/rbi/gems/simplecov-lcov@0.8.0.rbi +256 -0
  131. data/sorbet/rbi/gems/simplecov@0.22.0.rbi +2149 -0
  132. data/sorbet/rbi/gems/simplecov_json_formatter@0.1.4.rbi +9 -0
  133. data/sorbet/rbi/gems/solargraph@0.50.1-904b9304770a59fac393c5cc3cad481e5bdf0fd8.rbi +9396 -0
  134. data/sorbet/rbi/gems/source_finder@3.2.1.rbi +317 -0
  135. data/sorbet/rbi/gems/spoom@1.5.0.rbi +4932 -0
  136. data/sorbet/rbi/gems/tapioca@0.16.4.rbi +3604 -0
  137. data/sorbet/rbi/gems/thor@1.3.2.rbi +4378 -0
  138. data/sorbet/rbi/gems/tilt@2.4.0.rbi +933 -0
  139. data/sorbet/rbi/gems/tomlrb@2.0.3.rbi +9 -0
  140. data/sorbet/rbi/gems/tzinfo@2.0.6.rbi +5918 -0
  141. data/sorbet/rbi/gems/undercover@0.5.0.rbi +433 -0
  142. data/sorbet/rbi/gems/unicode-display_width@2.5.0.rbi +66 -0
  143. data/sorbet/rbi/gems/webmock@3.19.1.rbi +1769 -0
  144. data/sorbet/rbi/gems/yard-sorbet@0.9.0.rbi +435 -0
  145. data/sorbet/rbi/gems/yard@0.9.34.rbi +18247 -0
  146. data/sorbet/rbi/todo.rbi +11 -0
  147. data/sorbet/tapioca/config.yml +13 -0
  148. data/sorbet/tapioca/require.rb +4 -0
  149. metadata +134 -3
@@ -0,0 +1,688 @@
1
+ # typed: true
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `ansi` gem.
5
+ # Please instead update this file by running `bin/tapioca gem ansi`.
6
+
7
+
8
+ # ANSI namespace module contains all the ANSI related classes.
9
+ #
10
+ # source://ansi//lib/ansi/code.rb#1
11
+ module ANSI
12
+ extend ::ANSI::Constants
13
+ extend ::ANSI::Code
14
+ end
15
+
16
+ # Table of codes used throughout the system.
17
+ #
18
+ # @see http://en.wikipedia.org/wiki/ANSI_escape_code
19
+ #
20
+ # source://ansi//lib/ansi/chart.rb#6
21
+ ANSI::CHART = T.let(T.unsafe(nil), Hash)
22
+
23
+ # ANSI Codes
24
+ #
25
+ # Ansi::Code module makes it very easy to use ANSI codes.
26
+ # These are especially nice for beautifying shell output.
27
+ #
28
+ # Ansi::Code.red + "Hello" + Ansi::Code.blue + "World"
29
+ # => "\e[31mHello\e[34mWorld"
30
+ #
31
+ # Ansi::Code.red{ "Hello" } + Ansi::Code.blue{ "World" }
32
+ # => "\e[31mHello\e[0m\e[34mWorld\e[0m"
33
+ #
34
+ # IMPORTANT! Do not mixin Ansi::Code, instead use {ANSI::Mixin}.
35
+ #
36
+ # See {ANSI::CHART} for list of all supported codes.
37
+ #
38
+ # source://ansi//lib/ansi/code.rb#37
39
+ module ANSI::Code
40
+ include ::ANSI::Constants
41
+ extend ::ANSI::Constants
42
+ extend ::ANSI::Code
43
+
44
+ # Return ANSI code given a list of symbolic names.
45
+ #
46
+ # source://ansi//lib/ansi/code.rb#60
47
+ def [](*codes); end
48
+
49
+ # Apply ANSI codes to a first argument or block value.
50
+ #
51
+ # @example
52
+ # ansi("Valentine", :red, :on_white)
53
+ # @example
54
+ # ansi(:red, :on_white){ "Valentine" }
55
+ # @return [String] String wrapped ANSI code.
56
+ #
57
+ # source://ansi//lib/ansi/code.rb#176
58
+ def ansi(*codes); end
59
+
60
+ # Move cursor left a specified number of spaces.
61
+ #
62
+ # source://ansi//lib/ansi/code.rb#149
63
+ def back(spaces = T.unsafe(nil)); end
64
+
65
+ # source://ansi//lib/ansi/code.rb#70
66
+ def black_on_black(string = T.unsafe(nil)); end
67
+
68
+ # source://ansi//lib/ansi/code.rb#70
69
+ def black_on_blue(string = T.unsafe(nil)); end
70
+
71
+ # source://ansi//lib/ansi/code.rb#70
72
+ def black_on_cyan(string = T.unsafe(nil)); end
73
+
74
+ # source://ansi//lib/ansi/code.rb#70
75
+ def black_on_green(string = T.unsafe(nil)); end
76
+
77
+ # source://ansi//lib/ansi/code.rb#70
78
+ def black_on_magenta(string = T.unsafe(nil)); end
79
+
80
+ # source://ansi//lib/ansi/code.rb#70
81
+ def black_on_red(string = T.unsafe(nil)); end
82
+
83
+ # source://ansi//lib/ansi/code.rb#70
84
+ def black_on_white(string = T.unsafe(nil)); end
85
+
86
+ # source://ansi//lib/ansi/code.rb#70
87
+ def black_on_yellow(string = T.unsafe(nil)); end
88
+
89
+ # source://ansi//lib/ansi/code.rb#70
90
+ def blue_on_black(string = T.unsafe(nil)); end
91
+
92
+ # source://ansi//lib/ansi/code.rb#70
93
+ def blue_on_blue(string = T.unsafe(nil)); end
94
+
95
+ # source://ansi//lib/ansi/code.rb#70
96
+ def blue_on_cyan(string = T.unsafe(nil)); end
97
+
98
+ # source://ansi//lib/ansi/code.rb#70
99
+ def blue_on_green(string = T.unsafe(nil)); end
100
+
101
+ # source://ansi//lib/ansi/code.rb#70
102
+ def blue_on_magenta(string = T.unsafe(nil)); end
103
+
104
+ # source://ansi//lib/ansi/code.rb#70
105
+ def blue_on_red(string = T.unsafe(nil)); end
106
+
107
+ # source://ansi//lib/ansi/code.rb#70
108
+ def blue_on_white(string = T.unsafe(nil)); end
109
+
110
+ # source://ansi//lib/ansi/code.rb#70
111
+ def blue_on_yellow(string = T.unsafe(nil)); end
112
+
113
+ # Look-up code from chart, or if Integer simply pass through.
114
+ # Also resolves :random and :on_random.
115
+ #
116
+ # @param codes [Array<Symbol,Integer]
117
+ # Symbols or integers to convert to ANSI code.] odes [Array<Symbol,Integer]
118
+ # Symbols or integers to convert to ANSI code.
119
+ # @return [String] ANSI code
120
+ #
121
+ # source://ansi//lib/ansi/code.rb#241
122
+ def code(*codes); end
123
+
124
+ # Apply ANSI codes to a first argument or block value.
125
+ # Alternate term for #ansi.
126
+ #
127
+ # @deprecated May change in future definition.
128
+ # @example
129
+ # ansi("Valentine", :red, :on_white)
130
+ # @example
131
+ # ansi(:red, :on_white){ "Valentine" }
132
+ # @return [String] String wrapped ANSI code.
133
+ #
134
+ # source://ansi//lib/ansi/code.rb#176
135
+ def color(*codes); end
136
+
137
+ # source://ansi//lib/ansi/code.rb#70
138
+ def cyan_on_black(string = T.unsafe(nil)); end
139
+
140
+ # source://ansi//lib/ansi/code.rb#70
141
+ def cyan_on_blue(string = T.unsafe(nil)); end
142
+
143
+ # source://ansi//lib/ansi/code.rb#70
144
+ def cyan_on_cyan(string = T.unsafe(nil)); end
145
+
146
+ # source://ansi//lib/ansi/code.rb#70
147
+ def cyan_on_green(string = T.unsafe(nil)); end
148
+
149
+ # source://ansi//lib/ansi/code.rb#70
150
+ def cyan_on_magenta(string = T.unsafe(nil)); end
151
+
152
+ # source://ansi//lib/ansi/code.rb#70
153
+ def cyan_on_red(string = T.unsafe(nil)); end
154
+
155
+ # source://ansi//lib/ansi/code.rb#70
156
+ def cyan_on_white(string = T.unsafe(nil)); end
157
+
158
+ # source://ansi//lib/ansi/code.rb#70
159
+ def cyan_on_yellow(string = T.unsafe(nil)); end
160
+
161
+ # Like +move+ but returns to original position after
162
+ # yielding the block.
163
+ #
164
+ # source://ansi//lib/ansi/code.rb#120
165
+ def display(line, column = T.unsafe(nil)); end
166
+
167
+ # Move cursor down a specified number of spaces.
168
+ #
169
+ # source://ansi//lib/ansi/code.rb#144
170
+ def down(spaces = T.unsafe(nil)); end
171
+
172
+ # Move cursor right a specified number of spaces.
173
+ #
174
+ # source://ansi//lib/ansi/code.rb#155
175
+ def forward(spaces = T.unsafe(nil)); end
176
+
177
+ # source://ansi//lib/ansi/code.rb#70
178
+ def green_on_black(string = T.unsafe(nil)); end
179
+
180
+ # source://ansi//lib/ansi/code.rb#70
181
+ def green_on_blue(string = T.unsafe(nil)); end
182
+
183
+ # source://ansi//lib/ansi/code.rb#70
184
+ def green_on_cyan(string = T.unsafe(nil)); end
185
+
186
+ # source://ansi//lib/ansi/code.rb#70
187
+ def green_on_green(string = T.unsafe(nil)); end
188
+
189
+ # source://ansi//lib/ansi/code.rb#70
190
+ def green_on_magenta(string = T.unsafe(nil)); end
191
+
192
+ # source://ansi//lib/ansi/code.rb#70
193
+ def green_on_red(string = T.unsafe(nil)); end
194
+
195
+ # source://ansi//lib/ansi/code.rb#70
196
+ def green_on_white(string = T.unsafe(nil)); end
197
+
198
+ # source://ansi//lib/ansi/code.rb#70
199
+ def green_on_yellow(string = T.unsafe(nil)); end
200
+
201
+ # Creates an xterm-256 color code from a CSS-style color string.
202
+ #
203
+ # @param string [String] Hex string in CSS style, .e.g. `#5FA0C2`.
204
+ # @param background [Boolean] Use `true` for background color, otherwise foreground color.
205
+ #
206
+ # source://ansi//lib/ansi/code.rb#325
207
+ def hex_code(string, background = T.unsafe(nil)); end
208
+
209
+ # Move cursor left a specified number of spaces.
210
+ #
211
+ # source://ansi//lib/ansi/code.rb#149
212
+ def left(spaces = T.unsafe(nil)); end
213
+
214
+ # source://ansi//lib/ansi/code.rb#70
215
+ def magenta_on_black(string = T.unsafe(nil)); end
216
+
217
+ # source://ansi//lib/ansi/code.rb#70
218
+ def magenta_on_blue(string = T.unsafe(nil)); end
219
+
220
+ # source://ansi//lib/ansi/code.rb#70
221
+ def magenta_on_cyan(string = T.unsafe(nil)); end
222
+
223
+ # source://ansi//lib/ansi/code.rb#70
224
+ def magenta_on_green(string = T.unsafe(nil)); end
225
+
226
+ # source://ansi//lib/ansi/code.rb#70
227
+ def magenta_on_magenta(string = T.unsafe(nil)); end
228
+
229
+ # source://ansi//lib/ansi/code.rb#70
230
+ def magenta_on_red(string = T.unsafe(nil)); end
231
+
232
+ # source://ansi//lib/ansi/code.rb#70
233
+ def magenta_on_white(string = T.unsafe(nil)); end
234
+
235
+ # source://ansi//lib/ansi/code.rb#70
236
+ def magenta_on_yellow(string = T.unsafe(nil)); end
237
+
238
+ # Use method missing to dispatch ANSI code methods.
239
+ #
240
+ # source://ansi//lib/ansi/code.rb#89
241
+ def method_missing(code, *args, &blk); end
242
+
243
+ # Move cursor to line and column.
244
+ #
245
+ # source://ansi//lib/ansi/code.rb#134
246
+ def move(line, column = T.unsafe(nil)); end
247
+
248
+ # Provides a random primary ANSI color.
249
+ #
250
+ # @param background [Boolean] Use `true` for background color, otherwise foreground color.
251
+ # @return [Integer] ANSI color number
252
+ #
253
+ # source://ansi//lib/ansi/code.rb#274
254
+ def random(background = T.unsafe(nil)); end
255
+
256
+ # source://ansi//lib/ansi/code.rb#70
257
+ def red_on_black(string = T.unsafe(nil)); end
258
+
259
+ # source://ansi//lib/ansi/code.rb#70
260
+ def red_on_blue(string = T.unsafe(nil)); end
261
+
262
+ # source://ansi//lib/ansi/code.rb#70
263
+ def red_on_cyan(string = T.unsafe(nil)); end
264
+
265
+ # source://ansi//lib/ansi/code.rb#70
266
+ def red_on_green(string = T.unsafe(nil)); end
267
+
268
+ # source://ansi//lib/ansi/code.rb#70
269
+ def red_on_magenta(string = T.unsafe(nil)); end
270
+
271
+ # source://ansi//lib/ansi/code.rb#70
272
+ def red_on_red(string = T.unsafe(nil)); end
273
+
274
+ # source://ansi//lib/ansi/code.rb#70
275
+ def red_on_white(string = T.unsafe(nil)); end
276
+
277
+ # source://ansi//lib/ansi/code.rb#70
278
+ def red_on_yellow(string = T.unsafe(nil)); end
279
+
280
+ # Creates an XTerm 256 color escape code from RGB value(s). The
281
+ # RGB value can be three arguments red, green and blue respectively
282
+ # each from 0 to 255, or the RGB value can be a single CSS-style
283
+ # hex string.
284
+ #
285
+ # @param background [Boolean] Use `true` for background color, otherwise foreground color.
286
+ #
287
+ # source://ansi//lib/ansi/code.rb#286
288
+ def rgb(*args); end
289
+
290
+ # Given red, green and blue values between 0 and 255, this method
291
+ # returns the closest XTerm 256 color value.
292
+ #
293
+ # @raise [ArgumentError]
294
+ #
295
+ # source://ansi//lib/ansi/code.rb#335
296
+ def rgb_256(r, g, b); end
297
+
298
+ # Creates an xterm-256 color from rgb value.
299
+ #
300
+ # @param background [Boolean] Use `true` for background color, otherwise foreground color.
301
+ #
302
+ # source://ansi//lib/ansi/code.rb#313
303
+ def rgb_code(red, green, blue, background = T.unsafe(nil)); end
304
+
305
+ # Move cursor right a specified number of spaces.
306
+ #
307
+ # source://ansi//lib/ansi/code.rb#155
308
+ def right(spaces = T.unsafe(nil)); end
309
+
310
+ # Apply ANSI codes to a first argument or block value.
311
+ # Alias for #ansi method.
312
+ #
313
+ # @deprecated Here for backward compatibility.
314
+ # @example
315
+ # ansi("Valentine", :red, :on_white)
316
+ # @example
317
+ # ansi(:red, :on_white){ "Valentine" }
318
+ # @return [String] String wrapped ANSI code.
319
+ #
320
+ # source://ansi//lib/ansi/code.rb#176
321
+ def style(*codes); end
322
+
323
+ # Remove ANSI codes from string or block value.
324
+ #
325
+ # @param string [String] String from which to remove ANSI codes.
326
+ # @return [String] String wrapped ANSI code.
327
+ #
328
+ # source://ansi//lib/ansi/code.rb#201
329
+ def unansi(string = T.unsafe(nil)); end
330
+
331
+ # Remove ANSI codes from string or block value.
332
+ # Alias for unansi.
333
+ #
334
+ # @deprecated May change in future definition.
335
+ # @param string [String] String from which to remove ANSI codes.
336
+ # @return [String] String wrapped ANSI code.
337
+ #
338
+ # source://ansi//lib/ansi/code.rb#201
339
+ def uncolor(string = T.unsafe(nil)); end
340
+
341
+ # Remove ANSI codes from string or block value.
342
+ # Alias for #unansi method.
343
+ #
344
+ # @deprecated Here for backwards compatibility.
345
+ # @param string [String] String from which to remove ANSI codes.
346
+ # @return [String] String wrapped ANSI code.
347
+ #
348
+ # source://ansi//lib/ansi/code.rb#201
349
+ def unstyle(string = T.unsafe(nil)); end
350
+
351
+ # Move cursor up a specified number of spaces.
352
+ #
353
+ # source://ansi//lib/ansi/code.rb#139
354
+ def up(spaces = T.unsafe(nil)); end
355
+
356
+ # source://ansi//lib/ansi/code.rb#70
357
+ def white_on_black(string = T.unsafe(nil)); end
358
+
359
+ # source://ansi//lib/ansi/code.rb#70
360
+ def white_on_blue(string = T.unsafe(nil)); end
361
+
362
+ # source://ansi//lib/ansi/code.rb#70
363
+ def white_on_cyan(string = T.unsafe(nil)); end
364
+
365
+ # source://ansi//lib/ansi/code.rb#70
366
+ def white_on_green(string = T.unsafe(nil)); end
367
+
368
+ # source://ansi//lib/ansi/code.rb#70
369
+ def white_on_magenta(string = T.unsafe(nil)); end
370
+
371
+ # source://ansi//lib/ansi/code.rb#70
372
+ def white_on_red(string = T.unsafe(nil)); end
373
+
374
+ # source://ansi//lib/ansi/code.rb#70
375
+ def white_on_white(string = T.unsafe(nil)); end
376
+
377
+ # source://ansi//lib/ansi/code.rb#70
378
+ def white_on_yellow(string = T.unsafe(nil)); end
379
+
380
+ # source://ansi//lib/ansi/code.rb#70
381
+ def yellow_on_black(string = T.unsafe(nil)); end
382
+
383
+ # source://ansi//lib/ansi/code.rb#70
384
+ def yellow_on_blue(string = T.unsafe(nil)); end
385
+
386
+ # source://ansi//lib/ansi/code.rb#70
387
+ def yellow_on_cyan(string = T.unsafe(nil)); end
388
+
389
+ # source://ansi//lib/ansi/code.rb#70
390
+ def yellow_on_green(string = T.unsafe(nil)); end
391
+
392
+ # source://ansi//lib/ansi/code.rb#70
393
+ def yellow_on_magenta(string = T.unsafe(nil)); end
394
+
395
+ # source://ansi//lib/ansi/code.rb#70
396
+ def yellow_on_red(string = T.unsafe(nil)); end
397
+
398
+ # source://ansi//lib/ansi/code.rb#70
399
+ def yellow_on_white(string = T.unsafe(nil)); end
400
+
401
+ # source://ansi//lib/ansi/code.rb#70
402
+ def yellow_on_yellow(string = T.unsafe(nil)); end
403
+
404
+ class << self
405
+ # List of primary colors.
406
+ #
407
+ # source://ansi//lib/ansi/code.rb#55
408
+ def colors; end
409
+
410
+ # List of primary styles.
411
+ #
412
+ # source://ansi//lib/ansi/code.rb#50
413
+ def styles; end
414
+ end
415
+ end
416
+
417
+ # ANSI clear code.
418
+ #
419
+ # source://ansi//lib/ansi/code.rb#47
420
+ ANSI::Code::ENDCODE = T.let(T.unsafe(nil), String)
421
+
422
+ # Regexp for matching most ANSI codes.
423
+ #
424
+ # source://ansi//lib/ansi/code.rb#44
425
+ ANSI::Code::PATTERN = T.let(T.unsafe(nil), Regexp)
426
+
427
+ # Converts {CHART} and {SPECIAL_CHART} entries into constants.
428
+ # So for example, the CHART entry for :red becomes:
429
+ #
430
+ # ANSI::Constants::RED #=> "\e[31m"
431
+ #
432
+ # The ANSI Constants are include into ANSI::Code and can be included
433
+ # any where will they would be of use.
434
+ #
435
+ # source://ansi//lib/ansi/constants.rb#13
436
+ module ANSI::Constants; end
437
+
438
+ # source://ansi//lib/ansi/constants.rb#16
439
+ ANSI::Constants::BLACK = T.let(T.unsafe(nil), String)
440
+
441
+ # source://ansi//lib/ansi/constants.rb#16
442
+ ANSI::Constants::BLINK = T.let(T.unsafe(nil), String)
443
+
444
+ # source://ansi//lib/ansi/constants.rb#16
445
+ ANSI::Constants::BLINK_OFF = T.let(T.unsafe(nil), String)
446
+
447
+ # source://ansi//lib/ansi/constants.rb#16
448
+ ANSI::Constants::BLUE = T.let(T.unsafe(nil), String)
449
+
450
+ # source://ansi//lib/ansi/constants.rb#16
451
+ ANSI::Constants::BOLD = T.let(T.unsafe(nil), String)
452
+
453
+ # source://ansi//lib/ansi/constants.rb#16
454
+ ANSI::Constants::BOLD_OFF = T.let(T.unsafe(nil), String)
455
+
456
+ # source://ansi//lib/ansi/constants.rb#16
457
+ ANSI::Constants::BRIGHT = T.let(T.unsafe(nil), String)
458
+
459
+ # source://ansi//lib/ansi/constants.rb#16
460
+ ANSI::Constants::BRIGHT_OFF = T.let(T.unsafe(nil), String)
461
+
462
+ # source://ansi//lib/ansi/constants.rb#16
463
+ ANSI::Constants::CLEAN = T.let(T.unsafe(nil), String)
464
+
465
+ # source://ansi//lib/ansi/constants.rb#16
466
+ ANSI::Constants::CLEAR = T.let(T.unsafe(nil), String)
467
+
468
+ # source://ansi//lib/ansi/constants.rb#20
469
+ ANSI::Constants::CLEAR_EOL = T.let(T.unsafe(nil), String)
470
+
471
+ # source://ansi//lib/ansi/constants.rb#20
472
+ ANSI::Constants::CLEAR_LEFT = T.let(T.unsafe(nil), String)
473
+
474
+ # source://ansi//lib/ansi/constants.rb#20
475
+ ANSI::Constants::CLEAR_LINE = T.let(T.unsafe(nil), String)
476
+
477
+ # source://ansi//lib/ansi/constants.rb#20
478
+ ANSI::Constants::CLEAR_RIGHT = T.let(T.unsafe(nil), String)
479
+
480
+ # source://ansi//lib/ansi/constants.rb#20
481
+ ANSI::Constants::CLEAR_SCREEN = T.let(T.unsafe(nil), String)
482
+
483
+ # source://ansi//lib/ansi/constants.rb#20
484
+ ANSI::Constants::CLR = T.let(T.unsafe(nil), String)
485
+
486
+ # source://ansi//lib/ansi/constants.rb#20
487
+ ANSI::Constants::CLS = T.let(T.unsafe(nil), String)
488
+
489
+ # source://ansi//lib/ansi/constants.rb#16
490
+ ANSI::Constants::CONCEAL = T.let(T.unsafe(nil), String)
491
+
492
+ # source://ansi//lib/ansi/constants.rb#16
493
+ ANSI::Constants::CONCEALED = T.let(T.unsafe(nil), String)
494
+
495
+ # source://ansi//lib/ansi/constants.rb#16
496
+ ANSI::Constants::CONCEAL_OFF = T.let(T.unsafe(nil), String)
497
+
498
+ # source://ansi//lib/ansi/constants.rb#16
499
+ ANSI::Constants::CROSSED_OFF = T.let(T.unsafe(nil), String)
500
+
501
+ # source://ansi//lib/ansi/constants.rb#16
502
+ ANSI::Constants::CROSSED_OUT_OFF = T.let(T.unsafe(nil), String)
503
+
504
+ # source://ansi//lib/ansi/constants.rb#20
505
+ ANSI::Constants::CURSOR_HIDE = T.let(T.unsafe(nil), String)
506
+
507
+ # source://ansi//lib/ansi/constants.rb#20
508
+ ANSI::Constants::CURSOR_SHOW = T.let(T.unsafe(nil), String)
509
+
510
+ # source://ansi//lib/ansi/constants.rb#16
511
+ ANSI::Constants::CYAN = T.let(T.unsafe(nil), String)
512
+
513
+ # source://ansi//lib/ansi/constants.rb#16
514
+ ANSI::Constants::DARK = T.let(T.unsafe(nil), String)
515
+
516
+ # source://ansi//lib/ansi/constants.rb#16
517
+ ANSI::Constants::DEFAULT_FONT = T.let(T.unsafe(nil), String)
518
+
519
+ # source://ansi//lib/ansi/constants.rb#16
520
+ ANSI::Constants::DOUBLE_UNDERLINE = T.let(T.unsafe(nil), String)
521
+
522
+ # source://ansi//lib/ansi/constants.rb#16
523
+ ANSI::Constants::ENCIRCLE = T.let(T.unsafe(nil), String)
524
+
525
+ # source://ansi//lib/ansi/constants.rb#16
526
+ ANSI::Constants::ENCIRCLE_OFF = T.let(T.unsafe(nil), String)
527
+
528
+ # source://ansi//lib/ansi/constants.rb#16
529
+ ANSI::Constants::FAINT = T.let(T.unsafe(nil), String)
530
+
531
+ # source://ansi//lib/ansi/constants.rb#16
532
+ ANSI::Constants::FONT0 = T.let(T.unsafe(nil), String)
533
+
534
+ # source://ansi//lib/ansi/constants.rb#16
535
+ ANSI::Constants::FONT1 = T.let(T.unsafe(nil), String)
536
+
537
+ # source://ansi//lib/ansi/constants.rb#16
538
+ ANSI::Constants::FONT2 = T.let(T.unsafe(nil), String)
539
+
540
+ # source://ansi//lib/ansi/constants.rb#16
541
+ ANSI::Constants::FONT3 = T.let(T.unsafe(nil), String)
542
+
543
+ # source://ansi//lib/ansi/constants.rb#16
544
+ ANSI::Constants::FONT4 = T.let(T.unsafe(nil), String)
545
+
546
+ # source://ansi//lib/ansi/constants.rb#16
547
+ ANSI::Constants::FONT5 = T.let(T.unsafe(nil), String)
548
+
549
+ # source://ansi//lib/ansi/constants.rb#16
550
+ ANSI::Constants::FONT6 = T.let(T.unsafe(nil), String)
551
+
552
+ # source://ansi//lib/ansi/constants.rb#16
553
+ ANSI::Constants::FONT7 = T.let(T.unsafe(nil), String)
554
+
555
+ # source://ansi//lib/ansi/constants.rb#16
556
+ ANSI::Constants::FONT8 = T.let(T.unsafe(nil), String)
557
+
558
+ # source://ansi//lib/ansi/constants.rb#16
559
+ ANSI::Constants::FONT9 = T.let(T.unsafe(nil), String)
560
+
561
+ # source://ansi//lib/ansi/constants.rb#16
562
+ ANSI::Constants::FONT_DEFAULT = T.let(T.unsafe(nil), String)
563
+
564
+ # source://ansi//lib/ansi/constants.rb#16
565
+ ANSI::Constants::FRAKTUR = T.let(T.unsafe(nil), String)
566
+
567
+ # source://ansi//lib/ansi/constants.rb#16
568
+ ANSI::Constants::FRAKTUR_OFF = T.let(T.unsafe(nil), String)
569
+
570
+ # source://ansi//lib/ansi/constants.rb#16
571
+ ANSI::Constants::FRAME = T.let(T.unsafe(nil), String)
572
+
573
+ # source://ansi//lib/ansi/constants.rb#16
574
+ ANSI::Constants::FRAME_OFF = T.let(T.unsafe(nil), String)
575
+
576
+ # source://ansi//lib/ansi/constants.rb#16
577
+ ANSI::Constants::GREEN = T.let(T.unsafe(nil), String)
578
+
579
+ # source://ansi//lib/ansi/constants.rb#16
580
+ ANSI::Constants::HIDE = T.let(T.unsafe(nil), String)
581
+
582
+ # source://ansi//lib/ansi/constants.rb#16
583
+ ANSI::Constants::INVERSE = T.let(T.unsafe(nil), String)
584
+
585
+ # source://ansi//lib/ansi/constants.rb#16
586
+ ANSI::Constants::INVERSE_OFF = T.let(T.unsafe(nil), String)
587
+
588
+ # source://ansi//lib/ansi/constants.rb#16
589
+ ANSI::Constants::INVERT = T.let(T.unsafe(nil), String)
590
+
591
+ # source://ansi//lib/ansi/constants.rb#16
592
+ ANSI::Constants::ITALIC = T.let(T.unsafe(nil), String)
593
+
594
+ # source://ansi//lib/ansi/constants.rb#16
595
+ ANSI::Constants::ITALIC_OFF = T.let(T.unsafe(nil), String)
596
+
597
+ # source://ansi//lib/ansi/constants.rb#16
598
+ ANSI::Constants::MAGENTA = T.let(T.unsafe(nil), String)
599
+
600
+ # source://ansi//lib/ansi/constants.rb#16
601
+ ANSI::Constants::NEGATIVE = T.let(T.unsafe(nil), String)
602
+
603
+ # source://ansi//lib/ansi/constants.rb#16
604
+ ANSI::Constants::ON_BLACK = T.let(T.unsafe(nil), String)
605
+
606
+ # source://ansi//lib/ansi/constants.rb#16
607
+ ANSI::Constants::ON_BLUE = T.let(T.unsafe(nil), String)
608
+
609
+ # source://ansi//lib/ansi/constants.rb#16
610
+ ANSI::Constants::ON_CYAN = T.let(T.unsafe(nil), String)
611
+
612
+ # source://ansi//lib/ansi/constants.rb#16
613
+ ANSI::Constants::ON_GREEN = T.let(T.unsafe(nil), String)
614
+
615
+ # source://ansi//lib/ansi/constants.rb#16
616
+ ANSI::Constants::ON_MAGENTA = T.let(T.unsafe(nil), String)
617
+
618
+ # source://ansi//lib/ansi/constants.rb#16
619
+ ANSI::Constants::ON_RED = T.let(T.unsafe(nil), String)
620
+
621
+ # source://ansi//lib/ansi/constants.rb#16
622
+ ANSI::Constants::ON_WHITE = T.let(T.unsafe(nil), String)
623
+
624
+ # source://ansi//lib/ansi/constants.rb#16
625
+ ANSI::Constants::ON_YELLOW = T.let(T.unsafe(nil), String)
626
+
627
+ # source://ansi//lib/ansi/constants.rb#16
628
+ ANSI::Constants::OVERLINE = T.let(T.unsafe(nil), String)
629
+
630
+ # source://ansi//lib/ansi/constants.rb#16
631
+ ANSI::Constants::OVERLINE_OFF = T.let(T.unsafe(nil), String)
632
+
633
+ # source://ansi//lib/ansi/constants.rb#16
634
+ ANSI::Constants::POSITIVE = T.let(T.unsafe(nil), String)
635
+
636
+ # source://ansi//lib/ansi/constants.rb#16
637
+ ANSI::Constants::RAPID = T.let(T.unsafe(nil), String)
638
+
639
+ # source://ansi//lib/ansi/constants.rb#16
640
+ ANSI::Constants::RAPID_BLINK = T.let(T.unsafe(nil), String)
641
+
642
+ # source://ansi//lib/ansi/constants.rb#16
643
+ ANSI::Constants::RED = T.let(T.unsafe(nil), String)
644
+
645
+ # source://ansi//lib/ansi/constants.rb#16
646
+ ANSI::Constants::RESET = T.let(T.unsafe(nil), String)
647
+
648
+ # source://ansi//lib/ansi/constants.rb#20
649
+ ANSI::Constants::RESTORE = T.let(T.unsafe(nil), String)
650
+
651
+ # source://ansi//lib/ansi/constants.rb#16
652
+ ANSI::Constants::REVEAL = T.let(T.unsafe(nil), String)
653
+
654
+ # source://ansi//lib/ansi/constants.rb#16
655
+ ANSI::Constants::REVERSE = T.let(T.unsafe(nil), String)
656
+
657
+ # source://ansi//lib/ansi/constants.rb#20
658
+ ANSI::Constants::SAVE = T.let(T.unsafe(nil), String)
659
+
660
+ # source://ansi//lib/ansi/constants.rb#16
661
+ ANSI::Constants::SHOW = T.let(T.unsafe(nil), String)
662
+
663
+ # source://ansi//lib/ansi/constants.rb#16
664
+ ANSI::Constants::SLOW_BLINK = T.let(T.unsafe(nil), String)
665
+
666
+ # source://ansi//lib/ansi/constants.rb#16
667
+ ANSI::Constants::STRIKE = T.let(T.unsafe(nil), String)
668
+
669
+ # source://ansi//lib/ansi/constants.rb#16
670
+ ANSI::Constants::SWAP = T.let(T.unsafe(nil), String)
671
+
672
+ # source://ansi//lib/ansi/constants.rb#16
673
+ ANSI::Constants::UNDERLINE = T.let(T.unsafe(nil), String)
674
+
675
+ # source://ansi//lib/ansi/constants.rb#16
676
+ ANSI::Constants::UNDERLINE_OFF = T.let(T.unsafe(nil), String)
677
+
678
+ # source://ansi//lib/ansi/constants.rb#16
679
+ ANSI::Constants::UNDERSCORE = T.let(T.unsafe(nil), String)
680
+
681
+ # source://ansi//lib/ansi/constants.rb#16
682
+ ANSI::Constants::WHITE = T.let(T.unsafe(nil), String)
683
+
684
+ # source://ansi//lib/ansi/constants.rb#16
685
+ ANSI::Constants::YELLOW = T.let(T.unsafe(nil), String)
686
+
687
+ # source://ansi//lib/ansi/chart.rb#86
688
+ ANSI::SPECIAL_CHART = T.let(T.unsafe(nil), Hash)