dry-monads-sorbet 1.1.5 → 1.1.6.pre
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +7 -3
- data/.ruby-version +1 -1
- data/CHANGELOG.md +4 -0
- data/lib/bundled_rbi/dry-monads.rbi +3 -7
- data/lib/dry-monads-sorbet.rb +1 -0
- data/lib/dry-monads-sorbet/railtie.rb +1 -0
- data/lib/dry/monads/sorbet/version.rb +2 -1
- data/sorbet/config +4 -0
- data/sorbet/rbi/gems/activesupport.rbi +1722 -0
- data/sorbet/rbi/gems/ast.rbi +48 -0
- data/sorbet/rbi/gems/byebug.rbi +1041 -0
- data/sorbet/rbi/gems/coderay.rbi +285 -0
- data/sorbet/rbi/gems/concurrent-ruby.rbi +1586 -0
- data/sorbet/rbi/gems/docile.rbi +32 -0
- data/sorbet/rbi/gems/dry-core.rbi +38 -0
- data/sorbet/rbi/gems/dry-equalizer.rbi +26 -0
- data/sorbet/rbi/gems/dry-monads.rbi +510 -0
- data/sorbet/rbi/gems/em-websocket.rbi +225 -0
- data/sorbet/rbi/gems/eventmachine.rbi +489 -0
- data/sorbet/rbi/gems/ffaker.rbi +60 -0
- data/sorbet/rbi/gems/guard.rbi +397 -0
- data/sorbet/rbi/gems/http_parser.rb.rbi +37 -0
- data/sorbet/rbi/gems/i18n.rbi +133 -0
- data/sorbet/rbi/gems/kwalify.rbi +340 -0
- data/sorbet/rbi/gems/listen.rbi +324 -0
- data/sorbet/rbi/gems/lumberjack.rbi +300 -0
- data/sorbet/rbi/gems/method_source.rbi +64 -0
- data/sorbet/rbi/gems/multi_json.rbi +62 -0
- data/sorbet/rbi/gems/nenv.rbi +60 -0
- data/sorbet/rbi/gems/notiffany.rbi +215 -0
- data/sorbet/rbi/gems/parallel.rbi +82 -0
- data/sorbet/rbi/gems/parser.rbi +1846 -0
- data/sorbet/rbi/gems/pry-byebug.rbi +155 -0
- data/sorbet/rbi/gems/pry.rbi +1949 -0
- data/sorbet/rbi/gems/rainbow.rbi +118 -0
- data/sorbet/rbi/gems/rake.rbi +648 -0
- data/sorbet/rbi/gems/rb-fsevent.rbi +31 -0
- data/sorbet/rbi/gems/rb-readline.rbi +767 -0
- data/sorbet/rbi/gems/reek.rbi +1027 -0
- data/sorbet/rbi/gems/regexp_parser.rbi +913 -0
- data/sorbet/rbi/gems/rexml.rbi +605 -0
- data/sorbet/rbi/gems/rspec-core.rbi +1913 -0
- data/sorbet/rbi/gems/rspec-expectations.rbi +1123 -0
- data/sorbet/rbi/gems/rspec-mocks.rbi +1099 -0
- data/sorbet/rbi/gems/rspec-support.rbi +280 -0
- data/sorbet/rbi/gems/rspec.rbi +15 -0
- data/sorbet/rbi/gems/rubocop-ast.rbi +1053 -0
- data/sorbet/rbi/gems/rubocop-rspec.rbi +937 -0
- data/sorbet/rbi/gems/rubocop.rbi +6841 -0
- data/sorbet/rbi/gems/ruby-progressbar.rbi +305 -0
- data/sorbet/rbi/gems/shellany.rbi +29 -0
- data/sorbet/rbi/gems/shoulda-matchers.rbi +1848 -0
- data/sorbet/rbi/gems/simplecov-html.rbi +35 -0
- data/sorbet/rbi/gems/simplecov.rbi +361 -0
- data/sorbet/rbi/gems/sqlite3.rbi +354 -0
- data/sorbet/rbi/gems/stackprof.rbi +52 -0
- data/sorbet/rbi/gems/thor.rbi +32 -0
- data/sorbet/rbi/gems/thread_safe.rbi +82 -0
- data/sorbet/rbi/gems/timecop.rbi +98 -0
- data/sorbet/rbi/gems/tzinfo.rbi +406 -0
- data/sorbet/rbi/gems/unicode-display_width.rbi +17 -0
- data/sorbet/rbi/hidden-definitions/errors.txt +7267 -0
- data/sorbet/rbi/hidden-definitions/hidden.rbi +14661 -0
- data/sorbet/rbi/sorbet-typed/lib/activesupport/>=6.0.0.rc1/activesupport.rbi +23 -0
- data/sorbet/rbi/sorbet-typed/lib/activesupport/all/activesupport.rbi +1431 -0
- data/sorbet/rbi/sorbet-typed/lib/minitest/all/minitest.rbi +108 -0
- data/sorbet/rbi/sorbet-typed/lib/rainbow/all/rainbow.rbi +276 -0
- data/sorbet/rbi/sorbet-typed/lib/rubocop-rspec/~>1.39/rubocop-rspec.rbi +398 -0
- data/sorbet/rbi/sorbet-typed/lib/rubocop/~>0.85/rubocop.rbi +2072 -0
- data/sorbet/rbi/todo.rbi +8 -0
- metadata +71 -8
@@ -0,0 +1,35 @@
|
|
1
|
+
# This file is autogenerated. Do not edit it by hand. Regenerate it with:
|
2
|
+
# srb rbi gems
|
3
|
+
|
4
|
+
# typed: strict
|
5
|
+
#
|
6
|
+
# If you would like to make changes to this file, great! Please create the gem's shim here:
|
7
|
+
#
|
8
|
+
# https://github.com/sorbet/sorbet-typed/new/master?filename=lib/simplecov-html/all/simplecov-html.rbi
|
9
|
+
#
|
10
|
+
# simplecov-html-0.12.2
|
11
|
+
|
12
|
+
module SimpleCov
|
13
|
+
end
|
14
|
+
module SimpleCov::Formatter
|
15
|
+
end
|
16
|
+
class SimpleCov::Formatter::HTMLFormatter
|
17
|
+
def asset_output_path; end
|
18
|
+
def assets_path(name); end
|
19
|
+
def branchable_result?; end
|
20
|
+
def coverage_css_class(covered_percent); end
|
21
|
+
def covered_percent(percent); end
|
22
|
+
def format(result); end
|
23
|
+
def formatted_file_list(title, source_files); end
|
24
|
+
def formatted_source_file(source_file); end
|
25
|
+
def id(source_file); end
|
26
|
+
def initialize; end
|
27
|
+
def line_status?(source_file, line); end
|
28
|
+
def link_to_source_file(source_file); end
|
29
|
+
def output_message(result); end
|
30
|
+
def output_path; end
|
31
|
+
def shortened_filename(source_file); end
|
32
|
+
def strength_css_class(covered_strength); end
|
33
|
+
def template(name); end
|
34
|
+
def timeago(time); end
|
35
|
+
end
|
@@ -0,0 +1,361 @@
|
|
1
|
+
# This file is autogenerated. Do not edit it by hand. Regenerate it with:
|
2
|
+
# srb rbi gems
|
3
|
+
|
4
|
+
# typed: true
|
5
|
+
#
|
6
|
+
# If you would like to make changes to this file, great! Please create the gem's shim here:
|
7
|
+
#
|
8
|
+
# https://github.com/sorbet/sorbet-typed/new/master?filename=lib/simplecov/all/simplecov.rbi
|
9
|
+
#
|
10
|
+
# simplecov-0.18.5
|
11
|
+
|
12
|
+
module SimpleCov
|
13
|
+
def self.adapt_coverage_result; end
|
14
|
+
def self.add_not_loaded_files(result); end
|
15
|
+
def self.at_exit_behavior; end
|
16
|
+
def self.clear_result; end
|
17
|
+
def self.collate(result_filenames, profile = nil, &block); end
|
18
|
+
def self.exit_exception; end
|
19
|
+
def self.exit_status_from_exception; end
|
20
|
+
def self.external_at_exit; end
|
21
|
+
def self.external_at_exit=(arg0); end
|
22
|
+
def self.external_at_exit?; end
|
23
|
+
def self.filtered(files); end
|
24
|
+
def self.final_result_process?; end
|
25
|
+
def self.grouped(files); end
|
26
|
+
def self.initial_setup(profile, &block); end
|
27
|
+
def self.load_adapter(name); end
|
28
|
+
def self.load_profile(name); end
|
29
|
+
def self.lookup_corresponding_ruby_coverage_name(criterion); end
|
30
|
+
def self.minimum_coverage_violated(result); end
|
31
|
+
def self.pid; end
|
32
|
+
def self.pid=(arg0); end
|
33
|
+
def self.process_coverage_result; end
|
34
|
+
def self.process_result(result, exit_status); end
|
35
|
+
def self.remove_useless_results; end
|
36
|
+
def self.report_minimum_violated(violations); end
|
37
|
+
def self.result; end
|
38
|
+
def self.result?; end
|
39
|
+
def self.result_exit_status(result, covered_percent); end
|
40
|
+
def self.result_with_not_loaded_files; end
|
41
|
+
def self.run_exit_tasks!; end
|
42
|
+
def self.running; end
|
43
|
+
def self.running=(arg0); end
|
44
|
+
def self.set_exit_exception; end
|
45
|
+
def self.start(profile = nil, &block); end
|
46
|
+
def self.start_coverage_measurement; end
|
47
|
+
def self.start_coverage_with_criteria; end
|
48
|
+
def self.wait_for_other_processes; end
|
49
|
+
def self.write_last_run(covered_percent); end
|
50
|
+
extend SimpleCov::Configuration
|
51
|
+
end
|
52
|
+
module SimpleCov::Formatter
|
53
|
+
end
|
54
|
+
class SimpleCov::Formatter::MultiFormatter
|
55
|
+
def self.[](*args); end
|
56
|
+
def self.new(formatters = nil); end
|
57
|
+
end
|
58
|
+
module SimpleCov::Formatter::MultiFormatter::InstanceMethods
|
59
|
+
def format(result); end
|
60
|
+
end
|
61
|
+
module SimpleCov::Configuration
|
62
|
+
def adapters; end
|
63
|
+
def add_filter(filter_argument = nil, &filter_proc); end
|
64
|
+
def add_group(group_name, filter_argument = nil, &filter_proc); end
|
65
|
+
def at_exit(&block); end
|
66
|
+
def branch_coverage?; end
|
67
|
+
def branch_coverage_supported?; end
|
68
|
+
def clear_coverage_criteria; end
|
69
|
+
def command_name(name = nil); end
|
70
|
+
def configure(&block); end
|
71
|
+
def coverage_criteria; end
|
72
|
+
def coverage_criterion(criterion = nil); end
|
73
|
+
def coverage_criterion_enabled?(criterion); end
|
74
|
+
def coverage_dir(dir = nil); end
|
75
|
+
def coverage_path; end
|
76
|
+
def coverage_start_arguments_supported?; end
|
77
|
+
def enable_coverage(criterion); end
|
78
|
+
def filters; end
|
79
|
+
def filters=(arg0); end
|
80
|
+
def formatter(formatter = nil); end
|
81
|
+
def formatter=(arg0); end
|
82
|
+
def formatters; end
|
83
|
+
def formatters=(formatters); end
|
84
|
+
def groups; end
|
85
|
+
def groups=(arg0); end
|
86
|
+
def maximum_coverage_drop(coverage_drop = nil); end
|
87
|
+
def merge_timeout(seconds = nil); end
|
88
|
+
def minimum_coverage(coverage = nil); end
|
89
|
+
def minimum_coverage_by_file(coverage = nil); end
|
90
|
+
def minimum_possible_coverage_exceeded(coverage_option); end
|
91
|
+
def nocov_token(nocov_token = nil); end
|
92
|
+
def parse_filter(filter_argument = nil, &filter_proc); end
|
93
|
+
def print_error_status; end
|
94
|
+
def print_error_status=(arg0); end
|
95
|
+
def profiles; end
|
96
|
+
def project_name(new_name = nil); end
|
97
|
+
def raise_if_criterion_disabled(criterion); end
|
98
|
+
def raise_if_criterion_unsupported(criterion); end
|
99
|
+
def refuse_coverage_drop; end
|
100
|
+
def root(root = nil); end
|
101
|
+
def skip_token(nocov_token = nil); end
|
102
|
+
def track_files(glob); end
|
103
|
+
def tracked_files; end
|
104
|
+
def use_merging(use = nil); end
|
105
|
+
end
|
106
|
+
class SimpleCov::CoverageStatistics
|
107
|
+
def compute_percent(covered, missed, total); end
|
108
|
+
def compute_strength(total_strength, total); end
|
109
|
+
def covered; end
|
110
|
+
def initialize(covered:, missed:, total_strength: nil); end
|
111
|
+
def missed; end
|
112
|
+
def percent; end
|
113
|
+
def self.from(coverage_statistics); end
|
114
|
+
def strength; end
|
115
|
+
def total; end
|
116
|
+
end
|
117
|
+
module SimpleCov::ExitCodes
|
118
|
+
end
|
119
|
+
class SimpleCov::Profiles < Hash
|
120
|
+
def define(name, &blk); end
|
121
|
+
def load(name); end
|
122
|
+
end
|
123
|
+
class SimpleCov::SourceFile
|
124
|
+
def branch_coverage_statistics; end
|
125
|
+
def branches; end
|
126
|
+
def branches_coverage_percent; end
|
127
|
+
def branches_for_line(line_number); end
|
128
|
+
def branches_report; end
|
129
|
+
def build_branch(branch_data, hit_count, condition_start_line); end
|
130
|
+
def build_branches; end
|
131
|
+
def build_branches_from(condition, branches); end
|
132
|
+
def build_branches_report; end
|
133
|
+
def build_lines; end
|
134
|
+
def build_no_cov_chunks; end
|
135
|
+
def coverage_data; end
|
136
|
+
def coverage_exceeding_source_warn; end
|
137
|
+
def coverage_statistics; end
|
138
|
+
def covered_branches; end
|
139
|
+
def covered_lines; end
|
140
|
+
def covered_percent; end
|
141
|
+
def covered_strength; end
|
142
|
+
def ensure_remove_undefs(file_lines); end
|
143
|
+
def filename; end
|
144
|
+
def initialize(filename, coverage_data); end
|
145
|
+
def line(number); end
|
146
|
+
def line_coverage_statistics; end
|
147
|
+
def line_with_missed_branch?(line_number); end
|
148
|
+
def lines; end
|
149
|
+
def lines_of_code; end
|
150
|
+
def lines_strength; end
|
151
|
+
def load_source; end
|
152
|
+
def missed_branches; end
|
153
|
+
def missed_lines; end
|
154
|
+
def never_lines; end
|
155
|
+
def no_branches?; end
|
156
|
+
def no_cov_chunks; end
|
157
|
+
def no_lines?; end
|
158
|
+
def process_skipped_branches(branches); end
|
159
|
+
def process_skipped_lines(lines); end
|
160
|
+
def project_filename; end
|
161
|
+
def read_lines(file, lines, current_line); end
|
162
|
+
def relevant_lines; end
|
163
|
+
def restore_ruby_data_structure(structure); end
|
164
|
+
def set_encoding_based_on_magic_comment(file, line); end
|
165
|
+
def shebang?(line); end
|
166
|
+
def skipped_lines; end
|
167
|
+
def source; end
|
168
|
+
def source_lines; end
|
169
|
+
def src; end
|
170
|
+
def total_branches; end
|
171
|
+
end
|
172
|
+
class SimpleCov::SourceFile::Line
|
173
|
+
def coverage; end
|
174
|
+
def covered?; end
|
175
|
+
def initialize(src, line_number, coverage); end
|
176
|
+
def line; end
|
177
|
+
def line_number; end
|
178
|
+
def missed?; end
|
179
|
+
def never?; end
|
180
|
+
def number; end
|
181
|
+
def skipped!; end
|
182
|
+
def skipped; end
|
183
|
+
def skipped?; end
|
184
|
+
def source; end
|
185
|
+
def src; end
|
186
|
+
def status; end
|
187
|
+
end
|
188
|
+
class SimpleCov::SourceFile::Branch
|
189
|
+
def coverage; end
|
190
|
+
def covered?; end
|
191
|
+
def end_line; end
|
192
|
+
def initialize(start_line:, end_line:, coverage:, inline:, type:); end
|
193
|
+
def inline?; end
|
194
|
+
def missed?; end
|
195
|
+
def overlaps_with?(line_range); end
|
196
|
+
def report; end
|
197
|
+
def report_line; end
|
198
|
+
def skipped!; end
|
199
|
+
def skipped?; end
|
200
|
+
def start_line; end
|
201
|
+
def type; end
|
202
|
+
end
|
203
|
+
class SimpleCov::FileList
|
204
|
+
def branch_covered_percent; end
|
205
|
+
def compute_coverage_statistics; end
|
206
|
+
def count(*args, &block); end
|
207
|
+
def coverage_statistics; end
|
208
|
+
def covered_branches; end
|
209
|
+
def covered_lines; end
|
210
|
+
def covered_percent; end
|
211
|
+
def covered_percentages; end
|
212
|
+
def covered_strength; end
|
213
|
+
def each(*args, &block); end
|
214
|
+
def empty?(*args, &block); end
|
215
|
+
def initialize(files); end
|
216
|
+
def least_covered_file; end
|
217
|
+
def length(*args, &block); end
|
218
|
+
def lines_of_code; end
|
219
|
+
def map(*args, &block); end
|
220
|
+
def missed_branches; end
|
221
|
+
def missed_lines; end
|
222
|
+
def never_lines; end
|
223
|
+
def size(*args, &block); end
|
224
|
+
def skipped_lines; end
|
225
|
+
def to_a(*args, &block); end
|
226
|
+
def to_ary(*args, &block); end
|
227
|
+
def total_branches; end
|
228
|
+
extend Forwardable
|
229
|
+
include Enumerable
|
230
|
+
end
|
231
|
+
class SimpleCov::Result
|
232
|
+
def adapt_pre_simplecov_0_18_result(result); end
|
233
|
+
def adapt_result(result); end
|
234
|
+
def command_name; end
|
235
|
+
def command_name=(arg0); end
|
236
|
+
def coverage; end
|
237
|
+
def coverage_statistics(*args, &block); end
|
238
|
+
def covered_branches(*args, &block); end
|
239
|
+
def covered_lines(*args, &block); end
|
240
|
+
def covered_percent(*args, &block); end
|
241
|
+
def covered_percentages(*args, &block); end
|
242
|
+
def covered_strength(*args, &block); end
|
243
|
+
def created_at; end
|
244
|
+
def created_at=(arg0); end
|
245
|
+
def filenames; end
|
246
|
+
def files; end
|
247
|
+
def filter!; end
|
248
|
+
def format!; end
|
249
|
+
def groups; end
|
250
|
+
def initialize(original_result); end
|
251
|
+
def least_covered_file(*args, &block); end
|
252
|
+
def missed_branches(*args, &block); end
|
253
|
+
def missed_lines(*args, &block); end
|
254
|
+
def original_result; end
|
255
|
+
def pre_simplecov_0_18_result?(result); end
|
256
|
+
def self.from_hash(hash); end
|
257
|
+
def source_files; end
|
258
|
+
def to_hash; end
|
259
|
+
def total_branches(*args, &block); end
|
260
|
+
def total_lines(*args, &block); end
|
261
|
+
extend Forwardable
|
262
|
+
end
|
263
|
+
class SimpleCov::Filter
|
264
|
+
def filter_argument; end
|
265
|
+
def initialize(filter_argument); end
|
266
|
+
def matches?(_source_file); end
|
267
|
+
def passes?(source_file); end
|
268
|
+
def self.build_filter(filter_argument); end
|
269
|
+
def self.class_for_argument(filter_argument); end
|
270
|
+
end
|
271
|
+
class SimpleCov::StringFilter < SimpleCov::Filter
|
272
|
+
def matches?(source_file); end
|
273
|
+
end
|
274
|
+
class SimpleCov::RegexFilter < SimpleCov::Filter
|
275
|
+
def matches?(source_file); end
|
276
|
+
end
|
277
|
+
class SimpleCov::BlockFilter < SimpleCov::Filter
|
278
|
+
def matches?(source_file); end
|
279
|
+
end
|
280
|
+
class SimpleCov::ArrayFilter < SimpleCov::Filter
|
281
|
+
def initialize(filter_argument); end
|
282
|
+
def matches?(source_files_list); end
|
283
|
+
end
|
284
|
+
class SimpleCov::Formatter::SimpleFormatter
|
285
|
+
def format(result); end
|
286
|
+
end
|
287
|
+
module SimpleCov::LastRun
|
288
|
+
def self.last_run_path; end
|
289
|
+
def self.read; end
|
290
|
+
def self.write(json); end
|
291
|
+
end
|
292
|
+
class SimpleCov::LinesClassifier
|
293
|
+
def classify(lines); end
|
294
|
+
def self.no_cov_line; end
|
295
|
+
def self.no_cov_line?(line); end
|
296
|
+
def self.whitespace_line?(line); end
|
297
|
+
end
|
298
|
+
module SimpleCov::ResultMerger
|
299
|
+
def self.clear_resultset; end
|
300
|
+
def self.merge_and_store(*results); end
|
301
|
+
def self.merge_results(*results); end
|
302
|
+
def self.merged_result; end
|
303
|
+
def self.results; end
|
304
|
+
def self.resultset; end
|
305
|
+
def self.resultset_path; end
|
306
|
+
def self.resultset_writelock; end
|
307
|
+
def self.store_result(result); end
|
308
|
+
def self.stored_data; end
|
309
|
+
def self.synchronize_resultset; end
|
310
|
+
end
|
311
|
+
module SimpleCov::CommandGuesser
|
312
|
+
def self.from_command_line_options; end
|
313
|
+
def self.from_defined_constants; end
|
314
|
+
def self.from_env; end
|
315
|
+
def self.guess; end
|
316
|
+
def self.original_run_command; end
|
317
|
+
def self.original_run_command=(arg0); end
|
318
|
+
end
|
319
|
+
class SimpleCov::ResultAdapter
|
320
|
+
def adapt; end
|
321
|
+
def initialize(result); end
|
322
|
+
def result; end
|
323
|
+
def self.call(*args); end
|
324
|
+
end
|
325
|
+
module SimpleCov::Combine
|
326
|
+
def combine(combiner_module, coverage_a, coverage_b); end
|
327
|
+
def empty_coverage?(coverage_a, coverage_b); end
|
328
|
+
def existing_coverage(coverage_a, coverage_b); end
|
329
|
+
def self.combine(combiner_module, coverage_a, coverage_b); end
|
330
|
+
def self.empty_coverage?(coverage_a, coverage_b); end
|
331
|
+
def self.existing_coverage(coverage_a, coverage_b); end
|
332
|
+
end
|
333
|
+
module SimpleCov::Combine::BranchesCombiner
|
334
|
+
def combine(coverage_a, coverage_b); end
|
335
|
+
def self.combine(coverage_a, coverage_b); end
|
336
|
+
end
|
337
|
+
module SimpleCov::Combine::FilesCombiner
|
338
|
+
def combine(coverage_a, coverage_b); end
|
339
|
+
def self.combine(coverage_a, coverage_b); end
|
340
|
+
end
|
341
|
+
module SimpleCov::Combine::LinesCombiner
|
342
|
+
def combine(coverage_a, coverage_b); end
|
343
|
+
def merge_line_coverage(first_val, second_val); end
|
344
|
+
def self.combine(coverage_a, coverage_b); end
|
345
|
+
def self.merge_line_coverage(first_val, second_val); end
|
346
|
+
end
|
347
|
+
module SimpleCov::Combine::ResultsCombiner
|
348
|
+
def combine(*results); end
|
349
|
+
def combine_file_coverage(coverage_a, coverage_b); end
|
350
|
+
def combine_result_sets(combined_results, result); end
|
351
|
+
def self.combine(*results); end
|
352
|
+
def self.combine_file_coverage(coverage_a, coverage_b); end
|
353
|
+
def self.combine_result_sets(combined_results, result); end
|
354
|
+
end
|
355
|
+
module SimpleCov::UselessResultsRemover
|
356
|
+
def self.call(coverage_result); end
|
357
|
+
end
|
358
|
+
module SimpleCov::SimulateCoverage
|
359
|
+
def call(absolute_path); end
|
360
|
+
def self.call(absolute_path); end
|
361
|
+
end
|
@@ -0,0 +1,354 @@
|
|
1
|
+
# This file is autogenerated. Do not edit it by hand. Regenerate it with:
|
2
|
+
# srb rbi gems
|
3
|
+
|
4
|
+
# typed: true
|
5
|
+
#
|
6
|
+
# If you would like to make changes to this file, great! Please create the gem's shim here:
|
7
|
+
#
|
8
|
+
# https://github.com/sorbet/sorbet-typed/new/master?filename=lib/sqlite3/all/sqlite3.rbi
|
9
|
+
#
|
10
|
+
# sqlite3-1.4.2
|
11
|
+
|
12
|
+
class SQLite3::Database
|
13
|
+
def authorizer(&block); end
|
14
|
+
def authorizer=(arg0); end
|
15
|
+
def busy_handler(*arg0); end
|
16
|
+
def busy_timeout(arg0); end
|
17
|
+
def busy_timeout=(arg0); end
|
18
|
+
def changes; end
|
19
|
+
def close; end
|
20
|
+
def closed?; end
|
21
|
+
def collation(arg0, arg1); end
|
22
|
+
def collations; end
|
23
|
+
def commit; end
|
24
|
+
def complete?(arg0); end
|
25
|
+
def create_aggregate(name, arity, step = nil, finalize = nil, text_rep = nil, &block); end
|
26
|
+
def create_aggregate_handler(handler); end
|
27
|
+
def create_function(name, arity, text_rep = nil, &block); end
|
28
|
+
def db_filename(arg0); end
|
29
|
+
def define_aggregator(name, aggregator); end
|
30
|
+
def define_aggregator2(arg0, arg1); end
|
31
|
+
def define_function(arg0); end
|
32
|
+
def define_function_with_flags(arg0, arg1); end
|
33
|
+
def enable_load_extension(arg0); end
|
34
|
+
def encoding; end
|
35
|
+
def errcode; end
|
36
|
+
def errmsg; end
|
37
|
+
def exec_batch(arg0, arg1); end
|
38
|
+
def execute(sql, bind_vars = nil, *args, &block); end
|
39
|
+
def execute2(sql, *bind_vars); end
|
40
|
+
def execute_batch(sql, bind_vars = nil, *args); end
|
41
|
+
def execute_batch2(sql, &block); end
|
42
|
+
def extended_result_codes=(arg0); end
|
43
|
+
def filename(db_name = nil); end
|
44
|
+
def get_first_row(sql, *bind_vars); end
|
45
|
+
def get_first_value(sql, *bind_vars); end
|
46
|
+
def initialize(file, options = nil, zvfs = nil); end
|
47
|
+
def interrupt; end
|
48
|
+
def last_insert_row_id; end
|
49
|
+
def load_extension(arg0); end
|
50
|
+
def make_type_translator(should_translate); end
|
51
|
+
def open16(arg0); end
|
52
|
+
def open_v2(arg0, arg1, arg2); end
|
53
|
+
def prepare(sql); end
|
54
|
+
def query(sql, bind_vars = nil, *args); end
|
55
|
+
def readonly?; end
|
56
|
+
def results_as_hash; end
|
57
|
+
def results_as_hash=(arg0); end
|
58
|
+
def rollback; end
|
59
|
+
def self.open(*arg0); end
|
60
|
+
def self.quote(string); end
|
61
|
+
def total_changes; end
|
62
|
+
def trace(*arg0); end
|
63
|
+
def transaction(mode = nil); end
|
64
|
+
def transaction_active?; end
|
65
|
+
def translate_from_db(types, row); end
|
66
|
+
def translator; end
|
67
|
+
def type_translation; end
|
68
|
+
def type_translation=(value); end
|
69
|
+
include SQLite3::Pragmas
|
70
|
+
end
|
71
|
+
class SQLite3::Statement
|
72
|
+
def active?; end
|
73
|
+
def bind_param(arg0, arg1); end
|
74
|
+
def bind_parameter_count; end
|
75
|
+
def bind_params(*bind_vars); end
|
76
|
+
def clear_bindings!; end
|
77
|
+
def close; end
|
78
|
+
def closed?; end
|
79
|
+
def column_count; end
|
80
|
+
def column_decltype(arg0); end
|
81
|
+
def column_name(arg0); end
|
82
|
+
def columns; end
|
83
|
+
def database_name(arg0); end
|
84
|
+
def done?; end
|
85
|
+
def each; end
|
86
|
+
def execute!(*bind_vars, &block); end
|
87
|
+
def execute(*bind_vars); end
|
88
|
+
def get_metadata; end
|
89
|
+
def initialize(arg0, arg1); end
|
90
|
+
def must_be_open!; end
|
91
|
+
def remainder; end
|
92
|
+
def reset!; end
|
93
|
+
def step; end
|
94
|
+
def types; end
|
95
|
+
include Enumerable
|
96
|
+
end
|
97
|
+
class SQLite3::Backup
|
98
|
+
def finish; end
|
99
|
+
def initialize(arg0, arg1, arg2, arg3); end
|
100
|
+
def pagecount; end
|
101
|
+
def remaining; end
|
102
|
+
def step(arg0); end
|
103
|
+
end
|
104
|
+
module SQLite3
|
105
|
+
def self.const_missing(name); end
|
106
|
+
def self.libversion; end
|
107
|
+
def self.sqlcipher?; end
|
108
|
+
def self.threadsafe; end
|
109
|
+
def self.threadsafe?; end
|
110
|
+
end
|
111
|
+
module SQLite3::Constants
|
112
|
+
end
|
113
|
+
module SQLite3::Constants::TextRep
|
114
|
+
end
|
115
|
+
module SQLite3::Constants::ColumnType
|
116
|
+
end
|
117
|
+
module SQLite3::Constants::ErrorCode
|
118
|
+
end
|
119
|
+
class SQLite3::Exception < StandardError
|
120
|
+
def code; end
|
121
|
+
end
|
122
|
+
class SQLite3::SQLException < SQLite3::Exception
|
123
|
+
end
|
124
|
+
class SQLite3::InternalException < SQLite3::Exception
|
125
|
+
end
|
126
|
+
class SQLite3::PermissionException < SQLite3::Exception
|
127
|
+
end
|
128
|
+
class SQLite3::AbortException < SQLite3::Exception
|
129
|
+
end
|
130
|
+
class SQLite3::BusyException < SQLite3::Exception
|
131
|
+
end
|
132
|
+
class SQLite3::LockedException < SQLite3::Exception
|
133
|
+
end
|
134
|
+
class SQLite3::MemoryException < SQLite3::Exception
|
135
|
+
end
|
136
|
+
class SQLite3::ReadOnlyException < SQLite3::Exception
|
137
|
+
end
|
138
|
+
class SQLite3::InterruptException < SQLite3::Exception
|
139
|
+
end
|
140
|
+
class SQLite3::IOException < SQLite3::Exception
|
141
|
+
end
|
142
|
+
class SQLite3::CorruptException < SQLite3::Exception
|
143
|
+
end
|
144
|
+
class SQLite3::NotFoundException < SQLite3::Exception
|
145
|
+
end
|
146
|
+
class SQLite3::FullException < SQLite3::Exception
|
147
|
+
end
|
148
|
+
class SQLite3::CantOpenException < SQLite3::Exception
|
149
|
+
end
|
150
|
+
class SQLite3::ProtocolException < SQLite3::Exception
|
151
|
+
end
|
152
|
+
class SQLite3::EmptyException < SQLite3::Exception
|
153
|
+
end
|
154
|
+
class SQLite3::SchemaChangedException < SQLite3::Exception
|
155
|
+
end
|
156
|
+
class SQLite3::TooBigException < SQLite3::Exception
|
157
|
+
end
|
158
|
+
class SQLite3::ConstraintException < SQLite3::Exception
|
159
|
+
end
|
160
|
+
class SQLite3::MismatchException < SQLite3::Exception
|
161
|
+
end
|
162
|
+
class SQLite3::MisuseException < SQLite3::Exception
|
163
|
+
end
|
164
|
+
class SQLite3::UnsupportedException < SQLite3::Exception
|
165
|
+
end
|
166
|
+
class SQLite3::AuthorizationException < SQLite3::Exception
|
167
|
+
end
|
168
|
+
class SQLite3::FormatException < SQLite3::Exception
|
169
|
+
end
|
170
|
+
class SQLite3::RangeException < SQLite3::Exception
|
171
|
+
end
|
172
|
+
class SQLite3::NotADatabaseException < SQLite3::Exception
|
173
|
+
end
|
174
|
+
module SQLite3::Pragmas
|
175
|
+
def application_id; end
|
176
|
+
def application_id=(integer); end
|
177
|
+
def auto_vacuum; end
|
178
|
+
def auto_vacuum=(mode); end
|
179
|
+
def automatic_index; end
|
180
|
+
def automatic_index=(mode); end
|
181
|
+
def busy_timeout; end
|
182
|
+
def busy_timeout=(milliseconds); end
|
183
|
+
def cache_size; end
|
184
|
+
def cache_size=(size); end
|
185
|
+
def cache_spill; end
|
186
|
+
def cache_spill=(mode); end
|
187
|
+
def case_sensitive_like=(mode); end
|
188
|
+
def cell_size_check; end
|
189
|
+
def cell_size_check=(mode); end
|
190
|
+
def checkpoint_fullfsync; end
|
191
|
+
def checkpoint_fullfsync=(mode); end
|
192
|
+
def collation_list(&block); end
|
193
|
+
def compile_options(&block); end
|
194
|
+
def count_changes; end
|
195
|
+
def count_changes=(mode); end
|
196
|
+
def data_version; end
|
197
|
+
def database_list(&block); end
|
198
|
+
def default_cache_size; end
|
199
|
+
def default_cache_size=(size); end
|
200
|
+
def default_synchronous; end
|
201
|
+
def default_synchronous=(mode); end
|
202
|
+
def default_temp_store; end
|
203
|
+
def default_temp_store=(mode); end
|
204
|
+
def defer_foreign_keys; end
|
205
|
+
def defer_foreign_keys=(mode); end
|
206
|
+
def encoding; end
|
207
|
+
def encoding=(mode); end
|
208
|
+
def foreign_key_check(*table, &block); end
|
209
|
+
def foreign_key_list(table, &block); end
|
210
|
+
def foreign_keys; end
|
211
|
+
def foreign_keys=(mode); end
|
212
|
+
def freelist_count; end
|
213
|
+
def full_column_names; end
|
214
|
+
def full_column_names=(mode); end
|
215
|
+
def fullfsync; end
|
216
|
+
def fullfsync=(mode); end
|
217
|
+
def get_boolean_pragma(name); end
|
218
|
+
def get_enum_pragma(name); end
|
219
|
+
def get_int_pragma(name); end
|
220
|
+
def get_query_pragma(name, *parms, &block); end
|
221
|
+
def ignore_check_constraints=(mode); end
|
222
|
+
def incremental_vacuum(pages, &block); end
|
223
|
+
def index_info(index, &block); end
|
224
|
+
def index_list(table, &block); end
|
225
|
+
def index_xinfo(index, &block); end
|
226
|
+
def integrity_check(*num_errors, &block); end
|
227
|
+
def journal_mode; end
|
228
|
+
def journal_mode=(mode); end
|
229
|
+
def journal_size_limit; end
|
230
|
+
def journal_size_limit=(size); end
|
231
|
+
def legacy_file_format; end
|
232
|
+
def legacy_file_format=(mode); end
|
233
|
+
def locking_mode; end
|
234
|
+
def locking_mode=(mode); end
|
235
|
+
def max_page_count; end
|
236
|
+
def max_page_count=(size); end
|
237
|
+
def mmap_size; end
|
238
|
+
def mmap_size=(size); end
|
239
|
+
def page_count; end
|
240
|
+
def page_size; end
|
241
|
+
def page_size=(size); end
|
242
|
+
def parser_trace=(mode); end
|
243
|
+
def query_only; end
|
244
|
+
def query_only=(mode); end
|
245
|
+
def quick_check(*num_errors, &block); end
|
246
|
+
def read_uncommitted; end
|
247
|
+
def read_uncommitted=(mode); end
|
248
|
+
def recursive_triggers; end
|
249
|
+
def recursive_triggers=(mode); end
|
250
|
+
def reverse_unordered_selects; end
|
251
|
+
def reverse_unordered_selects=(mode); end
|
252
|
+
def schema_cookie; end
|
253
|
+
def schema_cookie=(cookie); end
|
254
|
+
def schema_version; end
|
255
|
+
def schema_version=(version); end
|
256
|
+
def secure_delete; end
|
257
|
+
def secure_delete=(mode); end
|
258
|
+
def set_boolean_pragma(name, mode); end
|
259
|
+
def set_enum_pragma(name, mode, enums); end
|
260
|
+
def set_int_pragma(name, value); end
|
261
|
+
def short_column_names; end
|
262
|
+
def short_column_names=(mode); end
|
263
|
+
def shrink_memory; end
|
264
|
+
def soft_heap_limit; end
|
265
|
+
def soft_heap_limit=(mode); end
|
266
|
+
def stats(&block); end
|
267
|
+
def synchronous; end
|
268
|
+
def synchronous=(mode); end
|
269
|
+
def table_info(table); end
|
270
|
+
def temp_store; end
|
271
|
+
def temp_store=(mode); end
|
272
|
+
def threads; end
|
273
|
+
def threads=(count); end
|
274
|
+
def tweak_default(hash); end
|
275
|
+
def user_cookie; end
|
276
|
+
def user_cookie=(cookie); end
|
277
|
+
def user_version; end
|
278
|
+
def user_version=(version); end
|
279
|
+
def vdbe_addoptrace=(mode); end
|
280
|
+
def vdbe_debug=(mode); end
|
281
|
+
def vdbe_listing=(mode); end
|
282
|
+
def vdbe_trace; end
|
283
|
+
def vdbe_trace=(mode); end
|
284
|
+
def version_compare(v1, v2); end
|
285
|
+
def wal_autocheckpoint; end
|
286
|
+
def wal_autocheckpoint=(mode); end
|
287
|
+
def wal_checkpoint; end
|
288
|
+
def wal_checkpoint=(mode); end
|
289
|
+
def writable_schema=(mode); end
|
290
|
+
end
|
291
|
+
class SQLite3::ResultSet
|
292
|
+
def close; end
|
293
|
+
def closed?; end
|
294
|
+
def columns; end
|
295
|
+
def each; end
|
296
|
+
def each_hash; end
|
297
|
+
def eof?; end
|
298
|
+
def initialize(db, stmt); end
|
299
|
+
def next; end
|
300
|
+
def next_hash; end
|
301
|
+
def reset(*bind_params); end
|
302
|
+
def types; end
|
303
|
+
include Enumerable
|
304
|
+
end
|
305
|
+
class SQLite3::ResultSet::ArrayWithTypes < Array
|
306
|
+
def types; end
|
307
|
+
def types=(arg0); end
|
308
|
+
end
|
309
|
+
class SQLite3::ResultSet::ArrayWithTypesAndFields < Array
|
310
|
+
def fields; end
|
311
|
+
def fields=(arg0); end
|
312
|
+
def types; end
|
313
|
+
def types=(arg0); end
|
314
|
+
end
|
315
|
+
class SQLite3::ResultSet::HashWithTypesAndFields < Hash
|
316
|
+
def [](key); end
|
317
|
+
def fields; end
|
318
|
+
def fields=(arg0); end
|
319
|
+
def types; end
|
320
|
+
def types=(arg0); end
|
321
|
+
end
|
322
|
+
class String
|
323
|
+
def to_blob; end
|
324
|
+
end
|
325
|
+
class SQLite3::Translator
|
326
|
+
def add_translator(type, &block); end
|
327
|
+
def initialize; end
|
328
|
+
def register_default_translators; end
|
329
|
+
def translate(type, value); end
|
330
|
+
def type_name(type); end
|
331
|
+
end
|
332
|
+
class SQLite3::Value
|
333
|
+
def handle; end
|
334
|
+
def initialize(db, handle); end
|
335
|
+
def length(utf16 = nil); end
|
336
|
+
def null?; end
|
337
|
+
def to_blob; end
|
338
|
+
def to_f; end
|
339
|
+
def to_i; end
|
340
|
+
def to_int64; end
|
341
|
+
def to_s(utf16 = nil); end
|
342
|
+
def type; end
|
343
|
+
end
|
344
|
+
class SQLite3::Database::FunctionProxy
|
345
|
+
def [](key); end
|
346
|
+
def []=(key, value); end
|
347
|
+
def count; end
|
348
|
+
def initialize; end
|
349
|
+
def result; end
|
350
|
+
def result=(arg0); end
|
351
|
+
def set_error(error); end
|
352
|
+
end
|
353
|
+
module SQLite3::VersionProxy
|
354
|
+
end
|