dry-monads-sorbet 1.1.6 → 1.1.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (111) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ci.yml +14 -22
  3. data/.gitignore +3 -1
  4. data/CHANGELOG.md +4 -0
  5. data/Gemfile +1 -6
  6. data/bin/tapioca +29 -0
  7. data/dry-monads-sorbet.gemspec +3 -2
  8. data/lib/bundled_rbi/dry-monads.rbi +3 -3
  9. data/lib/dry/monads/sorbet/version.rb +1 -1
  10. data/nix/sources.json +14 -0
  11. data/nix/sources.nix +174 -0
  12. data/run_ci.sh +7 -0
  13. data/shell.nix +20 -0
  14. data/sorbet/config +6 -0
  15. data/sorbet/rbi/gems/{ast.rbi → ast@2.4.2.rbi} +28 -22
  16. data/sorbet/rbi/gems/byebug@11.1.3.rbi +1568 -0
  17. data/sorbet/rbi/gems/coderay@1.1.3.rbi +1005 -0
  18. data/sorbet/rbi/gems/concurrent-ruby@1.1.9.rbi +915 -0
  19. data/sorbet/rbi/gems/diff-lcs@1.4.4.rbi +8 -0
  20. data/sorbet/rbi/gems/docile@1.4.0.rbi +54 -0
  21. data/sorbet/rbi/gems/dry-core@0.7.1.rbi +92 -0
  22. data/sorbet/rbi/gems/dry-equalizer@0.3.0.rbi +28 -0
  23. data/sorbet/rbi/gems/dry-monads@1.4.0.rbi +697 -0
  24. data/sorbet/rbi/gems/ffaker@2.20.0.rbi +3171 -0
  25. data/sorbet/rbi/gems/method_source@1.0.0.rbi +72 -0
  26. data/sorbet/rbi/gems/parallel@1.21.0.rbi +113 -0
  27. data/sorbet/rbi/gems/parser@3.0.2.0.rbi +1189 -0
  28. data/sorbet/rbi/gems/pry-byebug@3.8.0.rbi +458 -0
  29. data/sorbet/rbi/gems/{pry.rbi → pry@0.14.1.rbi} +2264 -1727
  30. data/sorbet/rbi/gems/{rainbow.rbi → rainbow@3.0.0.rbi} +90 -55
  31. data/sorbet/rbi/gems/{rake.rbi → rake@13.0.6.rbi} +578 -431
  32. data/sorbet/rbi/gems/rb-fsevent@0.11.0.rbi +8 -0
  33. data/sorbet/rbi/gems/rb-readline@0.5.5.rbi +884 -0
  34. data/sorbet/rbi/gems/rbi@0.0.6.rbi +1405 -0
  35. data/sorbet/rbi/gems/regexp_parser@2.1.1.rbi +1120 -0
  36. data/sorbet/rbi/gems/{rexml.rbi → rexml@3.2.5.rbi} +564 -497
  37. data/sorbet/rbi/gems/{rspec-core.rbi → rspec-core@3.10.1.rbi} +2345 -1766
  38. data/sorbet/rbi/gems/{rspec-expectations.rbi → rspec-expectations@3.10.1.rbi} +1149 -698
  39. data/sorbet/rbi/gems/{rspec-mocks.rbi → rspec-mocks@3.10.2.rbi} +1299 -936
  40. data/sorbet/rbi/gems/rspec-support@3.10.2.rbi +509 -0
  41. data/sorbet/rbi/gems/rspec@3.10.0.rbi +38 -0
  42. data/sorbet/rbi/gems/rubocop-ast@1.12.0.rbi +1938 -0
  43. data/sorbet/rbi/gems/rubocop-rspec@2.5.0.rbi +1786 -0
  44. data/sorbet/rbi/gems/rubocop@1.22.1.rbi +13252 -0
  45. data/sorbet/rbi/gems/ruby-progressbar@1.11.0.rbi +405 -0
  46. data/sorbet/rbi/gems/simplecov-html@0.12.3.rbi +89 -0
  47. data/sorbet/rbi/gems/simplecov@0.21.2.rbi +577 -0
  48. data/sorbet/rbi/gems/simplecov_json_formatter@0.1.3.rbi +8 -0
  49. data/sorbet/rbi/gems/spoom@1.1.5.rbi +1241 -0
  50. data/sorbet/rbi/gems/stackprof@0.2.17.rbi +98 -0
  51. data/sorbet/rbi/gems/tapioca@0.5.2.rbi +949 -0
  52. data/sorbet/rbi/gems/thor@1.1.0.rbi +839 -0
  53. data/sorbet/rbi/gems/unicode-display_width@2.1.0.rbi +26 -0
  54. data/sorbet/rbi/gems/unparser@0.6.0.rbi +8 -0
  55. data/sorbet/tapioca/require.rb +4 -0
  56. metadata +65 -68
  57. data/.ruby-version +0 -1
  58. data/sorbet/rbi/gems/activesupport.rbi +0 -1722
  59. data/sorbet/rbi/gems/byebug.rbi +0 -1041
  60. data/sorbet/rbi/gems/coderay.rbi +0 -285
  61. data/sorbet/rbi/gems/concurrent-ruby.rbi +0 -1586
  62. data/sorbet/rbi/gems/docile.rbi +0 -32
  63. data/sorbet/rbi/gems/dry-core.rbi +0 -38
  64. data/sorbet/rbi/gems/dry-equalizer.rbi +0 -26
  65. data/sorbet/rbi/gems/dry-monads.rbi +0 -510
  66. data/sorbet/rbi/gems/em-websocket.rbi +0 -225
  67. data/sorbet/rbi/gems/eventmachine.rbi +0 -489
  68. data/sorbet/rbi/gems/ffaker.rbi +0 -60
  69. data/sorbet/rbi/gems/guard.rbi +0 -397
  70. data/sorbet/rbi/gems/http_parser.rb.rbi +0 -37
  71. data/sorbet/rbi/gems/i18n.rbi +0 -133
  72. data/sorbet/rbi/gems/kwalify.rbi +0 -340
  73. data/sorbet/rbi/gems/listen.rbi +0 -324
  74. data/sorbet/rbi/gems/lumberjack.rbi +0 -300
  75. data/sorbet/rbi/gems/method_source.rbi +0 -64
  76. data/sorbet/rbi/gems/multi_json.rbi +0 -62
  77. data/sorbet/rbi/gems/nenv.rbi +0 -60
  78. data/sorbet/rbi/gems/notiffany.rbi +0 -215
  79. data/sorbet/rbi/gems/parallel.rbi +0 -82
  80. data/sorbet/rbi/gems/parser.rbi +0 -1846
  81. data/sorbet/rbi/gems/pry-byebug.rbi +0 -155
  82. data/sorbet/rbi/gems/rb-fsevent.rbi +0 -31
  83. data/sorbet/rbi/gems/rb-readline.rbi +0 -767
  84. data/sorbet/rbi/gems/reek.rbi +0 -1027
  85. data/sorbet/rbi/gems/regexp_parser.rbi +0 -913
  86. data/sorbet/rbi/gems/rspec-support.rbi +0 -280
  87. data/sorbet/rbi/gems/rspec.rbi +0 -15
  88. data/sorbet/rbi/gems/rubocop-ast.rbi +0 -1053
  89. data/sorbet/rbi/gems/rubocop-rspec.rbi +0 -937
  90. data/sorbet/rbi/gems/rubocop.rbi +0 -6841
  91. data/sorbet/rbi/gems/ruby-progressbar.rbi +0 -305
  92. data/sorbet/rbi/gems/shellany.rbi +0 -29
  93. data/sorbet/rbi/gems/shoulda-matchers.rbi +0 -1848
  94. data/sorbet/rbi/gems/simplecov-html.rbi +0 -35
  95. data/sorbet/rbi/gems/simplecov.rbi +0 -361
  96. data/sorbet/rbi/gems/sqlite3.rbi +0 -354
  97. data/sorbet/rbi/gems/stackprof.rbi +0 -52
  98. data/sorbet/rbi/gems/thor.rbi +0 -32
  99. data/sorbet/rbi/gems/thread_safe.rbi +0 -82
  100. data/sorbet/rbi/gems/timecop.rbi +0 -98
  101. data/sorbet/rbi/gems/tzinfo.rbi +0 -406
  102. data/sorbet/rbi/gems/unicode-display_width.rbi +0 -17
  103. data/sorbet/rbi/hidden-definitions/errors.txt +0 -7267
  104. data/sorbet/rbi/hidden-definitions/hidden.rbi +0 -14661
  105. data/sorbet/rbi/sorbet-typed/lib/activesupport/>=6.0.0.rc1/activesupport.rbi +0 -23
  106. data/sorbet/rbi/sorbet-typed/lib/activesupport/all/activesupport.rbi +0 -1431
  107. data/sorbet/rbi/sorbet-typed/lib/minitest/all/minitest.rbi +0 -108
  108. data/sorbet/rbi/sorbet-typed/lib/rainbow/all/rainbow.rbi +0 -276
  109. data/sorbet/rbi/sorbet-typed/lib/rubocop/~>0.85/rubocop.rbi +0 -2072
  110. data/sorbet/rbi/sorbet-typed/lib/rubocop-rspec/~>1.39/rubocop-rspec.rbi +0 -398
  111. data/sorbet/rbi/todo.rbi +0 -8
@@ -1,354 +0,0 @@
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
@@ -1,52 +0,0 @@
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/stackprof/all/stackprof.rbi
9
- #
10
- # stackprof-0.2.15
11
-
12
- module StackProf
13
- def self.results(*arg0); end
14
- def self.run(*arg0); end
15
- def self.running?; end
16
- def self.sample; end
17
- def self.start(*arg0); end
18
- def self.stop; end
19
- end
20
- class StackProf::Report
21
- def +(other); end
22
- def add_lines(a, b); end
23
- def callers_for(addr); end
24
- def convert_to_d3_flame_graph_format(name, stacks, depth); end
25
- def data; end
26
- def files; end
27
- def flamegraph_row(f, x, y, weight, addr); end
28
- def frames(sort_by_total = nil); end
29
- def initialize(data); end
30
- def max_samples; end
31
- def modeline; end
32
- def normalized_frames; end
33
- def overall_samples; end
34
- def print_alphabetical_flamegraph(f = nil, skip_common = nil); end
35
- def print_callgrind(f = nil); end
36
- def print_d3_flamegraph(f = nil, skip_common = nil); end
37
- def print_debug; end
38
- def print_dump(f = nil); end
39
- def print_file(filter, f = nil); end
40
- def print_files(sort_by_total = nil, limit = nil, f = nil); end
41
- def print_flamegraph(f, skip_common, alphabetical = nil); end
42
- def print_graphviz(options = nil, f = nil); end
43
- def print_json(f = nil); end
44
- def print_method(name, f = nil); end
45
- def print_stackcollapse; end
46
- def print_text(sort_by_total = nil, limit = nil, select_files = nil, reject_files = nil, select_names = nil, reject_names = nil, f = nil); end
47
- def print_timeline_flamegraph(f = nil, skip_common = nil); end
48
- def root_frames; end
49
- def source_display(f, file, lines, range = nil); end
50
- def version; end
51
- def walk_method(name); end
52
- end
@@ -1,32 +0,0 @@
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/thor/all/thor.rbi
9
- #
10
- # thor-1.0.1
11
-
12
- class Thor
13
- end
14
- module Thor::CoreExt
15
- end
16
- class Thor::CoreExt::HashWithIndifferentAccess < Hash
17
- def [](key); end
18
- def []=(key, value); end
19
- def convert_key(key); end
20
- def delete(key); end
21
- def fetch(key, *args); end
22
- def initialize(hash = nil); end
23
- def key?(key); end
24
- def merge!(other); end
25
- def merge(other); end
26
- def method_missing(method, *args); end
27
- def replace(other_hash); end
28
- def reverse_merge!(other_hash); end
29
- def reverse_merge(other); end
30
- def to_hash; end
31
- def values_at(*indices); end
32
- end
@@ -1,82 +0,0 @@
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/thread_safe/all/thread_safe.rbi
9
- #
10
- # thread_safe-0.3.6
11
-
12
- module ThreadSafe
13
- end
14
- module Threadsafe
15
- def self.const_missing(name); end
16
- end
17
- class SynchronizedDelegator < SimpleDelegator
18
- def initialize(obj); end
19
- def method_missing(method, *args, &block); end
20
- def setup; end
21
- def teardown; end
22
- end
23
- class ThreadSafe::NonConcurrentCacheBackend
24
- def [](key); end
25
- def []=(key, value); end
26
- def _get(key); end
27
- def _set(key, value); end
28
- def clear; end
29
- def compute(key); end
30
- def compute_if_absent(key); end
31
- def compute_if_present(key); end
32
- def delete(key); end
33
- def delete_pair(key, value); end
34
- def dupped_backend; end
35
- def each_pair; end
36
- def get_and_set(key, value); end
37
- def get_or_default(key, default_value); end
38
- def initialize(options = nil); end
39
- def initialize_copy(other); end
40
- def key?(key); end
41
- def merge_pair(key, value); end
42
- def pair?(key, expected_value); end
43
- def replace_if_exists(key, new_value); end
44
- def replace_pair(key, old_value, new_value); end
45
- def size; end
46
- def store_computed_value(key, new_value); end
47
- def value?(value); end
48
- end
49
- class ThreadSafe::MriCacheBackend < ThreadSafe::NonConcurrentCacheBackend
50
- def []=(key, value); end
51
- def clear; end
52
- def compute(key); end
53
- def compute_if_absent(key); end
54
- def compute_if_present(key); end
55
- def delete(key); end
56
- def delete_pair(key, value); end
57
- def get_and_set(key, value); end
58
- def merge_pair(key, value); end
59
- def replace_if_exists(key, new_value); end
60
- def replace_pair(key, old_value, new_value); end
61
- end
62
- class ThreadSafe::Cache < ThreadSafe::MriCacheBackend
63
- def [](key); end
64
- def each_key; end
65
- def each_value; end
66
- def empty?; end
67
- def fetch(key, default_value = nil); end
68
- def fetch_or_store(key, default_value = nil); end
69
- def get(key); end
70
- def initialize(options = nil, &block); end
71
- def initialize_copy(other); end
72
- def key(value); end
73
- def keys; end
74
- def marshal_dump; end
75
- def marshal_load(hash); end
76
- def populate_from(hash); end
77
- def put(key, value); end
78
- def put_if_absent(key, value); end
79
- def raise_fetch_no_key; end
80
- def validate_options_hash!(options); end
81
- def values; end
82
- end
@@ -1,98 +0,0 @@
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/timecop/all/timecop.rbi
9
- #
10
- # timecop-0.9.1
11
-
12
- class Time
13
- def self.mock_time; end
14
- def self.new(*args); end
15
- def self.new_with_mock_time(*args); end
16
- def self.new_without_mock_time(*arg0); end
17
- def self.now_with_mock_time; end
18
- def self.now_without_mock_time; end
19
- end
20
- class Date
21
- def self.closest_wday(wday); end
22
- def self.mock_date; end
23
- def self.mocked_time_stack_item; end
24
- def self.parse_with_mock_date(*args); end
25
- def self.parse_without_mock_date(*arg0); end
26
- def self.strptime_with_mock_date(str = nil, fmt = nil, start = nil); end
27
- def self.strptime_without_mock_date(*arg0); end
28
- def self.today_with_mock_date; end
29
- def self.today_without_mock_date(*arg0); end
30
- end
31
- class DateTime < Date
32
- def self.mock_time; end
33
- def self.mocked_time_stack_item; end
34
- def self.now_with_mock_time; end
35
- def self.now_without_mock_time(*arg0); end
36
- def self.parse_with_mock_date(*args); end
37
- def self.parse_without_mock_date(*arg0); end
38
- end
39
- class Timecop
40
- def baseline; end
41
- def baseline=(b); end
42
- def initialize; end
43
- def return(&block); end
44
- def return_to_baseline; end
45
- def self.allocate; end
46
- def self.baseline; end
47
- def self.baseline=(baseline); end
48
- def self.freeze(*args, &block); end
49
- def self.frozen?; end
50
- def self.instance; end
51
- def self.new(*arg0); end
52
- def self.return(&block); end
53
- def self.return_to_baseline; end
54
- def self.safe_mode=(safe); end
55
- def self.safe_mode?; end
56
- def self.scale(*args, &block); end
57
- def self.send_travel(mock_type, *args, &block); end
58
- def self.thread_safe; end
59
- def self.thread_safe=(t); end
60
- def self.top_stack_item; end
61
- def self.travel(*args, &block); end
62
- def set_baseline(b); end
63
- def set_stack(s); end
64
- def stack; end
65
- def thread_safe; end
66
- def thread_safe=(t); end
67
- def travel(mock_type, *args, &block); end
68
- def unmock!; end
69
- extend Singleton::SingletonClassMethods
70
- include Singleton
71
- end
72
- class Timecop::TimeStackItem
73
- def compute_travel_offset; end
74
- def date(date_klass = nil); end
75
- def datetime(datetime_klass = nil); end
76
- def day; end
77
- def hour; end
78
- def initialize(mock_type, *args); end
79
- def min; end
80
- def mock_type; end
81
- def month; end
82
- def parse_time(*args); end
83
- def rational_to_utc_offset(rational); end
84
- def scaled_time; end
85
- def scaling_factor; end
86
- def sec; end
87
- def time(time_klass = nil); end
88
- def time_klass; end
89
- def times_are_equal_within_epsilon(t1, t2, epsilon_in_seconds); end
90
- def travel_offset; end
91
- def travel_offset_days; end
92
- def utc_offset; end
93
- def utc_offset_to_rational(utc_offset); end
94
- def year; end
95
- end
96
- class Timecop::SafeModeException < StandardError
97
- def initialize; end
98
- end