e621stream 0.0.0
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/LICENSE +21 -0
- data/README.md +35 -0
- data/lib/e621stream/client/options.rb +20 -0
- data/lib/e621stream/client.rb +211 -0
- data/lib/e621stream/close_codes.rb +23 -0
- data/lib/e621stream/event.rb +24 -0
- data/lib/e621stream/events.rb +29 -0
- data/lib/e621stream/stream_error.rb +18 -0
- data/lib/e621stream/version.rb +5 -0
- data/lib/e621stream.rb +18 -0
- data/sorbet/config +6 -0
- data/sorbet/rbi/annotations/.gitattributes +1 -0
- data/sorbet/rbi/annotations/minitest.rbi +120 -0
- data/sorbet/rbi/annotations/rainbow.rbi +269 -0
- data/sorbet/rbi/gems/.gitattributes +1 -0
- data/sorbet/rbi/gems/ast@2.4.3.rbi +550 -0
- data/sorbet/rbi/gems/async-http@0.105.0.rbi +1649 -0
- data/sorbet/rbi/gems/async-pool@0.12.0.rbi +219 -0
- data/sorbet/rbi/gems/async-websocket@0.30.2.rbi +271 -0
- data/sorbet/rbi/gems/async@2.46.0.rbi +2193 -0
- data/sorbet/rbi/gems/benchmark@0.5.0.rbi +495 -0
- data/sorbet/rbi/gems/console@1.38.0.rbi +1552 -0
- data/sorbet/rbi/gems/erb@6.0.7.rbi +1581 -0
- data/sorbet/rbi/gems/erubi@1.13.1.rbi +153 -0
- data/sorbet/rbi/gems/fiber-annotation@0.2.0.rbi +62 -0
- data/sorbet/rbi/gems/fiber-local@1.1.0.rbi +36 -0
- data/sorbet/rbi/gems/fiber-storage@1.0.1.rbi +43 -0
- data/sorbet/rbi/gems/io-console@0.9.5.rbi +9 -0
- data/sorbet/rbi/gems/io-endpoint@0.19.0.rbi +1079 -0
- data/sorbet/rbi/gems/io-event@1.22.3.rbi +971 -0
- data/sorbet/rbi/gems/io-stream@0.14.0.rbi +805 -0
- data/sorbet/rbi/gems/json@3.1.0.rbi +1929 -0
- data/sorbet/rbi/gems/language_server-protocol@3.17.0.6.rbi +9 -0
- data/sorbet/rbi/gems/lint_roller@1.1.0.rbi +189 -0
- data/sorbet/rbi/gems/logger@1.7.0.rbi +896 -0
- data/sorbet/rbi/gems/minitest@5.27.0.rbi +1499 -0
- data/sorbet/rbi/gems/netrc@0.11.0.rbi +147 -0
- data/sorbet/rbi/gems/openssl@4.0.2.rbi +4366 -0
- data/sorbet/rbi/gems/parallel@2.3.0.rbi +332 -0
- data/sorbet/rbi/gems/parser@3.3.13.0.rbi +5146 -0
- data/sorbet/rbi/gems/pp@0.6.4.rbi +373 -0
- data/sorbet/rbi/gems/prettyprint@0.2.1.rbi +476 -0
- data/sorbet/rbi/gems/prism@1.9.0.rbi +42213 -0
- data/sorbet/rbi/gems/protocol-hpack@1.5.1.rbi +418 -0
- data/sorbet/rbi/gems/protocol-http1@0.41.1.rbi +894 -0
- data/sorbet/rbi/gems/protocol-http2@0.29.2.rbi +2277 -0
- data/sorbet/rbi/gems/protocol-http@0.72.1.rbi +3801 -0
- data/sorbet/rbi/gems/protocol-rack@0.23.0.rbi +9 -0
- data/sorbet/rbi/gems/protocol-url@0.19.0.rbi +9 -0
- data/sorbet/rbi/gems/protocol-websocket@0.21.3.rbi +1087 -0
- data/sorbet/rbi/gems/racc@1.8.1.rbi +169 -0
- data/sorbet/rbi/gems/rack@3.2.8.rbi +9 -0
- data/sorbet/rbi/gems/rainbow@3.1.1.rbi +362 -0
- data/sorbet/rbi/gems/rake@13.4.2.rbi +3127 -0
- data/sorbet/rbi/gems/rbi@0.5.0.rbi +5875 -0
- data/sorbet/rbi/gems/rbs@4.2.0.rbi +7133 -0
- data/sorbet/rbi/gems/rdoc@8.1.0.rbi +9 -0
- data/sorbet/rbi/gems/regexp_parser@2.13.1.rbi +3500 -0
- data/sorbet/rbi/gems/reline@0.7.0.rbi +2449 -0
- data/sorbet/rbi/gems/require-hooks@0.5.1.rbi +152 -0
- data/sorbet/rbi/gems/rexml@3.4.4.rbi +4905 -0
- data/sorbet/rbi/gems/rubocop-ast@1.51.0.rbi +7230 -0
- data/sorbet/rbi/gems/rubocop-rake@0.7.1.rbi +314 -0
- data/sorbet/rbi/gems/rubocop@1.92.2.rbi +69094 -0
- data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +988 -0
- data/sorbet/rbi/gems/rubydex@0.4.4.rbi +1620 -0
- data/sorbet/rbi/gems/spoom@1.8.13.rbi +7380 -0
- data/sorbet/rbi/gems/tapioca@0.20.0.rbi +3752 -0
- data/sorbet/rbi/gems/thor@1.5.0.rbi +3870 -0
- data/sorbet/rbi/gems/tsort@0.2.0.rbi +389 -0
- data/sorbet/rbi/gems/unicode-display_width@3.3.0.rbi +130 -0
- data/sorbet/rbi/gems/unicode-emoji@4.3.0.rbi +254 -0
- data/sorbet/rbi/gems/zeitwerk@2.8.3.rbi +1178 -0
- data/sorbet/tapioca/config.yml +13 -0
- data/sorbet/tapioca/require.rb +4 -0
- metadata +175 -0
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
|
|
3
|
+
# DO NOT EDIT MANUALLY
|
|
4
|
+
# This is an autogenerated file for types exported from the `erubi` gem.
|
|
5
|
+
# Please instead update this file by running `bin/tapioca gem erubi`.
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
# pkg:gem/erubi#lib/erubi.rb:3
|
|
9
|
+
module Erubi
|
|
10
|
+
private
|
|
11
|
+
|
|
12
|
+
# Escape characters with their HTML/XML equivalents.
|
|
13
|
+
#
|
|
14
|
+
# pkg:gem/erubi#lib/erubi.rb:22
|
|
15
|
+
def h(_arg0); end
|
|
16
|
+
|
|
17
|
+
class << self
|
|
18
|
+
# pkg:gem/erubi#lib/erubi.rb:49
|
|
19
|
+
def h(_arg0); end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
# pkg:gem/erubi#lib/erubi.rb:51
|
|
24
|
+
class Erubi::Engine
|
|
25
|
+
# Initialize a new Erubi::Engine. Options:
|
|
26
|
+
# +:bufval+ :: The value to use for the buffer variable, as a string (default <tt>'::String.new'</tt>).
|
|
27
|
+
# +:bufvar+ :: The variable name to use for the buffer variable, as a string.
|
|
28
|
+
# +:chain_appends+ :: Whether to chain <tt><<</t> calls to the buffer variable. Offers better
|
|
29
|
+
# performance, but can cause issues when the buffer variable is reassigned during
|
|
30
|
+
# template rendering (default +false+).
|
|
31
|
+
# +:ensure+ :: Wrap the template in a begin/ensure block restoring the previous value of bufvar.
|
|
32
|
+
# +:escapefunc+ :: The function to use for escaping, as a string (default: <tt>'::Erubi.h'</tt>).
|
|
33
|
+
# +:escape+ :: Whether to make <tt><%=</tt> escape by default, and <tt><%==</tt> not escape by default.
|
|
34
|
+
# +:escape_html+ :: Same as +:escape+, with lower priority.
|
|
35
|
+
# +:filename+ :: The filename for the template.
|
|
36
|
+
# the resulting source code. Note this may cause problems if you are wrapping the resulting
|
|
37
|
+
# source code in other code, because the magic comment only has an effect at the beginning of
|
|
38
|
+
# the file, and having the magic comment later in the file can trigger warnings.
|
|
39
|
+
# +:freeze_template_literals+ :: Whether to suffix all literal strings for template code with <tt>.freeze</tt>
|
|
40
|
+
# (default: +true+ on Ruby 2.1+, +false+ on Ruby 2.0 and older).
|
|
41
|
+
# Can be set to +false+ on Ruby 2.3+ when frozen string literals are enabled
|
|
42
|
+
# in order to improve performance.
|
|
43
|
+
# +:literal_prefix+ :: The prefix to output when using escaped tag delimiters (default <tt>'<%'</tt>).
|
|
44
|
+
# +:literal_postfix+ :: The postfix to output when using escaped tag delimiters (default <tt>'%>'</tt>).
|
|
45
|
+
# +:outvar+ :: Same as +:bufvar+, with lower priority.
|
|
46
|
+
# +:postamble+ :: The postamble for the template, by default returns the resulting source code.
|
|
47
|
+
# +:preamble+ :: The preamble for the template, by default initializes the buffer variable.
|
|
48
|
+
# +:regexp+ :: The regexp to use for scanning.
|
|
49
|
+
# +:src+ :: The initial value to use for the source code, an empty string by default.
|
|
50
|
+
# +:trim+ :: Whether to trim leading and trailing whitespace, true by default.
|
|
51
|
+
#
|
|
52
|
+
# pkg:gem/erubi#lib/erubi.rb:91
|
|
53
|
+
def initialize(input, properties = T.unsafe(nil)); end
|
|
54
|
+
|
|
55
|
+
# The variable name used for the buffer variable.
|
|
56
|
+
#
|
|
57
|
+
# pkg:gem/erubi#lib/erubi.rb:62
|
|
58
|
+
def bufvar; end
|
|
59
|
+
|
|
60
|
+
# The filename of the template, if one was given.
|
|
61
|
+
#
|
|
62
|
+
# pkg:gem/erubi#lib/erubi.rb:59
|
|
63
|
+
def filename; end
|
|
64
|
+
|
|
65
|
+
# The frozen ruby source code generated from the template, which can be evaled.
|
|
66
|
+
#
|
|
67
|
+
# pkg:gem/erubi#lib/erubi.rb:56
|
|
68
|
+
def src; end
|
|
69
|
+
|
|
70
|
+
private
|
|
71
|
+
|
|
72
|
+
# pkg:gem/erubi#lib/erubi.rb:209
|
|
73
|
+
def _dup_string_if_frozen(string); end
|
|
74
|
+
|
|
75
|
+
# Add ruby code to the template
|
|
76
|
+
#
|
|
77
|
+
# pkg:gem/erubi#lib/erubi.rb:232
|
|
78
|
+
def add_code(code); end
|
|
79
|
+
|
|
80
|
+
# Add the given ruby expression result to the template,
|
|
81
|
+
# escaping it based on the indicator given and escape flag.
|
|
82
|
+
#
|
|
83
|
+
# pkg:gem/erubi#lib/erubi.rb:241
|
|
84
|
+
def add_expression(indicator, code); end
|
|
85
|
+
|
|
86
|
+
# Add the result of Ruby expression to the template
|
|
87
|
+
#
|
|
88
|
+
# pkg:gem/erubi#lib/erubi.rb:250
|
|
89
|
+
def add_expression_result(code); end
|
|
90
|
+
|
|
91
|
+
# Add the escaped result of Ruby expression to the template
|
|
92
|
+
#
|
|
93
|
+
# pkg:gem/erubi#lib/erubi.rb:255
|
|
94
|
+
def add_expression_result_escaped(code); end
|
|
95
|
+
|
|
96
|
+
# Add the given postamble to the src. Can be overridden in subclasses
|
|
97
|
+
# to make additional changes to src that depend on the current state.
|
|
98
|
+
#
|
|
99
|
+
# pkg:gem/erubi#lib/erubi.rb:261
|
|
100
|
+
def add_postamble(postamble); end
|
|
101
|
+
|
|
102
|
+
# Add raw text to the template. Modifies argument if argument is mutable as a memory optimization.
|
|
103
|
+
# Must be called with a string, cannot be called with nil (Rails's subclass depends on it).
|
|
104
|
+
#
|
|
105
|
+
# pkg:gem/erubi#lib/erubi.rb:222
|
|
106
|
+
def add_text(text); end
|
|
107
|
+
|
|
108
|
+
# Raise an exception, as the base engine class does not support handling other indicators.
|
|
109
|
+
#
|
|
110
|
+
# pkg:gem/erubi#lib/erubi.rb:267
|
|
111
|
+
def handle(indicator, code, tailch, rspace, lspace); end
|
|
112
|
+
|
|
113
|
+
# Make sure that any current expression has been terminated.
|
|
114
|
+
# The default is to terminate all expressions, but when
|
|
115
|
+
# the chain_appends option is used, expressions may not be
|
|
116
|
+
# terminated.
|
|
117
|
+
#
|
|
118
|
+
# pkg:gem/erubi#lib/erubi.rb:295
|
|
119
|
+
def terminate_expression; end
|
|
120
|
+
|
|
121
|
+
# Make sure the buffer variable is the target of the next append
|
|
122
|
+
# before yielding to the block. Mark that the buffer is the target
|
|
123
|
+
# of the next append after the block executes.
|
|
124
|
+
#
|
|
125
|
+
# This method should only be called if the block will result in
|
|
126
|
+
# code where << will append to the bufvar.
|
|
127
|
+
#
|
|
128
|
+
# pkg:gem/erubi#lib/erubi.rb:277
|
|
129
|
+
def with_buffer; end
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
# The default regular expression used for scanning.
|
|
133
|
+
#
|
|
134
|
+
# pkg:gem/erubi#lib/erubi.rb:53
|
|
135
|
+
Erubi::Engine::DEFAULT_REGEXP = T.let(T.unsafe(nil), Regexp)
|
|
136
|
+
|
|
137
|
+
# pkg:gem/erubi#lib/erubi.rb:17
|
|
138
|
+
Erubi::FREEZE_TEMPLATE_LITERALS = T.let(T.unsafe(nil), TrueClass)
|
|
139
|
+
|
|
140
|
+
# pkg:gem/erubi#lib/erubi.rb:15
|
|
141
|
+
Erubi::MATCH_METHOD = T.let(T.unsafe(nil), Symbol)
|
|
142
|
+
|
|
143
|
+
# pkg:gem/erubi#lib/erubi.rb:8
|
|
144
|
+
Erubi::RANGE_FIRST = T.let(T.unsafe(nil), Integer)
|
|
145
|
+
|
|
146
|
+
# pkg:gem/erubi#lib/erubi.rb:9
|
|
147
|
+
Erubi::RANGE_LAST = T.let(T.unsafe(nil), Integer)
|
|
148
|
+
|
|
149
|
+
# pkg:gem/erubi#lib/erubi.rb:16
|
|
150
|
+
Erubi::SKIP_DEFINED_FOR_INSTANCE_VARIABLE = T.let(T.unsafe(nil), TrueClass)
|
|
151
|
+
|
|
152
|
+
# pkg:gem/erubi#lib/erubi.rb:4
|
|
153
|
+
Erubi::VERSION = T.let(T.unsafe(nil), String)
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
|
|
3
|
+
# DO NOT EDIT MANUALLY
|
|
4
|
+
# This is an autogenerated file for types exported from the `fiber-annotation` gem.
|
|
5
|
+
# Please instead update this file by running `bin/tapioca gem fiber-annotation`.
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
# Released under the MIT License.
|
|
9
|
+
# Copyright, 2023, by Samuel Williams.
|
|
10
|
+
#
|
|
11
|
+
# pkg:gem/fiber-annotation#lib/fiber/annotation.rb:8
|
|
12
|
+
class Fiber
|
|
13
|
+
include ::Fiber::Annotation
|
|
14
|
+
|
|
15
|
+
# pkg:gem/fiber-annotation#lib/fiber/annotation.rb:13
|
|
16
|
+
def initialize(annotation: T.unsafe(nil), **options, &block); end
|
|
17
|
+
|
|
18
|
+
class << self
|
|
19
|
+
# @scope Fiber
|
|
20
|
+
# @name self.annotate
|
|
21
|
+
# Annotate the current fiber with the given annotation.
|
|
22
|
+
#
|
|
23
|
+
# pkg:gem/fiber-annotation#lib/fiber/annotation.rb:55
|
|
24
|
+
def annotate(*, **, &); end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
# A mechanism for annotating fibers.
|
|
29
|
+
#
|
|
30
|
+
# pkg:gem/fiber-annotation#lib/fiber/annotation.rb:10
|
|
31
|
+
module Fiber::Annotation
|
|
32
|
+
# Annotate the current fiber with the given annotation.
|
|
33
|
+
# @parameter annotation [Object] The annotation to set.
|
|
34
|
+
#
|
|
35
|
+
# pkg:gem/fiber-annotation#lib/fiber/annotation.rb:13
|
|
36
|
+
def initialize(annotation: T.unsafe(nil), **options, &block); end
|
|
37
|
+
|
|
38
|
+
# Annotate the current fiber with the given annotation.
|
|
39
|
+
#
|
|
40
|
+
# If a block is given, the annotation is set for the duration of the block and then restored to the previous value.
|
|
41
|
+
#
|
|
42
|
+
# The block form of this method should only be invoked on the current fiber.
|
|
43
|
+
#
|
|
44
|
+
# @parameter annotation [Object] The annotation to set.
|
|
45
|
+
# @yields {} The block to execute with the given annotation.
|
|
46
|
+
# @returns [Object] The return value of the block.
|
|
47
|
+
#
|
|
48
|
+
# pkg:gem/fiber-annotation#lib/fiber/annotation.rb:31
|
|
49
|
+
def annotate(annotation); end
|
|
50
|
+
|
|
51
|
+
# Get the current annotation.
|
|
52
|
+
# @returns [Object] The current annotation.
|
|
53
|
+
#
|
|
54
|
+
# pkg:gem/fiber-annotation#lib/fiber/annotation.rb:20
|
|
55
|
+
def annotation; end
|
|
56
|
+
|
|
57
|
+
# Get the current annotation.
|
|
58
|
+
# @returns [Object] The current annotation.
|
|
59
|
+
#
|
|
60
|
+
# pkg:gem/fiber-annotation#lib/fiber/annotation.rb:20
|
|
61
|
+
def annotation=(_arg0); end
|
|
62
|
+
end
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
|
|
3
|
+
# DO NOT EDIT MANUALLY
|
|
4
|
+
# This is an autogenerated file for types exported from the `fiber-local` gem.
|
|
5
|
+
# Please instead update this file by running `bin/tapioca gem fiber-local`.
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
# pkg:gem/fiber-local#lib/fiber/local/version.rb:7
|
|
9
|
+
module Fiber::Local
|
|
10
|
+
# Get the current thread-local instance. Create it if required.
|
|
11
|
+
# @returns [Object] The thread-local instance.
|
|
12
|
+
#
|
|
13
|
+
# pkg:gem/fiber-local#lib/fiber/local.rb:33
|
|
14
|
+
def instance; end
|
|
15
|
+
|
|
16
|
+
# Assigns to the fiber-local instance.
|
|
17
|
+
# @parameter instance [Object] The object that will become the thread-local instance.
|
|
18
|
+
#
|
|
19
|
+
# pkg:gem/fiber-local#lib/fiber/local.rb:52
|
|
20
|
+
def instance=(instance); end
|
|
21
|
+
|
|
22
|
+
# Instantiate a new thread-local object.
|
|
23
|
+
# By default, invokes {new} to generate the instance.
|
|
24
|
+
# @returns [Object]
|
|
25
|
+
#
|
|
26
|
+
# pkg:gem/fiber-local#lib/fiber/local.rb:27
|
|
27
|
+
def local; end
|
|
28
|
+
|
|
29
|
+
class << self
|
|
30
|
+
# pkg:gem/fiber-local#lib/fiber/local.rb:11
|
|
31
|
+
def extended(klass); end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# pkg:gem/fiber-local#lib/fiber/local/version.rb:8
|
|
36
|
+
Fiber::Local::VERSION = T.let(T.unsafe(nil), String)
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
|
|
3
|
+
# DO NOT EDIT MANUALLY
|
|
4
|
+
# This is an autogenerated file for types exported from the `fiber-storage` gem.
|
|
5
|
+
# Please instead update this file by running `bin/tapioca gem fiber-storage`.
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
# @namespace
|
|
9
|
+
#
|
|
10
|
+
# pkg:gem/fiber-storage#lib/fiber/storage.rb:9
|
|
11
|
+
class Fiber
|
|
12
|
+
class << self
|
|
13
|
+
# Whether the fiber storage has buggy keys. Unfortunately the original implementation of fiber storage was broken, this method detects the bug and is used to apply a fix.
|
|
14
|
+
#
|
|
15
|
+
# pkg:gem/fiber-storage#lib/fiber/storage.rb:60
|
|
16
|
+
def __borked_keys__; end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
# Provides compatibility shims for fiber storage.
|
|
21
|
+
#
|
|
22
|
+
# pkg:gem/fiber-storage#lib/fiber/storage.rb:11
|
|
23
|
+
module Fiber::Storage
|
|
24
|
+
# Initialize the fiber with the given storage.
|
|
25
|
+
#
|
|
26
|
+
# pkg:gem/fiber-storage#lib/fiber/storage.rb:13
|
|
27
|
+
def initialize(*arguments, storage: T.unsafe(nil), **options, &block); end
|
|
28
|
+
|
|
29
|
+
# @private
|
|
30
|
+
#
|
|
31
|
+
# pkg:gem/fiber-storage#lib/fiber/storage.rb:37
|
|
32
|
+
def __storage__; end
|
|
33
|
+
|
|
34
|
+
# The storage associated with this fiber.
|
|
35
|
+
#
|
|
36
|
+
# pkg:gem/fiber-storage#lib/fiber/storage.rb:32
|
|
37
|
+
def storage; end
|
|
38
|
+
|
|
39
|
+
# Set the storage associated with this fiber, clearing any previous storage.
|
|
40
|
+
#
|
|
41
|
+
# pkg:gem/fiber-storage#lib/fiber/storage.rb:27
|
|
42
|
+
def storage=(hash); end
|
|
43
|
+
end
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
|
|
3
|
+
# DO NOT EDIT MANUALLY
|
|
4
|
+
# This is an autogenerated file for types exported from the `io-console` gem.
|
|
5
|
+
# Please instead update this file by running `bin/tapioca gem io-console`.
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
# THIS IS AN EMPTY RBI FILE.
|
|
9
|
+
# see https://github.com/Shopify/tapioca#manually-requiring-parts-of-a-gem
|