lazy_migrate 0.1.0 → 0.2.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 +4 -4
- data/.gitignore +4 -0
- data/Appraisals +9 -0
- data/Gemfile.lock +133 -4
- data/Guardfile +39 -0
- data/README.md +56 -6
- data/Rakefile +1 -3
- data/bin/exe/lazy_migrate +14 -1
- data/gemfiles/.bundle/config +2 -0
- data/gemfiles/rails_5_1_5.gemfile +8 -0
- data/gemfiles/rails_5_1_5.gemfile.lock +170 -0
- data/gemfiles/rails_5_2_4_3.gemfile +8 -0
- data/gemfiles/rails_5_2_4_3.gemfile.lock +178 -0
- data/github/demo.gif +0 -0
- data/lazy_migrate.gemspec +9 -3
- data/lib/lazy_migrate.rb +6 -2
- data/lib/lazy_migrate/client.rb +123 -0
- data/lib/lazy_migrate/migration.rb +14 -0
- data/lib/lazy_migrate/migrator_adapter.rb +144 -0
- data/lib/lazy_migrate/migrator_adapter_factory.rb +24 -0
- data/lib/lazy_migrate/new_migrator_adapter.rb +85 -0
- data/lib/lazy_migrate/old_migrator_adapter.rb +97 -0
- data/lib/lazy_migrate/version.rb +2 -1
- data/lib/tasks/lazy_migrate.rake +10 -0
- data/sorbet/config +2 -0
- data/sorbet/rbi/gems/actioncable.rbi +393 -0
- data/sorbet/rbi/gems/actionmailer.rbi +425 -0
- data/sorbet/rbi/gems/actionpack.rbi +3230 -0
- data/sorbet/rbi/gems/actionview.rbi +1153 -0
- data/sorbet/rbi/gems/activejob.rbi +282 -0
- data/sorbet/rbi/gems/activemodel.rbi +742 -0
- data/sorbet/rbi/gems/activerecord.rbi +4004 -0
- data/sorbet/rbi/gems/activestorage.rbi +174 -0
- data/sorbet/rbi/gems/activesupport.rbi +2300 -0
- data/sorbet/rbi/gems/appraisal.rbi +151 -0
- data/sorbet/rbi/gems/arel.rbi +1253 -0
- data/sorbet/rbi/gems/byebug.rbi +1041 -0
- data/sorbet/rbi/gems/coderay.rbi +92 -0
- data/sorbet/rbi/gems/concurrent-ruby.rbi +1586 -0
- data/sorbet/rbi/gems/crass.rbi +93 -0
- data/sorbet/rbi/gems/erubi.rbi +27 -0
- data/sorbet/rbi/gems/globalid.rbi +99 -0
- data/sorbet/rbi/gems/i18n.rbi +192 -0
- data/sorbet/rbi/gems/loofah.rbi +131 -0
- data/sorbet/rbi/gems/mail.rbi +1092 -0
- data/sorbet/rbi/gems/marcel.rbi +13 -0
- data/sorbet/rbi/gems/method_source.rbi +64 -0
- data/sorbet/rbi/gems/mini_mime.rbi +52 -0
- data/sorbet/rbi/gems/minitest.rbi +282 -0
- data/sorbet/rbi/gems/nio4r.rbi +68 -0
- data/sorbet/rbi/gems/nokogiri.rbi +1011 -0
- data/sorbet/rbi/gems/pastel.rbi +119 -0
- data/sorbet/rbi/gems/pry-byebug.rbi +155 -0
- data/sorbet/rbi/gems/pry.rbi +1949 -0
- data/sorbet/rbi/gems/rack-test.rbi +162 -0
- data/sorbet/rbi/gems/rack.rbi +525 -0
- data/sorbet/rbi/gems/rails-dom-testing.rbi +68 -0
- data/sorbet/rbi/gems/rails-html-sanitizer.rbi +92 -0
- data/sorbet/rbi/gems/railties.rbi +724 -0
- data/sorbet/rbi/gems/rake.rbi +666 -0
- data/sorbet/rbi/gems/rspec-core.rbi +1939 -0
- data/sorbet/rbi/gems/rspec-expectations.rbi +1123 -0
- data/sorbet/rbi/gems/rspec-mocks.rbi +1090 -0
- data/sorbet/rbi/gems/rspec-support.rbi +280 -0
- data/sorbet/rbi/gems/rspec.rbi +15 -0
- data/sorbet/rbi/gems/sprockets-rails.rbi +106 -0
- data/sorbet/rbi/gems/sprockets.rbi +755 -0
- data/sorbet/rbi/gems/sqlite3.rbi +354 -0
- data/sorbet/rbi/gems/thor.rbi +580 -0
- data/sorbet/rbi/gems/thread_safe.rbi +82 -0
- data/sorbet/rbi/gems/tty-color.rbi +44 -0
- data/sorbet/rbi/gems/tty-cursor.rbi +72 -0
- data/sorbet/rbi/gems/tty-prompt.rbi +531 -0
- data/sorbet/rbi/gems/tty-reader.rbi +176 -0
- data/sorbet/rbi/gems/tty-screen.rbi +66 -0
- data/sorbet/rbi/gems/tzinfo.rbi +406 -0
- data/sorbet/rbi/gems/websocket-driver.rbi +103 -0
- data/sorbet/rbi/gems/websocket-extensions.rbi +29 -0
- data/sorbet/rbi/gems/wisper.rbi +130 -0
- data/sorbet/rbi/hidden-definitions/errors.txt +7584 -0
- data/sorbet/rbi/hidden-definitions/hidden.rbi +13328 -0
- data/sorbet/rbi/sorbet-typed/lib/actionmailer/all/actionmailer.rbi +13 -0
- data/sorbet/rbi/sorbet-typed/lib/actionpack/all/actionpack.rbi +954 -0
- data/sorbet/rbi/sorbet-typed/lib/actionview/all/actionview.rbi +321 -0
- data/sorbet/rbi/sorbet-typed/lib/activemodel/all/activemodel.rbi +597 -0
- data/sorbet/rbi/sorbet-typed/lib/activerecord/<6/activerecord.rbi +13 -0
- data/sorbet/rbi/sorbet-typed/lib/activerecord/>=5.2/activerecord.rbi +16 -0
- data/sorbet/rbi/sorbet-typed/lib/activerecord/>=5/activerecord.rbi +53 -0
- data/sorbet/rbi/sorbet-typed/lib/activerecord/all/activerecord.rbi +1454 -0
- data/sorbet/rbi/sorbet-typed/lib/activerecord/all/model_schema.rbi +79 -0
- data/sorbet/rbi/sorbet-typed/lib/activerecord/all/sanitization.rbi +36 -0
- data/sorbet/rbi/sorbet-typed/lib/activerecord/~>5.2.0/activerecord.rbi +447 -0
- data/sorbet/rbi/sorbet-typed/lib/activestorage/<=6.1/activestorage.rbi +82 -0
- data/sorbet/rbi/sorbet-typed/lib/activestorage/all/activestorage.rbi +177 -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/railties/all/railties.rbi +25 -0
- data/sorbet/rbi/todo.rbi +18 -0
- data/sorbet/rbi/user-defined/activerecord.rbi +56 -0
- metadata +181 -7
- data/lib/lazy_migrate/migrator.rb +0 -186
@@ -0,0 +1,280 @@
|
|
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/rspec-support/all/rspec-support.rbi
|
9
|
+
#
|
10
|
+
# rspec-support-3.9.3
|
11
|
+
|
12
|
+
module RSpec
|
13
|
+
extend RSpec::Support::Warnings
|
14
|
+
end
|
15
|
+
module RSpec::Support
|
16
|
+
def self.class_of(object); end
|
17
|
+
def self.define_optimized_require_for_rspec(lib, &require_relative); end
|
18
|
+
def self.deregister_matcher_definition(&block); end
|
19
|
+
def self.failure_notifier; end
|
20
|
+
def self.failure_notifier=(callable); end
|
21
|
+
def self.is_a_matcher?(object); end
|
22
|
+
def self.matcher_definitions; end
|
23
|
+
def self.method_handle_for(object, method_name); end
|
24
|
+
def self.notify_failure(failure, options = nil); end
|
25
|
+
def self.register_matcher_definition(&block); end
|
26
|
+
def self.require_rspec_support(f); end
|
27
|
+
def self.rspec_description_for_object(object); end
|
28
|
+
def self.thread_local_data; end
|
29
|
+
def self.warning_notifier; end
|
30
|
+
def self.warning_notifier=(arg0); end
|
31
|
+
def self.with_failure_notifier(callable); end
|
32
|
+
end
|
33
|
+
module RSpec::Support::Version
|
34
|
+
end
|
35
|
+
class RSpec::Support::ComparableVersion
|
36
|
+
def <=>(other); end
|
37
|
+
def initialize(string); end
|
38
|
+
def segments; end
|
39
|
+
def string; end
|
40
|
+
include Comparable
|
41
|
+
end
|
42
|
+
module RSpec::Support::OS
|
43
|
+
def self.windows?; end
|
44
|
+
def self.windows_file_path?; end
|
45
|
+
def windows?; end
|
46
|
+
def windows_file_path?; end
|
47
|
+
end
|
48
|
+
module RSpec::Support::Ruby
|
49
|
+
def jruby?; end
|
50
|
+
def jruby_9000?; end
|
51
|
+
def jruby_version; end
|
52
|
+
def mri?; end
|
53
|
+
def non_mri?; end
|
54
|
+
def rbx?; end
|
55
|
+
def self.jruby?; end
|
56
|
+
def self.jruby_9000?; end
|
57
|
+
def self.jruby_version; end
|
58
|
+
def self.mri?; end
|
59
|
+
def self.non_mri?; end
|
60
|
+
def self.rbx?; end
|
61
|
+
def self.truffleruby?; end
|
62
|
+
def truffleruby?; end
|
63
|
+
end
|
64
|
+
module RSpec::Support::RubyFeatures
|
65
|
+
def caller_locations_supported?; end
|
66
|
+
def fork_supported?; end
|
67
|
+
def kw_args_supported?; end
|
68
|
+
def module_prepends_supported?; end
|
69
|
+
def module_refinement_supported?; end
|
70
|
+
def optional_and_splat_args_supported?; end
|
71
|
+
def required_kw_args_supported?; end
|
72
|
+
def ripper_supported?; end
|
73
|
+
def self.caller_locations_supported?; end
|
74
|
+
def self.fork_supported?; end
|
75
|
+
def self.kw_args_supported?; end
|
76
|
+
def self.module_prepends_supported?; end
|
77
|
+
def self.module_refinement_supported?; end
|
78
|
+
def self.optional_and_splat_args_supported?; end
|
79
|
+
def self.required_kw_args_supported?; end
|
80
|
+
def self.ripper_supported?; end
|
81
|
+
def self.supports_exception_cause?; end
|
82
|
+
def self.supports_rebinding_module_methods?; end
|
83
|
+
def self.supports_taint?; end
|
84
|
+
def supports_exception_cause?; end
|
85
|
+
def supports_rebinding_module_methods?; end
|
86
|
+
def supports_taint?; end
|
87
|
+
end
|
88
|
+
module RSpec::Support::AllExceptionsExceptOnesWeMustNotRescue
|
89
|
+
def self.===(exception); end
|
90
|
+
end
|
91
|
+
class RSpec::CallerFilter
|
92
|
+
def self.first_non_rspec_line(skip_frames = nil, increment = nil); end
|
93
|
+
end
|
94
|
+
module RSpec::Support::Warnings
|
95
|
+
def deprecate(deprecated, options = nil); end
|
96
|
+
def warn_deprecation(message, options = nil); end
|
97
|
+
def warn_with(message, options = nil); end
|
98
|
+
def warning(text, options = nil); end
|
99
|
+
end
|
100
|
+
class RSpec::Support::EncodedString
|
101
|
+
def <<(string); end
|
102
|
+
def ==(*args, &block); end
|
103
|
+
def detect_source_encoding(string); end
|
104
|
+
def empty?(*args, &block); end
|
105
|
+
def encoding(*args, &block); end
|
106
|
+
def eql?(*args, &block); end
|
107
|
+
def initialize(string, encoding = nil); end
|
108
|
+
def lines(*args, &block); end
|
109
|
+
def matching_encoding(string); end
|
110
|
+
def remove_invalid_bytes(string); end
|
111
|
+
def self.pick_encoding(source_a, source_b); end
|
112
|
+
def source_encoding; end
|
113
|
+
def split(regex_or_string); end
|
114
|
+
def to_s; end
|
115
|
+
def to_str; end
|
116
|
+
end
|
117
|
+
class RSpec::Support::ReentrantMutex
|
118
|
+
def enter; end
|
119
|
+
def exit; end
|
120
|
+
def initialize; end
|
121
|
+
def synchronize; end
|
122
|
+
end
|
123
|
+
class RSpec::Support::Mutex < Thread::Mutex
|
124
|
+
def self.new; end
|
125
|
+
end
|
126
|
+
class RSpec::Support::DirectoryMaker
|
127
|
+
def self.directory_exists?(dirname); end
|
128
|
+
def self.generate_path(stack, part); end
|
129
|
+
def self.generate_stack(path); end
|
130
|
+
def self.mkdir_p(path); end
|
131
|
+
end
|
132
|
+
class RSpec::Support::MethodSignature
|
133
|
+
def arbitrary_kw_args?; end
|
134
|
+
def classify_arity(arity = nil); end
|
135
|
+
def classify_parameters; end
|
136
|
+
def could_contain_kw_args?(args); end
|
137
|
+
def description; end
|
138
|
+
def has_kw_args_in?(args); end
|
139
|
+
def initialize(method); end
|
140
|
+
def invalid_kw_args_from(given_kw_args); end
|
141
|
+
def max_non_kw_args; end
|
142
|
+
def min_non_kw_args; end
|
143
|
+
def missing_kw_args_from(given_kw_args); end
|
144
|
+
def non_kw_args_arity_description; end
|
145
|
+
def optional_kw_args; end
|
146
|
+
def required_kw_args; end
|
147
|
+
def unlimited_args?; end
|
148
|
+
def valid_non_kw_args?(positional_arg_count, optional_max_arg_count = nil); end
|
149
|
+
end
|
150
|
+
class RSpec::Support::MethodSignatureExpectation
|
151
|
+
def empty?; end
|
152
|
+
def expect_arbitrary_keywords; end
|
153
|
+
def expect_arbitrary_keywords=(arg0); end
|
154
|
+
def expect_unlimited_arguments; end
|
155
|
+
def expect_unlimited_arguments=(arg0); end
|
156
|
+
def initialize; end
|
157
|
+
def keywords; end
|
158
|
+
def keywords=(values); end
|
159
|
+
def max_count; end
|
160
|
+
def max_count=(number); end
|
161
|
+
def min_count; end
|
162
|
+
def min_count=(number); end
|
163
|
+
end
|
164
|
+
class RSpec::Support::BlockSignature < RSpec::Support::MethodSignature
|
165
|
+
def classify_parameters; end
|
166
|
+
end
|
167
|
+
class RSpec::Support::MethodSignatureVerifier
|
168
|
+
def arbitrary_kw_args?; end
|
169
|
+
def error_message; end
|
170
|
+
def initialize(signature, args = nil); end
|
171
|
+
def invalid_kw_args; end
|
172
|
+
def kw_args; end
|
173
|
+
def max_non_kw_args; end
|
174
|
+
def min_non_kw_args; end
|
175
|
+
def missing_kw_args; end
|
176
|
+
def non_kw_args; end
|
177
|
+
def split_args(*args); end
|
178
|
+
def unlimited_args?; end
|
179
|
+
def valid?; end
|
180
|
+
def valid_non_kw_args?; end
|
181
|
+
def with_expectation(expectation); end
|
182
|
+
end
|
183
|
+
class RSpec::Support::LooseSignatureVerifier < RSpec::Support::MethodSignatureVerifier
|
184
|
+
def split_args(*args); end
|
185
|
+
end
|
186
|
+
class RSpec::Support::LooseSignatureVerifier::SignatureWithKeywordArgumentsMatcher
|
187
|
+
def has_kw_args_in?(args); end
|
188
|
+
def initialize(signature); end
|
189
|
+
def invalid_kw_args_from(_kw_args); end
|
190
|
+
def missing_kw_args_from(_kw_args); end
|
191
|
+
def non_kw_args_arity_description; end
|
192
|
+
def valid_non_kw_args?(*args); end
|
193
|
+
end
|
194
|
+
module RSpec::Support::WithKeywordsWhenNeeded
|
195
|
+
def class_exec(klass, *args, &block); end
|
196
|
+
def self.class_exec(klass, *args, &block); end
|
197
|
+
end
|
198
|
+
module RSpec::Support::RecursiveConstMethods
|
199
|
+
def const_defined_on?(mod, const_name); end
|
200
|
+
def constants_defined_on(mod); end
|
201
|
+
def get_const_defined_on(mod, const_name); end
|
202
|
+
def normalize_const_name(const_name); end
|
203
|
+
def recursive_const_defined?(const_name); end
|
204
|
+
def recursive_const_get(const_name); end
|
205
|
+
end
|
206
|
+
class RSpec::Support::ObjectFormatter
|
207
|
+
def format(object); end
|
208
|
+
def initialize(max_formatted_output_length = nil); end
|
209
|
+
def max_formatted_output_length; end
|
210
|
+
def max_formatted_output_length=(arg0); end
|
211
|
+
def prepare_array(array); end
|
212
|
+
def prepare_element(element); end
|
213
|
+
def prepare_for_inspection(object); end
|
214
|
+
def prepare_hash(input_hash); end
|
215
|
+
def recursive_structure?(object); end
|
216
|
+
def self.default_instance; end
|
217
|
+
def self.format(object); end
|
218
|
+
def self.prepare_for_inspection(object); end
|
219
|
+
def sort_hash_keys(input_hash); end
|
220
|
+
def truncate_string(str, start_index, end_index); end
|
221
|
+
def with_entering_structure(structure); end
|
222
|
+
end
|
223
|
+
class RSpec::Support::ObjectFormatter::InspectableItem < Struct
|
224
|
+
def inspect; end
|
225
|
+
def pretty_print(pp); end
|
226
|
+
def self.[](*arg0); end
|
227
|
+
def self.inspect; end
|
228
|
+
def self.members; end
|
229
|
+
def self.new(*arg0); end
|
230
|
+
def text; end
|
231
|
+
def text=(_); end
|
232
|
+
end
|
233
|
+
class RSpec::Support::ObjectFormatter::BaseInspector < Struct
|
234
|
+
def formatter; end
|
235
|
+
def formatter=(_); end
|
236
|
+
def inspect; end
|
237
|
+
def object; end
|
238
|
+
def object=(_); end
|
239
|
+
def pretty_print(pp); end
|
240
|
+
def self.[](*arg0); end
|
241
|
+
def self.can_inspect?(_object); end
|
242
|
+
def self.inspect; end
|
243
|
+
def self.members; end
|
244
|
+
def self.new(*arg0); end
|
245
|
+
end
|
246
|
+
class RSpec::Support::ObjectFormatter::TimeInspector < RSpec::Support::ObjectFormatter::BaseInspector
|
247
|
+
def inspect; end
|
248
|
+
def self.can_inspect?(object); end
|
249
|
+
end
|
250
|
+
class RSpec::Support::ObjectFormatter::DateTimeInspector < RSpec::Support::ObjectFormatter::BaseInspector
|
251
|
+
def inspect; end
|
252
|
+
def self.can_inspect?(object); end
|
253
|
+
end
|
254
|
+
class RSpec::Support::ObjectFormatter::BigDecimalInspector < RSpec::Support::ObjectFormatter::BaseInspector
|
255
|
+
def inspect; end
|
256
|
+
def self.can_inspect?(object); end
|
257
|
+
end
|
258
|
+
class RSpec::Support::ObjectFormatter::DescribableMatcherInspector < RSpec::Support::ObjectFormatter::BaseInspector
|
259
|
+
def inspect; end
|
260
|
+
def self.can_inspect?(object); end
|
261
|
+
end
|
262
|
+
class RSpec::Support::ObjectFormatter::UninspectableObjectInspector < RSpec::Support::ObjectFormatter::BaseInspector
|
263
|
+
def inspect; end
|
264
|
+
def klass; end
|
265
|
+
def native_object_id; end
|
266
|
+
def self.can_inspect?(object); end
|
267
|
+
end
|
268
|
+
class RSpec::Support::ObjectFormatter::DelegatorInspector < RSpec::Support::ObjectFormatter::BaseInspector
|
269
|
+
def inspect; end
|
270
|
+
def self.can_inspect?(object); end
|
271
|
+
end
|
272
|
+
class RSpec::Support::ObjectFormatter::InspectableObjectInspector < RSpec::Support::ObjectFormatter::BaseInspector
|
273
|
+
def inspect; end
|
274
|
+
def self.can_inspect?(object); end
|
275
|
+
end
|
276
|
+
module RSpec::Support::FuzzyMatcher
|
277
|
+
def self.arrays_match?(expected_list, actual_list); end
|
278
|
+
def self.hashes_match?(expected_hash, actual_hash); end
|
279
|
+
def self.values_match?(expected, actual); end
|
280
|
+
end
|
@@ -0,0 +1,15 @@
|
|
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/rspec/all/rspec.rbi
|
9
|
+
#
|
10
|
+
# rspec-3.9.0
|
11
|
+
|
12
|
+
module RSpec
|
13
|
+
end
|
14
|
+
module RSpec::Version
|
15
|
+
end
|
@@ -0,0 +1,106 @@
|
|
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/sprockets-rails/all/sprockets-rails.rbi
|
9
|
+
#
|
10
|
+
# sprockets-rails-3.2.1
|
11
|
+
|
12
|
+
module Sprockets
|
13
|
+
end
|
14
|
+
module Sprockets::Rails
|
15
|
+
end
|
16
|
+
module Sprockets::Rails::Context
|
17
|
+
def compute_asset_path(path, options = nil); end
|
18
|
+
def self.included(klass); end
|
19
|
+
include ActionView::Helpers::AssetTagHelper
|
20
|
+
include ActionView::Helpers::AssetUrlHelper
|
21
|
+
include ActionView::Helpers::TagHelper
|
22
|
+
end
|
23
|
+
module Sprockets::Rails::Utils
|
24
|
+
def using_sprockets4?; end
|
25
|
+
end
|
26
|
+
module Sprockets::Rails::Helper
|
27
|
+
def asset_digest_path(path, options = nil); end
|
28
|
+
def asset_integrity(path, options = nil); end
|
29
|
+
def asset_resolver_strategies; end
|
30
|
+
def compute_asset_path(path, options = nil); end
|
31
|
+
def compute_integrity?(options); end
|
32
|
+
def javascript_include_tag(*sources); end
|
33
|
+
def legacy_debug_path(path, debug); end
|
34
|
+
def lookup_debug_asset(path, options = nil); end
|
35
|
+
def path_with_extname(path, options); end
|
36
|
+
def request_debug_assets?; end
|
37
|
+
def resolve_asset; end
|
38
|
+
def resolve_asset_path(path, allow_non_precompiled = nil); end
|
39
|
+
def secure_subresource_integrity_context?; end
|
40
|
+
def self.extended(obj); end
|
41
|
+
def self.included(klass); end
|
42
|
+
def stylesheet_link_tag(*sources); end
|
43
|
+
include ActionView::Helpers::AssetTagHelper
|
44
|
+
include ActionView::Helpers::AssetUrlHelper
|
45
|
+
include ActionView::Helpers::TagHelper
|
46
|
+
include Sprockets::Rails::Utils
|
47
|
+
end
|
48
|
+
class Sprockets::Rails::Helper::AssetNotFound < StandardError
|
49
|
+
end
|
50
|
+
class Sprockets::Rails::Helper::AssetNotPrecompiled < StandardError
|
51
|
+
def initialize(source); end
|
52
|
+
include Sprockets::Rails::Utils
|
53
|
+
end
|
54
|
+
module Sprockets::Rails::HelperAssetResolvers
|
55
|
+
def self.[](name); end
|
56
|
+
end
|
57
|
+
class Sprockets::Rails::HelperAssetResolvers::Manifest
|
58
|
+
def asset_path(path, digest, allow_non_precompiled = nil); end
|
59
|
+
def digest_path(path, allow_non_precompiled = nil); end
|
60
|
+
def find_debug_asset(path); end
|
61
|
+
def initialize(view); end
|
62
|
+
def integrity(path); end
|
63
|
+
def metadata(path); end
|
64
|
+
end
|
65
|
+
class Sprockets::Rails::HelperAssetResolvers::Environment
|
66
|
+
def asset_path(path, digest, allow_non_precompiled = nil); end
|
67
|
+
def digest_path(path, allow_non_precompiled = nil); end
|
68
|
+
def find_asset(path, options = nil); end
|
69
|
+
def find_debug_asset(path); end
|
70
|
+
def initialize(view); end
|
71
|
+
def integrity(path); end
|
72
|
+
def precompiled?(path); end
|
73
|
+
def raise_unless_precompiled_asset(path); end
|
74
|
+
end
|
75
|
+
class Sprockets::Rails::QuietAssets
|
76
|
+
def call(env); end
|
77
|
+
def initialize(app); end
|
78
|
+
end
|
79
|
+
module Sprockets::Rails::RouteWrapper
|
80
|
+
def internal?; end
|
81
|
+
def internal_assets_path?; end
|
82
|
+
def self.included(klass); end
|
83
|
+
end
|
84
|
+
module Rails
|
85
|
+
end
|
86
|
+
class Rails::Application < Rails::Engine
|
87
|
+
def asset_precompiled?(logical_path); end
|
88
|
+
def assets_manifest; end
|
89
|
+
def assets_manifest=(arg0); end
|
90
|
+
def precompiled_assets(clear_cache = nil); end
|
91
|
+
end
|
92
|
+
class Rails::Application::Configuration < Rails::Engine::Configuration
|
93
|
+
end
|
94
|
+
class Rails::Engine < Rails::Railtie
|
95
|
+
end
|
96
|
+
class Sprockets::Railtie < Rails::Railtie
|
97
|
+
def build_environment(app, initialized = nil); end
|
98
|
+
def self.build_manifest(app); end
|
99
|
+
include Sprockets::Rails::Utils
|
100
|
+
end
|
101
|
+
class Sprockets::Railtie::ManifestNeededError < StandardError
|
102
|
+
def initialize; end
|
103
|
+
end
|
104
|
+
class Sprockets::Railtie::OrderedOptions < ActiveSupport::OrderedOptions
|
105
|
+
def configure(&block); end
|
106
|
+
end
|
@@ -0,0 +1,755 @@
|
|
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/sprockets/all/sprockets.rbi
|
9
|
+
#
|
10
|
+
# sprockets-4.0.2
|
11
|
+
|
12
|
+
module Sprockets
|
13
|
+
extend Sprockets::Configuration
|
14
|
+
extend Sprockets::ProcessorUtils
|
15
|
+
end
|
16
|
+
module Sprockets::DigestUtils
|
17
|
+
def build_digest(obj); end
|
18
|
+
def detect_digest_class(bytes); end
|
19
|
+
def digest(obj); end
|
20
|
+
def digest_class; end
|
21
|
+
def hexdigest(obj); end
|
22
|
+
def hexdigest_integrity_uri(hexdigest); end
|
23
|
+
def integrity_uri(digest); end
|
24
|
+
def pack_base64digest(bin); end
|
25
|
+
def pack_hexdigest(bin); end
|
26
|
+
def pack_urlsafe_base64digest(bin); end
|
27
|
+
def unpack_hexdigest(hex); end
|
28
|
+
extend Sprockets::DigestUtils
|
29
|
+
end
|
30
|
+
class Sprockets::Cache
|
31
|
+
def clear(options = nil); end
|
32
|
+
def expand_key(key); end
|
33
|
+
def fetch(key); end
|
34
|
+
def get(key, local = nil); end
|
35
|
+
def get_cache_wrapper(cache); end
|
36
|
+
def initialize(cache = nil, logger = nil); end
|
37
|
+
def inspect; end
|
38
|
+
def peek_key(key); end
|
39
|
+
def self.default_logger; end
|
40
|
+
def set(key, value, local = nil); end
|
41
|
+
end
|
42
|
+
class Anonymous_Struct_27 < Struct
|
43
|
+
def cache; end
|
44
|
+
def cache=(_); end
|
45
|
+
def self.[](*arg0); end
|
46
|
+
def self.inspect; end
|
47
|
+
def self.members; end
|
48
|
+
def self.new(*arg0); end
|
49
|
+
end
|
50
|
+
class Sprockets::Cache::Wrapper < Anonymous_Struct_27
|
51
|
+
end
|
52
|
+
class Sprockets::Cache::GetWrapper < Sprockets::Cache::Wrapper
|
53
|
+
def clear(options = nil); end
|
54
|
+
def get(key); end
|
55
|
+
def set(key, value); end
|
56
|
+
end
|
57
|
+
class Sprockets::Cache::HashWrapper < Sprockets::Cache::Wrapper
|
58
|
+
def clear(options = nil); end
|
59
|
+
def get(key); end
|
60
|
+
def set(key, value); end
|
61
|
+
end
|
62
|
+
class Sprockets::Cache::ReadWriteWrapper < Sprockets::Cache::Wrapper
|
63
|
+
def clear(options = nil); end
|
64
|
+
def get(key); end
|
65
|
+
def set(key, value); end
|
66
|
+
end
|
67
|
+
class Sprockets::Asset
|
68
|
+
def ==(other); end
|
69
|
+
def base64digest; end
|
70
|
+
def bytesize; end
|
71
|
+
def charset; end
|
72
|
+
def content_type; end
|
73
|
+
def digest; end
|
74
|
+
def digest_path; end
|
75
|
+
def each; end
|
76
|
+
def environment_version; end
|
77
|
+
def eql?(other); end
|
78
|
+
def etag; end
|
79
|
+
def filename; end
|
80
|
+
def full_digest_path; end
|
81
|
+
def hash; end
|
82
|
+
def hexdigest; end
|
83
|
+
def id; end
|
84
|
+
def initialize(attributes = nil); end
|
85
|
+
def inspect; end
|
86
|
+
def integrity; end
|
87
|
+
def length; end
|
88
|
+
def links; end
|
89
|
+
def logical_path; end
|
90
|
+
def metadata; end
|
91
|
+
def source; end
|
92
|
+
def to_hash; end
|
93
|
+
def to_s; end
|
94
|
+
def uri; end
|
95
|
+
def write_to(filename); end
|
96
|
+
end
|
97
|
+
module Sprockets::Bower
|
98
|
+
def read_bower_main(dirname, filename); end
|
99
|
+
def resolve_alternates(load_path, logical_path); end
|
100
|
+
end
|
101
|
+
module Sprockets::Utils
|
102
|
+
def concat_javascript_sources(buf, source); end
|
103
|
+
def dfs(initial); end
|
104
|
+
def dfs_paths(path); end
|
105
|
+
def duplicable?(obj); end
|
106
|
+
def hash_reassoc(hash, key_a, key_b = nil, &block); end
|
107
|
+
def hash_reassoc1(hash, key); end
|
108
|
+
def module_include(base, mod); end
|
109
|
+
def string_end_with_semicolon?(str); end
|
110
|
+
extend Sprockets::Utils
|
111
|
+
end
|
112
|
+
module Sprockets::Compressing
|
113
|
+
def compressors; end
|
114
|
+
def css_compressor; end
|
115
|
+
def css_compressor=(compressor); end
|
116
|
+
def gzip=(gzip); end
|
117
|
+
def gzip?; end
|
118
|
+
def js_compressor; end
|
119
|
+
def js_compressor=(compressor); end
|
120
|
+
def register_compressor(mime_type, sym, klass); end
|
121
|
+
def skip_gzip?; end
|
122
|
+
include Sprockets::Utils
|
123
|
+
end
|
124
|
+
module Sprockets::PathUtils
|
125
|
+
def absolute_path?(path); end
|
126
|
+
def atomic_write(filename); end
|
127
|
+
def directory?(path); end
|
128
|
+
def entries(path); end
|
129
|
+
def file?(path); end
|
130
|
+
def find_matching_path_for_extensions(path, basename, extensions); end
|
131
|
+
def find_upwards(basename, path, root = nil); end
|
132
|
+
def join(base, path); end
|
133
|
+
def match_path_extname(path, extensions); end
|
134
|
+
def path_extnames(path); end
|
135
|
+
def path_parents(path, root = nil); end
|
136
|
+
def paths_split(paths, filename); end
|
137
|
+
def relative_path?(path); end
|
138
|
+
def relative_path_from(start, dest); end
|
139
|
+
def set_pipeline(path, mime_exts, pipeline_exts, pipeline); end
|
140
|
+
def split_subpath(path, subpath); end
|
141
|
+
def stat(path); end
|
142
|
+
def stat_directory(dir); end
|
143
|
+
def stat_sorted_tree(dir, &block); end
|
144
|
+
def stat_tree(dir, &block); end
|
145
|
+
extend Sprockets::PathUtils
|
146
|
+
end
|
147
|
+
module Sprockets::PathDigestUtils
|
148
|
+
def file_digest(path); end
|
149
|
+
def files_digest(paths); end
|
150
|
+
def stat_digest(path, stat); end
|
151
|
+
include Sprockets::DigestUtils
|
152
|
+
end
|
153
|
+
module Sprockets::URIUtils
|
154
|
+
def build_asset_uri(path, params = nil); end
|
155
|
+
def build_file_digest_uri(path); end
|
156
|
+
def encode_uri_query_params(params); end
|
157
|
+
def join_file_uri(scheme, host, path, query); end
|
158
|
+
def join_uri(scheme, userinfo, host, port, registry, path, opaque, query, fragment); end
|
159
|
+
def parse_asset_uri(uri); end
|
160
|
+
def parse_file_digest_uri(uri); end
|
161
|
+
def parse_uri_query_params(query); end
|
162
|
+
def split_file_uri(uri); end
|
163
|
+
def split_uri(uri); end
|
164
|
+
def valid_asset_uri?(str); end
|
165
|
+
extend Sprockets::URIUtils
|
166
|
+
end
|
167
|
+
module Sprockets::Dependencies
|
168
|
+
def add_dependency(uri); end
|
169
|
+
def depend_on(uri); end
|
170
|
+
def dependencies; end
|
171
|
+
def dependency_resolvers; end
|
172
|
+
def register_dependency_resolver(scheme, &block); end
|
173
|
+
def resolve_dependency(str); end
|
174
|
+
include Sprockets::DigestUtils
|
175
|
+
end
|
176
|
+
module Sprockets::EncodingUtils
|
177
|
+
def base64(str); end
|
178
|
+
def charlock_detect(str); end
|
179
|
+
def deflate(str); end
|
180
|
+
def detect(str); end
|
181
|
+
def detect_css(str); end
|
182
|
+
def detect_html(str); end
|
183
|
+
def detect_unicode(str); end
|
184
|
+
def detect_unicode_bom(str); end
|
185
|
+
def gzip(str); end
|
186
|
+
def scan_css_charset(str); end
|
187
|
+
def unmarshaled_deflated(str, window_bits = nil); end
|
188
|
+
extend Sprockets::EncodingUtils
|
189
|
+
end
|
190
|
+
module Sprockets::HTTPUtils
|
191
|
+
def find_best_mime_type_match(q_value_header, available); end
|
192
|
+
def find_best_q_match(q_values, available, &matcher); end
|
193
|
+
def find_mime_type_matches(q_value_header, available); end
|
194
|
+
def find_q_matches(q_values, available, &matcher); end
|
195
|
+
def match_mime_type?(value, matcher); end
|
196
|
+
def match_mime_type_keys(hash, mime_type); end
|
197
|
+
def parse_q_values(values); end
|
198
|
+
extend Sprockets::HTTPUtils
|
199
|
+
end
|
200
|
+
module Sprockets::Mime
|
201
|
+
def mime_exts; end
|
202
|
+
def mime_type_charset_detecter(mime_type); end
|
203
|
+
def mime_types; end
|
204
|
+
def read_file(filename, content_type = nil); end
|
205
|
+
def register_mime_type(mime_type, extensions: nil, charset: nil); end
|
206
|
+
include Sprockets::HTTPUtils
|
207
|
+
end
|
208
|
+
module Sprockets::Paths
|
209
|
+
def append_path(path); end
|
210
|
+
def clear_paths; end
|
211
|
+
def each_file; end
|
212
|
+
def paths; end
|
213
|
+
def prepend_path(path); end
|
214
|
+
def root; end
|
215
|
+
def root=(path); end
|
216
|
+
include Sprockets::PathUtils
|
217
|
+
end
|
218
|
+
class Sprockets::FileReader
|
219
|
+
def self.call(input); end
|
220
|
+
end
|
221
|
+
module Sprockets::ProcessorUtils
|
222
|
+
def call_processor(processor, input); end
|
223
|
+
def call_processors(processors, input); end
|
224
|
+
def compose_processors(*processors); end
|
225
|
+
def processor_cache_key(processor); end
|
226
|
+
def processors_cache_keys(processors); end
|
227
|
+
def validate_processor_result!(result); end
|
228
|
+
extend Sprockets::ProcessorUtils
|
229
|
+
end
|
230
|
+
class Anonymous_Struct_28 < Struct
|
231
|
+
def param; end
|
232
|
+
def param=(_); end
|
233
|
+
def processor_strategy; end
|
234
|
+
def processor_strategy=(_); end
|
235
|
+
def processors; end
|
236
|
+
def processors=(_); end
|
237
|
+
def self.[](*arg0); end
|
238
|
+
def self.inspect; end
|
239
|
+
def self.members; end
|
240
|
+
def self.new(*arg0); end
|
241
|
+
end
|
242
|
+
class Sprockets::ProcessorUtils::CompositeProcessor < Anonymous_Struct_28
|
243
|
+
def cache_key; end
|
244
|
+
def call(input); end
|
245
|
+
def self.create(processors); end
|
246
|
+
end
|
247
|
+
module Sprockets::Processing
|
248
|
+
def build_processors_uri(type, file_type, pipeline); end
|
249
|
+
def bundle_processors; end
|
250
|
+
def default_processors_for(type, file_type); end
|
251
|
+
def pipelines; end
|
252
|
+
def postprocessors; end
|
253
|
+
def preprocessors; end
|
254
|
+
def processors; end
|
255
|
+
def processors_for(type, file_type, pipeline); end
|
256
|
+
def register_bundle_metadata_reducer(mime_type, key, *args, &block); end
|
257
|
+
def register_bundle_processor(*args, &block); end
|
258
|
+
def register_config_processor(type, mime_type, processor = nil, &block); end
|
259
|
+
def register_pipeline(name, proc = nil, &block); end
|
260
|
+
def register_postprocessor(*args, &block); end
|
261
|
+
def register_preprocessor(*args, &block); end
|
262
|
+
def register_processor(*args, &block); end
|
263
|
+
def resolve_processors_cache_key_uri(uri); end
|
264
|
+
def self_processors_for(type, file_type); end
|
265
|
+
def unregister_bundle_processor(*args); end
|
266
|
+
def unregister_config_processor(type, mime_type, processor); end
|
267
|
+
def unregister_postprocessor(*args); end
|
268
|
+
def unregister_preprocessor(*args); end
|
269
|
+
def unregister_processor(*args); end
|
270
|
+
include Sprockets::ProcessorUtils
|
271
|
+
end
|
272
|
+
module Sprockets::Exporting
|
273
|
+
def export_concurrent; end
|
274
|
+
def export_concurrent=(export_concurrent); end
|
275
|
+
def exporters; end
|
276
|
+
def register_exporter(mime_types, klass = nil); end
|
277
|
+
def unregister_exporter(mime_types, exporter = nil); end
|
278
|
+
end
|
279
|
+
module Sprockets::Transformers
|
280
|
+
def compose_transformer_list(transformers, preprocessors, postprocessors); end
|
281
|
+
def compose_transformers(transformers, types, preprocessors, postprocessors); end
|
282
|
+
def compute_transformers!(registered_transformers); end
|
283
|
+
def expand_transform_accepts(parsed_accepts); end
|
284
|
+
def register_transformer(from, to, proc); end
|
285
|
+
def register_transformer_suffix(types, type_format, extname, processor); end
|
286
|
+
def resolve_transform_type(type, accept); end
|
287
|
+
def transformers; end
|
288
|
+
include Sprockets::HTTPUtils
|
289
|
+
end
|
290
|
+
class Sprockets::Transformers::Transformer < Struct
|
291
|
+
def from; end
|
292
|
+
def from=(_); end
|
293
|
+
def proc; end
|
294
|
+
def proc=(_); end
|
295
|
+
def self.[](*arg0); end
|
296
|
+
def self.inspect; end
|
297
|
+
def self.members; end
|
298
|
+
def self.new(*arg0); end
|
299
|
+
def to; end
|
300
|
+
def to=(_); end
|
301
|
+
end
|
302
|
+
module Sprockets::Configuration
|
303
|
+
def config; end
|
304
|
+
def config=(config); end
|
305
|
+
def context_class; end
|
306
|
+
def digest_class; end
|
307
|
+
def digest_class=(klass); end
|
308
|
+
def initialize_configuration(parent); end
|
309
|
+
def logger; end
|
310
|
+
def logger=(arg0); end
|
311
|
+
def version; end
|
312
|
+
def version=(version); end
|
313
|
+
include Sprockets::Paths
|
314
|
+
end
|
315
|
+
class Sprockets::Error < StandardError
|
316
|
+
end
|
317
|
+
class Sprockets::ArgumentError < Sprockets::Error
|
318
|
+
end
|
319
|
+
class Sprockets::ContentTypeMismatch < Sprockets::Error
|
320
|
+
end
|
321
|
+
class Sprockets::NotImplementedError < Sprockets::Error
|
322
|
+
end
|
323
|
+
class Sprockets::NotFound < Sprockets::Error
|
324
|
+
end
|
325
|
+
class Sprockets::ConversionError < Sprockets::NotFound
|
326
|
+
end
|
327
|
+
class Sprockets::FileNotFound < Sprockets::NotFound
|
328
|
+
end
|
329
|
+
class Sprockets::FileOutsidePaths < Sprockets::NotFound
|
330
|
+
end
|
331
|
+
module Sprockets::PathDependencyUtils
|
332
|
+
def entries_with_dependencies(path); end
|
333
|
+
def stat_directory_with_dependencies(dir); end
|
334
|
+
def stat_sorted_tree_with_dependencies(dir); end
|
335
|
+
include Sprockets::PathUtils
|
336
|
+
include Sprockets::URIUtils
|
337
|
+
end
|
338
|
+
module Sprockets::Resolve
|
339
|
+
def parse_accept_options(mime_type, explicit_type); end
|
340
|
+
def resolve!(path, **kargs); end
|
341
|
+
def resolve(path, load_paths: nil, accept: nil, pipeline: nil, base_path: nil); end
|
342
|
+
def resolve_absolute_path(paths, filename, accept); end
|
343
|
+
def resolve_alternates(load_path, logical_name); end
|
344
|
+
def resolve_alts_under_path(load_path, logical_name, mime_exts); end
|
345
|
+
def resolve_asset_uri(uri); end
|
346
|
+
def resolve_index_under_path(load_path, logical_name, mime_exts); end
|
347
|
+
def resolve_logical_path(paths, logical_path, accept); end
|
348
|
+
def resolve_main_under_path(load_path, logical_name, mime_exts); end
|
349
|
+
def resolve_relative_path(paths, path, dirname, accept); end
|
350
|
+
def resolve_under_paths(paths, logical_name, accepts); end
|
351
|
+
include Sprockets::HTTPUtils
|
352
|
+
end
|
353
|
+
class Sprockets::URITar
|
354
|
+
def absolute_path?; end
|
355
|
+
def compress; end
|
356
|
+
def compressed_path; end
|
357
|
+
def expand; end
|
358
|
+
def initialize(uri, env); end
|
359
|
+
def path; end
|
360
|
+
def root; end
|
361
|
+
def scheme; end
|
362
|
+
end
|
363
|
+
class Sprockets::UnloadedAsset
|
364
|
+
def asset_key; end
|
365
|
+
def compressed_path; end
|
366
|
+
def dependency_history_key; end
|
367
|
+
def digest_key(digest); end
|
368
|
+
def file_digest_key(stat); end
|
369
|
+
def filename; end
|
370
|
+
def initialize(uri, env); end
|
371
|
+
def load_file_params; end
|
372
|
+
def params; end
|
373
|
+
def uri; end
|
374
|
+
end
|
375
|
+
module Sprockets::Loader
|
376
|
+
def asset_from_cache(key); end
|
377
|
+
def compress_key_from_hash(hash, key); end
|
378
|
+
def expand_key_from_hash(hash, key); end
|
379
|
+
def fetch_asset_from_dependency_cache(unloaded, limit = nil); end
|
380
|
+
def load(uri); end
|
381
|
+
def load_from_unloaded(unloaded); end
|
382
|
+
def resolve_dependencies(uris); end
|
383
|
+
def store_asset(asset, unloaded); end
|
384
|
+
include Sprockets::DigestUtils
|
385
|
+
include Sprockets::Mime
|
386
|
+
end
|
387
|
+
module Sprockets::Npm
|
388
|
+
def read_package_directives(dirname, filename); end
|
389
|
+
def resolve_alternates(load_path, logical_path); end
|
390
|
+
end
|
391
|
+
module Sprockets::Server
|
392
|
+
def bad_request_response(env); end
|
393
|
+
def cache_headers(env, etag); end
|
394
|
+
def call(env); end
|
395
|
+
def css_exception_response(exception); end
|
396
|
+
def escape_css_content(content); end
|
397
|
+
def forbidden_request?(path); end
|
398
|
+
def forbidden_response(env); end
|
399
|
+
def head_request?(env); end
|
400
|
+
def headers(env, asset, length); end
|
401
|
+
def javascript_exception_response(exception); end
|
402
|
+
def method_not_allowed_response; end
|
403
|
+
def not_found_response(env); end
|
404
|
+
def not_modified_response(env, etag); end
|
405
|
+
def ok_response(asset, env); end
|
406
|
+
def path_fingerprint(path); end
|
407
|
+
def precondition_failed_response(env); end
|
408
|
+
end
|
409
|
+
module Sprockets::SourceMapUtils
|
410
|
+
def bsearch_mappings(mappings, offset, from = nil, to = nil); end
|
411
|
+
def combine_source_maps(first, second); end
|
412
|
+
def compare_source_offsets(a, b); end
|
413
|
+
def concat_source_maps(a, b); end
|
414
|
+
def decode_source_map(map); end
|
415
|
+
def decode_vlq_mappings(str, sources: nil, names: nil); end
|
416
|
+
def encode_source_map(map); end
|
417
|
+
def encode_vlq_mappings(mappings, sources: nil, names: nil); end
|
418
|
+
def format_source_map(map, input); end
|
419
|
+
def make_index_map(map); end
|
420
|
+
def vlq_decode(str); end
|
421
|
+
def vlq_decode_mappings(str); end
|
422
|
+
def vlq_encode(ary); end
|
423
|
+
def vlq_encode_mappings(ary); end
|
424
|
+
extend Sprockets::SourceMapUtils
|
425
|
+
end
|
426
|
+
class Sprockets::DoubleLinkError < Sprockets::Error
|
427
|
+
def initialize(parent_filename:, logical_path:, last_filename:, filename:); end
|
428
|
+
end
|
429
|
+
class Sprockets::Base
|
430
|
+
def [](*args, **options); end
|
431
|
+
def cache; end
|
432
|
+
def cache=(cache); end
|
433
|
+
def cached; end
|
434
|
+
def compress_from_root(uri); end
|
435
|
+
def expand_from_root(uri); end
|
436
|
+
def file_digest(path); end
|
437
|
+
def find_all_linked_assets(*args); end
|
438
|
+
def find_asset!(*args); end
|
439
|
+
def find_asset(*args, **options); end
|
440
|
+
def index; end
|
441
|
+
def inspect; end
|
442
|
+
include Sprockets::Bower
|
443
|
+
include Sprockets::Configuration
|
444
|
+
include Sprockets::Npm
|
445
|
+
include Sprockets::PathUtils
|
446
|
+
include Sprockets::Resolve
|
447
|
+
include Sprockets::Server
|
448
|
+
end
|
449
|
+
class Sprockets::Cache::MemoryStore
|
450
|
+
def clear(options = nil); end
|
451
|
+
def get(key); end
|
452
|
+
def initialize(max_size = nil); end
|
453
|
+
def inspect; end
|
454
|
+
def set(key, value); end
|
455
|
+
end
|
456
|
+
class Sprockets::CachedEnvironment < Sprockets::Base
|
457
|
+
def cached; end
|
458
|
+
def config=(config); end
|
459
|
+
def entries(path); end
|
460
|
+
def index; end
|
461
|
+
def initialize(environment); end
|
462
|
+
def load(uri); end
|
463
|
+
def processor_cache_key(str); end
|
464
|
+
def resolve_dependency(str); end
|
465
|
+
def stat(path); end
|
466
|
+
end
|
467
|
+
class Sprockets::Environment < Sprockets::Base
|
468
|
+
def cached; end
|
469
|
+
def find_all_linked_assets(*args, &block); end
|
470
|
+
def find_asset!(*args); end
|
471
|
+
def find_asset(*args, **options); end
|
472
|
+
def index; end
|
473
|
+
def initialize(root = nil); end
|
474
|
+
def load(*args); end
|
475
|
+
end
|
476
|
+
module Sprockets::ManifestUtils
|
477
|
+
def find_directory_manifest(dirname, logger = nil); end
|
478
|
+
def generate_manifest_path; end
|
479
|
+
extend Sprockets::ManifestUtils
|
480
|
+
end
|
481
|
+
class Sprockets::Manifest
|
482
|
+
def assets; end
|
483
|
+
def clean(count = nil, age = nil); end
|
484
|
+
def clobber; end
|
485
|
+
def compile(*args); end
|
486
|
+
def dir; end
|
487
|
+
def directory; end
|
488
|
+
def environment; end
|
489
|
+
def executor; end
|
490
|
+
def exporters_for_asset(asset); end
|
491
|
+
def filename; end
|
492
|
+
def files; end
|
493
|
+
def find(*args); end
|
494
|
+
def find_sources(*args); end
|
495
|
+
def initialize(*args); end
|
496
|
+
def json_decode(obj); end
|
497
|
+
def json_encode(obj); end
|
498
|
+
def logger; end
|
499
|
+
def path; end
|
500
|
+
def remove(filename); end
|
501
|
+
def save; end
|
502
|
+
include Sprockets::ManifestUtils
|
503
|
+
end
|
504
|
+
class Sprockets::Context
|
505
|
+
def asset_data_uri(path); end
|
506
|
+
def asset_path(path, options = nil); end
|
507
|
+
def audio_path(path); end
|
508
|
+
def base64_asset_data_uri(asset); end
|
509
|
+
def content_type; end
|
510
|
+
def depend_on(path); end
|
511
|
+
def depend_on_asset(path); end
|
512
|
+
def depend_on_env(key); end
|
513
|
+
def env_proxy; end
|
514
|
+
def environment; end
|
515
|
+
def filename; end
|
516
|
+
def font_path(path); end
|
517
|
+
def image_path(path); end
|
518
|
+
def initialize(input); end
|
519
|
+
def javascript_path(path); end
|
520
|
+
def link_asset(path); end
|
521
|
+
def load(uri); end
|
522
|
+
def load_path; end
|
523
|
+
def logical_path; end
|
524
|
+
def metadata; end
|
525
|
+
def optimize_quoted_uri_escapes!(escaped); end
|
526
|
+
def optimize_svg_for_uri_escaping!(svg); end
|
527
|
+
def require_asset(path); end
|
528
|
+
def resolve(path, **kargs); end
|
529
|
+
def root_path; end
|
530
|
+
def stub_asset(path); end
|
531
|
+
def stylesheet_path(path); end
|
532
|
+
def svg_asset_data_uri(asset); end
|
533
|
+
def video_path(path); end
|
534
|
+
end
|
535
|
+
class Sprockets::Context::ENVProxy < SimpleDelegator
|
536
|
+
def [](key); end
|
537
|
+
def fetch(key, *arg1); end
|
538
|
+
def initialize(context); end
|
539
|
+
end
|
540
|
+
class Sprockets::SourceMapProcessor
|
541
|
+
def self.call(input); end
|
542
|
+
def self.original_content_type(source_map_content_type, error_when_not_found: nil); end
|
543
|
+
end
|
544
|
+
class Sprockets::AddSourceMapCommentToAssetProcessor
|
545
|
+
def self.call(input); end
|
546
|
+
end
|
547
|
+
class Sprockets::DirectiveProcessor
|
548
|
+
def _call(input); end
|
549
|
+
def call(input); end
|
550
|
+
def compile_header_pattern(comments); end
|
551
|
+
def expand_accept_shorthand(accept); end
|
552
|
+
def expand_relative_dirname(directive, path); end
|
553
|
+
def extract_directives(header); end
|
554
|
+
def initialize(comments: nil); end
|
555
|
+
def link_paths(paths, deps, accept); end
|
556
|
+
def process_depend_on_asset_directive(path); end
|
557
|
+
def process_depend_on_directive(path); end
|
558
|
+
def process_directives(directives); end
|
559
|
+
def process_link_directive(path); end
|
560
|
+
def process_link_directory_directive(path = nil, accept = nil); end
|
561
|
+
def process_link_tree_directive(path = nil, accept = nil); end
|
562
|
+
def process_require_directive(path); end
|
563
|
+
def process_require_directory_directive(path = nil); end
|
564
|
+
def process_require_self_directive; end
|
565
|
+
def process_require_tree_directive(path = nil); end
|
566
|
+
def process_source(source); end
|
567
|
+
def process_stub_directive(path); end
|
568
|
+
def require_paths(paths, deps); end
|
569
|
+
def resolve(path, **kargs); end
|
570
|
+
def resolve_paths(paths, deps, **kargs); end
|
571
|
+
def self.call(input); end
|
572
|
+
def self.instance; end
|
573
|
+
def to_load(uri); end
|
574
|
+
end
|
575
|
+
class Sprockets::Bundle
|
576
|
+
def self.call(input); end
|
577
|
+
def self.dedup(required); end
|
578
|
+
def self.process_bundle_reducers(input, assets, reducers); end
|
579
|
+
end
|
580
|
+
module Sprockets::Autoload
|
581
|
+
end
|
582
|
+
class Sprockets::ClosureCompressor
|
583
|
+
def cache_key; end
|
584
|
+
def call(input); end
|
585
|
+
def initialize(options = nil); end
|
586
|
+
def self.cache_key; end
|
587
|
+
def self.call(input); end
|
588
|
+
def self.instance; end
|
589
|
+
end
|
590
|
+
class Sprockets::SassCompressor
|
591
|
+
def cache_key; end
|
592
|
+
def call(input); end
|
593
|
+
def initialize(options = nil); end
|
594
|
+
def self.cache_key; end
|
595
|
+
def self.call(input); end
|
596
|
+
def self.instance; end
|
597
|
+
end
|
598
|
+
class Sprockets::SasscCompressor
|
599
|
+
def call(input); end
|
600
|
+
def initialize(options = nil); end
|
601
|
+
def self.call(input); end
|
602
|
+
def self.instance; end
|
603
|
+
end
|
604
|
+
class Sprockets::JSMincCompressor
|
605
|
+
def cache_key; end
|
606
|
+
def call(input); end
|
607
|
+
def initialize(options = nil); end
|
608
|
+
def self.cache_key; end
|
609
|
+
def self.call(input); end
|
610
|
+
def self.instance; end
|
611
|
+
end
|
612
|
+
class Sprockets::UglifierCompressor
|
613
|
+
def cache_key; end
|
614
|
+
def call(input); end
|
615
|
+
def initialize(options = nil); end
|
616
|
+
def self.cache_key; end
|
617
|
+
def self.call(input); end
|
618
|
+
def self.instance; end
|
619
|
+
end
|
620
|
+
class Sprockets::YUICompressor
|
621
|
+
def cache_key; end
|
622
|
+
def call(input); end
|
623
|
+
def initialize(options = nil); end
|
624
|
+
def self.cache_key; end
|
625
|
+
def self.call(input); end
|
626
|
+
def self.instance; end
|
627
|
+
end
|
628
|
+
class Sprockets::BabelProcessor
|
629
|
+
def cache_key; end
|
630
|
+
def call(input); end
|
631
|
+
def initialize(options = nil); end
|
632
|
+
def self.cache_key; end
|
633
|
+
def self.call(input); end
|
634
|
+
def self.instance; end
|
635
|
+
end
|
636
|
+
module Sprockets::CoffeeScriptProcessor
|
637
|
+
def self.cache_key; end
|
638
|
+
def self.call(input); end
|
639
|
+
end
|
640
|
+
module Sprockets::EcoProcessor
|
641
|
+
def self.cache_key; end
|
642
|
+
def self.call(input); end
|
643
|
+
end
|
644
|
+
module Sprockets::EjsProcessor
|
645
|
+
def self.cache_key; end
|
646
|
+
def self.call(input); end
|
647
|
+
end
|
648
|
+
class Sprockets::JstProcessor
|
649
|
+
def call(input); end
|
650
|
+
def initialize(namespace: nil); end
|
651
|
+
def self.call(input); end
|
652
|
+
def self.default_namespace; end
|
653
|
+
def self.instance; end
|
654
|
+
end
|
655
|
+
class Sprockets::SasscProcessor
|
656
|
+
def cache_key; end
|
657
|
+
def call(input); end
|
658
|
+
def engine_options(input, context); end
|
659
|
+
def initialize(options = nil, &block); end
|
660
|
+
def merge_options(options); end
|
661
|
+
def self.cache_key; end
|
662
|
+
def self.call(input); end
|
663
|
+
def self.instance; end
|
664
|
+
def self.syntax; end
|
665
|
+
end
|
666
|
+
module Sprockets::SasscProcessor::Functions
|
667
|
+
def asset_data_url(path); end
|
668
|
+
def asset_path(path, options = nil); end
|
669
|
+
def asset_url(path, options = nil); end
|
670
|
+
def audio_path(path); end
|
671
|
+
def audio_url(path); end
|
672
|
+
def font_path(path); end
|
673
|
+
def font_url(path); end
|
674
|
+
def image_path(path); end
|
675
|
+
def image_url(path); end
|
676
|
+
def javascript_path(path); end
|
677
|
+
def javascript_url(path); end
|
678
|
+
def sprockets_context; end
|
679
|
+
def sprockets_dependencies; end
|
680
|
+
def sprockets_environment; end
|
681
|
+
def stylesheet_path(path); end
|
682
|
+
def stylesheet_url(path); end
|
683
|
+
def video_path(path); end
|
684
|
+
def video_url(path); end
|
685
|
+
end
|
686
|
+
class Sprockets::ScsscProcessor < Sprockets::SasscProcessor
|
687
|
+
def self.syntax; end
|
688
|
+
end
|
689
|
+
class Sprockets::ERBProcessor
|
690
|
+
def call(input); end
|
691
|
+
def initialize(&block); end
|
692
|
+
def self.call(input); end
|
693
|
+
def self.instance; end
|
694
|
+
end
|
695
|
+
module Sprockets::Exporters
|
696
|
+
end
|
697
|
+
class Sprockets::Exporters::Base
|
698
|
+
def asset; end
|
699
|
+
def call; end
|
700
|
+
def directory; end
|
701
|
+
def environment; end
|
702
|
+
def initialize(asset: nil, environment: nil, directory: nil); end
|
703
|
+
def setup; end
|
704
|
+
def skip?(logger); end
|
705
|
+
def target; end
|
706
|
+
def write(filename = nil); end
|
707
|
+
end
|
708
|
+
class Sprockets::Exporters::FileExporter < Sprockets::Exporters::Base
|
709
|
+
def call; end
|
710
|
+
def skip?(logger); end
|
711
|
+
end
|
712
|
+
class Sprockets::Utils::Gzip
|
713
|
+
def archiver; end
|
714
|
+
def can_compress?; end
|
715
|
+
def cannot_compress?; end
|
716
|
+
def charset; end
|
717
|
+
def compress(file, target); end
|
718
|
+
def content_type; end
|
719
|
+
def initialize(asset, archiver: nil); end
|
720
|
+
def source; end
|
721
|
+
end
|
722
|
+
module Sprockets::Utils::Gzip::ZlibArchiver
|
723
|
+
def self.call(file, source, mtime); end
|
724
|
+
end
|
725
|
+
module Sprockets::Utils::Gzip::ZopfliArchiver
|
726
|
+
def self.call(file, source, mtime); end
|
727
|
+
end
|
728
|
+
class Sprockets::Exporters::ZlibExporter < Sprockets::Exporters::Base
|
729
|
+
def call; end
|
730
|
+
def setup; end
|
731
|
+
def skip?(logger); end
|
732
|
+
end
|
733
|
+
class Sprockets::Exporters::ZopfliExporter < Sprockets::Exporters::ZlibExporter
|
734
|
+
def setup; end
|
735
|
+
end
|
736
|
+
module Sprockets::Preprocessors
|
737
|
+
end
|
738
|
+
class Sprockets::Preprocessors::DefaultSourceMap
|
739
|
+
def call(input); end
|
740
|
+
def default_mappings(lines); end
|
741
|
+
end
|
742
|
+
class Sprockets::Cache::FileStore
|
743
|
+
def clear(options = nil); end
|
744
|
+
def compute_size(caches); end
|
745
|
+
def find_caches; end
|
746
|
+
def gc!; end
|
747
|
+
def get(key); end
|
748
|
+
def initialize(root, max_size = nil, logger = nil); end
|
749
|
+
def inspect; end
|
750
|
+
def safe_open(path, &block); end
|
751
|
+
def safe_stat(fn); end
|
752
|
+
def self.default_logger; end
|
753
|
+
def set(key, value); end
|
754
|
+
def size; end
|
755
|
+
end
|