tsumanne 0.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.rspec +3 -0
- data/.rubocop.yml +32 -0
- data/.ruby-version +1 -0
- data/LICENSE.txt +21 -0
- data/README.md +31 -0
- data/Rakefile +45 -0
- data/lib/tsumanne/version.rb +7 -0
- data/lib/tsumanne.rb +128 -0
- data/sorbet/config +4 -0
- data/sorbet/rbi/annotations/rainbow.rbi +269 -0
- data/sorbet/rbi/gems/ast@2.4.2.rbi +584 -0
- data/sorbet/rbi/gems/base64@0.1.1.rbi +172 -0
- data/sorbet/rbi/gems/diff-lcs@1.5.0.rbi +1083 -0
- data/sorbet/rbi/gems/erubi@1.12.0.rbi +145 -0
- data/sorbet/rbi/gems/ffi-compiler@1.0.1.rbi +206 -0
- data/sorbet/rbi/gems/ffi@1.15.5.rbi +1994 -0
- data/sorbet/rbi/gems/http-parser@1.2.3.rbi +422 -0
- data/sorbet/rbi/gems/json@2.6.3.rbi +1533 -0
- data/sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi +14237 -0
- data/sorbet/rbi/gems/mhtml@0.1.6.rbi +353 -0
- data/sorbet/rbi/gems/netrc@0.11.0.rbi +158 -0
- data/sorbet/rbi/gems/parallel@1.23.0.rbi +273 -0
- data/sorbet/rbi/gems/parser@3.2.2.3.rbi +7253 -0
- data/sorbet/rbi/gems/prettier_print@1.2.1.rbi +951 -0
- data/sorbet/rbi/gems/racc@1.7.1.rbi +161 -0
- data/sorbet/rbi/gems/rainbow@3.1.1.rbi +402 -0
- data/sorbet/rbi/gems/rake@13.0.6.rbi +3024 -0
- data/sorbet/rbi/gems/rbi@0.0.17.rbi +2967 -0
- data/sorbet/rbi/gems/regexp_parser@2.8.1.rbi +3749 -0
- data/sorbet/rbi/gems/rexml@3.2.6.rbi +4781 -0
- data/sorbet/rbi/gems/rspec-core@3.12.2.rbi +10805 -0
- data/sorbet/rbi/gems/rspec-expectations@3.12.3.rbi +8100 -0
- data/sorbet/rbi/gems/rspec-mocks@3.12.6.rbi +5310 -0
- data/sorbet/rbi/gems/rspec-support@3.12.1.rbi +1609 -0
- data/sorbet/rbi/gems/rspec@3.12.0.rbi +82 -0
- data/sorbet/rbi/gems/rubocop-ast@1.29.0.rbi +7144 -0
- data/sorbet/rbi/gems/rubocop-capybara@2.18.0.rbi +827 -0
- data/sorbet/rbi/gems/rubocop-factory_bot@2.23.1.rbi +812 -0
- data/sorbet/rbi/gems/rubocop-performance@1.19.0.rbi +3157 -0
- data/sorbet/rbi/gems/rubocop-rake@0.6.0.rbi +328 -0
- data/sorbet/rbi/gems/rubocop-rspec@2.23.2.rbi +7691 -0
- data/sorbet/rbi/gems/rubocop-sorbet@0.7.3.rbi +1226 -0
- data/sorbet/rbi/gems/rubocop@1.56.2.rbi +56541 -0
- data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +1317 -0
- data/sorbet/rbi/gems/spoom@1.2.3.rbi +3199 -0
- data/sorbet/rbi/gems/syntax_tree@6.1.1.rbi +22855 -0
- data/sorbet/rbi/gems/tapioca@0.11.8.rbi +3329 -0
- data/sorbet/rbi/gems/thor@1.2.2.rbi +3965 -0
- data/sorbet/rbi/gems/unicode-display_width@2.4.2.rbi +65 -0
- data/sorbet/rbi/gems/unparser@0.6.8.rbi +4525 -0
- data/sorbet/rbi/gems/yard-sorbet@0.8.1.rbi +425 -0
- data/sorbet/rbi/gems/yard@0.9.34.rbi +18219 -0
- data/sorbet/tapioca/config.yml +13 -0
- data/sorbet/tapioca/require.rb +4 -0
- metadata +254 -0
@@ -0,0 +1,145 @@
|
|
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
|
+
# source://erubi//lib/erubi.rb#3
|
8
|
+
module Erubi
|
9
|
+
class << self
|
10
|
+
def h(_arg0); end
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
# source://erubi//lib/erubi.rb#54
|
15
|
+
class Erubi::Engine
|
16
|
+
# Initialize a new Erubi::Engine. Options:
|
17
|
+
# +:bufval+ :: The value to use for the buffer variable, as a string (default <tt>'::String.new'</tt>).
|
18
|
+
# +:bufvar+ :: The variable name to use for the buffer variable, as a string.
|
19
|
+
# +:chain_appends+ :: Whether to chain <tt><<</t> calls to the buffer variable. Offers better
|
20
|
+
# performance, but can cause issues when the buffer variable is reassigned during
|
21
|
+
# template rendering (default +false+).
|
22
|
+
# +:ensure+ :: Wrap the template in a begin/ensure block restoring the previous value of bufvar.
|
23
|
+
# +:escapefunc+ :: The function to use for escaping, as a string (default: <tt>'::Erubi.h'</tt>).
|
24
|
+
# +:escape+ :: Whether to make <tt><%=</tt> escape by default, and <tt><%==</tt> not escape by default.
|
25
|
+
# +:escape_html+ :: Same as +:escape+, with lower priority.
|
26
|
+
# +:filename+ :: The filename for the template.
|
27
|
+
# the resulting source code. Note this may cause problems if you are wrapping the resulting
|
28
|
+
# source code in other code, because the magic comment only has an effect at the beginning of
|
29
|
+
# the file, and having the magic comment later in the file can trigger warnings.
|
30
|
+
# +:freeze_template_literals+ :: Whether to suffix all literal strings for template code with <tt>.freeze</tt>
|
31
|
+
# (default: +true+ on Ruby 2.1+, +false+ on Ruby 2.0 and older).
|
32
|
+
# Can be set to +false+ on Ruby 2.3+ when frozen string literals are enabled
|
33
|
+
# in order to improve performance.
|
34
|
+
# +:literal_prefix+ :: The prefix to output when using escaped tag delimiters (default <tt>'<%'</tt>).
|
35
|
+
# +:literal_postfix+ :: The postfix to output when using escaped tag delimiters (default <tt>'%>'</tt>).
|
36
|
+
# +:outvar+ :: Same as +:bufvar+, with lower priority.
|
37
|
+
# +:postamble+ :: The postamble for the template, by default returns the resulting source code.
|
38
|
+
# +:preamble+ :: The preamble for the template, by default initializes the buffer variable.
|
39
|
+
# +:regexp+ :: The regexp to use for scanning.
|
40
|
+
# +:src+ :: The initial value to use for the source code, an empty string by default.
|
41
|
+
# +:trim+ :: Whether to trim leading and trailing whitespace, true by default.
|
42
|
+
#
|
43
|
+
# @return [Engine] a new instance of Engine
|
44
|
+
#
|
45
|
+
# source://erubi//lib/erubi.rb#94
|
46
|
+
def initialize(input, properties = T.unsafe(nil)); end
|
47
|
+
|
48
|
+
# The variable name used for the buffer variable.
|
49
|
+
#
|
50
|
+
# source://erubi//lib/erubi.rb#65
|
51
|
+
def bufvar; end
|
52
|
+
|
53
|
+
# The filename of the template, if one was given.
|
54
|
+
#
|
55
|
+
# source://erubi//lib/erubi.rb#62
|
56
|
+
def filename; end
|
57
|
+
|
58
|
+
# The frozen ruby source code generated from the template, which can be evaled.
|
59
|
+
#
|
60
|
+
# source://erubi//lib/erubi.rb#59
|
61
|
+
def src; end
|
62
|
+
|
63
|
+
private
|
64
|
+
|
65
|
+
# Add ruby code to the template
|
66
|
+
#
|
67
|
+
# source://erubi//lib/erubi.rb#226
|
68
|
+
def add_code(code); end
|
69
|
+
|
70
|
+
# Add the given ruby expression result to the template,
|
71
|
+
# escaping it based on the indicator given and escape flag.
|
72
|
+
#
|
73
|
+
# source://erubi//lib/erubi.rb#235
|
74
|
+
def add_expression(indicator, code); end
|
75
|
+
|
76
|
+
# Add the result of Ruby expression to the template
|
77
|
+
#
|
78
|
+
# source://erubi//lib/erubi.rb#244
|
79
|
+
def add_expression_result(code); end
|
80
|
+
|
81
|
+
# Add the escaped result of Ruby expression to the template
|
82
|
+
#
|
83
|
+
# source://erubi//lib/erubi.rb#249
|
84
|
+
def add_expression_result_escaped(code); end
|
85
|
+
|
86
|
+
# Add the given postamble to the src. Can be overridden in subclasses
|
87
|
+
# to make additional changes to src that depend on the current state.
|
88
|
+
#
|
89
|
+
# source://erubi//lib/erubi.rb#255
|
90
|
+
def add_postamble(postamble); end
|
91
|
+
|
92
|
+
# Add raw text to the template. Modifies argument if argument is mutable as a memory optimization.
|
93
|
+
# Must be called with a string, cannot be called with nil (Rails's subclass depends on it).
|
94
|
+
#
|
95
|
+
# source://erubi//lib/erubi.rb#213
|
96
|
+
def add_text(text); end
|
97
|
+
|
98
|
+
# Raise an exception, as the base engine class does not support handling other indicators.
|
99
|
+
#
|
100
|
+
# @raise [ArgumentError]
|
101
|
+
#
|
102
|
+
# source://erubi//lib/erubi.rb#261
|
103
|
+
def handle(indicator, code, tailch, rspace, lspace); end
|
104
|
+
|
105
|
+
# Make sure that any current expression has been terminated.
|
106
|
+
# The default is to terminate all expressions, but when
|
107
|
+
# the chain_appends option is used, expressions may not be
|
108
|
+
# terminated.
|
109
|
+
#
|
110
|
+
# source://erubi//lib/erubi.rb#289
|
111
|
+
def terminate_expression; end
|
112
|
+
|
113
|
+
# Make sure the buffer variable is the target of the next append
|
114
|
+
# before yielding to the block. Mark that the buffer is the target
|
115
|
+
# of the next append after the block executes.
|
116
|
+
#
|
117
|
+
# This method should only be called if the block will result in
|
118
|
+
# code where << will append to the bufvar.
|
119
|
+
#
|
120
|
+
# source://erubi//lib/erubi.rb#271
|
121
|
+
def with_buffer; end
|
122
|
+
end
|
123
|
+
|
124
|
+
# The default regular expression used for scanning.
|
125
|
+
#
|
126
|
+
# source://erubi//lib/erubi.rb#56
|
127
|
+
Erubi::Engine::DEFAULT_REGEXP = T.let(T.unsafe(nil), Regexp)
|
128
|
+
|
129
|
+
# source://erubi//lib/erubi.rb#17
|
130
|
+
Erubi::FREEZE_TEMPLATE_LITERALS = T.let(T.unsafe(nil), TrueClass)
|
131
|
+
|
132
|
+
# source://erubi//lib/erubi.rb#15
|
133
|
+
Erubi::MATCH_METHOD = T.let(T.unsafe(nil), Symbol)
|
134
|
+
|
135
|
+
# source://erubi//lib/erubi.rb#8
|
136
|
+
Erubi::RANGE_FIRST = T.let(T.unsafe(nil), Integer)
|
137
|
+
|
138
|
+
# source://erubi//lib/erubi.rb#9
|
139
|
+
Erubi::RANGE_LAST = T.let(T.unsafe(nil), Integer)
|
140
|
+
|
141
|
+
# source://erubi//lib/erubi.rb#16
|
142
|
+
Erubi::SKIP_DEFINED_FOR_INSTANCE_VARIABLE = T.let(T.unsafe(nil), TrueClass)
|
143
|
+
|
144
|
+
# source://erubi//lib/erubi.rb#4
|
145
|
+
Erubi::VERSION = T.let(T.unsafe(nil), String)
|
@@ -0,0 +1,206 @@
|
|
1
|
+
# typed: true
|
2
|
+
|
3
|
+
# DO NOT EDIT MANUALLY
|
4
|
+
# This is an autogenerated file for types exported from the `ffi-compiler` gem.
|
5
|
+
# Please instead update this file by running `bin/tapioca gem ffi-compiler`.
|
6
|
+
|
7
|
+
# source://ffi-compiler//lib/ffi-compiler/loader.rb#5
|
8
|
+
module FFI
|
9
|
+
class << self
|
10
|
+
# source://ffi/1.15.5/lib/ffi/types.rb#45
|
11
|
+
def add_typedef(old, add); end
|
12
|
+
|
13
|
+
# source://ffi/1.15.5/lib/ffi/errno.rb#34
|
14
|
+
def errno; end
|
15
|
+
|
16
|
+
# source://ffi/1.15.5/lib/ffi/errno.rb#40
|
17
|
+
def errno=(error); end
|
18
|
+
|
19
|
+
# @raise [TypeError]
|
20
|
+
#
|
21
|
+
# source://ffi/1.15.5/lib/ffi/types.rb#56
|
22
|
+
def find_type(name, type_map = T.unsafe(nil)); end
|
23
|
+
|
24
|
+
# source://ffi/1.15.5/lib/ffi/library.rb#44
|
25
|
+
def map_library_name(lib); end
|
26
|
+
|
27
|
+
# source://ffi/1.15.5/lib/ffi/types.rb#176
|
28
|
+
def type_size(type); end
|
29
|
+
|
30
|
+
# source://ffi/1.15.5/lib/ffi/types.rb#40
|
31
|
+
def typedef(old, add); end
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
class FFI::ArrayType < ::FFI::Type
|
36
|
+
def initialize(_arg0, _arg1); end
|
37
|
+
|
38
|
+
def elem_type; end
|
39
|
+
def length; end
|
40
|
+
end
|
41
|
+
|
42
|
+
class FFI::Buffer < ::FFI::AbstractMemory
|
43
|
+
def initialize(*_arg0); end
|
44
|
+
|
45
|
+
def +(_arg0); end
|
46
|
+
def inspect; end
|
47
|
+
def length; end
|
48
|
+
def order(*_arg0); end
|
49
|
+
def slice(_arg0, _arg1); end
|
50
|
+
|
51
|
+
private
|
52
|
+
|
53
|
+
def initialize_copy(_arg0); end
|
54
|
+
|
55
|
+
class << self
|
56
|
+
def alloc_in(*_arg0); end
|
57
|
+
def alloc_inout(*_arg0); end
|
58
|
+
def alloc_out(*_arg0); end
|
59
|
+
def new_in(*_arg0); end
|
60
|
+
def new_inout(*_arg0); end
|
61
|
+
def new_out(*_arg0); end
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
# source://ffi-compiler//lib/ffi-compiler/platform.rb#1
|
66
|
+
module FFI::Compiler; end
|
67
|
+
|
68
|
+
# source://ffi-compiler//lib/ffi-compiler/loader.rb#7
|
69
|
+
module FFI::Compiler::Loader
|
70
|
+
class << self
|
71
|
+
# source://ffi-compiler//lib/ffi-compiler/loader.rb#24
|
72
|
+
def caller_path(line = T.unsafe(nil)); end
|
73
|
+
|
74
|
+
# @raise [LoadError]
|
75
|
+
#
|
76
|
+
# source://ffi-compiler//lib/ffi-compiler/loader.rb#8
|
77
|
+
def find(name, start_path = T.unsafe(nil)); end
|
78
|
+
end
|
79
|
+
end
|
80
|
+
|
81
|
+
# source://ffi-compiler//lib/ffi-compiler/platform.rb#2
|
82
|
+
class FFI::Compiler::Platform
|
83
|
+
# source://ffi-compiler//lib/ffi-compiler/platform.rb#13
|
84
|
+
def arch; end
|
85
|
+
|
86
|
+
# @return [Boolean]
|
87
|
+
#
|
88
|
+
# source://ffi-compiler//lib/ffi-compiler/platform.rb#25
|
89
|
+
def mac?; end
|
90
|
+
|
91
|
+
# source://ffi-compiler//lib/ffi-compiler/platform.rb#9
|
92
|
+
def map_library_name(name); end
|
93
|
+
|
94
|
+
# source://ffi-compiler//lib/ffi-compiler/platform.rb#21
|
95
|
+
def name; end
|
96
|
+
|
97
|
+
# source://ffi-compiler//lib/ffi-compiler/platform.rb#17
|
98
|
+
def os; end
|
99
|
+
|
100
|
+
class << self
|
101
|
+
# source://ffi-compiler//lib/ffi-compiler/platform.rb#5
|
102
|
+
def system; end
|
103
|
+
end
|
104
|
+
end
|
105
|
+
|
106
|
+
# source://ffi-compiler//lib/ffi-compiler/platform.rb#3
|
107
|
+
FFI::Compiler::Platform::LIBSUFFIX = T.let(T.unsafe(nil), String)
|
108
|
+
|
109
|
+
class FFI::DynamicLibrary
|
110
|
+
def initialize(_arg0, _arg1); end
|
111
|
+
|
112
|
+
def find_function(_arg0); end
|
113
|
+
def find_symbol(_arg0); end
|
114
|
+
def find_variable(_arg0); end
|
115
|
+
def last_error; end
|
116
|
+
def name; end
|
117
|
+
|
118
|
+
class << self
|
119
|
+
def last_error; end
|
120
|
+
def open(_arg0, _arg1); end
|
121
|
+
end
|
122
|
+
end
|
123
|
+
|
124
|
+
class FFI::DynamicLibrary::Symbol < ::FFI::Pointer
|
125
|
+
def inspect; end
|
126
|
+
|
127
|
+
private
|
128
|
+
|
129
|
+
def initialize_copy(_arg0); end
|
130
|
+
end
|
131
|
+
|
132
|
+
class FFI::Function < ::FFI::Pointer
|
133
|
+
# @return [Function] a new instance of Function
|
134
|
+
def initialize(*_arg0); end
|
135
|
+
|
136
|
+
def attach(_arg0, _arg1); end
|
137
|
+
def autorelease; end
|
138
|
+
def autorelease=(_arg0); end
|
139
|
+
def autorelease?; end
|
140
|
+
def call(*_arg0); end
|
141
|
+
def free; end
|
142
|
+
|
143
|
+
private
|
144
|
+
|
145
|
+
def initialize_copy(_arg0); end
|
146
|
+
end
|
147
|
+
|
148
|
+
class FFI::FunctionType < ::FFI::Type
|
149
|
+
def initialize(*_arg0); end
|
150
|
+
|
151
|
+
def param_types; end
|
152
|
+
def result_type; end
|
153
|
+
end
|
154
|
+
|
155
|
+
module FFI::LastError
|
156
|
+
private
|
157
|
+
|
158
|
+
def error; end
|
159
|
+
def error=(_arg0); end
|
160
|
+
|
161
|
+
class << self
|
162
|
+
def error; end
|
163
|
+
def error=(_arg0); end
|
164
|
+
end
|
165
|
+
end
|
166
|
+
|
167
|
+
class FFI::MemoryPointer < ::FFI::Pointer
|
168
|
+
def initialize(*_arg0); end
|
169
|
+
|
170
|
+
class << self
|
171
|
+
def from_string(_arg0); end
|
172
|
+
end
|
173
|
+
end
|
174
|
+
|
175
|
+
module FFI::NativeType; end
|
176
|
+
class FFI::NullPointerError < ::RuntimeError; end
|
177
|
+
|
178
|
+
class FFI::StructByValue < ::FFI::Type
|
179
|
+
# @return [StructByValue] a new instance of StructByValue
|
180
|
+
def initialize(_arg0); end
|
181
|
+
|
182
|
+
def layout; end
|
183
|
+
def struct_class; end
|
184
|
+
end
|
185
|
+
|
186
|
+
class FFI::Type
|
187
|
+
# @return [Type] a new instance of Type
|
188
|
+
def initialize(_arg0); end
|
189
|
+
|
190
|
+
def alignment; end
|
191
|
+
def inspect; end
|
192
|
+
def size; end
|
193
|
+
end
|
194
|
+
|
195
|
+
class FFI::Type::Builtin < ::FFI::Type
|
196
|
+
def inspect; end
|
197
|
+
end
|
198
|
+
|
199
|
+
class FFI::Type::Mapped < ::FFI::Type
|
200
|
+
def initialize(_arg0); end
|
201
|
+
|
202
|
+
def from_native(*_arg0); end
|
203
|
+
def native_type; end
|
204
|
+
def to_native(*_arg0); end
|
205
|
+
def type; end
|
206
|
+
end
|