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,206 +0,0 @@
|
|
1
|
-
# typed: true
|
2
|
-
|
3
|
-
# DO NOT EDIT MANUALLY
|
4
|
-
# This is an autogenerated file for types exported from the `faraday-net_http_persistent` gem.
|
5
|
-
# Please instead update this file by running `bin/tapioca gem faraday-net_http_persistent`.
|
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
|
-
# Net::HTTP::Persistent adapter.
|
176
|
-
class Faraday::Adapter::NetHttpPersistent < ::Faraday::Adapter::NetHttp
|
177
|
-
private
|
178
|
-
|
179
|
-
def configure_ssl(http, ssl); end
|
180
|
-
def http_set(http, attr, value); end
|
181
|
-
def net_http_connection(env); end
|
182
|
-
def perform_request(http, env); end
|
183
|
-
def proxy_uri(env); end
|
184
|
-
end
|
185
|
-
|
186
|
-
Faraday::Adapter::NetHttpPersistent::SSL_CONFIGURATIONS = T.let(T.unsafe(nil), Hash)
|
187
|
-
Faraday::Adapter::TIMEOUT_KEYS = T.let(T.unsafe(nil), Hash)
|
188
|
-
Faraday::CONTENT_TYPE = T.let(T.unsafe(nil), String)
|
189
|
-
Faraday::CompositeReadIO = Faraday::Multipart::CompositeReadIO
|
190
|
-
|
191
|
-
# Aliases for Faraday v1, these are all deprecated and will be removed in v2 of this middleware
|
192
|
-
Faraday::FilePart = Multipart::Post::UploadIO
|
193
|
-
|
194
|
-
Faraday::METHODS_WITH_BODY = T.let(T.unsafe(nil), Array)
|
195
|
-
Faraday::METHODS_WITH_QUERY = T.let(T.unsafe(nil), Array)
|
196
|
-
module Faraday::NetHttpPersistent; end
|
197
|
-
Faraday::NetHttpPersistent::VERSION = T.let(T.unsafe(nil), String)
|
198
|
-
Faraday::ParamPart = Faraday::Multipart::ParamPart
|
199
|
-
Faraday::Parts = Multipart::Post::Parts
|
200
|
-
Faraday::Timer = Timeout
|
201
|
-
|
202
|
-
# multipart-post v2.2.0 introduces a new class hierarchy for classes like Parts and UploadIO
|
203
|
-
# For backwards compatibility, detect the gem version and use the right class
|
204
|
-
Faraday::UploadIO = Multipart::Post::UploadIO
|
205
|
-
|
206
|
-
Faraday::VERSION = T.let(T.unsafe(nil), String)
|
@@ -1,212 +0,0 @@
|
|
1
|
-
# typed: true
|
2
|
-
|
3
|
-
# DO NOT EDIT MANUALLY
|
4
|
-
# This is an autogenerated file for types exported from the `faraday-patron` gem.
|
5
|
-
# Please instead update this file by running `bin/tapioca gem faraday-patron`.
|
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
|
-
# Patron adapter
|
176
|
-
class Faraday::Adapter::Patron < ::Faraday::Adapter
|
177
|
-
def build_connection(env); end
|
178
|
-
def call(env); end
|
179
|
-
def configure_proxy(session, proxy); end
|
180
|
-
def configure_ssl(session, ssl); end
|
181
|
-
def configure_timeouts(session, req); end
|
182
|
-
|
183
|
-
private
|
184
|
-
|
185
|
-
# @return [Boolean]
|
186
|
-
def connection_timed_out_message?(message); end
|
187
|
-
end
|
188
|
-
|
189
|
-
Faraday::Adapter::Patron::CURL_TIMEOUT_MESSAGES = T.let(T.unsafe(nil), Array)
|
190
|
-
Faraday::Adapter::TIMEOUT_KEYS = T.let(T.unsafe(nil), Hash)
|
191
|
-
Faraday::CONTENT_TYPE = T.let(T.unsafe(nil), String)
|
192
|
-
Faraday::CompositeReadIO = Faraday::Multipart::CompositeReadIO
|
193
|
-
|
194
|
-
# Aliases for Faraday v1, these are all deprecated and will be removed in v2 of this middleware
|
195
|
-
Faraday::FilePart = Multipart::Post::UploadIO
|
196
|
-
|
197
|
-
Faraday::METHODS_WITH_BODY = T.let(T.unsafe(nil), Array)
|
198
|
-
Faraday::METHODS_WITH_QUERY = T.let(T.unsafe(nil), Array)
|
199
|
-
Faraday::ParamPart = Faraday::Multipart::ParamPart
|
200
|
-
Faraday::Parts = Multipart::Post::Parts
|
201
|
-
|
202
|
-
# Main Faraday::Patron module
|
203
|
-
module Faraday::Patron; end
|
204
|
-
|
205
|
-
Faraday::Patron::VERSION = T.let(T.unsafe(nil), String)
|
206
|
-
Faraday::Timer = Timeout
|
207
|
-
|
208
|
-
# multipart-post v2.2.0 introduces a new class hierarchy for classes like Parts and UploadIO
|
209
|
-
# For backwards compatibility, detect the gem version and use the right class
|
210
|
-
Faraday::UploadIO = Multipart::Post::UploadIO
|
211
|
-
|
212
|
-
Faraday::VERSION = T.let(T.unsafe(nil), String)
|
@@ -1,225 +0,0 @@
|
|
1
|
-
# typed: true
|
2
|
-
|
3
|
-
# DO NOT EDIT MANUALLY
|
4
|
-
# This is an autogenerated file for types exported from the `faraday-rack` gem.
|
5
|
-
# Please instead update this file by running `bin/tapioca gem faraday-rack`.
|
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
|
-
# Sends requests to a Rack app.
|
176
|
-
#
|
177
|
-
# @example
|
178
|
-
#
|
179
|
-
# class MyRackApp
|
180
|
-
# def call(env)
|
181
|
-
# [200, {'Content-Type' => 'text/html'}, ["hello world"]]
|
182
|
-
# end
|
183
|
-
# end
|
184
|
-
#
|
185
|
-
# Faraday.new do |conn|
|
186
|
-
# conn.adapter :rack, MyRackApp.new
|
187
|
-
# end
|
188
|
-
class Faraday::Adapter::Rack < ::Faraday::Adapter
|
189
|
-
# @return [Rack] a new instance of Rack
|
190
|
-
def initialize(faraday_app, rack_app); end
|
191
|
-
|
192
|
-
def call(env); end
|
193
|
-
|
194
|
-
private
|
195
|
-
|
196
|
-
def build_rack_env(env); end
|
197
|
-
def execute_request(env, rack_env); end
|
198
|
-
end
|
199
|
-
|
200
|
-
# not prefixed with "HTTP_"
|
201
|
-
Faraday::Adapter::Rack::SPECIAL_HEADERS = T.let(T.unsafe(nil), Array)
|
202
|
-
|
203
|
-
Faraday::Adapter::TIMEOUT_KEYS = T.let(T.unsafe(nil), Hash)
|
204
|
-
Faraday::CONTENT_TYPE = T.let(T.unsafe(nil), String)
|
205
|
-
Faraday::CompositeReadIO = Faraday::Multipart::CompositeReadIO
|
206
|
-
|
207
|
-
# Aliases for Faraday v1, these are all deprecated and will be removed in v2 of this middleware
|
208
|
-
Faraday::FilePart = Multipart::Post::UploadIO
|
209
|
-
|
210
|
-
Faraday::METHODS_WITH_BODY = T.let(T.unsafe(nil), Array)
|
211
|
-
Faraday::METHODS_WITH_QUERY = T.let(T.unsafe(nil), Array)
|
212
|
-
Faraday::ParamPart = Faraday::Multipart::ParamPart
|
213
|
-
Faraday::Parts = Multipart::Post::Parts
|
214
|
-
|
215
|
-
# Main Faraday::Rack module
|
216
|
-
module Faraday::Rack; end
|
217
|
-
|
218
|
-
Faraday::Rack::VERSION = T.let(T.unsafe(nil), String)
|
219
|
-
Faraday::Timer = Timeout
|
220
|
-
|
221
|
-
# multipart-post v2.2.0 introduces a new class hierarchy for classes like Parts and UploadIO
|
222
|
-
# For backwards compatibility, detect the gem version and use the right class
|
223
|
-
Faraday::UploadIO = Multipart::Post::UploadIO
|
224
|
-
|
225
|
-
Faraday::VERSION = T.let(T.unsafe(nil), String)
|