tsumanne 0.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. checksums.yaml +7 -0
  2. data/.rspec +3 -0
  3. data/.rubocop.yml +32 -0
  4. data/.ruby-version +1 -0
  5. data/LICENSE.txt +21 -0
  6. data/README.md +31 -0
  7. data/Rakefile +45 -0
  8. data/lib/tsumanne/version.rb +7 -0
  9. data/lib/tsumanne.rb +128 -0
  10. data/sorbet/config +4 -0
  11. data/sorbet/rbi/annotations/rainbow.rbi +269 -0
  12. data/sorbet/rbi/gems/ast@2.4.2.rbi +584 -0
  13. data/sorbet/rbi/gems/base64@0.1.1.rbi +172 -0
  14. data/sorbet/rbi/gems/diff-lcs@1.5.0.rbi +1083 -0
  15. data/sorbet/rbi/gems/erubi@1.12.0.rbi +145 -0
  16. data/sorbet/rbi/gems/ffi-compiler@1.0.1.rbi +206 -0
  17. data/sorbet/rbi/gems/ffi@1.15.5.rbi +1994 -0
  18. data/sorbet/rbi/gems/http-parser@1.2.3.rbi +422 -0
  19. data/sorbet/rbi/gems/json@2.6.3.rbi +1533 -0
  20. data/sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi +14237 -0
  21. data/sorbet/rbi/gems/mhtml@0.1.6.rbi +353 -0
  22. data/sorbet/rbi/gems/netrc@0.11.0.rbi +158 -0
  23. data/sorbet/rbi/gems/parallel@1.23.0.rbi +273 -0
  24. data/sorbet/rbi/gems/parser@3.2.2.3.rbi +7253 -0
  25. data/sorbet/rbi/gems/prettier_print@1.2.1.rbi +951 -0
  26. data/sorbet/rbi/gems/racc@1.7.1.rbi +161 -0
  27. data/sorbet/rbi/gems/rainbow@3.1.1.rbi +402 -0
  28. data/sorbet/rbi/gems/rake@13.0.6.rbi +3024 -0
  29. data/sorbet/rbi/gems/rbi@0.0.17.rbi +2967 -0
  30. data/sorbet/rbi/gems/regexp_parser@2.8.1.rbi +3749 -0
  31. data/sorbet/rbi/gems/rexml@3.2.6.rbi +4781 -0
  32. data/sorbet/rbi/gems/rspec-core@3.12.2.rbi +10805 -0
  33. data/sorbet/rbi/gems/rspec-expectations@3.12.3.rbi +8100 -0
  34. data/sorbet/rbi/gems/rspec-mocks@3.12.6.rbi +5310 -0
  35. data/sorbet/rbi/gems/rspec-support@3.12.1.rbi +1609 -0
  36. data/sorbet/rbi/gems/rspec@3.12.0.rbi +82 -0
  37. data/sorbet/rbi/gems/rubocop-ast@1.29.0.rbi +7144 -0
  38. data/sorbet/rbi/gems/rubocop-capybara@2.18.0.rbi +827 -0
  39. data/sorbet/rbi/gems/rubocop-factory_bot@2.23.1.rbi +812 -0
  40. data/sorbet/rbi/gems/rubocop-performance@1.19.0.rbi +3157 -0
  41. data/sorbet/rbi/gems/rubocop-rake@0.6.0.rbi +328 -0
  42. data/sorbet/rbi/gems/rubocop-rspec@2.23.2.rbi +7691 -0
  43. data/sorbet/rbi/gems/rubocop-sorbet@0.7.3.rbi +1226 -0
  44. data/sorbet/rbi/gems/rubocop@1.56.2.rbi +56541 -0
  45. data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +1317 -0
  46. data/sorbet/rbi/gems/spoom@1.2.3.rbi +3199 -0
  47. data/sorbet/rbi/gems/syntax_tree@6.1.1.rbi +22855 -0
  48. data/sorbet/rbi/gems/tapioca@0.11.8.rbi +3329 -0
  49. data/sorbet/rbi/gems/thor@1.2.2.rbi +3965 -0
  50. data/sorbet/rbi/gems/unicode-display_width@2.4.2.rbi +65 -0
  51. data/sorbet/rbi/gems/unparser@0.6.8.rbi +4525 -0
  52. data/sorbet/rbi/gems/yard-sorbet@0.8.1.rbi +425 -0
  53. data/sorbet/rbi/gems/yard@0.9.34.rbi +18219 -0
  54. data/sorbet/tapioca/config.yml +13 -0
  55. data/sorbet/tapioca/require.rb +4 -0
  56. metadata +254 -0
@@ -0,0 +1,353 @@
1
+ # typed: true
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `mhtml` gem.
5
+ # Please instead update this file by running `bin/tapioca gem mhtml`.
6
+
7
+ # source://mhtml//lib/mhtml.rb#2
8
+ module Mhtml
9
+ class << self
10
+ # source://mhtml//lib/mhtml.rb#11
11
+ def is_mhtml(filename); end
12
+ end
13
+ end
14
+
15
+ # source://mhtml//lib/mhtml.rb#5
16
+ Mhtml::DOUBLE_LINE_BREAK = T.let(T.unsafe(nil), String)
17
+
18
+ # source://mhtml//lib/mhtml/document.rb#5
19
+ class Mhtml::Document
20
+ # @return [Document] a new instance of Document
21
+ #
22
+ # source://mhtml//lib/mhtml/document.rb#16
23
+ def initialize(str = T.unsafe(nil)); end
24
+
25
+ # source://mhtml//lib/mhtml/document.rb#43
26
+ def <<(chunk); end
27
+
28
+ # source://mhtml//lib/mhtml/document.rb#47
29
+ def ==(other); end
30
+
31
+ # Returns the value of attribute body.
32
+ #
33
+ # source://mhtml//lib/mhtml/document.rb#8
34
+ def body; end
35
+
36
+ # Sets the attribute body
37
+ #
38
+ # @param value the value to set the attribute body to.
39
+ #
40
+ # source://mhtml//lib/mhtml/document.rb#8
41
+ def body=(_arg0); end
42
+
43
+ # Returns the value of attribute chunked.
44
+ #
45
+ # source://mhtml//lib/mhtml/document.rb#6
46
+ def chunked; end
47
+
48
+ # Returns the value of attribute encoding.
49
+ #
50
+ # source://mhtml//lib/mhtml/document.rb#8
51
+ def encoding; end
52
+
53
+ # Sets the attribute encoding
54
+ #
55
+ # @param value the value to set the attribute encoding to.
56
+ #
57
+ # source://mhtml//lib/mhtml/document.rb#8
58
+ def encoding=(_arg0); end
59
+
60
+ # Returns the value of attribute file_path.
61
+ #
62
+ # source://mhtml//lib/mhtml/document.rb#8
63
+ def file_path; end
64
+
65
+ # Sets the attribute file_path
66
+ #
67
+ # @param value the value to set the attribute file_path to.
68
+ #
69
+ # source://mhtml//lib/mhtml/document.rb#8
70
+ def file_path=(_arg0); end
71
+
72
+ # source://mhtml//lib/mhtml/document.rb#60
73
+ def header(key); end
74
+
75
+ # Returns the value of attribute headers.
76
+ #
77
+ # source://mhtml//lib/mhtml/document.rb#8
78
+ def headers; end
79
+
80
+ # Sets the attribute headers
81
+ #
82
+ # @param value the value to set the attribute headers to.
83
+ #
84
+ # source://mhtml//lib/mhtml/document.rb#8
85
+ def headers=(_arg0); end
86
+
87
+ # Returns the value of attribute is_base_64.
88
+ #
89
+ # source://mhtml//lib/mhtml/document.rb#8
90
+ def is_base_64; end
91
+
92
+ # Sets the attribute is_base_64
93
+ #
94
+ # @param value the value to set the attribute is_base_64 to.
95
+ #
96
+ # source://mhtml//lib/mhtml/document.rb#8
97
+ def is_base_64=(_arg0); end
98
+
99
+ # Returns the value of attribute is_quoted_printable.
100
+ #
101
+ # source://mhtml//lib/mhtml/document.rb#8
102
+ def is_quoted_printable; end
103
+
104
+ # Sets the attribute is_quoted_printable
105
+ #
106
+ # @param value the value to set the attribute is_quoted_printable to.
107
+ #
108
+ # source://mhtml//lib/mhtml/document.rb#8
109
+ def is_quoted_printable=(_arg0); end
110
+
111
+ # source://mhtml//lib/mhtml/document.rb#56
112
+ def on_body; end
113
+
114
+ # source://mhtml//lib/mhtml/document.rb#52
115
+ def on_header; end
116
+
117
+ # Returns the value of attribute parser.
118
+ #
119
+ # source://mhtml//lib/mhtml/document.rb#6
120
+ def parser; end
121
+
122
+ # source://mhtml//lib/mhtml/document.rb#73
123
+ def relative_file_path; end
124
+
125
+ # Returns the value of attribute root_doc.
126
+ #
127
+ # source://mhtml//lib/mhtml/document.rb#8
128
+ def root_doc; end
129
+
130
+ # Sets the attribute root_doc
131
+ #
132
+ # @param value the value to set the attribute root_doc to.
133
+ #
134
+ # source://mhtml//lib/mhtml/document.rb#8
135
+ def root_doc=(_arg0); end
136
+
137
+ # for testing only = no spec implemented
138
+ #
139
+ # source://mhtml//lib/mhtml/document.rb#97
140
+ def to_s; end
141
+
142
+ private
143
+
144
+ # source://mhtml//lib/mhtml/document.rb#169
145
+ def decode(str); end
146
+
147
+ # source://mhtml//lib/mhtml/document.rb#113
148
+ def handle_body(inst, data); end
149
+
150
+ # source://mhtml//lib/mhtml/document.rb#103
151
+ def handle_header_field(inst, data); end
152
+
153
+ # source://mhtml//lib/mhtml/document.rb#109
154
+ def handle_header_value(inst, data); end
155
+
156
+ # source://mhtml//lib/mhtml/document.rb#125
157
+ def handle_message_begin(inst); end
158
+
159
+ # source://mhtml//lib/mhtml/document.rb#128
160
+ def handle_message_complete(inst); end
161
+
162
+ # source://mhtml//lib/mhtml/document.rb#131
163
+ def maybe_create_header; end
164
+ end
165
+
166
+ # source://mhtml//lib/mhtml.rb#9
167
+ Mhtml::FILE_EXTENSIONS = T.let(T.unsafe(nil), Array)
168
+
169
+ # source://mhtml//lib/mhtml/http_header.rb#2
170
+ class Mhtml::HttpHeader
171
+ # @return [HttpHeader] a new instance of HttpHeader
172
+ #
173
+ # source://mhtml//lib/mhtml/http_header.rb#10
174
+ def initialize(key_or_hash, value_lines = T.unsafe(nil)); end
175
+
176
+ # source://mhtml//lib/mhtml/http_header.rb#33
177
+ def ==(other); end
178
+
179
+ # source://mhtml//lib/mhtml/http_header.rb#55
180
+ def clone; end
181
+
182
+ # Returns the value of attribute key.
183
+ #
184
+ # source://mhtml//lib/mhtml/http_header.rb#5
185
+ def key; end
186
+
187
+ # Sets the attribute key
188
+ #
189
+ # @param value the value to set the attribute key to.
190
+ #
191
+ # source://mhtml//lib/mhtml/http_header.rb#5
192
+ def key=(_arg0); end
193
+
194
+ # following methods are for debugging only - no spec implemented
195
+ #
196
+ # source://mhtml//lib/mhtml/http_header.rb#51
197
+ def to_s; end
198
+
199
+ # source://mhtml//lib/mhtml/http_header.rb#37
200
+ def value(key); end
201
+
202
+ # Returns the value of attribute values.
203
+ #
204
+ # source://mhtml//lib/mhtml/http_header.rb#5
205
+ def values; end
206
+
207
+ # Sets the attribute values
208
+ #
209
+ # @param value the value to set the attribute values to.
210
+ #
211
+ # source://mhtml//lib/mhtml/http_header.rb#5
212
+ def values=(_arg0); end
213
+ end
214
+
215
+ # source://mhtml//lib/mhtml/http_header.rb#7
216
+ Mhtml::HttpHeader::KEY_VALUE_SEP = T.let(T.unsafe(nil), String)
217
+
218
+ # source://mhtml//lib/mhtml/http_header.rb#8
219
+ Mhtml::HttpHeader::VALUE_SEP = T.let(T.unsafe(nil), String)
220
+
221
+ # source://mhtml//lib/mhtml/http_header.rb#60
222
+ class Mhtml::HttpHeader::Value
223
+ # str examples:
224
+ # value
225
+ # key="value"
226
+ #
227
+ # @return [Value] a new instance of Value
228
+ #
229
+ # source://mhtml//lib/mhtml/http_header.rb#66
230
+ def initialize(str_or_hash); end
231
+
232
+ # source://mhtml//lib/mhtml/http_header.rb#85
233
+ def ==(other); end
234
+
235
+ # source://mhtml//lib/mhtml/http_header.rb#98
236
+ def clone; end
237
+
238
+ # Returns the value of attribute key.
239
+ #
240
+ # source://mhtml//lib/mhtml/http_header.rb#61
241
+ def key; end
242
+
243
+ # following methods are for debugging only - no spec implemented
244
+ #
245
+ # source://mhtml//lib/mhtml/http_header.rb#90
246
+ def to_s; end
247
+
248
+ # Returns the value of attribute value.
249
+ #
250
+ # source://mhtml//lib/mhtml/http_header.rb#61
251
+ def value; end
252
+ end
253
+
254
+ # source://mhtml//lib/mhtml.rb#4
255
+ Mhtml::LINE_BREAK = T.let(T.unsafe(nil), String)
256
+
257
+ # source://mhtml//lib/mhtml/root_document.rb#2
258
+ class Mhtml::RootDocument < ::Mhtml::Document
259
+ # @return [RootDocument] a new instance of RootDocument
260
+ #
261
+ # source://mhtml//lib/mhtml/root_document.rb#7
262
+ def initialize(str = T.unsafe(nil)); end
263
+
264
+ # source://mhtml//lib/mhtml/root_document.rb#12
265
+ def ==(other); end
266
+
267
+ # Returns the value of attribute boundary.
268
+ #
269
+ # source://mhtml//lib/mhtml/root_document.rb#5
270
+ def boundary; end
271
+
272
+ # Sets the attribute boundary
273
+ #
274
+ # @param value the value to set the attribute boundary to.
275
+ #
276
+ # source://mhtml//lib/mhtml/root_document.rb#5
277
+ def boundary=(_arg0); end
278
+
279
+ # source://mhtml//lib/mhtml/root_document.rb#32
280
+ def boundary_str; end
281
+
282
+ # source://mhtml//lib/mhtml/root_document.rb#36
283
+ def last_boundary_str; end
284
+
285
+ # source://mhtml//lib/mhtml/root_document.rb#16
286
+ def on_subdoc_begin; end
287
+
288
+ # source://mhtml//lib/mhtml/root_document.rb#24
289
+ def on_subdoc_body; end
290
+
291
+ # source://mhtml//lib/mhtml/root_document.rb#28
292
+ def on_subdoc_complete; end
293
+
294
+ # source://mhtml//lib/mhtml/root_document.rb#20
295
+ def on_subdoc_header; end
296
+
297
+ # Returns the value of attribute sub_docs.
298
+ #
299
+ # source://mhtml//lib/mhtml/root_document.rb#5
300
+ def sub_docs; end
301
+
302
+ # Sets the attribute sub_docs
303
+ #
304
+ # @param value the value to set the attribute sub_docs to.
305
+ #
306
+ # source://mhtml//lib/mhtml/root_document.rb#5
307
+ def sub_docs=(_arg0); end
308
+
309
+ # for testing only = no spec implemented
310
+ #
311
+ # source://mhtml//lib/mhtml/root_document.rb#41
312
+ def to_s; end
313
+
314
+ private
315
+
316
+ # source://mhtml//lib/mhtml/root_document.rb#113
317
+ def create_chunked_subdoc; end
318
+
319
+ # source://mhtml//lib/mhtml/root_document.rb#49
320
+ def handle_body(inst, data); end
321
+
322
+ # source://mhtml//lib/mhtml/root_document.rb#81
323
+ def handle_chunked_body(chunk, is_last_part, is_last_subdoc); end
324
+ end
325
+
326
+ # source://mhtml//lib/mhtml/root_document.rb#3
327
+ Mhtml::RootDocument::BOUNDARY_PREFIX = T.let(T.unsafe(nil), String)
328
+
329
+ # source://mhtml//lib/mhtml.rb#7
330
+ Mhtml::STATUS_LINE = T.let(T.unsafe(nil), String)
331
+
332
+ # source://mhtml//lib/mhtml/version.rb#2
333
+ Mhtml::VERSION = T.let(T.unsafe(nil), String)
334
+
335
+ # source://mhtml//lib/string.rb#1
336
+ class String
337
+ include ::Comparable
338
+
339
+ # source://mhtml//lib/string.rb#3
340
+ def each_index(x); end
341
+
342
+ # source://mhtml//lib/string.rb#43
343
+ def index_of_split(other); end
344
+
345
+ # source://mhtml//lib/string.rb#54
346
+ def rindex_of_split(other); end
347
+
348
+ # source://mhtml//lib/string.rb#19
349
+ def strip_other(str); end
350
+
351
+ # source://mhtml//lib/string.rb#35
352
+ def underscore; end
353
+ end
@@ -0,0 +1,158 @@
1
+ # typed: true
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `netrc` gem.
5
+ # Please instead update this file by running `bin/tapioca gem netrc`.
6
+
7
+ # source://netrc//lib/netrc.rb#3
8
+ class Netrc
9
+ # @return [Netrc] a new instance of Netrc
10
+ #
11
+ # source://netrc//lib/netrc.rb#166
12
+ def initialize(path, data); end
13
+
14
+ # source://netrc//lib/netrc.rb#180
15
+ def [](k); end
16
+
17
+ # source://netrc//lib/netrc.rb#188
18
+ def []=(k, info); end
19
+
20
+ # source://netrc//lib/netrc.rb#200
21
+ def delete(key); end
22
+
23
+ # source://netrc//lib/netrc.rb#211
24
+ def each(&block); end
25
+
26
+ # source://netrc//lib/netrc.rb#196
27
+ def length; end
28
+
29
+ # source://netrc//lib/netrc.rb#215
30
+ def new_item(m, l, p); end
31
+
32
+ # Returns the value of attribute new_item_prefix.
33
+ #
34
+ # source://netrc//lib/netrc.rb#178
35
+ def new_item_prefix; end
36
+
37
+ # Sets the attribute new_item_prefix
38
+ #
39
+ # @param value the value to set the attribute new_item_prefix to.
40
+ #
41
+ # source://netrc//lib/netrc.rb#178
42
+ def new_item_prefix=(_arg0); end
43
+
44
+ # source://netrc//lib/netrc.rb#219
45
+ def save; end
46
+
47
+ # source://netrc//lib/netrc.rb#233
48
+ def unparse; end
49
+
50
+ class << self
51
+ # source://netrc//lib/netrc.rb#42
52
+ def check_permissions(path); end
53
+
54
+ # source://netrc//lib/netrc.rb#33
55
+ def config; end
56
+
57
+ # @yield [self.config]
58
+ #
59
+ # source://netrc//lib/netrc.rb#37
60
+ def configure; end
61
+
62
+ # source://netrc//lib/netrc.rb#10
63
+ def default_path; end
64
+
65
+ # source://netrc//lib/netrc.rb#14
66
+ def home_path; end
67
+
68
+ # source://netrc//lib/netrc.rb#85
69
+ def lex(lines); end
70
+
71
+ # source://netrc//lib/netrc.rb#29
72
+ def netrc_filename; end
73
+
74
+ # Returns two values, a header and a list of items.
75
+ # Each item is a tuple, containing some or all of:
76
+ # - machine keyword (including trailing whitespace+comments)
77
+ # - machine name
78
+ # - login keyword (including surrounding whitespace+comments)
79
+ # - login
80
+ # - password keyword (including surrounding whitespace+comments)
81
+ # - password
82
+ # - trailing chars
83
+ # This lets us change individual fields, then write out the file
84
+ # with all its original formatting.
85
+ #
86
+ # source://netrc//lib/netrc.rb#129
87
+ def parse(ts); end
88
+
89
+ # Reads path and parses it as a .netrc file. If path doesn't
90
+ # exist, returns an empty object. Decrypt paths ending in .gpg.
91
+ #
92
+ # source://netrc//lib/netrc.rb#51
93
+ def read(path = T.unsafe(nil)); end
94
+
95
+ # @return [Boolean]
96
+ #
97
+ # source://netrc//lib/netrc.rb#112
98
+ def skip?(s); end
99
+ end
100
+ end
101
+
102
+ # source://netrc//lib/netrc.rb#8
103
+ Netrc::CYGWIN = T.let(T.unsafe(nil), T.untyped)
104
+
105
+ # source://netrc//lib/netrc.rb#244
106
+ class Netrc::Entry < ::Struct
107
+ # Returns the value of attribute login
108
+ #
109
+ # @return [Object] the current value of login
110
+ def login; end
111
+
112
+ # Sets the attribute login
113
+ #
114
+ # @param value [Object] the value to set the attribute login to.
115
+ # @return [Object] the newly set value
116
+ def login=(_); end
117
+
118
+ # Returns the value of attribute password
119
+ #
120
+ # @return [Object] the current value of password
121
+ def password; end
122
+
123
+ # Sets the attribute password
124
+ #
125
+ # @param value [Object] the value to set the attribute password to.
126
+ # @return [Object] the newly set value
127
+ def password=(_); end
128
+
129
+ def to_ary; end
130
+
131
+ class << self
132
+ def [](*_arg0); end
133
+ def inspect; end
134
+ def keyword_init?; end
135
+ def members; end
136
+ def new(*_arg0); end
137
+ end
138
+ end
139
+
140
+ # source://netrc//lib/netrc.rb#250
141
+ class Netrc::Error < ::StandardError; end
142
+
143
+ # source://netrc//lib/netrc.rb#68
144
+ class Netrc::TokenArray < ::Array
145
+ # source://netrc//lib/netrc.rb#76
146
+ def readto; end
147
+
148
+ # source://netrc//lib/netrc.rb#69
149
+ def take; end
150
+ end
151
+
152
+ # source://netrc//lib/netrc.rb#4
153
+ Netrc::VERSION = T.let(T.unsafe(nil), String)
154
+
155
+ # see http://stackoverflow.com/questions/4871309/what-is-the-correct-way-to-detect-if-ruby-is-running-on-windows
156
+ #
157
+ # source://netrc//lib/netrc.rb#7
158
+ Netrc::WINDOWS = T.let(T.unsafe(nil), T.untyped)