danger-packwerk 0.7.0 → 0.7.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/packwerk_wrapper.rb +2 -2
- data/lib/danger-packwerk/version.rb +1 -1
- data/sorbet/config +1 -0
- data/sorbet/rbi/gems/actionview@7.0.4.rbi +11543 -0
- data/sorbet/rbi/gems/activesupport@7.0.4.rbi +12959 -0
- data/sorbet/rbi/gems/addressable@2.8.1.rbi +1505 -0
- data/sorbet/rbi/gems/ast@2.4.2.rbi +522 -0
- data/sorbet/rbi/gems/better_html@2.0.1.rbi +286 -0
- data/sorbet/rbi/gems/builder@3.2.4.rbi +8 -0
- data/sorbet/rbi/gems/claide-plugins@0.9.2.rbi +791 -0
- data/sorbet/rbi/gems/claide@1.1.0.rbi +1132 -0
- data/sorbet/rbi/gems/coderay@1.1.3.rbi +2256 -0
- data/sorbet/rbi/gems/colored2@3.1.2.rbi +130 -0
- data/sorbet/rbi/gems/concurrent-ruby@1.1.10.rbi +8695 -0
- data/sorbet/rbi/gems/cork@0.3.0.rbi +248 -0
- data/sorbet/rbi/gems/crass@1.0.6.rbi +436 -0
- data/sorbet/rbi/gems/danger-plugin-api@1.0.0.rbi +8 -0
- data/sorbet/rbi/gems/danger@9.0.0.rbi +4722 -0
- data/sorbet/rbi/gems/diff-lcs@1.5.0.rbi +862 -0
- data/sorbet/rbi/gems/erubi@1.11.0.rbi +102 -0
- data/sorbet/rbi/gems/faraday-em_http@1.0.0.rbi +266 -0
- data/sorbet/rbi/gems/faraday-em_synchrony@1.0.0.rbi +209 -0
- data/sorbet/rbi/gems/faraday-excon@1.1.0.rbi +212 -0
- data/sorbet/rbi/gems/faraday-http-cache@2.4.1.rbi +805 -0
- data/sorbet/rbi/gems/faraday-httpclient@1.0.1.rbi +221 -0
- data/sorbet/rbi/gems/faraday-multipart@1.0.4.rbi +266 -0
- data/sorbet/rbi/gems/faraday-net_http@1.0.1.rbi +216 -0
- data/sorbet/rbi/gems/faraday-net_http_persistent@1.2.0.rbi +206 -0
- data/sorbet/rbi/gems/faraday-patron@1.0.0.rbi +212 -0
- data/sorbet/rbi/gems/faraday-rack@1.0.0.rbi +225 -0
- data/sorbet/rbi/gems/faraday-retry@1.0.3.rbi +222 -0
- data/sorbet/rbi/gems/faraday@1.10.2.rbi +1862 -0
- data/sorbet/rbi/gems/git@1.12.0.rbi +1936 -0
- data/sorbet/rbi/gems/i18n@1.12.0.rbi +1643 -0
- data/sorbet/rbi/gems/json@2.6.2.rbi +1418 -0
- data/sorbet/rbi/gems/kramdown-parser-gfm@1.1.0.rbi +8 -0
- data/sorbet/rbi/gems/kramdown@2.4.0.rbi +2168 -0
- data/sorbet/rbi/gems/loofah@2.19.0.rbi +646 -0
- data/sorbet/rbi/gems/method_source@1.0.0.rbi +199 -0
- data/sorbet/rbi/gems/minitest@5.16.3.rbi +997 -0
- data/sorbet/rbi/gems/multipart-post@2.2.3.rbi +165 -0
- data/sorbet/rbi/gems/nap@1.1.0.rbi +351 -0
- data/sorbet/rbi/gems/no_proxy_fix@0.1.2.rbi +8 -0
- data/sorbet/rbi/gems/nokogiri@1.13.8.rbi +4916 -0
- data/sorbet/rbi/gems/octokit@5.6.1.rbi +8939 -0
- data/sorbet/rbi/gems/open4@1.3.4.rbi +8 -0
- data/sorbet/rbi/gems/{packwerk@2.1.1.rbi → packwerk@2.2.1.rbi} +602 -51
- data/sorbet/rbi/gems/parallel@1.22.1.rbi +163 -0
- data/sorbet/rbi/gems/parser@3.1.2.1.rbi +5988 -0
- data/sorbet/rbi/gems/pry@0.14.1.rbi +6969 -0
- data/sorbet/rbi/gems/public_suffix@5.0.0.rbi +779 -0
- data/sorbet/rbi/gems/racc@1.6.0.rbi +92 -0
- data/sorbet/rbi/gems/rails-dom-testing@2.0.3.rbi +8 -0
- data/sorbet/rbi/gems/rails-html-sanitizer@1.4.3.rbi +493 -0
- data/sorbet/rbi/gems/rainbow@3.1.1.rbi +227 -0
- data/sorbet/rbi/gems/rake@13.0.6.rbi +1865 -0
- data/sorbet/rbi/gems/rbi@0.0.14.rbi +2337 -0
- data/sorbet/rbi/gems/rchardet@1.8.0.rbi +587 -0
- data/sorbet/rbi/gems/regexp_parser@2.5.0.rbi +1851 -0
- data/sorbet/rbi/gems/rexml@3.2.5.rbi +3852 -0
- data/sorbet/rbi/gems/rspec-core@3.11.0.rbi +7725 -0
- data/sorbet/rbi/gems/rspec-expectations@3.11.0.rbi +6201 -0
- data/sorbet/rbi/gems/rspec-mocks@3.11.1.rbi +3625 -0
- data/sorbet/rbi/gems/rspec-support@3.11.0.rbi +1176 -0
- data/sorbet/rbi/gems/rspec@3.11.0.rbi +40 -0
- data/sorbet/rbi/gems/rubocop-ast@1.21.0.rbi +4193 -0
- data/sorbet/rbi/gems/rubocop-sorbet@0.6.8.rbi +677 -0
- data/sorbet/rbi/gems/rubocop@1.36.0.rbi +37914 -0
- data/sorbet/rbi/gems/ruby-progressbar@1.11.0.rbi +732 -0
- data/sorbet/rbi/gems/ruby2_keywords@0.0.5.rbi +8 -0
- data/sorbet/rbi/gems/sawyer@0.9.2.rbi +513 -0
- data/sorbet/rbi/gems/smart_properties@1.17.0.rbi +326 -0
- data/sorbet/rbi/gems/spoom@1.1.11.rbi +1600 -0
- data/sorbet/rbi/gems/tapioca@0.8.0.rbi +1959 -0
- data/sorbet/rbi/gems/terminal-table@3.0.2.rbi +438 -0
- data/sorbet/rbi/gems/thor@1.2.1.rbi +2921 -0
- data/sorbet/rbi/gems/tzinfo@2.0.5.rbi +4879 -0
- data/sorbet/rbi/gems/unicode-display_width@2.3.0.rbi +27 -0
- data/sorbet/rbi/gems/unparser@0.6.5.rbi +2789 -0
- data/sorbet/rbi/gems/webrick@1.7.0.rbi +1802 -0
- data/sorbet/rbi/gems/yard-sorbet@0.6.1.rbi +288 -0
- data/sorbet/rbi/gems/yard@0.9.27.rbi +12668 -0
- data/sorbet/rbi/todo.rbi +122 -0
- metadata +84 -7
- data/sorbet/rbi/gems/danger@8.5.0.rbi +0 -122
@@ -0,0 +1,221 @@
|
|
1
|
+
# typed: true
|
2
|
+
|
3
|
+
# DO NOT EDIT MANUALLY
|
4
|
+
# This is an autogenerated file for types exported from the `faraday-httpclient` gem.
|
5
|
+
# Please instead update this file by running `bin/tapioca gem faraday-httpclient`.
|
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
|
+
# This class provides the main implementation for your adapter.
|
176
|
+
# There are some key responsibilities that your adapter should satisfy:
|
177
|
+
# * Initialize and store internally the client you chose (e.g. Net::HTTP)
|
178
|
+
# * Process requests and save the response (see `#call`)
|
179
|
+
class Faraday::Adapter::HTTPClient < ::Faraday::Adapter
|
180
|
+
def build_connection(env); end
|
181
|
+
def call(env); end
|
182
|
+
def configure_client(client); end
|
183
|
+
|
184
|
+
# Configure proxy URI and any user credentials.
|
185
|
+
#
|
186
|
+
# @param proxy [Hash]
|
187
|
+
def configure_proxy(client, proxy); end
|
188
|
+
|
189
|
+
# @param bind [Hash]
|
190
|
+
def configure_socket(client, bind); end
|
191
|
+
|
192
|
+
# @param ssl [Hash]
|
193
|
+
def configure_ssl(client, ssl); end
|
194
|
+
|
195
|
+
# @param req [Hash]
|
196
|
+
def configure_timeouts(client, req); end
|
197
|
+
|
198
|
+
# @param ssl [Hash]
|
199
|
+
# @return [OpenSSL::X509::Store]
|
200
|
+
def ssl_cert_store(ssl); end
|
201
|
+
|
202
|
+
# @param ssl [Hash]
|
203
|
+
def ssl_verify_mode(ssl); end
|
204
|
+
end
|
205
|
+
|
206
|
+
Faraday::Adapter::TIMEOUT_KEYS = T.let(T.unsafe(nil), Hash)
|
207
|
+
Faraday::CONTENT_TYPE = T.let(T.unsafe(nil), String)
|
208
|
+
Faraday::CompositeReadIO = Faraday::Multipart::CompositeReadIO
|
209
|
+
Faraday::FilePart = Multipart::Post::UploadIO
|
210
|
+
|
211
|
+
# Main Faraday::HTTPClient module
|
212
|
+
module Faraday::HTTPClient; end
|
213
|
+
|
214
|
+
Faraday::HTTPClient::VERSION = T.let(T.unsafe(nil), String)
|
215
|
+
Faraday::METHODS_WITH_BODY = T.let(T.unsafe(nil), Array)
|
216
|
+
Faraday::METHODS_WITH_QUERY = T.let(T.unsafe(nil), Array)
|
217
|
+
Faraday::ParamPart = Faraday::Multipart::ParamPart
|
218
|
+
Faraday::Parts = Multipart::Post::Parts
|
219
|
+
Faraday::Timer = Timeout
|
220
|
+
Faraday::UploadIO = Multipart::Post::UploadIO
|
221
|
+
Faraday::VERSION = T.let(T.unsafe(nil), String)
|
@@ -0,0 +1,266 @@
|
|
1
|
+
# typed: true
|
2
|
+
|
3
|
+
# DO NOT EDIT MANUALLY
|
4
|
+
# This is an autogenerated file for types exported from the `faraday-multipart` gem.
|
5
|
+
# Please instead update this file by running `bin/tapioca gem faraday-multipart`.
|
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
|
+
Faraday::CONTENT_TYPE = T.let(T.unsafe(nil), String)
|
131
|
+
Faraday::CompositeReadIO = Faraday::Multipart::CompositeReadIO
|
132
|
+
|
133
|
+
# Aliases for Faraday v1, these are all deprecated and will be removed in v2 of this middleware
|
134
|
+
Faraday::FilePart = Multipart::Post::UploadIO
|
135
|
+
|
136
|
+
Faraday::METHODS_WITH_BODY = T.let(T.unsafe(nil), Array)
|
137
|
+
Faraday::METHODS_WITH_QUERY = T.let(T.unsafe(nil), Array)
|
138
|
+
|
139
|
+
# Main Faraday::Multipart module.
|
140
|
+
module Faraday::Multipart
|
141
|
+
class << self
|
142
|
+
def multipart_post_version; end
|
143
|
+
end
|
144
|
+
end
|
145
|
+
|
146
|
+
# Similar to, but not compatible with CompositeReadIO provided by the
|
147
|
+
# multipart-post gem.
|
148
|
+
# https://github.com/nicksieger/multipart-post/blob/master/lib/composite_io.rb
|
149
|
+
class Faraday::Multipart::CompositeReadIO
|
150
|
+
# @return [CompositeReadIO] a new instance of CompositeReadIO
|
151
|
+
def initialize(*parts); end
|
152
|
+
|
153
|
+
# Close each of the IOs.
|
154
|
+
#
|
155
|
+
# @return [void]
|
156
|
+
def close; end
|
157
|
+
|
158
|
+
def ensure_open_and_readable; end
|
159
|
+
|
160
|
+
# @return [Integer] sum of the lengths of all the parts
|
161
|
+
def length; end
|
162
|
+
|
163
|
+
# Read from IOs in order until `length` bytes have been received.
|
164
|
+
#
|
165
|
+
# @param length [Integer, nil]
|
166
|
+
# @param outbuf [String, nil]
|
167
|
+
def read(length = T.unsafe(nil), outbuf = T.unsafe(nil)); end
|
168
|
+
|
169
|
+
# Rewind each of the IOs and reset the index to 0.
|
170
|
+
#
|
171
|
+
# @return [void]
|
172
|
+
def rewind; end
|
173
|
+
|
174
|
+
private
|
175
|
+
|
176
|
+
def advance_io; end
|
177
|
+
def current_io; end
|
178
|
+
end
|
179
|
+
|
180
|
+
Faraday::Multipart::FilePart = Multipart::Post::UploadIO
|
181
|
+
|
182
|
+
# Middleware for supporting multi-part requests.
|
183
|
+
class Faraday::Multipart::Middleware < ::Faraday::Request::UrlEncoded
|
184
|
+
# @return [Middleware] a new instance of Middleware
|
185
|
+
def initialize(app = T.unsafe(nil), options = T.unsafe(nil)); end
|
186
|
+
|
187
|
+
# Checks for files in the payload, otherwise leaves everything untouched.
|
188
|
+
#
|
189
|
+
# @param env [Faraday::Env]
|
190
|
+
def call(env); end
|
191
|
+
|
192
|
+
# @param env [Faraday::Env]
|
193
|
+
# @param params [Hash]
|
194
|
+
def create_multipart(env, params); end
|
195
|
+
|
196
|
+
# Returns true if obj is an enumerable with values that are multipart.
|
197
|
+
#
|
198
|
+
# @param obj [Object]
|
199
|
+
# @return [Boolean]
|
200
|
+
def has_multipart?(obj); end
|
201
|
+
|
202
|
+
def part(boundary, key, value); end
|
203
|
+
|
204
|
+
# @param params [Hash]
|
205
|
+
# @param prefix [String]
|
206
|
+
# @param pieces [Array]
|
207
|
+
def process_params(params, prefix = T.unsafe(nil), pieces = T.unsafe(nil), &block); end
|
208
|
+
|
209
|
+
# @param env [Faraday::Env]
|
210
|
+
# @return [Boolean]
|
211
|
+
def process_request?(env); end
|
212
|
+
|
213
|
+
# @return [String]
|
214
|
+
def unique_boundary; end
|
215
|
+
end
|
216
|
+
|
217
|
+
Faraday::Multipart::Middleware::DEFAULT_BOUNDARY_PREFIX = T.let(T.unsafe(nil), String)
|
218
|
+
|
219
|
+
# Multipart value used to POST data with a content type.
|
220
|
+
class Faraday::Multipart::ParamPart
|
221
|
+
# @param value [String] Uploaded content as a String.
|
222
|
+
# @param content_type [String] String content type of the value.
|
223
|
+
# @param content_id [String] Optional String of this value's Content-ID.
|
224
|
+
# @return [Faraday::ParamPart]
|
225
|
+
def initialize(value, content_type, content_id = T.unsafe(nil)); end
|
226
|
+
|
227
|
+
# The value's content ID, if given.
|
228
|
+
#
|
229
|
+
# @return [String, nil]
|
230
|
+
def content_id; end
|
231
|
+
|
232
|
+
# The value's content type.
|
233
|
+
#
|
234
|
+
# @return [String]
|
235
|
+
def content_type; end
|
236
|
+
|
237
|
+
# Returns a Hash of String key/value pairs.
|
238
|
+
#
|
239
|
+
# @return [Hash]
|
240
|
+
def headers; end
|
241
|
+
|
242
|
+
# Converts this value to a form part.
|
243
|
+
#
|
244
|
+
# @param boundary [String] String multipart boundary that must not exist in
|
245
|
+
# the content exactly.
|
246
|
+
# @param key [String] String key name for this value.
|
247
|
+
# @return [Faraday::Parts::Part]
|
248
|
+
def to_part(boundary, key); end
|
249
|
+
|
250
|
+
# The content to upload.
|
251
|
+
#
|
252
|
+
# @return [String]
|
253
|
+
def value; end
|
254
|
+
end
|
255
|
+
|
256
|
+
Faraday::Multipart::Parts = Multipart::Post::Parts
|
257
|
+
Faraday::Multipart::VERSION = T.let(T.unsafe(nil), String)
|
258
|
+
Faraday::ParamPart = Faraday::Multipart::ParamPart
|
259
|
+
Faraday::Parts = Multipart::Post::Parts
|
260
|
+
Faraday::Timer = Timeout
|
261
|
+
|
262
|
+
# multipart-post v2.2.0 introduces a new class hierarchy for classes like Parts and UploadIO
|
263
|
+
# For backwards compatibility, detect the gem version and use the right class
|
264
|
+
Faraday::UploadIO = Multipart::Post::UploadIO
|
265
|
+
|
266
|
+
Faraday::VERSION = T.let(T.unsafe(nil), String)
|
@@ -0,0 +1,216 @@
|
|
1
|
+
# typed: true
|
2
|
+
|
3
|
+
# DO NOT EDIT MANUALLY
|
4
|
+
# This is an autogenerated file for types exported from the `faraday-net_http` gem.
|
5
|
+
# Please instead update this file by running `bin/tapioca gem faraday-net_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
|
+
class Faraday::Adapter::NetHttp < ::Faraday::Adapter
|
176
|
+
# @return [NetHttp] a new instance of NetHttp
|
177
|
+
def initialize(app = T.unsafe(nil), opts = T.unsafe(nil), &block); end
|
178
|
+
|
179
|
+
def build_connection(env); end
|
180
|
+
def call(env); end
|
181
|
+
def net_http_connection(env); end
|
182
|
+
|
183
|
+
private
|
184
|
+
|
185
|
+
def configure_request(http, req); end
|
186
|
+
def configure_ssl(http, ssl); end
|
187
|
+
def create_request(env); end
|
188
|
+
def perform_request(http, env); end
|
189
|
+
def request_via_get_method(http, env, &block); end
|
190
|
+
def request_via_request_method(http, env, &block); end
|
191
|
+
def request_with_wrapped_block(http, env, &block); end
|
192
|
+
def ssl_cert_store(ssl); end
|
193
|
+
def ssl_verify_mode(ssl); end
|
194
|
+
end
|
195
|
+
|
196
|
+
Faraday::Adapter::NetHttp::NET_HTTP_EXCEPTIONS = T.let(T.unsafe(nil), Array)
|
197
|
+
Faraday::Adapter::TIMEOUT_KEYS = T.let(T.unsafe(nil), Hash)
|
198
|
+
Faraday::CONTENT_TYPE = T.let(T.unsafe(nil), String)
|
199
|
+
Faraday::CompositeReadIO = Faraday::Multipart::CompositeReadIO
|
200
|
+
|
201
|
+
# Aliases for Faraday v1, these are all deprecated and will be removed in v2 of this middleware
|
202
|
+
Faraday::FilePart = Multipart::Post::UploadIO
|
203
|
+
|
204
|
+
Faraday::METHODS_WITH_BODY = T.let(T.unsafe(nil), Array)
|
205
|
+
Faraday::METHODS_WITH_QUERY = T.let(T.unsafe(nil), Array)
|
206
|
+
module Faraday::NetHttp; end
|
207
|
+
Faraday::NetHttp::VERSION = T.let(T.unsafe(nil), String)
|
208
|
+
Faraday::ParamPart = Faraday::Multipart::ParamPart
|
209
|
+
Faraday::Parts = Multipart::Post::Parts
|
210
|
+
Faraday::Timer = Timeout
|
211
|
+
|
212
|
+
# multipart-post v2.2.0 introduces a new class hierarchy for classes like Parts and UploadIO
|
213
|
+
# For backwards compatibility, detect the gem version and use the right class
|
214
|
+
Faraday::UploadIO = Multipart::Post::UploadIO
|
215
|
+
|
216
|
+
Faraday::VERSION = T.let(T.unsafe(nil), String)
|