bootsnap@1.9.3.rbi 6.4 KB
Newer Older
BrewTestBot's avatar
BrewTestBot 已提交
1
2
# typed: true

Mike McQuaid's avatar
Mike McQuaid 已提交
3
4
# DO NOT EDIT MANUALLY
# This is an autogenerated file for types exported from the `bootsnap` gem.
Bo Anderson's avatar
Bo Anderson 已提交
5
# Please instead update this file by running `bin/tapioca gem bootsnap`.
Mike McQuaid's avatar
Mike McQuaid 已提交
6

Bo Anderson's avatar
Bo Anderson 已提交
7
8
9
10
11
12
13
14
15
16
17
18
19
module Bootsnap
  extend ::Bootsnap

  def bundler?; end

  class << self
    def _instrument(event, path); end
    def default_setup; end
    def instrumentation=(callback); end
    def iseq_cache_supported?; end
    def log!; end
    def logger; end
    def logger=(logger); end
BrewTestBot's avatar
BrewTestBot 已提交
20
    def setup(cache_dir:, development_mode: T.unsafe(nil), load_path_cache: T.unsafe(nil), autoload_paths_cache: T.unsafe(nil), disable_trace: T.unsafe(nil), compile_cache_iseq: T.unsafe(nil), compile_cache_yaml: T.unsafe(nil), compile_cache_json: T.unsafe(nil)); end
Bo Anderson's avatar
Bo Anderson 已提交
21
22
23
24
25
26
  end
end

module Bootsnap::CompileCache
  class << self
    def permission_error(path); end
BrewTestBot's avatar
BrewTestBot 已提交
27
    def setup(cache_dir:, iseq:, yaml:, json:); end
Bo Anderson's avatar
Bo Anderson 已提交
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
    def supported?; end
  end
end

class Bootsnap::CompileCache::Error < ::StandardError; end
class Bootsnap::CompileCache::PermissionError < ::Bootsnap::CompileCache::Error; end

module Bootsnap::ExplicitRequire
  class << self
    def from_archdir(feature); end
    def from_rubylibdir(feature); end
    def from_self(feature); end
    def with_gems(*gems); end
  end
end

Bootsnap::ExplicitRequire::ARCHDIR = T.let(T.unsafe(nil), String)
Bootsnap::ExplicitRequire::DLEXT = T.let(T.unsafe(nil), String)
Bootsnap::ExplicitRequire::RUBYLIBDIR = T.let(T.unsafe(nil), String)
class Bootsnap::InvalidConfiguration < ::StandardError; end

module Bootsnap::LoadPathCache
  class << self
    def load_path_cache; end
    def loaded_features_index; end
    def realpath_cache; end
    def setup(cache_path:, development_mode:); end
    def supported?; end
  end
end

Bootsnap::LoadPathCache::CACHED_EXTENSIONS = T.let(T.unsafe(nil), Array)

class Bootsnap::LoadPathCache::Cache
  def initialize(store, path_obj, development_mode: T.unsafe(nil)); end

  def absolute_path?(path); end
BrewTestBot's avatar
BrewTestBot 已提交
65
  def find(feature, try_extensions: T.unsafe(nil)); end
Bo Anderson's avatar
Bo Anderson 已提交
66
67
68
69
70
71
72
73
74
75
76
77
  def load_dir(dir); end
  def push_paths(sender, *paths); end
  def reinitialize(path_obj = T.unsafe(nil)); end
  def unshift_paths(sender, *paths); end

  private

  def dir_changed?; end
  def expand_path(feature); end
  def maybe_append_extension(f); end
  def now; end
  def push_paths_locked(*paths); end
BrewTestBot's avatar
BrewTestBot 已提交
78
  def search_index(f, try_extensions: T.unsafe(nil)); end
Bo Anderson's avatar
Bo Anderson 已提交
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
  def stale?; end
  def try_ext(f); end
  def try_index(f); end
  def unshift_paths_locked(*paths); end
end

Bootsnap::LoadPathCache::Cache::AGE_THRESHOLD = T.let(T.unsafe(nil), Integer)
Bootsnap::LoadPathCache::Cache::BUILTIN_FEATURES = T.let(T.unsafe(nil), Hash)

module Bootsnap::LoadPathCache::ChangeObserver
  class << self
    def register(observer, arr); end
  end
end

module Bootsnap::LoadPathCache::ChangeObserver::ArrayMixin
  def <<(entry); end
  def []=(*args, &block); end
  def append(*entries); end
  def clear(*args, &block); end
  def collect!(*args, &block); end
  def compact!(*args, &block); end
  def concat(entries); end
  def delete(*args, &block); end
  def delete_at(*args, &block); end
  def delete_if(*args, &block); end
  def fill(*args, &block); end
  def flatten!(*args, &block); end
  def insert(*args, &block); end
  def keep_if(*args, &block); end
  def map!(*args, &block); end
  def pop(*args, &block); end
  def prepend(*entries); end
  def push(*entries); end
  def reject!(*args, &block); end
  def replace(*args, &block); end
  def reverse!(*args, &block); end
  def rotate!(*args, &block); end
  def select!(*args, &block); end
  def shift(*args, &block); end
  def shuffle!(*args, &block); end
  def slice!(*args, &block); end
  def sort!(*args, &block); end
  def sort_by!(*args, &block); end
  def uniq!(*args); end
  def unshift(*entries); end
end

Bootsnap::LoadPathCache::DLEXT = T.let(T.unsafe(nil), String)
Bootsnap::LoadPathCache::DL_EXTENSIONS = T.let(T.unsafe(nil), Array)
Bootsnap::LoadPathCache::DOT_RB = T.let(T.unsafe(nil), String)
Bootsnap::LoadPathCache::DOT_SO = T.let(T.unsafe(nil), String)
Bootsnap::LoadPathCache::ERROR_TAG_IVAR = T.let(T.unsafe(nil), Symbol)
class Bootsnap::LoadPathCache::FallbackScan < ::StandardError; end

class Bootsnap::LoadPathCache::LoadedFeaturesIndex
  def initialize; end

  def key?(feature); end
  def purge(feature); end
  def purge_multi(features); end
  def register(short, long = T.unsafe(nil)); end

  private

  def extension_elidable?(f); end
  def strip_extension_if_elidable(f); end
end

Bootsnap::LoadPathCache::LoadedFeaturesIndex::STRIP_EXTENSION = T.let(T.unsafe(nil), Regexp)

class Bootsnap::LoadPathCache::Path
  def initialize(path); end

  def entries_and_dirs(store); end
  def expanded_path; end
  def non_directory?; end
  def path; end
  def relative?; end
  def stable?; end
  def volatile?; end

  private

  def latest_mtime(path, dirs); end
  def scan!; end
  def stability; end
end

Bootsnap::LoadPathCache::Path::RUBY_LIBDIR = T.let(T.unsafe(nil), String)
Bootsnap::LoadPathCache::Path::RUBY_SITEDIR = T.let(T.unsafe(nil), String)
Bootsnap::LoadPathCache::Path::STABLE = T.let(T.unsafe(nil), Symbol)
Bootsnap::LoadPathCache::Path::VOLATILE = T.let(T.unsafe(nil), Symbol)

module Bootsnap::LoadPathCache::PathScanner
  class << self
    def call(path); end
    def os_path(path); end
    def walk(absolute_dir_path, relative_dir_path, &block); end
  end
end

Bootsnap::LoadPathCache::PathScanner::ALTERNATIVE_NATIVE_EXTENSIONS_PATTERN = T.let(T.unsafe(nil), Regexp)
Bootsnap::LoadPathCache::PathScanner::BUNDLE_PATH = T.let(T.unsafe(nil), String)
Bootsnap::LoadPathCache::PathScanner::NORMALIZE_NATIVE_EXTENSIONS = T.let(T.unsafe(nil), TrueClass)
Bootsnap::LoadPathCache::PathScanner::REQUIRABLE_EXTENSIONS = T.let(T.unsafe(nil), Array)

class Bootsnap::LoadPathCache::RealpathCache
  def initialize; end

  def call(*key); end

  private

  def find_file(name); end
  def realpath(caller_location, path); end
end

class Bootsnap::LoadPathCache::ReturnFalse < ::StandardError; end
Bootsnap::LoadPathCache::SLASH = T.let(T.unsafe(nil), String)

class Bootsnap::LoadPathCache::Store
  def initialize(store_path); end

  def fetch(key); end
  def get(key); end
  def set(key, value); end
  def transaction; end

  private

  def commit_transaction; end
  def dump_data; end
  def load_data; end
end

class Bootsnap::LoadPathCache::Store::NestedTransactionError < ::StandardError; end
class Bootsnap::LoadPathCache::Store::SetOutsideTransactionNotAllowed < ::StandardError; end
Bootsnap::VERSION = T.let(T.unsafe(nil), String)