titleist 0.1.1 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/tests.yml +19 -0
- data/.gitignore +1 -2
- data/.rubocop.yml +26 -1
- data/.ruby-version +1 -1
- data/Gemfile +13 -2
- data/README.md +95 -25
- data/Rakefile +17 -6
- data/docs/index.md +7 -0
- data/lib/generators/titleist/titleist_generator.rb +3 -0
- data/lib/titleist.rb +14 -9
- data/lib/titleist/controller.rb +36 -0
- data/lib/titleist/engine.rb +10 -4
- data/lib/titleist/helper.rb +23 -0
- data/lib/titleist/title.rb +52 -89
- data/lib/titleist/version.rb +5 -1
- data/rbi/sord.rbi +117 -0
- data/sorbet/config +2 -0
- data/sorbet/rbi/gems/actioncable.rbi +318 -0
- data/sorbet/rbi/gems/actionmailbox.rbi +56 -0
- data/sorbet/rbi/gems/actionmailer.rbi +446 -0
- data/sorbet/rbi/gems/actionpack.rbi +3411 -0
- data/sorbet/rbi/gems/actiontext.rbi +79 -0
- data/sorbet/rbi/gems/actionview.rbi +1185 -0
- data/sorbet/rbi/gems/activejob.rbi +362 -0
- data/sorbet/rbi/gems/activemodel.rbi +749 -0
- data/sorbet/rbi/gems/activerecord.rbi +5713 -0
- data/sorbet/rbi/gems/activestorage.rbi +221 -0
- data/sorbet/rbi/gems/activesupport.rbi +2437 -0
- data/sorbet/rbi/gems/addressable.rbi +146 -0
- data/sorbet/rbi/gems/ast.rbi +47 -0
- data/sorbet/rbi/gems/capybara.rbi +1787 -0
- data/sorbet/rbi/gems/childprocess.rbi +106 -0
- data/sorbet/rbi/gems/codeclimate-test-reporter.rbi +125 -0
- data/sorbet/rbi/gems/concurrent-ruby.rbi +1587 -0
- data/sorbet/rbi/gems/crass.rbi +92 -0
- data/sorbet/rbi/gems/docile.rbi +29 -0
- data/sorbet/rbi/gems/erubi.rbi +26 -0
- data/sorbet/rbi/gems/globalid.rbi +98 -0
- data/sorbet/rbi/gems/i18n.rbi +191 -0
- data/sorbet/rbi/gems/jaro_winkler.rbi +14 -0
- data/sorbet/rbi/gems/loofah.rbi +129 -0
- data/sorbet/rbi/gems/mail.rbi +1582 -0
- data/sorbet/rbi/gems/marcel.rbi +12 -0
- data/sorbet/rbi/gems/method_source.rbi +63 -0
- data/sorbet/rbi/gems/mini_mime.rbi +51 -0
- data/sorbet/rbi/gems/minitest.rbi +419 -0
- data/sorbet/rbi/gems/mocha.rbi +794 -0
- data/sorbet/rbi/gems/nio4r.rbi +67 -0
- data/sorbet/rbi/gems/nokogiri.rbi +1010 -0
- data/sorbet/rbi/gems/parallel.rbi +81 -0
- data/sorbet/rbi/gems/parser.rbi +920 -0
- data/sorbet/rbi/gems/public_suffix.rbi +103 -0
- data/sorbet/rbi/gems/puma.rbi +586 -0
- data/sorbet/rbi/gems/rack-test.rbi +161 -0
- data/sorbet/rbi/gems/rack.rbi +634 -0
- data/sorbet/rbi/gems/rails-dom-testing.rbi +67 -0
- data/sorbet/rbi/gems/rails-html-sanitizer.rbi +91 -0
- data/sorbet/rbi/gems/railties.rbi +834 -0
- data/sorbet/rbi/gems/rainbow.rbi +117 -0
- data/sorbet/rbi/gems/rake.rbi +269 -0
- data/sorbet/rbi/gems/regexp_parser.rbi +912 -0
- data/sorbet/rbi/gems/rubocop.rbi +7232 -0
- data/sorbet/rbi/gems/ruby-progressbar.rbi +304 -0
- data/sorbet/rbi/gems/rubyzip.rbi +546 -0
- data/sorbet/rbi/gems/selenium-webdriver.rbi +1450 -0
- data/sorbet/rbi/gems/simplecov-html.rbi +30 -0
- data/sorbet/rbi/gems/simplecov.rbi +189 -0
- data/sorbet/rbi/gems/site_ruby.rbi +265 -0
- data/sorbet/rbi/gems/sprockets-rails.rbi +105 -0
- data/sorbet/rbi/gems/sprockets.rbi +753 -0
- data/sorbet/rbi/gems/sqlite3.rbi +353 -0
- data/sorbet/rbi/gems/thor.rbi +579 -0
- data/sorbet/rbi/gems/thread_safe.rbi +81 -0
- data/sorbet/rbi/gems/tzinfo.rbi +405 -0
- data/sorbet/rbi/gems/unicode-display_width.rbi +16 -0
- data/sorbet/rbi/gems/webdrivers.rbi +155 -0
- data/sorbet/rbi/gems/xpath.rbi +158 -0
- data/sorbet/rbi/gems/yard.rbi +1159 -0
- data/sorbet/rbi/hidden-definitions/errors.txt +14957 -0
- data/sorbet/rbi/hidden-definitions/hidden.rbi +24898 -0
- data/sorbet/rbi/sorbet-typed/lib/actionmailer/all/actionmailer.rbi +13 -0
- data/sorbet/rbi/sorbet-typed/lib/actionpack/all/actionpack.rbi +938 -0
- data/sorbet/rbi/sorbet-typed/lib/actionview/all/actionview.rbi +314 -0
- data/sorbet/rbi/sorbet-typed/lib/activemodel/all/activemodel.rbi +425 -0
- data/sorbet/rbi/sorbet-typed/lib/activerecord/>=5.2/activerecord.rbi +17 -0
- data/sorbet/rbi/sorbet-typed/lib/activerecord/all/activerecord.rbi +1425 -0
- data/sorbet/rbi/sorbet-typed/lib/activerecord/~>6.0.0/activerecord.rbi +475 -0
- data/sorbet/rbi/sorbet-typed/lib/activestorage/>=6.0.0/activestorage.rbi +19 -0
- data/sorbet/rbi/sorbet-typed/lib/activestorage/all/activestorage.rbi +173 -0
- data/sorbet/rbi/sorbet-typed/lib/activesupport/>=6.0.0.rc1/activesupport.rbi +23 -0
- data/sorbet/rbi/sorbet-typed/lib/activesupport/all/activesupport.rbi +858 -0
- data/sorbet/rbi/sorbet-typed/lib/bundler/all/bundler.rbi +8684 -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/sorbet-typed/lib/rainbow/all/rainbow.rbi +254 -0
- data/sorbet/rbi/sorbet-typed/lib/ruby/all/gem.rbi +4222 -0
- data/sorbet/rbi/sorbet-typed/lib/ruby/all/open3.rbi +111 -0
- data/sorbet/rbi/sorbet-typed/lib/ruby/all/resolv.rbi +543 -0
- data/sorbet/rbi/todo.rbi +20 -0
- data/titleist.gemspec +3 -14
- metadata +96 -155
- data/.travis.yml +0 -45
- data/app/controllers/.keep +0 -0
- data/app/helpers/.keep +0 -0
- data/app/helpers/titleist_helper.rb +0 -47
- data/app/mailers/.keep +0 -0
- data/app/models/.keep +0 -0
- data/app/views/.keep +0 -0
@@ -0,0 +1,161 @@
|
|
1
|
+
# This file is autogenerated. Do not edit it by hand. Regenerate it with:
|
2
|
+
# srb rbi gems
|
3
|
+
|
4
|
+
# typed: strong
|
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/rack-test/all/rack-test.rbi
|
9
|
+
#
|
10
|
+
# rack-test-1.1.0
|
11
|
+
module Rack
|
12
|
+
end
|
13
|
+
class Rack::MockSession
|
14
|
+
def after_request(&block); end
|
15
|
+
def clear_cookies; end
|
16
|
+
def cookie_jar; end
|
17
|
+
def cookie_jar=(arg0); end
|
18
|
+
def default_host; end
|
19
|
+
def initialize(app, default_host = nil); end
|
20
|
+
def last_request; end
|
21
|
+
def last_response; end
|
22
|
+
def request(uri, env); end
|
23
|
+
def set_cookie(cookie, uri = nil); end
|
24
|
+
end
|
25
|
+
module Rack::Test
|
26
|
+
def self.encoding_aware_strings?; end
|
27
|
+
end
|
28
|
+
class Rack::Test::Cookie
|
29
|
+
def <=>(other); end
|
30
|
+
def default_uri; end
|
31
|
+
def domain; end
|
32
|
+
def empty?; end
|
33
|
+
def expired?; end
|
34
|
+
def expires; end
|
35
|
+
def http_only?; end
|
36
|
+
def initialize(raw, uri = nil, default_host = nil); end
|
37
|
+
def matches?(uri); end
|
38
|
+
def name; end
|
39
|
+
def path; end
|
40
|
+
def raw; end
|
41
|
+
def replaces?(other); end
|
42
|
+
def secure?; end
|
43
|
+
def to_h; end
|
44
|
+
def to_hash; end
|
45
|
+
def valid?(uri); end
|
46
|
+
def value; end
|
47
|
+
include Rack::Utils
|
48
|
+
end
|
49
|
+
class Rack::Test::CookieJar
|
50
|
+
def <<(new_cookie); end
|
51
|
+
def [](name); end
|
52
|
+
def []=(name, value); end
|
53
|
+
def delete(name); end
|
54
|
+
def for(uri); end
|
55
|
+
def get_cookie(name); end
|
56
|
+
def hash_for(uri = nil); end
|
57
|
+
def initialize(cookies = nil, default_host = nil); end
|
58
|
+
def merge(raw_cookies, uri = nil); end
|
59
|
+
def to_hash; end
|
60
|
+
end
|
61
|
+
class Rack::Test::MockDigestRequest
|
62
|
+
def initialize(params); end
|
63
|
+
def method; end
|
64
|
+
def method_missing(sym); end
|
65
|
+
def response(password); end
|
66
|
+
end
|
67
|
+
module Rack::Test::Utils
|
68
|
+
def build_file_part(parameter_name, uploaded_file); end
|
69
|
+
def build_multipart(params, first = nil, multipart = nil); end
|
70
|
+
def build_nested_query(value, prefix = nil); end
|
71
|
+
def build_parts(parameters); end
|
72
|
+
def build_primitive_part(parameter_name, value); end
|
73
|
+
def get_parts(parameters); end
|
74
|
+
def self.build_file_part(parameter_name, uploaded_file); end
|
75
|
+
def self.build_multipart(params, first = nil, multipart = nil); end
|
76
|
+
def self.build_nested_query(value, prefix = nil); end
|
77
|
+
def self.build_parts(parameters); end
|
78
|
+
def self.build_primitive_part(parameter_name, value); end
|
79
|
+
def self.get_parts(parameters); end
|
80
|
+
extend Rack::Utils
|
81
|
+
include Rack::Utils
|
82
|
+
end
|
83
|
+
module Rack::Test::Methods
|
84
|
+
def _current_session_names; end
|
85
|
+
def authorize(*args, &block); end
|
86
|
+
def basic_authorize(*args, &block); end
|
87
|
+
def build_rack_mock_session; end
|
88
|
+
def build_rack_test_session(name); end
|
89
|
+
def clear_cookies(*args, &block); end
|
90
|
+
def current_session; end
|
91
|
+
def custom_request(*args, &block); end
|
92
|
+
def delete(*args, &block); end
|
93
|
+
def digest_authorize(*args, &block); end
|
94
|
+
def env(*args, &block); end
|
95
|
+
def follow_redirect!(*args, &block); end
|
96
|
+
def get(*args, &block); end
|
97
|
+
def head(*args, &block); end
|
98
|
+
def header(*args, &block); end
|
99
|
+
def last_request(*args, &block); end
|
100
|
+
def last_response(*args, &block); end
|
101
|
+
def options(*args, &block); end
|
102
|
+
def patch(*args, &block); end
|
103
|
+
def post(*args, &block); end
|
104
|
+
def put(*args, &block); end
|
105
|
+
def rack_mock_session(name = nil); end
|
106
|
+
def rack_test_session(name = nil); end
|
107
|
+
def request(*args, &block); end
|
108
|
+
def set_cookie(*args, &block); end
|
109
|
+
def with_session(name); end
|
110
|
+
extend Forwardable
|
111
|
+
end
|
112
|
+
class Rack::Test::UploadedFile
|
113
|
+
def content_type; end
|
114
|
+
def content_type=(arg0); end
|
115
|
+
def initialize(content, content_type = nil, binary = nil, original_filename: nil); end
|
116
|
+
def initialize_from_file_path(path); end
|
117
|
+
def initialize_from_stringio(stringio, original_filename); end
|
118
|
+
def local_path; end
|
119
|
+
def method_missing(method_name, *args, &block); end
|
120
|
+
def original_filename; end
|
121
|
+
def path; end
|
122
|
+
def respond_to_missing?(method_name, include_private = nil); end
|
123
|
+
def self.actually_finalize(file); end
|
124
|
+
def self.finalize(file); end
|
125
|
+
def tempfile; end
|
126
|
+
end
|
127
|
+
class Rack::Test::Error < StandardError
|
128
|
+
end
|
129
|
+
class Rack::Test::Session
|
130
|
+
def authorize(username, password); end
|
131
|
+
def basic_authorize(username, password); end
|
132
|
+
def clear_cookies(*args, &block); end
|
133
|
+
def custom_request(verb, uri, params = nil, env = nil, &block); end
|
134
|
+
def default_env; end
|
135
|
+
def delete(uri, params = nil, env = nil, &block); end
|
136
|
+
def digest_auth_configured?; end
|
137
|
+
def digest_auth_header; end
|
138
|
+
def digest_authorize(username, password); end
|
139
|
+
def env(name, value); end
|
140
|
+
def env_for(uri, env); end
|
141
|
+
def follow_redirect!; end
|
142
|
+
def get(uri, params = nil, env = nil, &block); end
|
143
|
+
def head(uri, params = nil, env = nil, &block); end
|
144
|
+
def header(name, value); end
|
145
|
+
def headers_for_env; end
|
146
|
+
def initialize(mock_session); end
|
147
|
+
def last_request(*args, &block); end
|
148
|
+
def last_response(*args, &block); end
|
149
|
+
def options(uri, params = nil, env = nil, &block); end
|
150
|
+
def params_to_string(params); end
|
151
|
+
def parse_uri(path, env); end
|
152
|
+
def patch(uri, params = nil, env = nil, &block); end
|
153
|
+
def post(uri, params = nil, env = nil, &block); end
|
154
|
+
def process_request(uri, env); end
|
155
|
+
def put(uri, params = nil, env = nil, &block); end
|
156
|
+
def request(uri, env = nil, &block); end
|
157
|
+
def retry_with_digest_auth?(env); end
|
158
|
+
def set_cookie(*args, &block); end
|
159
|
+
extend Forwardable
|
160
|
+
include Rack::Test::Utils
|
161
|
+
end
|
@@ -0,0 +1,634 @@
|
|
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/rack/all/rack.rbi
|
9
|
+
#
|
10
|
+
# rack-2.1.2
|
11
|
+
module Rack
|
12
|
+
def self.release; end
|
13
|
+
def self.version; end
|
14
|
+
end
|
15
|
+
module Rack::Auth
|
16
|
+
end
|
17
|
+
module Rack::Auth::Digest
|
18
|
+
end
|
19
|
+
module Rack::Session
|
20
|
+
end
|
21
|
+
module Rack::RegexpExtensions
|
22
|
+
end
|
23
|
+
class Rack::QueryParser
|
24
|
+
def initialize(params_class, key_space_limit, param_depth_limit); end
|
25
|
+
def key_space_limit; end
|
26
|
+
def make_params; end
|
27
|
+
def new_depth_limit(param_depth_limit); end
|
28
|
+
def new_space_limit(key_space_limit); end
|
29
|
+
def normalize_params(params, name, v, depth); end
|
30
|
+
def param_depth_limit; end
|
31
|
+
def params_hash_has_key?(hash, key); end
|
32
|
+
def params_hash_type?(obj); end
|
33
|
+
def parse_nested_query(qs, d = nil); end
|
34
|
+
def parse_query(qs, d = nil, &unescaper); end
|
35
|
+
def self.make_default(key_space_limit, param_depth_limit); end
|
36
|
+
def unescape(s); end
|
37
|
+
end
|
38
|
+
class Rack::QueryParser::ParameterTypeError < TypeError
|
39
|
+
end
|
40
|
+
class Rack::QueryParser::InvalidParameterError < ArgumentError
|
41
|
+
end
|
42
|
+
class Rack::QueryParser::Params
|
43
|
+
def [](key); end
|
44
|
+
def []=(key, value); end
|
45
|
+
def initialize(limit); end
|
46
|
+
def key?(key); end
|
47
|
+
def to_h; end
|
48
|
+
def to_params_hash; end
|
49
|
+
end
|
50
|
+
module Rack::Utils
|
51
|
+
def add_cookie_to_header(header, key, value); end
|
52
|
+
def add_remove_cookie_to_header(header, key, value = nil); end
|
53
|
+
def best_q_match(q_value_header, available_mimes); end
|
54
|
+
def build_nested_query(value, prefix = nil); end
|
55
|
+
def build_query(params); end
|
56
|
+
def byte_ranges(env, size); end
|
57
|
+
def clean_path_info(path_info); end
|
58
|
+
def clock_time; end
|
59
|
+
def delete_cookie_header!(header, key, value = nil); end
|
60
|
+
def escape(s); end
|
61
|
+
def escape_html(string); end
|
62
|
+
def escape_path(s); end
|
63
|
+
def get_byte_ranges(http_range, size); end
|
64
|
+
def make_delete_cookie_header(header, key, value); end
|
65
|
+
def parse_cookies(env); end
|
66
|
+
def parse_cookies_header(header); end
|
67
|
+
def parse_nested_query(qs, d = nil); end
|
68
|
+
def parse_query(qs, d = nil, &unescaper); end
|
69
|
+
def q_values(q_value_header); end
|
70
|
+
def rfc2109(time); end
|
71
|
+
def rfc2822(time); end
|
72
|
+
def secure_compare(a, b); end
|
73
|
+
def select_best_encoding(available_encodings, accept_encoding); end
|
74
|
+
def self.add_cookie_to_header(header, key, value); end
|
75
|
+
def self.add_remove_cookie_to_header(header, key, value = nil); end
|
76
|
+
def self.best_q_match(q_value_header, available_mimes); end
|
77
|
+
def self.build_nested_query(value, prefix = nil); end
|
78
|
+
def self.build_query(params); end
|
79
|
+
def self.byte_ranges(env, size); end
|
80
|
+
def self.clean_path_info(path_info); end
|
81
|
+
def self.clock_time; end
|
82
|
+
def self.default_query_parser; end
|
83
|
+
def self.default_query_parser=(arg0); end
|
84
|
+
def self.delete_cookie_header!(header, key, value = nil); end
|
85
|
+
def self.escape(s); end
|
86
|
+
def self.escape_html(string); end
|
87
|
+
def self.escape_path(s); end
|
88
|
+
def self.get_byte_ranges(http_range, size); end
|
89
|
+
def self.key_space_limit; end
|
90
|
+
def self.key_space_limit=(v); end
|
91
|
+
def self.make_delete_cookie_header(header, key, value); end
|
92
|
+
def self.multipart_part_limit; end
|
93
|
+
def self.multipart_part_limit=(arg0); end
|
94
|
+
def self.param_depth_limit; end
|
95
|
+
def self.param_depth_limit=(v); end
|
96
|
+
def self.parse_cookies(env); end
|
97
|
+
def self.parse_cookies_header(header); end
|
98
|
+
def self.parse_nested_query(qs, d = nil); end
|
99
|
+
def self.parse_query(qs, d = nil, &unescaper); end
|
100
|
+
def self.q_values(q_value_header); end
|
101
|
+
def self.rfc2109(time); end
|
102
|
+
def self.rfc2822(time); end
|
103
|
+
def self.secure_compare(a, b); end
|
104
|
+
def self.select_best_encoding(available_encodings, accept_encoding); end
|
105
|
+
def self.set_cookie_header!(header, key, value); end
|
106
|
+
def self.status_code(status); end
|
107
|
+
def self.unescape(s, encoding = nil); end
|
108
|
+
def self.unescape_path(s); end
|
109
|
+
def self.valid_path?(path); end
|
110
|
+
def set_cookie_header!(header, key, value); end
|
111
|
+
def status_code(status); end
|
112
|
+
def unescape(s, encoding = nil); end
|
113
|
+
def unescape_path(s); end
|
114
|
+
def valid_path?(path); end
|
115
|
+
end
|
116
|
+
class Rack::Utils::Context
|
117
|
+
def app; end
|
118
|
+
def call(env); end
|
119
|
+
def context(env, app = nil); end
|
120
|
+
def for; end
|
121
|
+
def initialize(app_f, app_r); end
|
122
|
+
def recontext(app); end
|
123
|
+
end
|
124
|
+
class Rack::Utils::HeaderHash < Hash
|
125
|
+
def [](k); end
|
126
|
+
def []=(k, v); end
|
127
|
+
def delete(k); end
|
128
|
+
def each; end
|
129
|
+
def has_key?(k); end
|
130
|
+
def include?(k); end
|
131
|
+
def initialize(hash = nil); end
|
132
|
+
def initialize_copy(other); end
|
133
|
+
def key?(k); end
|
134
|
+
def member?(k); end
|
135
|
+
def merge!(other); end
|
136
|
+
def merge(other); end
|
137
|
+
def names; end
|
138
|
+
def replace(other); end
|
139
|
+
def to_hash; end
|
140
|
+
end
|
141
|
+
class Rack::MediaType
|
142
|
+
def self.params(content_type); end
|
143
|
+
def self.strip_doublequotes(str); end
|
144
|
+
def self.type(content_type); end
|
145
|
+
end
|
146
|
+
class Rack::Request
|
147
|
+
def delete_param(k); end
|
148
|
+
def initialize(env); end
|
149
|
+
def params; end
|
150
|
+
def self.ip_filter; end
|
151
|
+
def self.ip_filter=(arg0); end
|
152
|
+
def update_param(k, v); end
|
153
|
+
include Rack::Request::Env
|
154
|
+
include Rack::Request::Helpers
|
155
|
+
end
|
156
|
+
module Rack::Request::Env
|
157
|
+
def add_header(key, v); end
|
158
|
+
def delete_header(name); end
|
159
|
+
def each_header(&block); end
|
160
|
+
def env; end
|
161
|
+
def fetch_header(name, &block); end
|
162
|
+
def get_header(name); end
|
163
|
+
def has_header?(name); end
|
164
|
+
def initialize(env); end
|
165
|
+
def initialize_copy(other); end
|
166
|
+
def set_header(name, v); end
|
167
|
+
end
|
168
|
+
module Rack::Request::Helpers
|
169
|
+
def GET; end
|
170
|
+
def POST; end
|
171
|
+
def [](key); end
|
172
|
+
def []=(key, value); end
|
173
|
+
def accept_encoding; end
|
174
|
+
def accept_language; end
|
175
|
+
def allowed_scheme(header); end
|
176
|
+
def authority; end
|
177
|
+
def base_url; end
|
178
|
+
def body; end
|
179
|
+
def content_charset; end
|
180
|
+
def content_length; end
|
181
|
+
def content_type; end
|
182
|
+
def cookies; end
|
183
|
+
def default_session; end
|
184
|
+
def delete?; end
|
185
|
+
def delete_param(k); end
|
186
|
+
def extract_port(uri); end
|
187
|
+
def extract_proto_header(header); end
|
188
|
+
def form_data?; end
|
189
|
+
def forwarded_scheme; end
|
190
|
+
def fullpath; end
|
191
|
+
def get?; end
|
192
|
+
def head?; end
|
193
|
+
def host; end
|
194
|
+
def host_with_port; end
|
195
|
+
def ip; end
|
196
|
+
def link?; end
|
197
|
+
def logger; end
|
198
|
+
def media_type; end
|
199
|
+
def media_type_params; end
|
200
|
+
def multithread?; end
|
201
|
+
def options?; end
|
202
|
+
def params; end
|
203
|
+
def parse_http_accept_header(header); end
|
204
|
+
def parse_multipart; end
|
205
|
+
def parse_query(qs, d = nil); end
|
206
|
+
def parseable_data?; end
|
207
|
+
def patch?; end
|
208
|
+
def path; end
|
209
|
+
def path_info; end
|
210
|
+
def path_info=(s); end
|
211
|
+
def port; end
|
212
|
+
def post?; end
|
213
|
+
def put?; end
|
214
|
+
def query_parser; end
|
215
|
+
def query_string; end
|
216
|
+
def referer; end
|
217
|
+
def referrer; end
|
218
|
+
def reject_trusted_ip_addresses(ip_addresses); end
|
219
|
+
def request_method; end
|
220
|
+
def scheme; end
|
221
|
+
def script_name; end
|
222
|
+
def script_name=(s); end
|
223
|
+
def session; end
|
224
|
+
def session_options; end
|
225
|
+
def split_ip_addresses(ip_addresses); end
|
226
|
+
def ssl?; end
|
227
|
+
def strip_port(ip_address); end
|
228
|
+
def trace?; end
|
229
|
+
def trusted_proxy?(ip); end
|
230
|
+
def unlink?; end
|
231
|
+
def update_param(k, v); end
|
232
|
+
def url; end
|
233
|
+
def user_agent; end
|
234
|
+
def values_at(*keys); end
|
235
|
+
def xhr?; end
|
236
|
+
end
|
237
|
+
class Rack::Runtime
|
238
|
+
def call(env); end
|
239
|
+
def initialize(app, name = nil); end
|
240
|
+
end
|
241
|
+
class Rack::BodyProxy
|
242
|
+
def close; end
|
243
|
+
def closed?; end
|
244
|
+
def each; end
|
245
|
+
def initialize(body, &block); end
|
246
|
+
def method_missing(method_name, *args, &block); end
|
247
|
+
def respond_to?(method_name, include_all = nil); end
|
248
|
+
end
|
249
|
+
module Rack::Mime
|
250
|
+
def match?(value, matcher); end
|
251
|
+
def mime_type(ext, fallback = nil); end
|
252
|
+
def self.match?(value, matcher); end
|
253
|
+
def self.mime_type(ext, fallback = nil); end
|
254
|
+
end
|
255
|
+
class Rack::Head
|
256
|
+
def call(env); end
|
257
|
+
def initialize(app); end
|
258
|
+
end
|
259
|
+
class Rack::Files
|
260
|
+
def call(env); end
|
261
|
+
def fail(status, body, headers = nil); end
|
262
|
+
def filesize(path); end
|
263
|
+
def get(env); end
|
264
|
+
def initialize(root, headers = nil, default_mime = nil); end
|
265
|
+
def make_body(request, path, range); end
|
266
|
+
def mime_type(path, default_mime); end
|
267
|
+
def response_body; end
|
268
|
+
def root; end
|
269
|
+
def serving(request, path); end
|
270
|
+
end
|
271
|
+
class Rack::Files::Iterator
|
272
|
+
def close; end
|
273
|
+
def each; end
|
274
|
+
def initialize(path, range); end
|
275
|
+
def path; end
|
276
|
+
def range; end
|
277
|
+
def to_path; end
|
278
|
+
end
|
279
|
+
class Rack::Sendfile
|
280
|
+
def call(env); end
|
281
|
+
def initialize(app, variation = nil, mappings = nil); end
|
282
|
+
def map_accel_path(env, path); end
|
283
|
+
def variation(env); end
|
284
|
+
end
|
285
|
+
class Rack::MethodOverride
|
286
|
+
def allowed_methods; end
|
287
|
+
def call(env); end
|
288
|
+
def initialize(app); end
|
289
|
+
def method_override(env); end
|
290
|
+
def method_override_param(req); end
|
291
|
+
end
|
292
|
+
class Rack::Response
|
293
|
+
def [](key); end
|
294
|
+
def []=(key, v); end
|
295
|
+
def body; end
|
296
|
+
def body=(arg0); end
|
297
|
+
def chunked?; end
|
298
|
+
def close; end
|
299
|
+
def delete_header(key); end
|
300
|
+
def each(&callback); end
|
301
|
+
def empty?; end
|
302
|
+
def finish(&block); end
|
303
|
+
def get_header(key); end
|
304
|
+
def has_header?(key); end
|
305
|
+
def header; end
|
306
|
+
def headers; end
|
307
|
+
def initialize(body = nil, status = nil, header = nil); end
|
308
|
+
def length; end
|
309
|
+
def length=(arg0); end
|
310
|
+
def redirect(target, status = nil); end
|
311
|
+
def set_header(key, v); end
|
312
|
+
def status; end
|
313
|
+
def status=(arg0); end
|
314
|
+
def to_a(&block); end
|
315
|
+
def write(chunk); end
|
316
|
+
include Rack::Response::Helpers
|
317
|
+
end
|
318
|
+
module Rack::Response::Helpers
|
319
|
+
def accepted?; end
|
320
|
+
def add_header(key, v); end
|
321
|
+
def append(chunk); end
|
322
|
+
def bad_request?; end
|
323
|
+
def buffered_body!; end
|
324
|
+
def cache_control; end
|
325
|
+
def cache_control=(v); end
|
326
|
+
def client_error?; end
|
327
|
+
def content_length; end
|
328
|
+
def content_type; end
|
329
|
+
def created?; end
|
330
|
+
def delete_cookie(key, value = nil); end
|
331
|
+
def etag; end
|
332
|
+
def etag=(v); end
|
333
|
+
def forbidden?; end
|
334
|
+
def include?(header); end
|
335
|
+
def informational?; end
|
336
|
+
def invalid?; end
|
337
|
+
def location; end
|
338
|
+
def location=(location); end
|
339
|
+
def media_type; end
|
340
|
+
def media_type_params; end
|
341
|
+
def method_not_allowed?; end
|
342
|
+
def moved_permanently?; end
|
343
|
+
def no_content?; end
|
344
|
+
def not_found?; end
|
345
|
+
def ok?; end
|
346
|
+
def precondition_failed?; end
|
347
|
+
def redirect?; end
|
348
|
+
def redirection?; end
|
349
|
+
def server_error?; end
|
350
|
+
def set_cookie(key, value); end
|
351
|
+
def set_cookie_header; end
|
352
|
+
def set_cookie_header=(v); end
|
353
|
+
def successful?; end
|
354
|
+
def unauthorized?; end
|
355
|
+
def unprocessable?; end
|
356
|
+
end
|
357
|
+
class Rack::Response::Raw
|
358
|
+
def delete_header(key); end
|
359
|
+
def get_header(key); end
|
360
|
+
def has_header?(key); end
|
361
|
+
def headers; end
|
362
|
+
def initialize(status, headers); end
|
363
|
+
def set_header(key, v); end
|
364
|
+
def status; end
|
365
|
+
def status=(arg0); end
|
366
|
+
include Rack::Response::Helpers
|
367
|
+
end
|
368
|
+
class Rack::Session::SessionId
|
369
|
+
def cookie_value; end
|
370
|
+
def empty?; end
|
371
|
+
def hash_sid(sid); end
|
372
|
+
def initialize(public_id); end
|
373
|
+
def inspect; end
|
374
|
+
def private_id; end
|
375
|
+
def public_id; end
|
376
|
+
def to_s; end
|
377
|
+
end
|
378
|
+
module Rack::Session::Abstract
|
379
|
+
end
|
380
|
+
class Rack::Session::Abstract::SessionHash
|
381
|
+
def [](key); end
|
382
|
+
def []=(key, value); end
|
383
|
+
def clear; end
|
384
|
+
def delete(key); end
|
385
|
+
def destroy; end
|
386
|
+
def each(&block); end
|
387
|
+
def empty?; end
|
388
|
+
def exists?; end
|
389
|
+
def fetch(key, default = nil, &block); end
|
390
|
+
def has_key?(key); end
|
391
|
+
def id; end
|
392
|
+
def id=(arg0); end
|
393
|
+
def include?(key); end
|
394
|
+
def initialize(store, req); end
|
395
|
+
def inspect; end
|
396
|
+
def key?(key); end
|
397
|
+
def keys; end
|
398
|
+
def load!; end
|
399
|
+
def load_for_read!; end
|
400
|
+
def load_for_write!; end
|
401
|
+
def loaded?; end
|
402
|
+
def merge!(hash); end
|
403
|
+
def options; end
|
404
|
+
def replace(hash); end
|
405
|
+
def self.find(req); end
|
406
|
+
def self.set(req, session); end
|
407
|
+
def self.set_options(req, options); end
|
408
|
+
def store(key, value); end
|
409
|
+
def stringify_keys(other); end
|
410
|
+
def to_hash; end
|
411
|
+
def update(hash); end
|
412
|
+
def values; end
|
413
|
+
include Enumerable
|
414
|
+
end
|
415
|
+
class Rack::Session::Abstract::Persisted
|
416
|
+
def call(env); end
|
417
|
+
def commit_session(req, res); end
|
418
|
+
def commit_session?(req, session, options); end
|
419
|
+
def context(env, app = nil); end
|
420
|
+
def cookie_value(data); end
|
421
|
+
def current_session_id(req); end
|
422
|
+
def default_options; end
|
423
|
+
def delete_session(req, sid, options); end
|
424
|
+
def extract_session_id(request); end
|
425
|
+
def find_session(env, sid); end
|
426
|
+
def force_options?(options); end
|
427
|
+
def forced_session_update?(session, options); end
|
428
|
+
def generate_sid(secure = nil); end
|
429
|
+
def initialize(app, options = nil); end
|
430
|
+
def initialize_sid; end
|
431
|
+
def key; end
|
432
|
+
def load_session(req); end
|
433
|
+
def loaded_session?(session); end
|
434
|
+
def make_request(env); end
|
435
|
+
def prepare_session(req); end
|
436
|
+
def security_matches?(request, options); end
|
437
|
+
def session_class; end
|
438
|
+
def session_exists?(req); end
|
439
|
+
def set_cookie(request, res, cookie); end
|
440
|
+
def sid_secure; end
|
441
|
+
def write_session(req, sid, session, options); end
|
442
|
+
end
|
443
|
+
class Rack::Session::Abstract::PersistedSecure < Rack::Session::Abstract::Persisted
|
444
|
+
def cookie_value(data); end
|
445
|
+
def extract_session_id(*arg0); end
|
446
|
+
def generate_sid(*arg0); end
|
447
|
+
def session_class; end
|
448
|
+
end
|
449
|
+
class Rack::Session::Abstract::PersistedSecure::SecureSessionHash < Rack::Session::Abstract::SessionHash
|
450
|
+
def [](key); end
|
451
|
+
end
|
452
|
+
class Rack::Session::Abstract::ID < Rack::Session::Abstract::Persisted
|
453
|
+
def delete_session(req, sid, options); end
|
454
|
+
def find_session(req, sid); end
|
455
|
+
def self.inherited(klass); end
|
456
|
+
def write_session(req, sid, session, options); end
|
457
|
+
end
|
458
|
+
class Rack::Session::Cookie < Rack::Session::Abstract::PersistedSecure
|
459
|
+
def coder; end
|
460
|
+
def delete_session(req, session_id, options); end
|
461
|
+
def digest_match?(data, digest); end
|
462
|
+
def extract_session_id(request); end
|
463
|
+
def find_session(req, sid); end
|
464
|
+
def generate_hmac(data, secret); end
|
465
|
+
def initialize(app, options = nil); end
|
466
|
+
def persistent_session_id!(data, sid = nil); end
|
467
|
+
def secure?(options); end
|
468
|
+
def unpacked_cookie_data(request); end
|
469
|
+
def write_session(req, session_id, session, options); end
|
470
|
+
end
|
471
|
+
class Rack::Session::Cookie::Base64
|
472
|
+
def decode(str); end
|
473
|
+
def encode(str); end
|
474
|
+
end
|
475
|
+
class Rack::Session::Cookie::Base64::Marshal < Rack::Session::Cookie::Base64
|
476
|
+
def decode(str); end
|
477
|
+
def encode(str); end
|
478
|
+
end
|
479
|
+
class Rack::Session::Cookie::Base64::JSON < Rack::Session::Cookie::Base64
|
480
|
+
def decode(str); end
|
481
|
+
def encode(obj); end
|
482
|
+
end
|
483
|
+
class Rack::Session::Cookie::Base64::ZipJSON < Rack::Session::Cookie::Base64
|
484
|
+
def decode(str); end
|
485
|
+
def encode(obj); end
|
486
|
+
end
|
487
|
+
class Rack::Session::Cookie::Identity
|
488
|
+
def decode(str); end
|
489
|
+
def encode(str); end
|
490
|
+
end
|
491
|
+
class Rack::Session::Cookie::SessionId < Anonymous_Delegator_4
|
492
|
+
def cookie_value; end
|
493
|
+
def initialize(session_id, cookie_value); end
|
494
|
+
end
|
495
|
+
class Rack::ConditionalGet
|
496
|
+
def call(env); end
|
497
|
+
def etag_matches?(none_match, headers); end
|
498
|
+
def fresh?(env, headers); end
|
499
|
+
def initialize(app); end
|
500
|
+
def modified_since?(modified_since, headers); end
|
501
|
+
def to_rfc2822(since); end
|
502
|
+
end
|
503
|
+
class Rack::ETag
|
504
|
+
def call(env); end
|
505
|
+
def digest_body(body); end
|
506
|
+
def etag_body?(body); end
|
507
|
+
def etag_status?(status); end
|
508
|
+
def initialize(app, no_cache_control = nil, cache_control = nil); end
|
509
|
+
def skip_caching?(headers); end
|
510
|
+
end
|
511
|
+
class Rack::TempfileReaper
|
512
|
+
def call(env); end
|
513
|
+
def initialize(app); end
|
514
|
+
end
|
515
|
+
class Rack::Lint
|
516
|
+
def _call(env); end
|
517
|
+
def call(env = nil); end
|
518
|
+
def check_content_length(status, headers); end
|
519
|
+
def check_content_type(status, headers); end
|
520
|
+
def check_env(env); end
|
521
|
+
def check_error(error); end
|
522
|
+
def check_headers(header); end
|
523
|
+
def check_hijack(env); end
|
524
|
+
def check_hijack_response(headers, env); end
|
525
|
+
def check_input(input); end
|
526
|
+
def check_status(status); end
|
527
|
+
def close; end
|
528
|
+
def each; end
|
529
|
+
def initialize(app); end
|
530
|
+
def verify_content_length(bytes); end
|
531
|
+
include Rack::Lint::Assertion
|
532
|
+
end
|
533
|
+
class Rack::Lint::LintError < RuntimeError
|
534
|
+
end
|
535
|
+
module Rack::Lint::Assertion
|
536
|
+
def assert(message); end
|
537
|
+
end
|
538
|
+
class Rack::Lint::InputWrapper
|
539
|
+
def close(*args); end
|
540
|
+
def each(*args); end
|
541
|
+
def gets(*args); end
|
542
|
+
def initialize(input); end
|
543
|
+
def read(*args); end
|
544
|
+
def rewind(*args); end
|
545
|
+
include Rack::Lint::Assertion
|
546
|
+
end
|
547
|
+
class Rack::Lint::ErrorWrapper
|
548
|
+
def close(*args); end
|
549
|
+
def flush; end
|
550
|
+
def initialize(error); end
|
551
|
+
def puts(str); end
|
552
|
+
def write(str); end
|
553
|
+
include Rack::Lint::Assertion
|
554
|
+
end
|
555
|
+
class Rack::Lint::HijackWrapper
|
556
|
+
def close(*args, &block); end
|
557
|
+
def close_read(*args, &block); end
|
558
|
+
def close_write(*args, &block); end
|
559
|
+
def closed?(*args, &block); end
|
560
|
+
def flush(*args, &block); end
|
561
|
+
def initialize(io); end
|
562
|
+
def read(*args, &block); end
|
563
|
+
def read_nonblock(*args, &block); end
|
564
|
+
def write(*args, &block); end
|
565
|
+
def write_nonblock(*args, &block); end
|
566
|
+
extend Forwardable
|
567
|
+
include Rack::Lint::Assertion
|
568
|
+
end
|
569
|
+
class Rack::MockRequest
|
570
|
+
def delete(uri, opts = nil); end
|
571
|
+
def get(uri, opts = nil); end
|
572
|
+
def head(uri, opts = nil); end
|
573
|
+
def initialize(app); end
|
574
|
+
def options(uri, opts = nil); end
|
575
|
+
def patch(uri, opts = nil); end
|
576
|
+
def post(uri, opts = nil); end
|
577
|
+
def put(uri, opts = nil); end
|
578
|
+
def request(method = nil, uri = nil, opts = nil); end
|
579
|
+
def self.env_for(uri = nil, opts = nil); end
|
580
|
+
def self.parse_uri_rfc2396(uri); end
|
581
|
+
end
|
582
|
+
class Rack::MockRequest::FatalWarning < RuntimeError
|
583
|
+
end
|
584
|
+
class Rack::MockRequest::FatalWarner
|
585
|
+
def flush; end
|
586
|
+
def puts(warning); end
|
587
|
+
def string; end
|
588
|
+
def write(warning); end
|
589
|
+
end
|
590
|
+
class Rack::MockResponse < Rack::Response
|
591
|
+
def =~(other); end
|
592
|
+
def body; end
|
593
|
+
def cookie(name); end
|
594
|
+
def cookies; end
|
595
|
+
def empty?; end
|
596
|
+
def errors; end
|
597
|
+
def errors=(arg0); end
|
598
|
+
def identify_cookie_attributes(cookie_filling); end
|
599
|
+
def initialize(status, headers, body, errors = nil); end
|
600
|
+
def match(other); end
|
601
|
+
def original_headers; end
|
602
|
+
def parse_cookies_from_header; end
|
603
|
+
end
|
604
|
+
class Rack::Builder
|
605
|
+
def call(env); end
|
606
|
+
def freeze_app; end
|
607
|
+
def generate_map(default_app, mapping); end
|
608
|
+
def initialize(default_app = nil, &block); end
|
609
|
+
def map(path, &block); end
|
610
|
+
def run(app); end
|
611
|
+
def self.app(default_app = nil, &block); end
|
612
|
+
def self.load_file(path, opts = nil); end
|
613
|
+
def self.new_from_string(builder_script, file = nil); end
|
614
|
+
def self.parse_file(config, opts = nil); end
|
615
|
+
def to_app; end
|
616
|
+
def use(middleware, *args, &block); end
|
617
|
+
def warmup(prc = nil, &block); end
|
618
|
+
end
|
619
|
+
class Rack::Chunked
|
620
|
+
def call(env); end
|
621
|
+
def chunkable_version?(ver); end
|
622
|
+
def initialize(app); end
|
623
|
+
include Rack::Utils
|
624
|
+
end
|
625
|
+
class Rack::Chunked::Body
|
626
|
+
def close; end
|
627
|
+
def each(&block); end
|
628
|
+
def initialize(body); end
|
629
|
+
def insert_trailers(&block); end
|
630
|
+
include Rack::Utils
|
631
|
+
end
|
632
|
+
class Rack::Chunked::TrailerBody < Rack::Chunked::Body
|
633
|
+
def insert_trailers(&block); end
|
634
|
+
end
|