danger-packwerk 0.14.0 → 0.14.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/danger-packwerk/version.rb +1 -1
- metadata +2 -88
- data/sorbet/config +0 -4
- data/sorbet/rbi/gems/actionview@7.0.4.rbi +0 -11543
- data/sorbet/rbi/gems/activesupport@7.0.4.rbi +0 -12959
- data/sorbet/rbi/gems/addressable@2.8.1.rbi +0 -1505
- data/sorbet/rbi/gems/ast@2.4.2.rbi +0 -522
- data/sorbet/rbi/gems/better_html@2.0.1.rbi +0 -286
- data/sorbet/rbi/gems/builder@3.2.4.rbi +0 -8
- data/sorbet/rbi/gems/claide-plugins@0.9.2.rbi +0 -791
- data/sorbet/rbi/gems/claide@1.1.0.rbi +0 -1132
- data/sorbet/rbi/gems/code_ownership@1.29.2.rbi +0 -525
- data/sorbet/rbi/gems/code_teams@1.0.0.rbi +0 -120
- data/sorbet/rbi/gems/coderay@1.1.3.rbi +0 -2256
- data/sorbet/rbi/gems/colored2@3.1.2.rbi +0 -130
- data/sorbet/rbi/gems/concurrent-ruby@1.1.10.rbi +0 -8695
- data/sorbet/rbi/gems/constant_resolver@0.2.0.rbi +0 -30
- data/sorbet/rbi/gems/cork@0.3.0.rbi +0 -248
- data/sorbet/rbi/gems/crass@1.0.6.rbi +0 -436
- data/sorbet/rbi/gems/danger-plugin-api@1.0.0.rbi +0 -8
- data/sorbet/rbi/gems/danger@9.0.0.rbi +0 -4722
- data/sorbet/rbi/gems/diff-lcs@1.5.0.rbi +0 -862
- data/sorbet/rbi/gems/erubi@1.11.0.rbi +0 -102
- data/sorbet/rbi/gems/faraday-em_http@1.0.0.rbi +0 -266
- data/sorbet/rbi/gems/faraday-em_synchrony@1.0.0.rbi +0 -209
- data/sorbet/rbi/gems/faraday-excon@1.1.0.rbi +0 -212
- data/sorbet/rbi/gems/faraday-http-cache@2.4.1.rbi +0 -805
- data/sorbet/rbi/gems/faraday-httpclient@1.0.1.rbi +0 -221
- data/sorbet/rbi/gems/faraday-multipart@1.0.4.rbi +0 -266
- data/sorbet/rbi/gems/faraday-net_http@1.0.1.rbi +0 -216
- data/sorbet/rbi/gems/faraday-net_http_persistent@1.2.0.rbi +0 -206
- data/sorbet/rbi/gems/faraday-patron@1.0.0.rbi +0 -212
- data/sorbet/rbi/gems/faraday-rack@1.0.0.rbi +0 -225
- data/sorbet/rbi/gems/faraday-retry@1.0.3.rbi +0 -222
- data/sorbet/rbi/gems/faraday@1.10.2.rbi +0 -1862
- data/sorbet/rbi/gems/git@1.12.0.rbi +0 -1936
- data/sorbet/rbi/gems/i18n@1.12.0.rbi +0 -1643
- data/sorbet/rbi/gems/kramdown-parser-gfm@1.1.0.rbi +0 -8
- data/sorbet/rbi/gems/kramdown@2.4.0.rbi +0 -2168
- data/sorbet/rbi/gems/loofah@2.19.0.rbi +0 -646
- data/sorbet/rbi/gems/method_source@1.0.0.rbi +0 -199
- data/sorbet/rbi/gems/minitest@5.16.3.rbi +0 -997
- data/sorbet/rbi/gems/multipart-post@2.2.3.rbi +0 -165
- data/sorbet/rbi/gems/nap@1.1.0.rbi +0 -351
- data/sorbet/rbi/gems/no_proxy_fix@0.1.2.rbi +0 -8
- data/sorbet/rbi/gems/nokogiri@1.13.8.rbi +0 -4916
- data/sorbet/rbi/gems/octokit@5.6.1.rbi +0 -8939
- data/sorbet/rbi/gems/open4@1.3.4.rbi +0 -8
- data/sorbet/rbi/gems/packs@0.0.5.rbi +0 -111
- data/sorbet/rbi/gems/packwerk@2.2.1-e998ef65194de398f0baaf03a0ba33390b30351e.rbi +0 -2161
- data/sorbet/rbi/gems/parallel@1.22.1.rbi +0 -163
- data/sorbet/rbi/gems/parse_packwerk@0.18.0.rbi +0 -225
- data/sorbet/rbi/gems/parser@3.1.2.1.rbi +0 -5988
- data/sorbet/rbi/gems/pry@0.14.1.rbi +0 -6969
- data/sorbet/rbi/gems/public_suffix@5.0.0.rbi +0 -779
- data/sorbet/rbi/gems/racc@1.6.0.rbi +0 -92
- data/sorbet/rbi/gems/rails-dom-testing@2.0.3.rbi +0 -8
- data/sorbet/rbi/gems/rails-html-sanitizer@1.4.3.rbi +0 -493
- data/sorbet/rbi/gems/rainbow@3.1.1.rbi +0 -227
- data/sorbet/rbi/gems/rake@13.0.6.rbi +0 -1865
- data/sorbet/rbi/gems/rbi@0.0.14.rbi +0 -2337
- data/sorbet/rbi/gems/rchardet@1.8.0.rbi +0 -587
- data/sorbet/rbi/gems/regexp_parser@2.5.0.rbi +0 -1851
- data/sorbet/rbi/gems/rexml@3.2.5.rbi +0 -3852
- data/sorbet/rbi/gems/rspec-core@3.11.0.rbi +0 -7725
- data/sorbet/rbi/gems/rspec-expectations@3.11.0.rbi +0 -6201
- data/sorbet/rbi/gems/rspec-mocks@3.11.1.rbi +0 -3625
- data/sorbet/rbi/gems/rspec-support@3.11.0.rbi +0 -1176
- data/sorbet/rbi/gems/rspec@3.11.0.rbi +0 -40
- data/sorbet/rbi/gems/rubocop-ast@1.21.0.rbi +0 -4193
- data/sorbet/rbi/gems/rubocop-sorbet@0.6.8.rbi +0 -677
- data/sorbet/rbi/gems/rubocop@1.36.0.rbi +0 -37914
- data/sorbet/rbi/gems/ruby-progressbar@1.11.0.rbi +0 -732
- data/sorbet/rbi/gems/ruby2_keywords@0.0.5.rbi +0 -8
- data/sorbet/rbi/gems/sawyer@0.9.2.rbi +0 -513
- data/sorbet/rbi/gems/smart_properties@1.17.0.rbi +0 -326
- data/sorbet/rbi/gems/spoom@1.1.11.rbi +0 -1600
- data/sorbet/rbi/gems/tapioca@0.8.0.rbi +0 -1959
- data/sorbet/rbi/gems/terminal-table@3.0.2.rbi +0 -438
- data/sorbet/rbi/gems/thor@1.2.1.rbi +0 -2921
- data/sorbet/rbi/gems/tzinfo@2.0.5.rbi +0 -4879
- data/sorbet/rbi/gems/unicode-display_width@2.3.0.rbi +0 -27
- data/sorbet/rbi/gems/unparser@0.6.5.rbi +0 -2789
- data/sorbet/rbi/gems/webrick@1.7.0.rbi +0 -1802
- data/sorbet/rbi/gems/yard-sorbet@0.6.1.rbi +0 -288
- data/sorbet/rbi/gems/yard@0.9.27.rbi +0 -12668
- data/sorbet/rbi/todo.rbi +0 -125
- data/sorbet/tapioca/require.rb +0 -4
@@ -1,102 +0,0 @@
|
|
1
|
-
# typed: true
|
2
|
-
|
3
|
-
# DO NOT EDIT MANUALLY
|
4
|
-
# This is an autogenerated file for types exported from the `erubi` gem.
|
5
|
-
# Please instead update this file by running `bin/tapioca gem erubi`.
|
6
|
-
|
7
|
-
module Erubi
|
8
|
-
class << self
|
9
|
-
def h(value); end
|
10
|
-
end
|
11
|
-
end
|
12
|
-
|
13
|
-
class Erubi::Engine
|
14
|
-
# Initialize a new Erubi::Engine. Options:
|
15
|
-
# +:bufval+ :: The value to use for the buffer variable, as a string (default <tt>'::String.new'</tt>).
|
16
|
-
# +:bufvar+ :: The variable name to use for the buffer variable, as a string.
|
17
|
-
# +:chain_appends+ :: Whether to chain <tt><<</t> calls to the buffer variable. Offers better
|
18
|
-
# performance, but can cause issues when the buffer variable is reassigned during
|
19
|
-
# template rendering (default +false+).
|
20
|
-
# +:ensure+ :: Wrap the template in a begin/ensure block restoring the previous value of bufvar.
|
21
|
-
# +:escapefunc+ :: The function to use for escaping, as a string (default: <tt>'::Erubi.h'</tt>).
|
22
|
-
# +:escape+ :: Whether to make <tt><%=</tt> escape by default, and <tt><%==</tt> not escape by default.
|
23
|
-
# +:escape_html+ :: Same as +:escape+, with lower priority.
|
24
|
-
# +:filename+ :: The filename for the template.
|
25
|
-
# the resulting source code. Note this may cause problems if you are wrapping the resulting
|
26
|
-
# source code in other code, because the magic comment only has an effect at the beginning of
|
27
|
-
# the file, and having the magic comment later in the file can trigger warnings.
|
28
|
-
# +:freeze_template_literals+ :: Whether to suffix all literal strings for template code with <tt>.freeze</tt>
|
29
|
-
# (default: +true+ on Ruby 2.1+, +false+ on Ruby 2.0 and older).
|
30
|
-
# Can be set to +false+ on Ruby 2.3+ when frozen string literals are enabled
|
31
|
-
# in order to improve performance.
|
32
|
-
# +:literal_prefix+ :: The prefix to output when using escaped tag delimiters (default <tt>'<%'</tt>).
|
33
|
-
# +:literal_postfix+ :: The postfix to output when using escaped tag delimiters (default <tt>'%>'</tt>).
|
34
|
-
# +:outvar+ :: Same as +:bufvar+, with lower priority.
|
35
|
-
# +:postamble+ :: The postamble for the template, by default returns the resulting source code.
|
36
|
-
# +:preamble+ :: The preamble for the template, by default initializes the buffer variable.
|
37
|
-
# +:regexp+ :: The regexp to use for scanning.
|
38
|
-
# +:src+ :: The initial value to use for the source code, an empty string by default.
|
39
|
-
# +:trim+ :: Whether to trim leading and trailing whitespace, true by default.
|
40
|
-
#
|
41
|
-
# @return [Engine] a new instance of Engine
|
42
|
-
def initialize(input, properties = T.unsafe(nil)); end
|
43
|
-
|
44
|
-
# The variable name used for the buffer variable.
|
45
|
-
def bufvar; end
|
46
|
-
|
47
|
-
# The filename of the template, if one was given.
|
48
|
-
def filename; end
|
49
|
-
|
50
|
-
# The frozen ruby source code generated from the template, which can be evaled.
|
51
|
-
def src; end
|
52
|
-
|
53
|
-
private
|
54
|
-
|
55
|
-
# Add ruby code to the template
|
56
|
-
def add_code(code); end
|
57
|
-
|
58
|
-
# Add the given ruby expression result to the template,
|
59
|
-
# escaping it based on the indicator given and escape flag.
|
60
|
-
def add_expression(indicator, code); end
|
61
|
-
|
62
|
-
# Add the result of Ruby expression to the template
|
63
|
-
def add_expression_result(code); end
|
64
|
-
|
65
|
-
# Add the escaped result of Ruby expression to the template
|
66
|
-
def add_expression_result_escaped(code); end
|
67
|
-
|
68
|
-
# Add the given postamble to the src. Can be overridden in subclasses
|
69
|
-
# to make additional changes to src that depend on the current state.
|
70
|
-
def add_postamble(postamble); end
|
71
|
-
|
72
|
-
# Add raw text to the template. Modifies argument if argument is mutable as a memory optimization.
|
73
|
-
# Must be called with a string, cannot be called with nil (Rails's subclass depends on it).
|
74
|
-
def add_text(text); end
|
75
|
-
|
76
|
-
# Raise an exception, as the base engine class does not support handling other indicators.
|
77
|
-
#
|
78
|
-
# @raise [ArgumentError]
|
79
|
-
def handle(indicator, code, tailch, rspace, lspace); end
|
80
|
-
|
81
|
-
# Make sure that any current expression has been terminated.
|
82
|
-
# The default is to terminate all expressions, but when
|
83
|
-
# the chain_appends option is used, expressions may not be
|
84
|
-
# terminated.
|
85
|
-
def terminate_expression; end
|
86
|
-
|
87
|
-
# Make sure the buffer variable is the target of the next append
|
88
|
-
# before yielding to the block. Mark that the buffer is the target
|
89
|
-
# of the next append after the block executes.
|
90
|
-
#
|
91
|
-
# This method should only be called if the block will result in
|
92
|
-
# code where << will append to the bufvar.
|
93
|
-
def with_buffer; end
|
94
|
-
end
|
95
|
-
|
96
|
-
# The default regular expression used for scanning.
|
97
|
-
Erubi::Engine::DEFAULT_REGEXP = T.let(T.unsafe(nil), Regexp)
|
98
|
-
|
99
|
-
Erubi::MATCH_METHOD = T.let(T.unsafe(nil), Symbol)
|
100
|
-
Erubi::RANGE_FIRST = T.let(T.unsafe(nil), Integer)
|
101
|
-
Erubi::RANGE_LAST = T.let(T.unsafe(nil), Integer)
|
102
|
-
Erubi::VERSION = T.let(T.unsafe(nil), String)
|
@@ -1,266 +0,0 @@
|
|
1
|
-
# typed: true
|
2
|
-
|
3
|
-
# DO NOT EDIT MANUALLY
|
4
|
-
# This is an autogenerated file for types exported from the `faraday-em_http` gem.
|
5
|
-
# Please instead update this file by running `bin/tapioca gem faraday-em_http`.
|
6
|
-
|
7
|
-
# This is the main namespace for Faraday.
|
8
|
-
#
|
9
|
-
# It provides methods to create {Connection} objects, and HTTP-related
|
10
|
-
# methods to use directly.
|
11
|
-
#
|
12
|
-
# @example Helpful class methods for easy usage
|
13
|
-
# Faraday.get "http://faraday.com"
|
14
|
-
# @example Helpful class method `.new` to create {Connection} objects.
|
15
|
-
# conn = Faraday.new "http://faraday.com"
|
16
|
-
# conn.get '/'
|
17
|
-
module Faraday
|
18
|
-
class << self
|
19
|
-
# @overload default_adapter
|
20
|
-
# @overload default_adapter=
|
21
|
-
def default_adapter; end
|
22
|
-
|
23
|
-
# Documented elsewhere, see default_adapter reader
|
24
|
-
def default_adapter=(adapter); end
|
25
|
-
|
26
|
-
# @overload default_connection
|
27
|
-
# @overload default_connection=
|
28
|
-
def default_connection; end
|
29
|
-
|
30
|
-
# Documented below, see default_connection
|
31
|
-
def default_connection=(_arg0); end
|
32
|
-
|
33
|
-
# Gets the default connection options used when calling {Faraday#new}.
|
34
|
-
#
|
35
|
-
# @return [Faraday::ConnectionOptions]
|
36
|
-
def default_connection_options; end
|
37
|
-
|
38
|
-
# Sets the default options used when calling {Faraday#new}.
|
39
|
-
#
|
40
|
-
# @param options [Hash, Faraday::ConnectionOptions]
|
41
|
-
def default_connection_options=(options); end
|
42
|
-
|
43
|
-
# Tells Faraday to ignore the environment proxy (http_proxy).
|
44
|
-
# Defaults to `false`.
|
45
|
-
#
|
46
|
-
# @return [Boolean]
|
47
|
-
def ignore_env_proxy; end
|
48
|
-
|
49
|
-
# Tells Faraday to ignore the environment proxy (http_proxy).
|
50
|
-
# Defaults to `false`.
|
51
|
-
#
|
52
|
-
# @return [Boolean]
|
53
|
-
def ignore_env_proxy=(_arg0); end
|
54
|
-
|
55
|
-
# Gets or sets the path that the Faraday libs are loaded from.
|
56
|
-
#
|
57
|
-
# @return [String]
|
58
|
-
def lib_path; end
|
59
|
-
|
60
|
-
# Gets or sets the path that the Faraday libs are loaded from.
|
61
|
-
#
|
62
|
-
# @return [String]
|
63
|
-
def lib_path=(_arg0); end
|
64
|
-
|
65
|
-
# Initializes a new {Connection}.
|
66
|
-
#
|
67
|
-
# @example With an URL argument
|
68
|
-
# Faraday.new 'http://faraday.com'
|
69
|
-
# # => Faraday::Connection to http://faraday.com
|
70
|
-
# @example With everything in an options hash
|
71
|
-
# Faraday.new url: 'http://faraday.com',
|
72
|
-
# params: { page: 1 }
|
73
|
-
# # => Faraday::Connection to http://faraday.com?page=1
|
74
|
-
# @example With an URL argument and an options hash
|
75
|
-
# Faraday.new 'http://faraday.com', params: { page: 1 }
|
76
|
-
# # => Faraday::Connection to http://faraday.com?page=1
|
77
|
-
# @option options
|
78
|
-
# @option options
|
79
|
-
# @option options
|
80
|
-
# @option options
|
81
|
-
# @option options
|
82
|
-
# @option options
|
83
|
-
# @param url [String, Hash] The optional String base URL to use as a prefix
|
84
|
-
# for all requests. Can also be the options Hash. Any of these
|
85
|
-
# values will be set on every request made, unless overridden
|
86
|
-
# for a specific request.
|
87
|
-
# @param options [Hash]
|
88
|
-
# @return [Faraday::Connection]
|
89
|
-
def new(url = T.unsafe(nil), options = T.unsafe(nil), &block); end
|
90
|
-
|
91
|
-
# Internal: Requires internal Faraday libraries.
|
92
|
-
#
|
93
|
-
# @param libs [Array] one or more relative String names to Faraday classes.
|
94
|
-
# @private
|
95
|
-
# @return [void]
|
96
|
-
def require_lib(*libs); end
|
97
|
-
|
98
|
-
# Internal: Requires internal Faraday libraries.
|
99
|
-
#
|
100
|
-
# @param libs [Array] one or more relative String names to Faraday classes.
|
101
|
-
# @private
|
102
|
-
# @return [void]
|
103
|
-
def require_libs(*libs); end
|
104
|
-
|
105
|
-
# @return [Boolean]
|
106
|
-
def respond_to_missing?(symbol, include_private = T.unsafe(nil)); end
|
107
|
-
|
108
|
-
# The root path that Faraday is being loaded from.
|
109
|
-
#
|
110
|
-
# This is the root from where the libraries are auto-loaded.
|
111
|
-
#
|
112
|
-
# @return [String]
|
113
|
-
def root_path; end
|
114
|
-
|
115
|
-
# The root path that Faraday is being loaded from.
|
116
|
-
#
|
117
|
-
# This is the root from where the libraries are auto-loaded.
|
118
|
-
#
|
119
|
-
# @return [String]
|
120
|
-
def root_path=(_arg0); end
|
121
|
-
|
122
|
-
private
|
123
|
-
|
124
|
-
# Internal: Proxies method calls on the Faraday constant to
|
125
|
-
# .default_connection.
|
126
|
-
def method_missing(name, *args, &block); end
|
127
|
-
end
|
128
|
-
end
|
129
|
-
|
130
|
-
# Base class for all Faraday adapters. Adapters are
|
131
|
-
# responsible for fulfilling a Faraday request.
|
132
|
-
class Faraday::Adapter
|
133
|
-
extend ::Faraday::MiddlewareRegistry
|
134
|
-
extend ::Faraday::DependencyLoader
|
135
|
-
extend ::Faraday::Adapter::Parallelism
|
136
|
-
extend ::Faraday::AutoloadHelper
|
137
|
-
|
138
|
-
# @return [Adapter] a new instance of Adapter
|
139
|
-
def initialize(_app = T.unsafe(nil), opts = T.unsafe(nil), &block); end
|
140
|
-
|
141
|
-
def call(env); end
|
142
|
-
|
143
|
-
# Close any persistent connections. The adapter should still be usable
|
144
|
-
# after calling close.
|
145
|
-
def close; end
|
146
|
-
|
147
|
-
# Yields or returns an adapter's configured connection. Depends on
|
148
|
-
# #build_connection being defined on this adapter.
|
149
|
-
#
|
150
|
-
# @param env [Faraday::Env, Hash] The env object for a faraday request.
|
151
|
-
# @return The return value of the given block, or the HTTP connection object
|
152
|
-
# if no block is given.
|
153
|
-
# @yield [conn]
|
154
|
-
def connection(env); end
|
155
|
-
|
156
|
-
private
|
157
|
-
|
158
|
-
# Fetches either a read, write, or open timeout setting. Defaults to the
|
159
|
-
# :timeout value if a more specific one is not given.
|
160
|
-
#
|
161
|
-
# @param type [Symbol] Describes which timeout setting to get: :read,
|
162
|
-
# :write, or :open.
|
163
|
-
# @param options [Hash] Hash containing Symbol keys like :timeout,
|
164
|
-
# :read_timeout, :write_timeout, :open_timeout, or
|
165
|
-
# :timeout
|
166
|
-
# @return [Integer, nil] Timeout duration in seconds, or nil if no timeout
|
167
|
-
# has been set.
|
168
|
-
def request_timeout(type, options); end
|
169
|
-
|
170
|
-
def save_response(env, status, body, headers = T.unsafe(nil), reason_phrase = T.unsafe(nil)); end
|
171
|
-
end
|
172
|
-
|
173
|
-
Faraday::Adapter::CONTENT_LENGTH = T.let(T.unsafe(nil), String)
|
174
|
-
|
175
|
-
# EventMachine adapter. This adapter is useful for either asynchronous
|
176
|
-
# requests when in an EM reactor loop, or for making parallel requests in
|
177
|
-
# synchronous code.
|
178
|
-
class Faraday::Adapter::EMHttp < ::Faraday::Adapter
|
179
|
-
include ::Faraday::Adapter::EMHttp::Options
|
180
|
-
|
181
|
-
def call(env); end
|
182
|
-
def create_request(env); end
|
183
|
-
def error_message(client); end
|
184
|
-
|
185
|
-
# @return [Boolean]
|
186
|
-
def parallel?(env); end
|
187
|
-
|
188
|
-
def perform_request(env); end
|
189
|
-
|
190
|
-
# TODO: reuse the connection to support pipelining
|
191
|
-
def perform_single_request(env); end
|
192
|
-
|
193
|
-
# @raise [error_class]
|
194
|
-
def raise_error(msg); end
|
195
|
-
|
196
|
-
# @return [Boolean]
|
197
|
-
def timeout_message?(msg); end
|
198
|
-
|
199
|
-
class << self
|
200
|
-
# @return [Manager]
|
201
|
-
def setup_parallel_manager(_options = T.unsafe(nil)); end
|
202
|
-
end
|
203
|
-
end
|
204
|
-
|
205
|
-
# This parallel manager is designed to start an EventMachine loop
|
206
|
-
# and block until all registered requests have been completed.
|
207
|
-
class Faraday::Adapter::EMHttp::Manager
|
208
|
-
# @return [Manager] a new instance of Manager
|
209
|
-
# @see reset
|
210
|
-
def initialize; end
|
211
|
-
|
212
|
-
def add(&block); end
|
213
|
-
def check_finished; end
|
214
|
-
def perform_request; end
|
215
|
-
|
216
|
-
# Re-initializes instance variables
|
217
|
-
def reset; end
|
218
|
-
|
219
|
-
def run; end
|
220
|
-
|
221
|
-
# @return [Boolean]
|
222
|
-
def running?; end
|
223
|
-
end
|
224
|
-
|
225
|
-
# Options is a module containing helpers to convert the Faraday env object
|
226
|
-
# into options hashes for EMHTTP method calls.
|
227
|
-
module Faraday::Adapter::EMHttp::Options
|
228
|
-
# Reads out compression header settings from env into options
|
229
|
-
def configure_compression(options, env); end
|
230
|
-
|
231
|
-
# Reads out proxy settings from env into options
|
232
|
-
def configure_proxy(options, env); end
|
233
|
-
|
234
|
-
# Reads out host and port settings from env into options
|
235
|
-
def configure_socket(options, env); end
|
236
|
-
|
237
|
-
# Reads out SSL certificate settings from env into options
|
238
|
-
def configure_ssl(options, env); end
|
239
|
-
|
240
|
-
# Reads out timeout settings from env into options
|
241
|
-
def configure_timeout(options, env); end
|
242
|
-
|
243
|
-
# @return [Hash]
|
244
|
-
def connection_config(env); end
|
245
|
-
|
246
|
-
def read_body(env); end
|
247
|
-
def request_config(env); end
|
248
|
-
def request_options(env); end
|
249
|
-
end
|
250
|
-
|
251
|
-
Faraday::Adapter::TIMEOUT_KEYS = T.let(T.unsafe(nil), Hash)
|
252
|
-
Faraday::CONTENT_TYPE = T.let(T.unsafe(nil), String)
|
253
|
-
Faraday::CompositeReadIO = Faraday::Multipart::CompositeReadIO
|
254
|
-
|
255
|
-
# Main Faraday::EmHttp module
|
256
|
-
module Faraday::EmHttp; end
|
257
|
-
|
258
|
-
Faraday::EmHttp::VERSION = T.let(T.unsafe(nil), String)
|
259
|
-
Faraday::FilePart = Multipart::Post::UploadIO
|
260
|
-
Faraday::METHODS_WITH_BODY = T.let(T.unsafe(nil), Array)
|
261
|
-
Faraday::METHODS_WITH_QUERY = T.let(T.unsafe(nil), Array)
|
262
|
-
Faraday::ParamPart = Faraday::Multipart::ParamPart
|
263
|
-
Faraday::Parts = Multipart::Post::Parts
|
264
|
-
Faraday::Timer = Timeout
|
265
|
-
Faraday::UploadIO = Multipart::Post::UploadIO
|
266
|
-
Faraday::VERSION = T.let(T.unsafe(nil), String)
|
@@ -1,209 +0,0 @@
|
|
1
|
-
# typed: true
|
2
|
-
|
3
|
-
# DO NOT EDIT MANUALLY
|
4
|
-
# This is an autogenerated file for types exported from the `faraday-em_synchrony` gem.
|
5
|
-
# Please instead update this file by running `bin/tapioca gem faraday-em_synchrony`.
|
6
|
-
|
7
|
-
# This is the main namespace for Faraday.
|
8
|
-
#
|
9
|
-
# It provides methods to create {Connection} objects, and HTTP-related
|
10
|
-
# methods to use directly.
|
11
|
-
#
|
12
|
-
# @example Helpful class methods for easy usage
|
13
|
-
# Faraday.get "http://faraday.com"
|
14
|
-
# @example Helpful class method `.new` to create {Connection} objects.
|
15
|
-
# conn = Faraday.new "http://faraday.com"
|
16
|
-
# conn.get '/'
|
17
|
-
module Faraday
|
18
|
-
class << self
|
19
|
-
# @overload default_adapter
|
20
|
-
# @overload default_adapter=
|
21
|
-
def default_adapter; end
|
22
|
-
|
23
|
-
# Documented elsewhere, see default_adapter reader
|
24
|
-
def default_adapter=(adapter); end
|
25
|
-
|
26
|
-
# @overload default_connection
|
27
|
-
# @overload default_connection=
|
28
|
-
def default_connection; end
|
29
|
-
|
30
|
-
# Documented below, see default_connection
|
31
|
-
def default_connection=(_arg0); end
|
32
|
-
|
33
|
-
# Gets the default connection options used when calling {Faraday#new}.
|
34
|
-
#
|
35
|
-
# @return [Faraday::ConnectionOptions]
|
36
|
-
def default_connection_options; end
|
37
|
-
|
38
|
-
# Sets the default options used when calling {Faraday#new}.
|
39
|
-
#
|
40
|
-
# @param options [Hash, Faraday::ConnectionOptions]
|
41
|
-
def default_connection_options=(options); end
|
42
|
-
|
43
|
-
# Tells Faraday to ignore the environment proxy (http_proxy).
|
44
|
-
# Defaults to `false`.
|
45
|
-
#
|
46
|
-
# @return [Boolean]
|
47
|
-
def ignore_env_proxy; end
|
48
|
-
|
49
|
-
# Tells Faraday to ignore the environment proxy (http_proxy).
|
50
|
-
# Defaults to `false`.
|
51
|
-
#
|
52
|
-
# @return [Boolean]
|
53
|
-
def ignore_env_proxy=(_arg0); end
|
54
|
-
|
55
|
-
# Gets or sets the path that the Faraday libs are loaded from.
|
56
|
-
#
|
57
|
-
# @return [String]
|
58
|
-
def lib_path; end
|
59
|
-
|
60
|
-
# Gets or sets the path that the Faraday libs are loaded from.
|
61
|
-
#
|
62
|
-
# @return [String]
|
63
|
-
def lib_path=(_arg0); end
|
64
|
-
|
65
|
-
# Initializes a new {Connection}.
|
66
|
-
#
|
67
|
-
# @example With an URL argument
|
68
|
-
# Faraday.new 'http://faraday.com'
|
69
|
-
# # => Faraday::Connection to http://faraday.com
|
70
|
-
# @example With everything in an options hash
|
71
|
-
# Faraday.new url: 'http://faraday.com',
|
72
|
-
# params: { page: 1 }
|
73
|
-
# # => Faraday::Connection to http://faraday.com?page=1
|
74
|
-
# @example With an URL argument and an options hash
|
75
|
-
# Faraday.new 'http://faraday.com', params: { page: 1 }
|
76
|
-
# # => Faraday::Connection to http://faraday.com?page=1
|
77
|
-
# @option options
|
78
|
-
# @option options
|
79
|
-
# @option options
|
80
|
-
# @option options
|
81
|
-
# @option options
|
82
|
-
# @option options
|
83
|
-
# @param url [String, Hash] The optional String base URL to use as a prefix
|
84
|
-
# for all requests. Can also be the options Hash. Any of these
|
85
|
-
# values will be set on every request made, unless overridden
|
86
|
-
# for a specific request.
|
87
|
-
# @param options [Hash]
|
88
|
-
# @return [Faraday::Connection]
|
89
|
-
def new(url = T.unsafe(nil), options = T.unsafe(nil), &block); end
|
90
|
-
|
91
|
-
# Internal: Requires internal Faraday libraries.
|
92
|
-
#
|
93
|
-
# @param libs [Array] one or more relative String names to Faraday classes.
|
94
|
-
# @private
|
95
|
-
# @return [void]
|
96
|
-
def require_lib(*libs); end
|
97
|
-
|
98
|
-
# Internal: Requires internal Faraday libraries.
|
99
|
-
#
|
100
|
-
# @param libs [Array] one or more relative String names to Faraday classes.
|
101
|
-
# @private
|
102
|
-
# @return [void]
|
103
|
-
def require_libs(*libs); end
|
104
|
-
|
105
|
-
# @return [Boolean]
|
106
|
-
def respond_to_missing?(symbol, include_private = T.unsafe(nil)); end
|
107
|
-
|
108
|
-
# The root path that Faraday is being loaded from.
|
109
|
-
#
|
110
|
-
# This is the root from where the libraries are auto-loaded.
|
111
|
-
#
|
112
|
-
# @return [String]
|
113
|
-
def root_path; end
|
114
|
-
|
115
|
-
# The root path that Faraday is being loaded from.
|
116
|
-
#
|
117
|
-
# This is the root from where the libraries are auto-loaded.
|
118
|
-
#
|
119
|
-
# @return [String]
|
120
|
-
def root_path=(_arg0); end
|
121
|
-
|
122
|
-
private
|
123
|
-
|
124
|
-
# Internal: Proxies method calls on the Faraday constant to
|
125
|
-
# .default_connection.
|
126
|
-
def method_missing(name, *args, &block); end
|
127
|
-
end
|
128
|
-
end
|
129
|
-
|
130
|
-
# Base class for all Faraday adapters. Adapters are
|
131
|
-
# responsible for fulfilling a Faraday request.
|
132
|
-
class Faraday::Adapter
|
133
|
-
extend ::Faraday::MiddlewareRegistry
|
134
|
-
extend ::Faraday::DependencyLoader
|
135
|
-
extend ::Faraday::Adapter::Parallelism
|
136
|
-
extend ::Faraday::AutoloadHelper
|
137
|
-
|
138
|
-
# @return [Adapter] a new instance of Adapter
|
139
|
-
def initialize(_app = T.unsafe(nil), opts = T.unsafe(nil), &block); end
|
140
|
-
|
141
|
-
def call(env); end
|
142
|
-
|
143
|
-
# Close any persistent connections. The adapter should still be usable
|
144
|
-
# after calling close.
|
145
|
-
def close; end
|
146
|
-
|
147
|
-
# Yields or returns an adapter's configured connection. Depends on
|
148
|
-
# #build_connection being defined on this adapter.
|
149
|
-
#
|
150
|
-
# @param env [Faraday::Env, Hash] The env object for a faraday request.
|
151
|
-
# @return The return value of the given block, or the HTTP connection object
|
152
|
-
# if no block is given.
|
153
|
-
# @yield [conn]
|
154
|
-
def connection(env); end
|
155
|
-
|
156
|
-
private
|
157
|
-
|
158
|
-
# Fetches either a read, write, or open timeout setting. Defaults to the
|
159
|
-
# :timeout value if a more specific one is not given.
|
160
|
-
#
|
161
|
-
# @param type [Symbol] Describes which timeout setting to get: :read,
|
162
|
-
# :write, or :open.
|
163
|
-
# @param options [Hash] Hash containing Symbol keys like :timeout,
|
164
|
-
# :read_timeout, :write_timeout, :open_timeout, or
|
165
|
-
# :timeout
|
166
|
-
# @return [Integer, nil] Timeout duration in seconds, or nil if no timeout
|
167
|
-
# has been set.
|
168
|
-
def request_timeout(type, options); end
|
169
|
-
|
170
|
-
def save_response(env, status, body, headers = T.unsafe(nil), reason_phrase = T.unsafe(nil)); end
|
171
|
-
end
|
172
|
-
|
173
|
-
Faraday::Adapter::CONTENT_LENGTH = T.let(T.unsafe(nil), String)
|
174
|
-
|
175
|
-
# EventMachine Synchrony adapter.
|
176
|
-
class Faraday::Adapter::EMSynchrony < ::Faraday::Adapter
|
177
|
-
include ::Faraday::Adapter::EMHttp::Options
|
178
|
-
|
179
|
-
def call(env); end
|
180
|
-
def create_request(env); end
|
181
|
-
|
182
|
-
private
|
183
|
-
|
184
|
-
def call_block(block); end
|
185
|
-
def execute_parallel_request(env, request, http_method); end
|
186
|
-
def execute_single_request(env, request, http_method); end
|
187
|
-
|
188
|
-
class << self
|
189
|
-
# @return [ParallelManager]
|
190
|
-
def setup_parallel_manager(_options = T.unsafe(nil)); end
|
191
|
-
end
|
192
|
-
end
|
193
|
-
|
194
|
-
Faraday::Adapter::TIMEOUT_KEYS = T.let(T.unsafe(nil), Hash)
|
195
|
-
Faraday::CONTENT_TYPE = T.let(T.unsafe(nil), String)
|
196
|
-
Faraday::CompositeReadIO = Faraday::Multipart::CompositeReadIO
|
197
|
-
|
198
|
-
# Main Faraday::EmSynchrony module
|
199
|
-
module Faraday::EmSynchrony; end
|
200
|
-
|
201
|
-
Faraday::EmSynchrony::VERSION = T.let(T.unsafe(nil), String)
|
202
|
-
Faraday::FilePart = Multipart::Post::UploadIO
|
203
|
-
Faraday::METHODS_WITH_BODY = T.let(T.unsafe(nil), Array)
|
204
|
-
Faraday::METHODS_WITH_QUERY = T.let(T.unsafe(nil), Array)
|
205
|
-
Faraday::ParamPart = Faraday::Multipart::ParamPart
|
206
|
-
Faraday::Parts = Multipart::Post::Parts
|
207
|
-
Faraday::Timer = Timeout
|
208
|
-
Faraday::UploadIO = Multipart::Post::UploadIO
|
209
|
-
Faraday::VERSION = T.let(T.unsafe(nil), String)
|