e621_export_downloader 0.0.1

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.
Files changed (78) hide show
  1. checksums.yaml +7 -0
  2. data/.irbrc +14 -0
  3. data/.ruby-version +1 -0
  4. data/LICENSE +21 -0
  5. data/README.md +148 -0
  6. data/Rakefile +8 -0
  7. data/exe/e621-export-downloader +112 -0
  8. data/lib/e621_export_downloader/client/options/builder/parsers.rb +42 -0
  9. data/lib/e621_export_downloader/client/options/builder.rb +44 -0
  10. data/lib/e621_export_downloader/client/options.rb +37 -0
  11. data/lib/e621_export_downloader/client.rb +120 -0
  12. data/lib/e621_export_downloader/constants.rb +17 -0
  13. data/lib/e621_export_downloader/export.rb +128 -0
  14. data/lib/e621_export_downloader/export_helper.rb +83 -0
  15. data/lib/e621_export_downloader/models/pool.rb +69 -0
  16. data/lib/e621_export_downloader/models/post.rb +166 -0
  17. data/lib/e621_export_downloader/models/tag.rb +41 -0
  18. data/lib/e621_export_downloader/models/tag_alias.rb +46 -0
  19. data/lib/e621_export_downloader/models/tag_implication.rb +46 -0
  20. data/lib/e621_export_downloader/models/wiki_page.rb +61 -0
  21. data/lib/e621_export_downloader/types.rb +14 -0
  22. data/lib/e621_export_downloader/version.rb +10 -0
  23. data/lib/e621_export_downloader.rb +12 -0
  24. data/sorbet/config +5 -0
  25. data/sorbet/rbi/annotations/.gitattributes +1 -0
  26. data/sorbet/rbi/annotations/faraday.rbi +17 -0
  27. data/sorbet/rbi/annotations/rainbow.rbi +269 -0
  28. data/sorbet/rbi/gems/.gitattributes +1 -0
  29. data/sorbet/rbi/gems/ast@2.4.3.rbi +550 -0
  30. data/sorbet/rbi/gems/benchmark@0.5.0.rbi +621 -0
  31. data/sorbet/rbi/gems/csv@3.3.5.rbi +4462 -0
  32. data/sorbet/rbi/gems/date@3.5.1.rbi +391 -0
  33. data/sorbet/rbi/gems/erb@6.0.4.rbi +1538 -0
  34. data/sorbet/rbi/gems/erubi@1.13.1.rbi +155 -0
  35. data/sorbet/rbi/gems/faraday-net_http@3.4.2.rbi +9 -0
  36. data/sorbet/rbi/gems/faraday@2.14.1.rbi +9 -0
  37. data/sorbet/rbi/gems/io-console@0.8.2.rbi +9 -0
  38. data/sorbet/rbi/gems/json@2.19.5.rbi +2240 -0
  39. data/sorbet/rbi/gems/language_server-protocol@3.17.0.5.rbi +9 -0
  40. data/sorbet/rbi/gems/lint_roller@1.1.0.rbi +189 -0
  41. data/sorbet/rbi/gems/logger@1.7.0.rbi +896 -0
  42. data/sorbet/rbi/gems/net-http@0.9.1.rbi +4029 -0
  43. data/sorbet/rbi/gems/netrc@0.11.0.rbi +147 -0
  44. data/sorbet/rbi/gems/parallel@2.1.0.rbi +321 -0
  45. data/sorbet/rbi/gems/parser@3.3.11.1.rbi +5229 -0
  46. data/sorbet/rbi/gems/pp@0.6.3.rbi +377 -0
  47. data/sorbet/rbi/gems/prettyprint@0.2.0.rbi +455 -0
  48. data/sorbet/rbi/gems/prism@1.9.0.rbi +42224 -0
  49. data/sorbet/rbi/gems/psych@5.3.1.rbi +2374 -0
  50. data/sorbet/rbi/gems/racc@1.8.1.rbi +165 -0
  51. data/sorbet/rbi/gems/rainbow@3.1.1.rbi +362 -0
  52. data/sorbet/rbi/gems/rake@13.4.2.rbi +3130 -0
  53. data/sorbet/rbi/gems/rbi@0.3.11.rbi +5505 -0
  54. data/sorbet/rbi/gems/rbs@4.0.2.rbi +6908 -0
  55. data/sorbet/rbi/gems/rdoc@7.2.0.rbi +9 -0
  56. data/sorbet/rbi/gems/regexp_parser@2.12.0.rbi +3398 -0
  57. data/sorbet/rbi/gems/reline@0.6.3.rbi +2446 -0
  58. data/sorbet/rbi/gems/require-hooks@0.4.0.rbi +152 -0
  59. data/sorbet/rbi/gems/rexml@3.4.4.rbi +4905 -0
  60. data/sorbet/rbi/gems/rubocop-ast@1.49.1.rbi +7062 -0
  61. data/sorbet/rbi/gems/rubocop-rake@0.7.1.rbi +314 -0
  62. data/sorbet/rbi/gems/rubocop@1.86.1.rbi +62227 -0
  63. data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +988 -0
  64. data/sorbet/rbi/gems/rubydex@0.2.0.rbi +663 -0
  65. data/sorbet/rbi/gems/spoom@1.7.13.rbi +6151 -0
  66. data/sorbet/rbi/gems/stringio@3.2.0.rbi +9 -0
  67. data/sorbet/rbi/gems/tapioca@0.19.1.rbi +3555 -0
  68. data/sorbet/rbi/gems/thor@1.5.0.rbi +3870 -0
  69. data/sorbet/rbi/gems/tsort@0.2.0.rbi +389 -0
  70. data/sorbet/rbi/gems/unicode-display_width@3.2.0.rbi +130 -0
  71. data/sorbet/rbi/gems/unicode-emoji@4.2.0.rbi +332 -0
  72. data/sorbet/rbi/gems/uri@1.1.1.rbi +2400 -0
  73. data/sorbet/rbi/gems/zeitwerk@2.7.5.rbi +1090 -0
  74. data/sorbet/rbi/shims/faraday.rbi +42 -0
  75. data/sorbet/rbi/todo.rbi +7 -0
  76. data/sorbet/tapioca/config.yml +13 -0
  77. data/sorbet/tapioca/require.rb +4 -0
  78. metadata +177 -0
@@ -0,0 +1,377 @@
1
+ # typed: false
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `pp` gem.
5
+ # Please instead update this file by running `bin/tapioca gem pp`.
6
+
7
+
8
+ class Array
9
+ include ::Enumerable
10
+
11
+ # pkg:gem/pp#lib/pp.rb:412
12
+ def pretty_print(q); end
13
+
14
+ # pkg:gem/pp#lib/pp.rb:420
15
+ def pretty_print_cycle(q); end
16
+ end
17
+
18
+ class Data
19
+ # pkg:gem/pp#lib/pp.rb:495
20
+ def pretty_print(q); end
21
+
22
+ # pkg:gem/pp#lib/pp.rb:523
23
+ def pretty_print_cycle(q); end
24
+ end
25
+
26
+ class File::Stat
27
+ include ::Comparable
28
+
29
+ # pkg:gem/pp#lib/pp.rb:557
30
+ def pretty_print(q); end
31
+ end
32
+
33
+ class Hash
34
+ include ::Enumerable
35
+
36
+ # pkg:gem/pp#lib/pp.rb:426
37
+ def pretty_print(q); end
38
+
39
+ # pkg:gem/pp#lib/pp.rb:430
40
+ def pretty_print_cycle(q); end
41
+ end
42
+
43
+ module Kernel
44
+ # Returns a pretty printed object as a string.
45
+ #
46
+ # See the PP module for more information.
47
+ #
48
+ # pkg:gem/pp#lib/pp.rb:724
49
+ def pretty_inspect; end
50
+
51
+ private
52
+
53
+ # prints arguments in pretty form.
54
+ #
55
+ # +#pp+ returns argument(s).
56
+ #
57
+ # pkg:gem/pp#lib/pp.rb:731
58
+ def pp(*objs); end
59
+
60
+ class << self
61
+ # prints arguments in pretty form.
62
+ #
63
+ # +#pp+ returns argument(s).
64
+ #
65
+ # pkg:gem/pp#lib/pp.rb:731
66
+ def pp(*objs); end
67
+ end
68
+ end
69
+
70
+ class MatchData
71
+ # pkg:gem/pp#lib/pp.rb:640
72
+ def pretty_print(q); end
73
+ end
74
+
75
+ # A pretty-printer for Ruby objects.
76
+ #
77
+ #
78
+ # == What PP Does
79
+ #
80
+ # Standard output by #p returns this:
81
+ # #<PP:0x81fedf0 @genspace=#<Proc:0x81feda0>, @group_queue=#<PrettyPrint::GroupQueue:0x81fed3c @queue=[[#<PrettyPrint::Group:0x81fed78 @breakables=[], @depth=0, @break=false>], []]>, @buffer=[], @newline="\n", @group_stack=[#<PrettyPrint::Group:0x81fed78 @breakables=[], @depth=0, @break=false>], @buffer_width=0, @indent=0, @maxwidth=79, @output_width=2, @output=#<IO:0x8114ee4>>
82
+ #
83
+ # Pretty-printed output returns this:
84
+ # #<PP:0x81fedf0
85
+ # @buffer=[],
86
+ # @buffer_width=0,
87
+ # @genspace=#<Proc:0x81feda0>,
88
+ # @group_queue=
89
+ # #<PrettyPrint::GroupQueue:0x81fed3c
90
+ # @queue=
91
+ # [[#<PrettyPrint::Group:0x81fed78 @break=false, @breakables=[], @depth=0>],
92
+ # []]>,
93
+ # @group_stack=
94
+ # [#<PrettyPrint::Group:0x81fed78 @break=false, @breakables=[], @depth=0>],
95
+ # @indent=0,
96
+ # @maxwidth=79,
97
+ # @newline="\n",
98
+ # @output=#<IO:0x8114ee4>,
99
+ # @output_width=2>
100
+ #
101
+ #
102
+ # == Usage
103
+ #
104
+ # pp(obj) #=> obj
105
+ # pp obj #=> obj
106
+ # pp(obj1, obj2, ...) #=> [obj1, obj2, ...]
107
+ # pp() #=> nil
108
+ #
109
+ # Output <tt>obj(s)</tt> to <tt>$></tt> in pretty printed format.
110
+ #
111
+ # It returns <tt>obj(s)</tt>.
112
+ #
113
+ #
114
+ # == Output Customization
115
+ #
116
+ # To define a customized pretty printing function for your classes,
117
+ # redefine method <code>#pretty_print(pp)</code> in the class.
118
+ # Note that <code>require 'pp'</code> is needed before redefining <code>#pretty_print(pp)</code>.
119
+ #
120
+ # <code>#pretty_print</code> takes the +pp+ argument, which is an instance of the PP class.
121
+ # The method uses #text, #breakable, #nest, #group and #pp to print the
122
+ # object.
123
+ #
124
+ #
125
+ # == Pretty-Print JSON
126
+ #
127
+ # To pretty-print JSON refer to JSON#pretty_generate.
128
+ #
129
+ #
130
+ # == Author
131
+ # Tanaka Akira <akr@fsij.org>
132
+ class PP < ::PrettyPrint
133
+ include ::PP::PPMethods
134
+
135
+ class << self
136
+ # :stopdoc:
137
+ #
138
+ # pkg:gem/pp#lib/pp.rb:116
139
+ def mcall(obj, mod, meth, *args, &block); end
140
+
141
+ # Outputs +obj+ to +out+ in pretty printed format of
142
+ # +width+ columns in width.
143
+ #
144
+ # If +out+ is omitted, <code>$></code> is assumed.
145
+ # If +width+ is omitted, the width of +out+ is assumed (see
146
+ # width_for).
147
+ #
148
+ # PP.pp returns +out+.
149
+ #
150
+ # pkg:gem/pp#lib/pp.rb:96
151
+ def pp(obj, out = T.unsafe(nil), width = T.unsafe(nil)); end
152
+
153
+ # Returns the sharing detection flag as a boolean value.
154
+ # It is false (nil) by default.
155
+ # Returns the sharing detection flag as a boolean value.
156
+ # It is false by default.
157
+ #
158
+ # pkg:gem/pp#lib/pp.rb:125
159
+ def sharing_detection; end
160
+
161
+ # Sets the sharing detection flag to b.
162
+ #
163
+ # pkg:gem/pp#lib/pp.rb:129
164
+ def sharing_detection=(b); end
165
+
166
+ # Outputs +obj+ to +out+ like PP.pp but with no indent and
167
+ # newline.
168
+ #
169
+ # PP.singleline_pp returns +out+.
170
+ #
171
+ # pkg:gem/pp#lib/pp.rb:108
172
+ def singleline_pp(obj, out = T.unsafe(nil)); end
173
+
174
+ # Returns the usable width for +out+.
175
+ # As the width of +out+:
176
+ # 1. If +out+ is assigned to a tty device, its width is used.
177
+ # 2. Otherwise, or it could not get the value, the +COLUMN+
178
+ # environment variable is assumed to be set to the width.
179
+ # 3. If +COLUMN+ is not set to a non-zero number, 80 is assumed.
180
+ #
181
+ # And finally, returns the above width value - 1.
182
+ # * This -1 is for Windows command prompt, which moves the cursor to
183
+ # the next line if it reaches the last column.
184
+ #
185
+ # pkg:gem/pp#lib/pp.rb:79
186
+ def width_for(out); end
187
+ end
188
+ end
189
+
190
+ module PP::ObjectMixin
191
+ # A default pretty printing method for general objects.
192
+ # It calls #pretty_print_instance_variables to list instance variables.
193
+ #
194
+ # If +self+ has a customized (redefined) #inspect method,
195
+ # the result of self.inspect is used but it obviously has no
196
+ # line break hints.
197
+ #
198
+ # This module provides predefined #pretty_print methods for some of
199
+ # the most commonly used built-in classes for convenience.
200
+ #
201
+ # pkg:gem/pp#lib/pp.rb:362
202
+ def pretty_print(q); end
203
+
204
+ # A default pretty printing method for general objects that are
205
+ # detected as part of a cycle.
206
+ #
207
+ # pkg:gem/pp#lib/pp.rb:379
208
+ def pretty_print_cycle(q); end
209
+
210
+ # Is #inspect implementation using #pretty_print.
211
+ # If you implement #pretty_print, it can be used as follows.
212
+ #
213
+ # alias inspect pretty_print_inspect
214
+ #
215
+ # However, doing this requires that every class that #inspect is called on
216
+ # implement #pretty_print, or a RuntimeError will be raised.
217
+ #
218
+ # pkg:gem/pp#lib/pp.rb:402
219
+ def pretty_print_inspect; end
220
+
221
+ # Returns a sorted array of instance variable names.
222
+ #
223
+ # This method should return an array of names of instance variables as symbols or strings as:
224
+ # +[:@a, :@b]+.
225
+ #
226
+ # pkg:gem/pp#lib/pp.rb:390
227
+ def pretty_print_instance_variables; end
228
+ end
229
+
230
+ # Module that defines helper methods for pretty_print.
231
+ module PP::PPMethods
232
+ # Check whether the object_id +id+ is in the current buffer of objects
233
+ # to be pretty printed. Used to break cycles in chains of objects to be
234
+ # pretty printed.
235
+ #
236
+ # pkg:gem/pp#lib/pp.rb:161
237
+ def check_inspect_key(id); end
238
+
239
+ # A convenience method which is same as follows:
240
+ #
241
+ # text ','
242
+ # breakable
243
+ #
244
+ # pkg:gem/pp#lib/pp.rb:238
245
+ def comma_breakable; end
246
+
247
+ # Yields to a block
248
+ # and preserves the previous set of objects being printed.
249
+ #
250
+ # pkg:gem/pp#lib/pp.rb:147
251
+ def guard_inspect_key; end
252
+
253
+ # A convenience method, like object_group, but also reformats the Object's
254
+ # object_id.
255
+ #
256
+ # pkg:gem/pp#lib/pp.rb:228
257
+ def object_address_group(obj, &block); end
258
+
259
+ # A convenience method which is same as follows:
260
+ #
261
+ # group(1, '#<' + obj.class.name, '>') { ... }
262
+ #
263
+ # pkg:gem/pp#lib/pp.rb:222
264
+ def object_group(obj, &block); end
265
+
266
+ # Removes an object from the set of objects being pretty printed.
267
+ #
268
+ # pkg:gem/pp#lib/pp.rb:173
269
+ def pop_inspect_key(id); end
270
+
271
+ # Adds +obj+ to the pretty printing buffer
272
+ # using Object#pretty_print or Object#pretty_print_cycle.
273
+ #
274
+ # Object#pretty_print_cycle is used when +obj+ is already
275
+ # printed, a.k.a the object reference chain has a cycle.
276
+ #
277
+ # pkg:gem/pp#lib/pp.rb:200
278
+ def pp(obj); end
279
+
280
+ # A pretty print for a Hash
281
+ #
282
+ # pkg:gem/pp#lib/pp.rb:302
283
+ def pp_hash(obj); end
284
+
285
+ # A pretty print for a pair of Hash
286
+ #
287
+ # pkg:gem/pp#lib/pp.rb:314
288
+ def pp_hash_pair(k, v); end
289
+
290
+ # A present standard failsafe for pretty printing any given Object
291
+ #
292
+ # pkg:gem/pp#lib/pp.rb:286
293
+ def pp_object(obj); end
294
+
295
+ # Adds the object_id +id+ to the set of objects being pretty printed, so
296
+ # as to not repeat objects.
297
+ #
298
+ # pkg:gem/pp#lib/pp.rb:168
299
+ def push_inspect_key(id); end
300
+
301
+ # Adds a separated list.
302
+ # The list is separated by comma with breakable space, by default.
303
+ #
304
+ # #seplist iterates the +list+ using +iter_method+.
305
+ # It yields each object to the block given for #seplist.
306
+ # The procedure +separator_proc+ is called between each yields.
307
+ #
308
+ # If the iteration is zero times, +separator_proc+ is not called at all.
309
+ #
310
+ # If +separator_proc+ is nil or not given,
311
+ # +lambda { comma_breakable }+ is used.
312
+ # If +iter_method+ is not given, :each is used.
313
+ #
314
+ # For example, following 3 code fragments has similar effect.
315
+ #
316
+ # q.seplist([1,2,3]) {|v| xxx v }
317
+ #
318
+ # q.seplist([1,2,3], lambda { q.comma_breakable }, :each) {|v| xxx v }
319
+ #
320
+ # xxx 1
321
+ # q.comma_breakable
322
+ # xxx 2
323
+ # q.comma_breakable
324
+ # xxx 3
325
+ #
326
+ # pkg:gem/pp#lib/pp.rb:267
327
+ def seplist(list, sep = T.unsafe(nil), iter_method = T.unsafe(nil)); end
328
+
329
+ private
330
+
331
+ # pkg:gem/pp#lib/pp.rb:177
332
+ def guard_inspect(object); end
333
+ end
334
+
335
+ # pkg:gem/pp#lib/pp.rb:280
336
+ PP::PPMethods::EMPTY_KWHASH = T.let(T.unsafe(nil), Hash)
337
+
338
+ class PP::SingleLine < ::PrettyPrint::SingleLine
339
+ include ::PP::PPMethods
340
+ end
341
+
342
+ # The version string
343
+ #
344
+ # pkg:gem/pp#lib/pp.rb:67
345
+ PP::VERSION = T.let(T.unsafe(nil), String)
346
+
347
+ class Range
348
+ include ::Enumerable
349
+
350
+ # pkg:gem/pp#lib/pp.rb:529
351
+ def pretty_print(q); end
352
+ end
353
+
354
+ class RubyVM::AbstractSyntaxTree::Node
355
+ # pkg:gem/pp#lib/pp.rb:679
356
+ def pretty_print(q); end
357
+
358
+ # pkg:gem/pp#lib/pp.rb:666
359
+ def pretty_print_children(q, names = T.unsafe(nil)); end
360
+ end
361
+
362
+ class String
363
+ include ::Comparable
364
+
365
+ # pkg:gem/pp#lib/pp.rb:541
366
+ def pretty_print(q); end
367
+ end
368
+
369
+ class Struct
370
+ include ::Enumerable
371
+
372
+ # pkg:gem/pp#lib/pp.rb:468
373
+ def pretty_print(q); end
374
+
375
+ # pkg:gem/pp#lib/pp.rb:482
376
+ def pretty_print_cycle(q); end
377
+ end