checkoff 0.201.0 → 0.203.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +130 -28
- data/.git-hooks/pre_commit/solargraph_typecheck.rb +12 -11
- data/.overcommit.yml +27 -2
- data/.rubocop.yml +20 -2
- data/.rubocop_todo.yml +90 -0
- data/.solargraph.yml +10 -1
- data/DEVELOPMENT.md +1 -1
- data/Gemfile +11 -8
- data/Gemfile.lock +66 -42
- data/LICENSE +1 -1
- data/Makefile +14 -12
- data/bin/brakeman +27 -0
- data/bin/overcommit_branch +117 -0
- data/bin/spoom +27 -0
- data/bin/srb +27 -0
- data/bin/srb-rbi +27 -0
- data/bin/tapioca +27 -0
- data/config/annotations_misc.rb +35 -0
- data/docs/cookiecutter_input.json +1 -0
- data/fix.sh +14 -6
- data/lib/checkoff/internal/search_url/simple_param_converter.rb +11 -0
- data/lib/checkoff/version.rb +1 -1
- data/requirements_dev.txt +1 -1
- data/sorbet/config +4 -0
- data/sorbet/rbi/annotations/.gitattributes +1 -0
- data/sorbet/rbi/annotations/activesupport.rbi +453 -0
- data/sorbet/rbi/annotations/faraday.rbi +17 -0
- data/sorbet/rbi/annotations/minitest.rbi +119 -0
- data/sorbet/rbi/annotations/mocha.rbi +34 -0
- data/sorbet/rbi/annotations/rainbow.rbi +269 -0
- data/sorbet/rbi/annotations/webmock.rbi +9 -0
- data/sorbet/rbi/dsl/.gitattributes +1 -0
- data/sorbet/rbi/dsl/active_support/callbacks.rbi +23 -0
- data/sorbet/rbi/gems/.gitattributes +1 -0
- data/sorbet/rbi/gems/activesupport@7.1.3.rbi +18749 -0
- data/sorbet/rbi/gems/addressable@2.8.6.rbi +1994 -0
- data/sorbet/rbi/gems/ansi@1.5.0.rbi +688 -0
- data/sorbet/rbi/gems/asana@0.10.6-ab9393136d9ca59b75e42a661fdddc1c65c8f7c3.rbi +6142 -0
- data/sorbet/rbi/gems/ast@2.4.2.rbi +585 -0
- data/sorbet/rbi/gems/backport@1.2.0.rbi +523 -0
- data/sorbet/rbi/gems/base64@0.2.0.rbi +509 -0
- data/sorbet/rbi/gems/benchmark@0.4.0.rbi +618 -0
- data/sorbet/rbi/gems/bigdecimal@3.1.5.rbi +78 -0
- data/sorbet/rbi/gems/builder@3.2.4.rbi +505 -0
- data/sorbet/rbi/gems/bump@0.10.0.rbi +169 -0
- data/sorbet/rbi/gems/cache@0.4.1.rbi +211 -0
- data/sorbet/rbi/gems/cache_method@0.2.7.rbi +293 -0
- data/sorbet/rbi/gems/chef-utils@18.3.0.rbi +9 -0
- data/sorbet/rbi/gems/childprocess@5.1.0.rbi +383 -0
- data/sorbet/rbi/gems/coderay@1.1.3.rbi +3427 -0
- data/sorbet/rbi/gems/concurrent-ruby@1.2.3.rbi +11591 -0
- data/sorbet/rbi/gems/connection_pool@2.4.1.rbi +9 -0
- data/sorbet/rbi/gems/crack@0.4.5.rbi +145 -0
- data/sorbet/rbi/gems/diff-lcs@1.5.1.rbi +969 -0
- data/sorbet/rbi/gems/docile@1.4.0.rbi +377 -0
- data/sorbet/rbi/gems/drb@2.2.0.rbi +1347 -0
- data/sorbet/rbi/gems/e2mmap@0.1.0.rbi +9 -0
- data/sorbet/rbi/gems/erubi@1.13.0.rbi +152 -0
- data/sorbet/rbi/gems/faraday-em_http@1.0.0.rbi +222 -0
- data/sorbet/rbi/gems/faraday-em_synchrony@1.0.0.rbi +126 -0
- data/sorbet/rbi/gems/faraday-excon@1.1.0.rbi +136 -0
- data/sorbet/rbi/gems/faraday-httpclient@1.0.1.rbi +145 -0
- data/sorbet/rbi/gems/faraday-multipart@1.0.4.rbi +259 -0
- data/sorbet/rbi/gems/faraday-net_http@1.0.1.rbi +142 -0
- data/sorbet/rbi/gems/faraday-net_http_persistent@1.2.0.rbi +118 -0
- data/sorbet/rbi/gems/faraday-patron@1.0.0.rbi +125 -0
- data/sorbet/rbi/gems/faraday-rack@1.0.0.rbi +133 -0
- data/sorbet/rbi/gems/faraday-retry@1.0.3.rbi +198 -0
- data/sorbet/rbi/gems/faraday@1.10.3.rbi +2729 -0
- data/sorbet/rbi/gems/faraday_middleware-multi_json@0.0.6.rbi +29 -0
- data/sorbet/rbi/gems/faraday_middleware@1.2.0.rbi +1004 -0
- data/sorbet/rbi/gems/gli@2.21.1.rbi +9 -0
- data/sorbet/rbi/gems/hashdiff@1.0.1.rbi +351 -0
- data/sorbet/rbi/gems/i18n@1.14.1.rbi +2326 -0
- data/sorbet/rbi/gems/imagen@0.1.8.rbi +340 -0
- data/sorbet/rbi/gems/iniparse@1.5.0.rbi +899 -0
- data/sorbet/rbi/gems/jaro_winkler@1.6.0.rbi +22 -0
- data/sorbet/rbi/gems/json@2.7.1.rbi +1562 -0
- data/sorbet/rbi/gems/jwt@2.7.1.rbi +1405 -0
- data/sorbet/rbi/gems/kramdown-parser-gfm@1.1.0.rbi +128 -0
- data/sorbet/rbi/gems/kramdown@2.4.0.rbi +3272 -0
- data/sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi +14238 -0
- data/sorbet/rbi/gems/logger@1.6.1.rbi +920 -0
- data/sorbet/rbi/gems/mdl@0.13.0.rbi +445 -0
- data/sorbet/rbi/gems/method_source@1.0.0.rbi +273 -0
- data/sorbet/rbi/gems/mime-types-data@3.2023.1205.rbi +127 -0
- data/sorbet/rbi/gems/mime-types@3.5.1.rbi +1252 -0
- data/sorbet/rbi/gems/minitest-profile@0.0.2.rbi +136 -0
- data/sorbet/rbi/gems/minitest-reporters@1.6.1.rbi +1014 -0
- data/sorbet/rbi/gems/minitest@5.21.1.rbi +1539 -0
- data/sorbet/rbi/gems/mixlib-cli@2.1.8.rbi +314 -0
- data/sorbet/rbi/gems/mixlib-config@3.0.27.rbi +581 -0
- data/sorbet/rbi/gems/mixlib-shellout@3.2.7.rbi +629 -0
- data/sorbet/rbi/gems/mocha@2.1.0.rbi +12 -0
- data/sorbet/rbi/gems/multi_json@1.15.0.rbi +268 -0
- data/sorbet/rbi/gems/multi_xml@0.6.0.rbi +102 -0
- data/sorbet/rbi/gems/multipart-post@2.3.0.rbi +234 -0
- data/sorbet/rbi/gems/mutex_m@0.2.0.rbi +94 -0
- data/sorbet/rbi/gems/netrc@0.11.0.rbi +159 -0
- data/sorbet/rbi/gems/nokogiri@1.16.7.rbi +7311 -0
- data/sorbet/rbi/gems/oauth2@1.4.11.rbi +833 -0
- data/sorbet/rbi/gems/ostruct@0.6.1.rbi +354 -0
- data/sorbet/rbi/gems/overcommit@0.64.0.rbi +2400 -0
- data/sorbet/rbi/gems/parallel@1.23.0.rbi +274 -0
- data/sorbet/rbi/gems/parser@3.2.2.4.rbi +7253 -0
- data/sorbet/rbi/gems/prism@1.2.0.rbi +39085 -0
- data/sorbet/rbi/gems/pry@0.14.2.rbi +10070 -0
- data/sorbet/rbi/gems/public_suffix@5.0.4.rbi +936 -0
- data/sorbet/rbi/gems/punchlist@1.3.2.rbi +173 -0
- data/sorbet/rbi/gems/racc@1.7.3.rbi +162 -0
- data/sorbet/rbi/gems/rack@3.0.8.rbi +5184 -0
- data/sorbet/rbi/gems/rainbow@3.1.1.rbi +403 -0
- data/sorbet/rbi/gems/rake@13.1.0.rbi +3022 -0
- data/sorbet/rbi/gems/rbi@0.2.1.rbi +4535 -0
- data/sorbet/rbi/gems/rbs@2.8.4.rbi +5613 -0
- data/sorbet/rbi/gems/regexp_parser@2.8.3.rbi +3750 -0
- data/sorbet/rbi/gems/reverse_markdown@2.1.1.rbi +390 -0
- data/sorbet/rbi/gems/rexml@3.2.6.rbi +4888 -0
- data/sorbet/rbi/gems/rubocop-ast@1.30.0.rbi +7061 -0
- data/sorbet/rbi/gems/rubocop-minitest@0.34.5.rbi +2577 -0
- data/sorbet/rbi/gems/rubocop-performance@1.20.2.rbi +3262 -0
- data/sorbet/rbi/gems/rubocop-rake@0.6.0.rbi +329 -0
- data/sorbet/rbi/gems/rubocop@1.59.0.rbi +57238 -0
- data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +1318 -0
- data/sorbet/rbi/gems/ruby2_keywords@0.0.5.rbi +9 -0
- data/sorbet/rbi/gems/rugged@1.6.3.rbi +1577 -0
- data/sorbet/rbi/gems/simplecov-html@0.12.3.rbi +217 -0
- data/sorbet/rbi/gems/simplecov-lcov@0.8.0.rbi +256 -0
- data/sorbet/rbi/gems/simplecov@0.22.0.rbi +2149 -0
- data/sorbet/rbi/gems/simplecov_json_formatter@0.1.4.rbi +9 -0
- data/sorbet/rbi/gems/solargraph@0.50.1-904b9304770a59fac393c5cc3cad481e5bdf0fd8.rbi +9396 -0
- data/sorbet/rbi/gems/source_finder@3.2.1.rbi +317 -0
- data/sorbet/rbi/gems/spoom@1.5.0.rbi +4932 -0
- data/sorbet/rbi/gems/tapioca@0.16.4.rbi +3604 -0
- data/sorbet/rbi/gems/thor@1.3.2.rbi +4378 -0
- data/sorbet/rbi/gems/tilt@2.4.0.rbi +933 -0
- data/sorbet/rbi/gems/tomlrb@2.0.3.rbi +9 -0
- data/sorbet/rbi/gems/tzinfo@2.0.6.rbi +5918 -0
- data/sorbet/rbi/gems/undercover@0.5.0.rbi +433 -0
- data/sorbet/rbi/gems/unicode-display_width@2.5.0.rbi +66 -0
- data/sorbet/rbi/gems/webmock@3.19.1.rbi +1769 -0
- data/sorbet/rbi/gems/yard-sorbet@0.9.0.rbi +435 -0
- data/sorbet/rbi/gems/yard@0.9.34.rbi +18247 -0
- data/sorbet/rbi/todo.rbi +11 -0
- data/sorbet/tapioca/config.yml +13 -0
- data/sorbet/tapioca/require.rb +4 -0
- metadata +134 -3
@@ -0,0 +1,145 @@
|
|
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
|
+
|
8
|
+
# source://faraday-httpclient//lib/faraday/adapter/httpclient.rb#3
|
9
|
+
module Faraday
|
10
|
+
class << self
|
11
|
+
# source://faraday/1.10.3/lib/faraday.rb#81
|
12
|
+
def default_adapter; end
|
13
|
+
|
14
|
+
# source://faraday/1.10.3/lib/faraday.rb#137
|
15
|
+
def default_adapter=(adapter); end
|
16
|
+
|
17
|
+
# source://faraday/1.10.3/lib/faraday.rb#155
|
18
|
+
def default_connection; end
|
19
|
+
|
20
|
+
# source://faraday/1.10.3/lib/faraday.rb#84
|
21
|
+
def default_connection=(_arg0); end
|
22
|
+
|
23
|
+
# source://faraday/1.10.3/lib/faraday.rb#162
|
24
|
+
def default_connection_options; end
|
25
|
+
|
26
|
+
# source://faraday/1.10.3/lib/faraday.rb#169
|
27
|
+
def default_connection_options=(options); end
|
28
|
+
|
29
|
+
# source://faraday/1.10.3/lib/faraday.rb#89
|
30
|
+
def ignore_env_proxy; end
|
31
|
+
|
32
|
+
# source://faraday/1.10.3/lib/faraday.rb#89
|
33
|
+
def ignore_env_proxy=(_arg0); end
|
34
|
+
|
35
|
+
# source://faraday/1.10.3/lib/faraday.rb#72
|
36
|
+
def lib_path; end
|
37
|
+
|
38
|
+
# source://faraday/1.10.3/lib/faraday.rb#72
|
39
|
+
def lib_path=(_arg0); end
|
40
|
+
|
41
|
+
# source://faraday/1.10.3/lib/faraday.rb#118
|
42
|
+
def new(url = T.unsafe(nil), options = T.unsafe(nil), &block); end
|
43
|
+
|
44
|
+
# source://faraday/1.10.3/lib/faraday.rb#128
|
45
|
+
def require_lib(*libs); end
|
46
|
+
|
47
|
+
# source://faraday/1.10.3/lib/faraday.rb#128
|
48
|
+
def require_libs(*libs); end
|
49
|
+
|
50
|
+
# source://faraday/1.10.3/lib/faraday.rb#142
|
51
|
+
def respond_to_missing?(symbol, include_private = T.unsafe(nil)); end
|
52
|
+
|
53
|
+
# source://faraday/1.10.3/lib/faraday.rb#68
|
54
|
+
def root_path; end
|
55
|
+
|
56
|
+
# source://faraday/1.10.3/lib/faraday.rb#68
|
57
|
+
def root_path=(_arg0); end
|
58
|
+
|
59
|
+
private
|
60
|
+
|
61
|
+
# source://faraday/1.10.3/lib/faraday.rb#178
|
62
|
+
def method_missing(name, *args, &block); end
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
66
|
+
# source://faraday-httpclient//lib/faraday/adapter/httpclient.rb#4
|
67
|
+
class Faraday::Adapter
|
68
|
+
# source://faraday/1.10.3/lib/faraday/adapter.rb#33
|
69
|
+
def initialize(_app = T.unsafe(nil), opts = T.unsafe(nil), &block); end
|
70
|
+
|
71
|
+
# source://faraday/1.10.3/lib/faraday/adapter.rb#60
|
72
|
+
def call(env); end
|
73
|
+
|
74
|
+
# source://faraday/1.10.3/lib/faraday/adapter.rb#55
|
75
|
+
def close; end
|
76
|
+
|
77
|
+
# source://faraday/1.10.3/lib/faraday/adapter.rb#46
|
78
|
+
def connection(env); end
|
79
|
+
|
80
|
+
private
|
81
|
+
|
82
|
+
# source://faraday/1.10.3/lib/faraday/adapter.rb#91
|
83
|
+
def request_timeout(type, options); end
|
84
|
+
|
85
|
+
# source://faraday/1.10.3/lib/faraday/adapter.rb#67
|
86
|
+
def save_response(env, status, body, headers = T.unsafe(nil), reason_phrase = T.unsafe(nil)); end
|
87
|
+
end
|
88
|
+
|
89
|
+
# This class provides the main implementation for your adapter.
|
90
|
+
# There are some key responsibilities that your adapter should satisfy:
|
91
|
+
# * Initialize and store internally the client you chose (e.g. Net::HTTP)
|
92
|
+
# * Process requests and save the response (see `#call`)
|
93
|
+
#
|
94
|
+
# source://faraday-httpclient//lib/faraday/adapter/httpclient.rb#9
|
95
|
+
class Faraday::Adapter::HTTPClient < ::Faraday::Adapter
|
96
|
+
# source://faraday-httpclient//lib/faraday/adapter/httpclient.rb#12
|
97
|
+
def build_connection(env); end
|
98
|
+
|
99
|
+
# source://faraday-httpclient//lib/faraday/adapter/httpclient.rb#39
|
100
|
+
def call(env); end
|
101
|
+
|
102
|
+
# source://faraday-httpclient//lib/faraday/adapter/httpclient.rb#124
|
103
|
+
def configure_client(client); end
|
104
|
+
|
105
|
+
# Configure proxy URI and any user credentials.
|
106
|
+
#
|
107
|
+
# @param proxy [Hash]
|
108
|
+
#
|
109
|
+
# source://faraday-httpclient//lib/faraday/adapter/httpclient.rb#89
|
110
|
+
def configure_proxy(client, proxy); end
|
111
|
+
|
112
|
+
# @param bind [Hash]
|
113
|
+
#
|
114
|
+
# source://faraday-httpclient//lib/faraday/adapter/httpclient.rb#81
|
115
|
+
def configure_socket(client, bind); end
|
116
|
+
|
117
|
+
# @param ssl [Hash]
|
118
|
+
#
|
119
|
+
# source://faraday-httpclient//lib/faraday/adapter/httpclient.rb#97
|
120
|
+
def configure_ssl(client, ssl); end
|
121
|
+
|
122
|
+
# @param req [Hash]
|
123
|
+
#
|
124
|
+
# source://faraday-httpclient//lib/faraday/adapter/httpclient.rb#110
|
125
|
+
def configure_timeouts(client, req); end
|
126
|
+
|
127
|
+
# @param ssl [Hash]
|
128
|
+
# @return [OpenSSL::X509::Store]
|
129
|
+
#
|
130
|
+
# source://faraday-httpclient//lib/faraday/adapter/httpclient.rb#130
|
131
|
+
def ssl_cert_store(ssl); end
|
132
|
+
|
133
|
+
# @param ssl [Hash]
|
134
|
+
#
|
135
|
+
# source://faraday-httpclient//lib/faraday/adapter/httpclient.rb#142
|
136
|
+
def ssl_verify_mode(ssl); end
|
137
|
+
end
|
138
|
+
|
139
|
+
# Main Faraday::HTTPClient module
|
140
|
+
#
|
141
|
+
# source://faraday-httpclient//lib/faraday/httpclient/version.rb#4
|
142
|
+
module Faraday::HTTPClient; end
|
143
|
+
|
144
|
+
# source://faraday-httpclient//lib/faraday/httpclient/version.rb#5
|
145
|
+
Faraday::HTTPClient::VERSION = T.let(T.unsafe(nil), String)
|
@@ -0,0 +1,259 @@
|
|
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
|
+
|
8
|
+
# source://faraday-multipart//lib/faraday/multipart/version.rb#3
|
9
|
+
module Faraday
|
10
|
+
class << self
|
11
|
+
# source://faraday/1.10.3/lib/faraday.rb#81
|
12
|
+
def default_adapter; end
|
13
|
+
|
14
|
+
# source://faraday/1.10.3/lib/faraday.rb#137
|
15
|
+
def default_adapter=(adapter); end
|
16
|
+
|
17
|
+
# source://faraday/1.10.3/lib/faraday.rb#155
|
18
|
+
def default_connection; end
|
19
|
+
|
20
|
+
# source://faraday/1.10.3/lib/faraday.rb#84
|
21
|
+
def default_connection=(_arg0); end
|
22
|
+
|
23
|
+
# source://faraday/1.10.3/lib/faraday.rb#162
|
24
|
+
def default_connection_options; end
|
25
|
+
|
26
|
+
# source://faraday/1.10.3/lib/faraday.rb#169
|
27
|
+
def default_connection_options=(options); end
|
28
|
+
|
29
|
+
# source://faraday/1.10.3/lib/faraday.rb#89
|
30
|
+
def ignore_env_proxy; end
|
31
|
+
|
32
|
+
# source://faraday/1.10.3/lib/faraday.rb#89
|
33
|
+
def ignore_env_proxy=(_arg0); end
|
34
|
+
|
35
|
+
# source://faraday/1.10.3/lib/faraday.rb#72
|
36
|
+
def lib_path; end
|
37
|
+
|
38
|
+
# source://faraday/1.10.3/lib/faraday.rb#72
|
39
|
+
def lib_path=(_arg0); end
|
40
|
+
|
41
|
+
# source://faraday/1.10.3/lib/faraday.rb#118
|
42
|
+
def new(url = T.unsafe(nil), options = T.unsafe(nil), &block); end
|
43
|
+
|
44
|
+
# source://faraday/1.10.3/lib/faraday.rb#128
|
45
|
+
def require_lib(*libs); end
|
46
|
+
|
47
|
+
# source://faraday/1.10.3/lib/faraday.rb#128
|
48
|
+
def require_libs(*libs); end
|
49
|
+
|
50
|
+
# source://faraday/1.10.3/lib/faraday.rb#142
|
51
|
+
def respond_to_missing?(symbol, include_private = T.unsafe(nil)); end
|
52
|
+
|
53
|
+
# source://faraday/1.10.3/lib/faraday.rb#68
|
54
|
+
def root_path; end
|
55
|
+
|
56
|
+
# source://faraday/1.10.3/lib/faraday.rb#68
|
57
|
+
def root_path=(_arg0); end
|
58
|
+
|
59
|
+
private
|
60
|
+
|
61
|
+
# source://faraday/1.10.3/lib/faraday.rb#178
|
62
|
+
def method_missing(name, *args, &block); end
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
66
|
+
# source://faraday-multipart//lib/faraday/multipart.rb#18
|
67
|
+
Faraday::CompositeReadIO = Faraday::Multipart::CompositeReadIO
|
68
|
+
|
69
|
+
# Aliases for Faraday v1, these are all deprecated and will be removed in v2 of this middleware
|
70
|
+
#
|
71
|
+
# source://faraday-multipart//lib/faraday/multipart.rb#15
|
72
|
+
Faraday::FilePart = Multipart::Post::UploadIO
|
73
|
+
|
74
|
+
# Main Faraday::Multipart module.
|
75
|
+
#
|
76
|
+
# source://faraday-multipart//lib/faraday/multipart/version.rb#5
|
77
|
+
module Faraday::Multipart
|
78
|
+
class << self
|
79
|
+
# source://faraday-multipart//lib/faraday/multipart/version.rb#8
|
80
|
+
def multipart_post_version; end
|
81
|
+
end
|
82
|
+
end
|
83
|
+
|
84
|
+
# Similar to, but not compatible with CompositeReadIO provided by the
|
85
|
+
# multipart-post gem.
|
86
|
+
# https://github.com/nicksieger/multipart-post/blob/master/lib/composite_io.rb
|
87
|
+
#
|
88
|
+
# source://faraday-multipart//lib/faraday/multipart/file_part.rb#67
|
89
|
+
class Faraday::Multipart::CompositeReadIO
|
90
|
+
# @return [CompositeReadIO] a new instance of CompositeReadIO
|
91
|
+
#
|
92
|
+
# source://faraday-multipart//lib/faraday/multipart/file_part.rb#68
|
93
|
+
def initialize(*parts); end
|
94
|
+
|
95
|
+
# Close each of the IOs.
|
96
|
+
#
|
97
|
+
# @return [void]
|
98
|
+
#
|
99
|
+
# source://faraday-multipart//lib/faraday/multipart/file_part.rb#111
|
100
|
+
def close; end
|
101
|
+
|
102
|
+
# source://faraday-multipart//lib/faraday/multipart/file_part.rb#115
|
103
|
+
def ensure_open_and_readable; end
|
104
|
+
|
105
|
+
# @return [Integer] sum of the lengths of all the parts
|
106
|
+
#
|
107
|
+
# source://faraday-multipart//lib/faraday/multipart/file_part.rb#75
|
108
|
+
def length; end
|
109
|
+
|
110
|
+
# Read from IOs in order until `length` bytes have been received.
|
111
|
+
#
|
112
|
+
# @param length [Integer, nil]
|
113
|
+
# @param outbuf [String, nil]
|
114
|
+
#
|
115
|
+
# source://faraday-multipart//lib/faraday/multipart/file_part.rb#91
|
116
|
+
def read(length = T.unsafe(nil), outbuf = T.unsafe(nil)); end
|
117
|
+
|
118
|
+
# Rewind each of the IOs and reset the index to 0.
|
119
|
+
#
|
120
|
+
# @return [void]
|
121
|
+
#
|
122
|
+
# source://faraday-multipart//lib/faraday/multipart/file_part.rb#82
|
123
|
+
def rewind; end
|
124
|
+
|
125
|
+
private
|
126
|
+
|
127
|
+
# source://faraday-multipart//lib/faraday/multipart/file_part.rb#125
|
128
|
+
def advance_io; end
|
129
|
+
|
130
|
+
# source://faraday-multipart//lib/faraday/multipart/file_part.rb#121
|
131
|
+
def current_io; end
|
132
|
+
end
|
133
|
+
|
134
|
+
# source://faraday-multipart//lib/faraday/multipart/file_part.rb#55
|
135
|
+
Faraday::Multipart::FilePart = Multipart::Post::UploadIO
|
136
|
+
|
137
|
+
# Middleware for supporting multi-part requests.
|
138
|
+
#
|
139
|
+
# source://faraday-multipart//lib/faraday/multipart/middleware.rb#8
|
140
|
+
class Faraday::Multipart::Middleware < ::Faraday::Request::UrlEncoded
|
141
|
+
# @return [Middleware] a new instance of Middleware
|
142
|
+
#
|
143
|
+
# source://faraday-multipart//lib/faraday/multipart/middleware.rb#13
|
144
|
+
def initialize(app = T.unsafe(nil), options = T.unsafe(nil)); end
|
145
|
+
|
146
|
+
# Checks for files in the payload, otherwise leaves everything untouched.
|
147
|
+
#
|
148
|
+
# @param env [Faraday::Env]
|
149
|
+
#
|
150
|
+
# source://faraday-multipart//lib/faraday/multipart/middleware.rb#21
|
151
|
+
def call(env); end
|
152
|
+
|
153
|
+
# @param env [Faraday::Env]
|
154
|
+
# @param params [Hash]
|
155
|
+
#
|
156
|
+
# source://faraday-multipart//lib/faraday/multipart/middleware.rb#55
|
157
|
+
def create_multipart(env, params); end
|
158
|
+
|
159
|
+
# Returns true if obj is an enumerable with values that are multipart.
|
160
|
+
#
|
161
|
+
# @param obj [Object]
|
162
|
+
# @return [Boolean]
|
163
|
+
#
|
164
|
+
# source://faraday-multipart//lib/faraday/multipart/middleware.rb#44
|
165
|
+
def has_multipart?(obj); end
|
166
|
+
|
167
|
+
# source://faraday-multipart//lib/faraday/multipart/middleware.rb#67
|
168
|
+
def part(boundary, key, value); end
|
169
|
+
|
170
|
+
# @param params [Hash]
|
171
|
+
# @param prefix [String]
|
172
|
+
# @param pieces [Array]
|
173
|
+
#
|
174
|
+
# source://faraday-multipart//lib/faraday/multipart/middleware.rb#83
|
175
|
+
def process_params(params, prefix = T.unsafe(nil), pieces = T.unsafe(nil), &block); end
|
176
|
+
|
177
|
+
# @param env [Faraday::Env]
|
178
|
+
# @return [Boolean]
|
179
|
+
#
|
180
|
+
# source://faraday-multipart//lib/faraday/multipart/middleware.rb#32
|
181
|
+
def process_request?(env); end
|
182
|
+
|
183
|
+
# @return [String]
|
184
|
+
#
|
185
|
+
# source://faraday-multipart//lib/faraday/multipart/middleware.rb#76
|
186
|
+
def unique_boundary; end
|
187
|
+
end
|
188
|
+
|
189
|
+
# source://faraday-multipart//lib/faraday/multipart/middleware.rb#9
|
190
|
+
Faraday::Multipart::Middleware::DEFAULT_BOUNDARY_PREFIX = T.let(T.unsafe(nil), String)
|
191
|
+
|
192
|
+
# Multipart value used to POST data with a content type.
|
193
|
+
#
|
194
|
+
# source://faraday-multipart//lib/faraday/multipart/param_part.rb#6
|
195
|
+
class Faraday::Multipart::ParamPart
|
196
|
+
# @param value [String] Uploaded content as a String.
|
197
|
+
# @param content_type [String] String content type of the value.
|
198
|
+
# @param content_id [String] Optional String of this value's Content-ID.
|
199
|
+
# @return [Faraday::ParamPart]
|
200
|
+
#
|
201
|
+
# source://faraday-multipart//lib/faraday/multipart/param_part.rb#12
|
202
|
+
def initialize(value, content_type, content_id = T.unsafe(nil)); end
|
203
|
+
|
204
|
+
# The value's content ID, if given.
|
205
|
+
#
|
206
|
+
# @return [String, nil]
|
207
|
+
#
|
208
|
+
# source://faraday-multipart//lib/faraday/multipart/param_part.rb#52
|
209
|
+
def content_id; end
|
210
|
+
|
211
|
+
# The value's content type.
|
212
|
+
#
|
213
|
+
# @return [String]
|
214
|
+
#
|
215
|
+
# source://faraday-multipart//lib/faraday/multipart/param_part.rb#47
|
216
|
+
def content_type; end
|
217
|
+
|
218
|
+
# Returns a Hash of String key/value pairs.
|
219
|
+
#
|
220
|
+
# @return [Hash]
|
221
|
+
#
|
222
|
+
# source://faraday-multipart//lib/faraday/multipart/param_part.rb#32
|
223
|
+
def headers; end
|
224
|
+
|
225
|
+
# Converts this value to a form part.
|
226
|
+
#
|
227
|
+
# @param boundary [String] String multipart boundary that must not exist in
|
228
|
+
# the content exactly.
|
229
|
+
# @param key [String] String key name for this value.
|
230
|
+
# @return [Faraday::Parts::Part]
|
231
|
+
#
|
232
|
+
# source://faraday-multipart//lib/faraday/multipart/param_part.rb#25
|
233
|
+
def to_part(boundary, key); end
|
234
|
+
|
235
|
+
# The content to upload.
|
236
|
+
#
|
237
|
+
# @return [String]
|
238
|
+
#
|
239
|
+
# source://faraday-multipart//lib/faraday/multipart/param_part.rb#42
|
240
|
+
def value; end
|
241
|
+
end
|
242
|
+
|
243
|
+
# source://faraday-multipart//lib/faraday/multipart/file_part.rb#56
|
244
|
+
Faraday::Multipart::Parts = Multipart::Post::Parts
|
245
|
+
|
246
|
+
# source://faraday-multipart//lib/faraday/multipart/version.rb#6
|
247
|
+
Faraday::Multipart::VERSION = T.let(T.unsafe(nil), String)
|
248
|
+
|
249
|
+
# source://faraday-multipart//lib/faraday/multipart.rb#16
|
250
|
+
Faraday::ParamPart = Faraday::Multipart::ParamPart
|
251
|
+
|
252
|
+
# source://faraday-multipart//lib/faraday/multipart.rb#17
|
253
|
+
Faraday::Parts = Multipart::Post::Parts
|
254
|
+
|
255
|
+
# multipart-post v2.2.0 introduces a new class hierarchy for classes like Parts and UploadIO
|
256
|
+
# For backwards compatibility, detect the gem version and use the right class
|
257
|
+
#
|
258
|
+
# source://faraday-multipart//lib/faraday/multipart.rb#21
|
259
|
+
Faraday::UploadIO = Multipart::Post::UploadIO
|
@@ -0,0 +1,142 @@
|
|
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
|
+
|
8
|
+
# source://faraday-net_http//lib/faraday/adapter/net_http.rb#12
|
9
|
+
module Faraday
|
10
|
+
class << self
|
11
|
+
# source://faraday/1.10.3/lib/faraday.rb#81
|
12
|
+
def default_adapter; end
|
13
|
+
|
14
|
+
# source://faraday/1.10.3/lib/faraday.rb#137
|
15
|
+
def default_adapter=(adapter); end
|
16
|
+
|
17
|
+
# source://faraday/1.10.3/lib/faraday.rb#155
|
18
|
+
def default_connection; end
|
19
|
+
|
20
|
+
# source://faraday/1.10.3/lib/faraday.rb#84
|
21
|
+
def default_connection=(_arg0); end
|
22
|
+
|
23
|
+
# source://faraday/1.10.3/lib/faraday.rb#162
|
24
|
+
def default_connection_options; end
|
25
|
+
|
26
|
+
# source://faraday/1.10.3/lib/faraday.rb#169
|
27
|
+
def default_connection_options=(options); end
|
28
|
+
|
29
|
+
# source://faraday/1.10.3/lib/faraday.rb#89
|
30
|
+
def ignore_env_proxy; end
|
31
|
+
|
32
|
+
# source://faraday/1.10.3/lib/faraday.rb#89
|
33
|
+
def ignore_env_proxy=(_arg0); end
|
34
|
+
|
35
|
+
# source://faraday/1.10.3/lib/faraday.rb#72
|
36
|
+
def lib_path; end
|
37
|
+
|
38
|
+
# source://faraday/1.10.3/lib/faraday.rb#72
|
39
|
+
def lib_path=(_arg0); end
|
40
|
+
|
41
|
+
# source://faraday/1.10.3/lib/faraday.rb#118
|
42
|
+
def new(url = T.unsafe(nil), options = T.unsafe(nil), &block); end
|
43
|
+
|
44
|
+
# source://faraday/1.10.3/lib/faraday.rb#128
|
45
|
+
def require_lib(*libs); end
|
46
|
+
|
47
|
+
# source://faraday/1.10.3/lib/faraday.rb#128
|
48
|
+
def require_libs(*libs); end
|
49
|
+
|
50
|
+
# source://faraday/1.10.3/lib/faraday.rb#142
|
51
|
+
def respond_to_missing?(symbol, include_private = T.unsafe(nil)); end
|
52
|
+
|
53
|
+
# source://faraday/1.10.3/lib/faraday.rb#68
|
54
|
+
def root_path; end
|
55
|
+
|
56
|
+
# source://faraday/1.10.3/lib/faraday.rb#68
|
57
|
+
def root_path=(_arg0); end
|
58
|
+
|
59
|
+
private
|
60
|
+
|
61
|
+
# source://faraday/1.10.3/lib/faraday.rb#178
|
62
|
+
def method_missing(name, *args, &block); end
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
66
|
+
# source://faraday-net_http//lib/faraday/adapter/net_http.rb#13
|
67
|
+
class Faraday::Adapter
|
68
|
+
# source://faraday/1.10.3/lib/faraday/adapter.rb#33
|
69
|
+
def initialize(_app = T.unsafe(nil), opts = T.unsafe(nil), &block); end
|
70
|
+
|
71
|
+
# source://faraday/1.10.3/lib/faraday/adapter.rb#60
|
72
|
+
def call(env); end
|
73
|
+
|
74
|
+
# source://faraday/1.10.3/lib/faraday/adapter.rb#55
|
75
|
+
def close; end
|
76
|
+
|
77
|
+
# source://faraday/1.10.3/lib/faraday/adapter.rb#46
|
78
|
+
def connection(env); end
|
79
|
+
|
80
|
+
private
|
81
|
+
|
82
|
+
# source://faraday/1.10.3/lib/faraday/adapter.rb#91
|
83
|
+
def request_timeout(type, options); end
|
84
|
+
|
85
|
+
# source://faraday/1.10.3/lib/faraday/adapter.rb#67
|
86
|
+
def save_response(env, status, body, headers = T.unsafe(nil), reason_phrase = T.unsafe(nil)); end
|
87
|
+
end
|
88
|
+
|
89
|
+
# source://faraday-net_http//lib/faraday/adapter/net_http.rb#14
|
90
|
+
class Faraday::Adapter::NetHttp < ::Faraday::Adapter
|
91
|
+
# @return [NetHttp] a new instance of NetHttp
|
92
|
+
#
|
93
|
+
# source://faraday-net_http//lib/faraday/adapter/net_http.rb#37
|
94
|
+
def initialize(app = T.unsafe(nil), opts = T.unsafe(nil), &block); end
|
95
|
+
|
96
|
+
# source://faraday-net_http//lib/faraday/adapter/net_http.rb#42
|
97
|
+
def build_connection(env); end
|
98
|
+
|
99
|
+
# source://faraday-net_http//lib/faraday/adapter/net_http.rb#62
|
100
|
+
def call(env); end
|
101
|
+
|
102
|
+
# source://faraday-net_http//lib/faraday/adapter/net_http.rb#50
|
103
|
+
def net_http_connection(env); end
|
104
|
+
|
105
|
+
private
|
106
|
+
|
107
|
+
# source://faraday-net_http//lib/faraday/adapter/net_http.rb#173
|
108
|
+
def configure_request(http, req); end
|
109
|
+
|
110
|
+
# source://faraday-net_http//lib/faraday/adapter/net_http.rb#157
|
111
|
+
def configure_ssl(http, ssl); end
|
112
|
+
|
113
|
+
# source://faraday-net_http//lib/faraday/adapter/net_http.rb#89
|
114
|
+
def create_request(env); end
|
115
|
+
|
116
|
+
# source://faraday-net_http//lib/faraday/adapter/net_http.rb#105
|
117
|
+
def perform_request(http, env); end
|
118
|
+
|
119
|
+
# source://faraday-net_http//lib/faraday/adapter/net_http.rb#135
|
120
|
+
def request_via_get_method(http, env, &block); end
|
121
|
+
|
122
|
+
# source://faraday-net_http//lib/faraday/adapter/net_http.rb#143
|
123
|
+
def request_via_request_method(http, env, &block); end
|
124
|
+
|
125
|
+
# source://faraday-net_http//lib/faraday/adapter/net_http.rb#126
|
126
|
+
def request_with_wrapped_block(http, env, &block); end
|
127
|
+
|
128
|
+
# source://faraday-net_http//lib/faraday/adapter/net_http.rb#193
|
129
|
+
def ssl_cert_store(ssl); end
|
130
|
+
|
131
|
+
# source://faraday-net_http//lib/faraday/adapter/net_http.rb#202
|
132
|
+
def ssl_verify_mode(ssl); end
|
133
|
+
end
|
134
|
+
|
135
|
+
# source://faraday-net_http//lib/faraday/adapter/net_http.rb#35
|
136
|
+
Faraday::Adapter::NetHttp::NET_HTTP_EXCEPTIONS = T.let(T.unsafe(nil), Array)
|
137
|
+
|
138
|
+
# source://faraday-net_http//lib/faraday/net_http/version.rb#4
|
139
|
+
module Faraday::NetHttp; end
|
140
|
+
|
141
|
+
# source://faraday-net_http//lib/faraday/net_http/version.rb#5
|
142
|
+
Faraday::NetHttp::VERSION = T.let(T.unsafe(nil), String)
|
@@ -0,0 +1,118 @@
|
|
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
|
+
|
8
|
+
# source://faraday-net_http_persistent//lib/faraday/adapter/net_http_persistent.rb#3
|
9
|
+
module Faraday
|
10
|
+
class << self
|
11
|
+
# source://faraday/1.10.3/lib/faraday.rb#81
|
12
|
+
def default_adapter; end
|
13
|
+
|
14
|
+
# source://faraday/1.10.3/lib/faraday.rb#137
|
15
|
+
def default_adapter=(adapter); end
|
16
|
+
|
17
|
+
# source://faraday/1.10.3/lib/faraday.rb#155
|
18
|
+
def default_connection; end
|
19
|
+
|
20
|
+
# source://faraday/1.10.3/lib/faraday.rb#84
|
21
|
+
def default_connection=(_arg0); end
|
22
|
+
|
23
|
+
# source://faraday/1.10.3/lib/faraday.rb#162
|
24
|
+
def default_connection_options; end
|
25
|
+
|
26
|
+
# source://faraday/1.10.3/lib/faraday.rb#169
|
27
|
+
def default_connection_options=(options); end
|
28
|
+
|
29
|
+
# source://faraday/1.10.3/lib/faraday.rb#89
|
30
|
+
def ignore_env_proxy; end
|
31
|
+
|
32
|
+
# source://faraday/1.10.3/lib/faraday.rb#89
|
33
|
+
def ignore_env_proxy=(_arg0); end
|
34
|
+
|
35
|
+
# source://faraday/1.10.3/lib/faraday.rb#72
|
36
|
+
def lib_path; end
|
37
|
+
|
38
|
+
# source://faraday/1.10.3/lib/faraday.rb#72
|
39
|
+
def lib_path=(_arg0); end
|
40
|
+
|
41
|
+
# source://faraday/1.10.3/lib/faraday.rb#118
|
42
|
+
def new(url = T.unsafe(nil), options = T.unsafe(nil), &block); end
|
43
|
+
|
44
|
+
# source://faraday/1.10.3/lib/faraday.rb#128
|
45
|
+
def require_lib(*libs); end
|
46
|
+
|
47
|
+
# source://faraday/1.10.3/lib/faraday.rb#128
|
48
|
+
def require_libs(*libs); end
|
49
|
+
|
50
|
+
# source://faraday/1.10.3/lib/faraday.rb#142
|
51
|
+
def respond_to_missing?(symbol, include_private = T.unsafe(nil)); end
|
52
|
+
|
53
|
+
# source://faraday/1.10.3/lib/faraday.rb#68
|
54
|
+
def root_path; end
|
55
|
+
|
56
|
+
# source://faraday/1.10.3/lib/faraday.rb#68
|
57
|
+
def root_path=(_arg0); end
|
58
|
+
|
59
|
+
private
|
60
|
+
|
61
|
+
# source://faraday/1.10.3/lib/faraday.rb#178
|
62
|
+
def method_missing(name, *args, &block); end
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
66
|
+
# source://faraday-net_http_persistent//lib/faraday/adapter/net_http_persistent.rb#4
|
67
|
+
class Faraday::Adapter
|
68
|
+
# source://faraday/1.10.3/lib/faraday/adapter.rb#33
|
69
|
+
def initialize(_app = T.unsafe(nil), opts = T.unsafe(nil), &block); end
|
70
|
+
|
71
|
+
# source://faraday/1.10.3/lib/faraday/adapter.rb#60
|
72
|
+
def call(env); end
|
73
|
+
|
74
|
+
# source://faraday/1.10.3/lib/faraday/adapter.rb#55
|
75
|
+
def close; end
|
76
|
+
|
77
|
+
# source://faraday/1.10.3/lib/faraday/adapter.rb#46
|
78
|
+
def connection(env); end
|
79
|
+
|
80
|
+
private
|
81
|
+
|
82
|
+
# source://faraday/1.10.3/lib/faraday/adapter.rb#91
|
83
|
+
def request_timeout(type, options); end
|
84
|
+
|
85
|
+
# source://faraday/1.10.3/lib/faraday/adapter.rb#67
|
86
|
+
def save_response(env, status, body, headers = T.unsafe(nil), reason_phrase = T.unsafe(nil)); end
|
87
|
+
end
|
88
|
+
|
89
|
+
# Net::HTTP::Persistent adapter.
|
90
|
+
#
|
91
|
+
# source://faraday-net_http_persistent//lib/faraday/adapter/net_http_persistent.rb#6
|
92
|
+
class Faraday::Adapter::NetHttpPersistent < ::Faraday::Adapter::NetHttp
|
93
|
+
private
|
94
|
+
|
95
|
+
# source://faraday-net_http_persistent//lib/faraday/adapter/net_http_persistent.rb#94
|
96
|
+
def configure_ssl(http, ssl); end
|
97
|
+
|
98
|
+
# source://faraday-net_http_persistent//lib/faraday/adapter/net_http_persistent.rb#105
|
99
|
+
def http_set(http, attr, value); end
|
100
|
+
|
101
|
+
# source://faraday-net_http_persistent//lib/faraday/adapter/net_http_persistent.rb#11
|
102
|
+
def net_http_connection(env); end
|
103
|
+
|
104
|
+
# source://faraday-net_http_persistent//lib/faraday/adapter/net_http_persistent.rb#52
|
105
|
+
def perform_request(http, env); end
|
106
|
+
|
107
|
+
# source://faraday-net_http_persistent//lib/faraday/adapter/net_http_persistent.rb#31
|
108
|
+
def proxy_uri(env); end
|
109
|
+
end
|
110
|
+
|
111
|
+
# source://faraday-net_http_persistent//lib/faraday/adapter/net_http_persistent.rb#85
|
112
|
+
Faraday::Adapter::NetHttpPersistent::SSL_CONFIGURATIONS = T.let(T.unsafe(nil), Hash)
|
113
|
+
|
114
|
+
# source://faraday-net_http_persistent//lib/faraday/net_http_persistent/version.rb#4
|
115
|
+
module Faraday::NetHttpPersistent; end
|
116
|
+
|
117
|
+
# source://faraday-net_http_persistent//lib/faraday/net_http_persistent/version.rb#5
|
118
|
+
Faraday::NetHttpPersistent::VERSION = T.let(T.unsafe(nil), String)
|