frontman-ssg 0.0.4 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +3 -0
- data/CHANGELOG.md +13 -2
- data/Rakefile +5 -2
- data/frontman-ssg.gemspec +1 -0
- data/lib/frontman.rb +0 -5
- data/lib/frontman/app.rb +1 -3
- data/lib/frontman/builder/file.rb +1 -3
- data/lib/frontman/commands/init.rb +2 -3
- data/lib/frontman/commands/serve.rb +29 -28
- data/lib/frontman/concerns/forward_calls_to_app.rb +1 -1
- data/lib/frontman/context.rb +68 -57
- data/lib/frontman/data_store.rb +1 -3
- data/lib/frontman/iterator.rb +1 -3
- data/lib/frontman/renderers/erb_renderer.rb +19 -1
- data/lib/frontman/renderers/haml_renderer.rb +29 -1
- data/lib/frontman/renderers/renderer_resolver.rb +18 -5
- data/lib/frontman/renderers/slim_renderer.rb +30 -0
- data/lib/frontman/resource.rb +9 -13
- data/lib/frontman/sitemap_tree.rb +1 -3
- data/lib/frontman/version.rb +1 -1
- data/project-templates/webpack/helpers/assets_helper.rb +1 -3
- data/sorbet/rbi/gems/ast.rbi +48 -0
- data/sorbet/rbi/gems/better_errors.rbi +180 -0
- data/sorbet/rbi/gems/binding_of_caller.rbi +23 -0
- data/sorbet/rbi/gems/coderay.rbi +24 -0
- data/sorbet/rbi/gems/debug_inspector.rbi +19 -0
- data/sorbet/rbi/gems/docile.rbi +32 -0
- data/sorbet/rbi/gems/dotenv.rbi +68 -0
- data/sorbet/rbi/gems/erubi.rbi +27 -0
- data/sorbet/rbi/gems/erubis.rbi +280 -0
- data/sorbet/rbi/gems/haml.rbi +521 -0
- data/sorbet/rbi/gems/htmlentities.rbi +46 -0
- data/sorbet/rbi/gems/jaro_winkler.rbi +15 -0
- data/sorbet/rbi/gems/kramdown-parser-gfm.rbi +29 -0
- data/sorbet/rbi/gems/kramdown.rbi +338 -0
- data/sorbet/rbi/gems/listen.rbi +301 -0
- data/sorbet/rbi/gems/mustermann.rbi +481 -0
- data/sorbet/rbi/gems/nokogiri.rbi +1011 -0
- data/sorbet/rbi/gems/parallel.rbi +82 -0
- data/sorbet/rbi/gems/parser.rbi +1405 -0
- data/sorbet/rbi/gems/rack-protection.rbi +16 -0
- data/sorbet/rbi/gems/rack.rbi +507 -0
- data/sorbet/rbi/gems/rainbow.rbi +118 -0
- data/sorbet/rbi/gems/rake.rbi +641 -0
- data/sorbet/rbi/gems/rexml.rbi +93 -0
- data/sorbet/rbi/gems/rouge.rbi +1551 -0
- data/sorbet/rbi/gems/rspec-core.rbi +1893 -0
- data/sorbet/rbi/gems/rspec-expectations.rbi +1125 -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-performance.rbi +274 -0
- data/sorbet/rbi/gems/rubocop.rbi +7403 -0
- data/sorbet/rbi/gems/ruby-progressbar.rbi +305 -0
- data/sorbet/rbi/gems/ruby2_keywords.rbi +17 -0
- data/sorbet/rbi/gems/simplecov-html.rbi +35 -0
- data/sorbet/rbi/gems/simplecov.rbi +405 -0
- data/sorbet/rbi/gems/sinatra.rbi +488 -0
- data/sorbet/rbi/gems/slim.rbi +144 -0
- data/sorbet/rbi/gems/temple.rbi +281 -0
- data/sorbet/rbi/gems/thor.rbi +522 -0
- data/sorbet/rbi/gems/tilt.rbi +82 -0
- data/sorbet/rbi/gems/unicode-display_width.rbi +17 -0
- data/sorbet/rbi/gems/yaml-front-matter.rbi +16 -0
- data/sorbet/rbi/hidden-definitions/errors.txt +2859 -24228
- data/sorbet/rbi/hidden-definitions/hidden.rbi +7111 -40830
- data/sorbet/rbi/sorbet-typed/lib/nokogiri/1.10.10/nokogiri.rbi +1615 -0
- data/sorbet/rbi/sorbet-typed/lib/thor/all/thor.rbi +905 -0
- data/sorbet/rbi/todo.rbi +6 -0
- data/spec/frontman/bootstrapper_spec.rb +1 -1
- data/spec/frontman/context_spec.rb +45 -6
- data/spec/frontman/mocks/context.haml +18 -0
- data/spec/frontman/renderers/slim_renderer_spec.rb +12 -0
- metadata +66 -4
@@ -0,0 +1,488 @@
|
|
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/sinatra/all/sinatra.rbi
|
9
|
+
#
|
10
|
+
# sinatra-2.1.0
|
11
|
+
|
12
|
+
module Sinatra
|
13
|
+
def self.helpers(*extensions, &block); end
|
14
|
+
def self.new(base = nil, &block); end
|
15
|
+
def self.register(*extensions, &block); end
|
16
|
+
def self.use(*args, &block); end
|
17
|
+
end
|
18
|
+
class Sinatra::IndifferentHash < Hash
|
19
|
+
def [](key); end
|
20
|
+
def []=(key, value); end
|
21
|
+
def assoc(key); end
|
22
|
+
def convert_key(key); end
|
23
|
+
def convert_value(value); end
|
24
|
+
def default(*args); end
|
25
|
+
def default=(value); end
|
26
|
+
def delete(key); end
|
27
|
+
def dig(key, *other_keys); end
|
28
|
+
def fetch(key, *args); end
|
29
|
+
def fetch_values(*keys); end
|
30
|
+
def has_key?(key); end
|
31
|
+
def has_value?(value); end
|
32
|
+
def include?(key); end
|
33
|
+
def initialize(*args); end
|
34
|
+
def key(value); end
|
35
|
+
def key?(key); end
|
36
|
+
def member?(key); end
|
37
|
+
def merge!(*other_hashes); end
|
38
|
+
def merge(*other_hashes, &block); end
|
39
|
+
def rassoc(value); end
|
40
|
+
def replace(other_hash); end
|
41
|
+
def self.[](*args); end
|
42
|
+
def slice(*keys); end
|
43
|
+
def store(key, value); end
|
44
|
+
def transform_keys!; end
|
45
|
+
def transform_keys(&block); end
|
46
|
+
def transform_values!; end
|
47
|
+
def transform_values(&block); end
|
48
|
+
def update(*other_hashes); end
|
49
|
+
def value?(value); end
|
50
|
+
def values_at(*keys); end
|
51
|
+
end
|
52
|
+
class Sinatra::ShowExceptions < Rack::ShowExceptions
|
53
|
+
def bad_request?(e); end
|
54
|
+
def call(env); end
|
55
|
+
def frame_class(frame); end
|
56
|
+
def initialize(app); end
|
57
|
+
def prefers_plain_text?(env); end
|
58
|
+
def template; end
|
59
|
+
end
|
60
|
+
class Sinatra::Request < Rack::Request
|
61
|
+
def accept; end
|
62
|
+
def accept?(type); end
|
63
|
+
def forwarded?; end
|
64
|
+
def idempotent?; end
|
65
|
+
def link?; end
|
66
|
+
def params; end
|
67
|
+
def preferred_type(*types); end
|
68
|
+
def safe?; end
|
69
|
+
def secure?; end
|
70
|
+
def unlink?; end
|
71
|
+
end
|
72
|
+
class Sinatra::Request::AcceptEntry
|
73
|
+
def <=>(other); end
|
74
|
+
def entry; end
|
75
|
+
def initialize(entry); end
|
76
|
+
def method_missing(*args, &block); end
|
77
|
+
def params; end
|
78
|
+
def params=(arg0); end
|
79
|
+
def priority; end
|
80
|
+
def respond_to?(*args); end
|
81
|
+
def to_s(full = nil); end
|
82
|
+
def to_str; end
|
83
|
+
end
|
84
|
+
class Sinatra::Request::MimeTypeEntry
|
85
|
+
def accepts?(entry); end
|
86
|
+
def initialize(entry); end
|
87
|
+
def matches_params?(params); end
|
88
|
+
def params; end
|
89
|
+
def to_str; end
|
90
|
+
end
|
91
|
+
class Sinatra::Response < Rack::Response
|
92
|
+
def body=(value); end
|
93
|
+
def calculate_content_length?; end
|
94
|
+
def drop_body?; end
|
95
|
+
def drop_content_info?; end
|
96
|
+
def each; end
|
97
|
+
def finish; end
|
98
|
+
end
|
99
|
+
class Anonymous_Struct_10 < Struct
|
100
|
+
def app; end
|
101
|
+
def app=(_); end
|
102
|
+
def self.[](*arg0); end
|
103
|
+
def self.inspect; end
|
104
|
+
def self.members; end
|
105
|
+
def self.new(*arg0); end
|
106
|
+
end
|
107
|
+
class Sinatra::ExtendedRack < Anonymous_Struct_10
|
108
|
+
def after_response(&block); end
|
109
|
+
def async?(status, headers, body); end
|
110
|
+
def call(env); end
|
111
|
+
def setup_close(env, status, headers, body); end
|
112
|
+
end
|
113
|
+
class Sinatra::CommonLogger < Rack::CommonLogger
|
114
|
+
def call(env); end
|
115
|
+
end
|
116
|
+
class Rack::CommonLogger
|
117
|
+
def call_without_check(env); end
|
118
|
+
end
|
119
|
+
class Sinatra::BadRequest < TypeError
|
120
|
+
def http_status; end
|
121
|
+
end
|
122
|
+
class Sinatra::NotFound < NameError
|
123
|
+
def http_status; end
|
124
|
+
end
|
125
|
+
module Sinatra::Helpers
|
126
|
+
def attachment(filename = nil, disposition = nil); end
|
127
|
+
def back; end
|
128
|
+
def bad_request?; end
|
129
|
+
def body(value = nil, &block); end
|
130
|
+
def cache_control(*values); end
|
131
|
+
def client_error?; end
|
132
|
+
def content_type(type = nil, params = nil); end
|
133
|
+
def error(code, body = nil); end
|
134
|
+
def etag(value, options = nil); end
|
135
|
+
def etag_matches?(list, new_resource = nil); end
|
136
|
+
def expires(amount, *values); end
|
137
|
+
def headers(hash = nil); end
|
138
|
+
def informational?; end
|
139
|
+
def last_modified(time); end
|
140
|
+
def logger; end
|
141
|
+
def mime_type(type); end
|
142
|
+
def not_found(body = nil); end
|
143
|
+
def not_found?; end
|
144
|
+
def redirect(uri, *args); end
|
145
|
+
def redirect?; end
|
146
|
+
def send_file(path, opts = nil); end
|
147
|
+
def server_error?; end
|
148
|
+
def session; end
|
149
|
+
def status(value = nil); end
|
150
|
+
def stream(keep_open = nil); end
|
151
|
+
def success?; end
|
152
|
+
def time_for(value); end
|
153
|
+
def to(addr = nil, absolute = nil, add_script_name = nil); end
|
154
|
+
def uri(addr = nil, absolute = nil, add_script_name = nil); end
|
155
|
+
def url(addr = nil, absolute = nil, add_script_name = nil); end
|
156
|
+
def with_params(temp_params); end
|
157
|
+
end
|
158
|
+
class Sinatra::Helpers::Stream
|
159
|
+
def <<(data); end
|
160
|
+
def callback(&block); end
|
161
|
+
def close; end
|
162
|
+
def closed?; end
|
163
|
+
def each(&front); end
|
164
|
+
def errback(&block); end
|
165
|
+
def initialize(scheduler = nil, keep_open = nil, &back); end
|
166
|
+
def self.defer(*arg0); end
|
167
|
+
def self.schedule(*arg0); end
|
168
|
+
end
|
169
|
+
module Sinatra::Templates
|
170
|
+
def asciidoc(template, options = nil, locals = nil); end
|
171
|
+
def builder(template = nil, options = nil, locals = nil, &block); end
|
172
|
+
def coffee(template, options = nil, locals = nil); end
|
173
|
+
def compile_template(engine, data, options, views); end
|
174
|
+
def creole(template, options = nil, locals = nil); end
|
175
|
+
def erb(template, options = nil, locals = nil, &block); end
|
176
|
+
def erubis(template, options = nil, locals = nil); end
|
177
|
+
def find_template(views, name, engine); end
|
178
|
+
def haml(template, options = nil, locals = nil, &block); end
|
179
|
+
def initialize; end
|
180
|
+
def less(template, options = nil, locals = nil); end
|
181
|
+
def liquid(template, options = nil, locals = nil, &block); end
|
182
|
+
def markaby(template = nil, options = nil, locals = nil, &block); end
|
183
|
+
def markdown(template, options = nil, locals = nil); end
|
184
|
+
def mediawiki(template, options = nil, locals = nil); end
|
185
|
+
def nokogiri(template = nil, options = nil, locals = nil, &block); end
|
186
|
+
def rabl(template, options = nil, locals = nil); end
|
187
|
+
def radius(template, options = nil, locals = nil); end
|
188
|
+
def rdoc(template, options = nil, locals = nil); end
|
189
|
+
def render(engine, data, options = nil, locals = nil, &block); end
|
190
|
+
def render_ruby(engine, template, options = nil, locals = nil, &block); end
|
191
|
+
def sass(template, options = nil, locals = nil); end
|
192
|
+
def scss(template, options = nil, locals = nil); end
|
193
|
+
def slim(template, options = nil, locals = nil, &block); end
|
194
|
+
def stylus(template, options = nil, locals = nil); end
|
195
|
+
def textile(template, options = nil, locals = nil); end
|
196
|
+
def wlang(template, options = nil, locals = nil, &block); end
|
197
|
+
def yajl(template, options = nil, locals = nil); end
|
198
|
+
end
|
199
|
+
module Sinatra::Templates::ContentTyped
|
200
|
+
def content_type; end
|
201
|
+
def content_type=(arg0); end
|
202
|
+
end
|
203
|
+
class Sinatra::Base
|
204
|
+
def app; end
|
205
|
+
def app=(arg0); end
|
206
|
+
def call!(env); end
|
207
|
+
def call(env); end
|
208
|
+
def dispatch!; end
|
209
|
+
def dump_errors!(boom); end
|
210
|
+
def env; end
|
211
|
+
def env=(arg0); end
|
212
|
+
def error_block!(key, *block_params); end
|
213
|
+
def filter!(type, base = nil); end
|
214
|
+
def force_encoding(*args); end
|
215
|
+
def forward; end
|
216
|
+
def halt(*response); end
|
217
|
+
def handle_exception!(boom); end
|
218
|
+
def initialize(app = nil); end
|
219
|
+
def invoke; end
|
220
|
+
def options; end
|
221
|
+
def params; end
|
222
|
+
def params=(arg0); end
|
223
|
+
def pass(&block); end
|
224
|
+
def process_route(pattern, conditions, block = nil, values = nil); end
|
225
|
+
def request; end
|
226
|
+
def request=(arg0); end
|
227
|
+
def response; end
|
228
|
+
def response=(arg0); end
|
229
|
+
def route!(base = nil, pass_block = nil); end
|
230
|
+
def route_eval; end
|
231
|
+
def route_missing; end
|
232
|
+
def self.absolute_redirects; end
|
233
|
+
def self.absolute_redirects=(val); end
|
234
|
+
def self.absolute_redirects?; end
|
235
|
+
def self.add_charset; end
|
236
|
+
def self.add_charset=(val); end
|
237
|
+
def self.add_charset?; end
|
238
|
+
def self.add_filter(type, path = nil, **options, &block); end
|
239
|
+
def self.after(path = nil, **options, &block); end
|
240
|
+
def self.agent(pattern); end
|
241
|
+
def self.app_file; end
|
242
|
+
def self.app_file=(val); end
|
243
|
+
def self.app_file?; end
|
244
|
+
def self.before(path = nil, **options, &block); end
|
245
|
+
def self.bind; end
|
246
|
+
def self.bind=(val); end
|
247
|
+
def self.bind?; end
|
248
|
+
def self.build(app); end
|
249
|
+
def self.call(env); end
|
250
|
+
def self.caller_files; end
|
251
|
+
def self.caller_locations; end
|
252
|
+
def self.cleaned_caller(keep = nil); end
|
253
|
+
def self.compile!(verb, path, block, **options); end
|
254
|
+
def self.compile(path, route_mustermann_opts = nil); end
|
255
|
+
def self.condition(name = nil, &block); end
|
256
|
+
def self.configure(*envs); end
|
257
|
+
def self.default_content_type; end
|
258
|
+
def self.default_content_type=(val); end
|
259
|
+
def self.default_content_type?; end
|
260
|
+
def self.default_encoding; end
|
261
|
+
def self.default_encoding=(val); end
|
262
|
+
def self.default_encoding?; end
|
263
|
+
def self.define_singleton(name, content = nil); end
|
264
|
+
def self.delete(path, opts = nil, &bk); end
|
265
|
+
def self.detect_rack_handler; end
|
266
|
+
def self.development?; end
|
267
|
+
def self.disable(*opts); end
|
268
|
+
def self.dump_errors; end
|
269
|
+
def self.dump_errors=(val); end
|
270
|
+
def self.dump_errors?; end
|
271
|
+
def self.empty_path_info; end
|
272
|
+
def self.empty_path_info=(val); end
|
273
|
+
def self.empty_path_info?; end
|
274
|
+
def self.enable(*opts); end
|
275
|
+
def self.environment; end
|
276
|
+
def self.environment=(val); end
|
277
|
+
def self.environment?; end
|
278
|
+
def self.error(*codes, &block); end
|
279
|
+
def self.errors; end
|
280
|
+
def self.extensions; end
|
281
|
+
def self.filters; end
|
282
|
+
def self.force_encoding(data, encoding = nil); end
|
283
|
+
def self.generate_method(method_name, &block); end
|
284
|
+
def self.get(path, opts = nil, &block); end
|
285
|
+
def self.handler_name; end
|
286
|
+
def self.handler_name=(val); end
|
287
|
+
def self.handler_name?; end
|
288
|
+
def self.head(path, opts = nil, &bk); end
|
289
|
+
def self.helpers(*extensions, &block); end
|
290
|
+
def self.host_name(pattern); end
|
291
|
+
def self.inherited(subclass); end
|
292
|
+
def self.inline_templates=(file = nil); end
|
293
|
+
def self.invoke_hook(name, *args); end
|
294
|
+
def self.layout(name = nil, &block); end
|
295
|
+
def self.link(path, opts = nil, &bk); end
|
296
|
+
def self.lock; end
|
297
|
+
def self.lock=(val); end
|
298
|
+
def self.lock?; end
|
299
|
+
def self.logging; end
|
300
|
+
def self.logging=(val); end
|
301
|
+
def self.logging?; end
|
302
|
+
def self.method_override; end
|
303
|
+
def self.method_override=(val); end
|
304
|
+
def self.method_override?; end
|
305
|
+
def self.methodoverride=(val); end
|
306
|
+
def self.methodoverride?; end
|
307
|
+
def self.middleware; end
|
308
|
+
def self.mime_type(type, value = nil); end
|
309
|
+
def self.mime_types(type); end
|
310
|
+
def self.mustermann_opts; end
|
311
|
+
def self.mustermann_opts=(val); end
|
312
|
+
def self.mustermann_opts?; end
|
313
|
+
def self.new!(*arg0); end
|
314
|
+
def self.new(*args, &bk); end
|
315
|
+
def self.not_found(&block); end
|
316
|
+
def self.options(path, opts = nil, &bk); end
|
317
|
+
def self.patch(path, opts = nil, &bk); end
|
318
|
+
def self.port; end
|
319
|
+
def self.port=(val); end
|
320
|
+
def self.port?; end
|
321
|
+
def self.post(path, opts = nil, &bk); end
|
322
|
+
def self.prefixed_redirects; end
|
323
|
+
def self.prefixed_redirects=(val); end
|
324
|
+
def self.prefixed_redirects?; end
|
325
|
+
def self.production?; end
|
326
|
+
def self.protection; end
|
327
|
+
def self.protection=(val); end
|
328
|
+
def self.protection?; end
|
329
|
+
def self.prototype; end
|
330
|
+
def self.provides(*types); end
|
331
|
+
def self.public=(value); end
|
332
|
+
def self.public_dir; end
|
333
|
+
def self.public_dir=(value); end
|
334
|
+
def self.public_folder; end
|
335
|
+
def self.public_folder=(val); end
|
336
|
+
def self.public_folder?; end
|
337
|
+
def self.put(path, opts = nil, &bk); end
|
338
|
+
def self.quiet; end
|
339
|
+
def self.quiet=(val); end
|
340
|
+
def self.quiet?; end
|
341
|
+
def self.quit!; end
|
342
|
+
def self.raise_errors; end
|
343
|
+
def self.raise_errors=(val); end
|
344
|
+
def self.raise_errors?; end
|
345
|
+
def self.register(*extensions, &block); end
|
346
|
+
def self.reload_templates; end
|
347
|
+
def self.reload_templates=(val); end
|
348
|
+
def self.reload_templates?; end
|
349
|
+
def self.reset!; end
|
350
|
+
def self.root; end
|
351
|
+
def self.root=(val); end
|
352
|
+
def self.root?; end
|
353
|
+
def self.route(verb, path, options = nil, &block); end
|
354
|
+
def self.routes; end
|
355
|
+
def self.run!(options = nil, &block); end
|
356
|
+
def self.run; end
|
357
|
+
def self.run=(val); end
|
358
|
+
def self.run?; end
|
359
|
+
def self.running?; end
|
360
|
+
def self.running_server; end
|
361
|
+
def self.running_server=(val); end
|
362
|
+
def self.running_server?; end
|
363
|
+
def self.server; end
|
364
|
+
def self.server=(val); end
|
365
|
+
def self.server?; end
|
366
|
+
def self.session_secret; end
|
367
|
+
def self.session_secret=(val); end
|
368
|
+
def self.session_secret?; end
|
369
|
+
def self.session_store; end
|
370
|
+
def self.session_store=(val); end
|
371
|
+
def self.session_store?; end
|
372
|
+
def self.sessions; end
|
373
|
+
def self.sessions=(val); end
|
374
|
+
def self.sessions?; end
|
375
|
+
def self.set(option, value = nil, ignore_setter = nil, &block); end
|
376
|
+
def self.settings; end
|
377
|
+
def self.setup_common_logger(builder); end
|
378
|
+
def self.setup_custom_logger(builder); end
|
379
|
+
def self.setup_default_middleware(builder); end
|
380
|
+
def self.setup_logging(builder); end
|
381
|
+
def self.setup_middleware(builder); end
|
382
|
+
def self.setup_null_logger(builder); end
|
383
|
+
def self.setup_protection(builder); end
|
384
|
+
def self.setup_sessions(builder); end
|
385
|
+
def self.setup_traps; end
|
386
|
+
def self.show_exceptions; end
|
387
|
+
def self.show_exceptions=(val); end
|
388
|
+
def self.show_exceptions?; end
|
389
|
+
def self.start!(options = nil, &block); end
|
390
|
+
def self.start_server(handler, server_settings, handler_name); end
|
391
|
+
def self.static; end
|
392
|
+
def self.static=(val); end
|
393
|
+
def self.static?; end
|
394
|
+
def self.static_cache_control; end
|
395
|
+
def self.static_cache_control=(val); end
|
396
|
+
def self.static_cache_control?; end
|
397
|
+
def self.stop!; end
|
398
|
+
def self.strict_paths; end
|
399
|
+
def self.strict_paths=(val); end
|
400
|
+
def self.strict_paths?; end
|
401
|
+
def self.suppress_messages?; end
|
402
|
+
def self.synchronize(&block); end
|
403
|
+
def self.template(name, &block); end
|
404
|
+
def self.templates; end
|
405
|
+
def self.test?; end
|
406
|
+
def self.threaded; end
|
407
|
+
def self.threaded=(val); end
|
408
|
+
def self.threaded?; end
|
409
|
+
def self.traps; end
|
410
|
+
def self.traps=(val); end
|
411
|
+
def self.traps?; end
|
412
|
+
def self.unlink(path, opts = nil, &bk); end
|
413
|
+
def self.use(middleware, *args, &block); end
|
414
|
+
def self.use_code; end
|
415
|
+
def self.use_code=(val); end
|
416
|
+
def self.use_code?; end
|
417
|
+
def self.user_agent(pattern); end
|
418
|
+
def self.views; end
|
419
|
+
def self.views=(val); end
|
420
|
+
def self.views?; end
|
421
|
+
def self.warn(message); end
|
422
|
+
def self.x_cascade; end
|
423
|
+
def self.x_cascade=(val); end
|
424
|
+
def self.x_cascade?; end
|
425
|
+
def settings; end
|
426
|
+
def static!(options = nil); end
|
427
|
+
def template_cache; end
|
428
|
+
include Rack::Utils
|
429
|
+
include Sinatra::Helpers
|
430
|
+
include Sinatra::Templates
|
431
|
+
end
|
432
|
+
class Sinatra::Application < Sinatra::Base
|
433
|
+
def self.app_file; end
|
434
|
+
def self.app_file=(val); end
|
435
|
+
def self.app_file?; end
|
436
|
+
def self.logging; end
|
437
|
+
def self.logging=(val); end
|
438
|
+
def self.logging?; end
|
439
|
+
def self.method_override; end
|
440
|
+
def self.method_override=(val); end
|
441
|
+
def self.method_override?; end
|
442
|
+
def self.register(*extensions, &block); end
|
443
|
+
def self.run; end
|
444
|
+
def self.run=(val); end
|
445
|
+
def self.run?; end
|
446
|
+
end
|
447
|
+
module Sinatra::Delegator
|
448
|
+
def after(*args, &block); end
|
449
|
+
def before(*args, &block); end
|
450
|
+
def configure(*args, &block); end
|
451
|
+
def delete(*args, &block); end
|
452
|
+
def development?(*args, &block); end
|
453
|
+
def disable(*args, &block); end
|
454
|
+
def enable(*args, &block); end
|
455
|
+
def error(*args, &block); end
|
456
|
+
def get(*args, &block); end
|
457
|
+
def head(*args, &block); end
|
458
|
+
def helpers(*args, &block); end
|
459
|
+
def layout(*args, &block); end
|
460
|
+
def link(*args, &block); end
|
461
|
+
def mime_type(*args, &block); end
|
462
|
+
def not_found(*args, &block); end
|
463
|
+
def options(*args, &block); end
|
464
|
+
def patch(*args, &block); end
|
465
|
+
def post(*args, &block); end
|
466
|
+
def production?(*args, &block); end
|
467
|
+
def put(*args, &block); end
|
468
|
+
def register(*args, &block); end
|
469
|
+
def self.delegate(*methods); end
|
470
|
+
def self.target; end
|
471
|
+
def self.target=(arg0); end
|
472
|
+
def set(*args, &block); end
|
473
|
+
def settings(*args, &block); end
|
474
|
+
def template(*args, &block); end
|
475
|
+
def test?(*args, &block); end
|
476
|
+
def unlink(*args, &block); end
|
477
|
+
def use(*args, &block); end
|
478
|
+
end
|
479
|
+
class Sinatra::Wrapper
|
480
|
+
def call(env); end
|
481
|
+
def helpers; end
|
482
|
+
def initialize(stack, instance); end
|
483
|
+
def inspect; end
|
484
|
+
def settings; end
|
485
|
+
end
|
486
|
+
class Rack::Builder
|
487
|
+
include Sinatra::Delegator
|
488
|
+
end
|