venture 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.ruby-version +1 -0
- data/.standard.yml +6 -0
- data/.tool-versions +1 -0
- data/CHANGELOG.md +1 -0
- data/CODE_OF_CONDUCT.md +84 -0
- data/Gemfile +22 -0
- data/Gemfile.lock +132 -0
- data/LICENSE.txt +21 -0
- data/README.md +39 -0
- data/Rakefile +22 -0
- data/lib/venture/response.rb +7 -0
- data/lib/venture.rb +28 -0
- data/sorbet/config +5 -0
- data/sorbet/rbi/gems/.gitattributes +1 -0
- data/sorbet/rbi/gems/ast@2.4.2.rbi +585 -0
- data/sorbet/rbi/gems/erubi@1.13.0.rbi +150 -0
- data/sorbet/rbi/gems/io-console@0.7.2.rbi +9 -0
- data/sorbet/rbi/gems/json@2.7.2.rbi +1562 -0
- data/sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi +14238 -0
- data/sorbet/rbi/gems/lint_roller@1.1.0.rbi +240 -0
- data/sorbet/rbi/gems/minitest@5.24.1.rbi +2249 -0
- data/sorbet/rbi/gems/netrc@0.11.0.rbi +159 -0
- data/sorbet/rbi/gems/parallel@1.25.1.rbi +287 -0
- data/sorbet/rbi/gems/parser@3.3.3.0.rbi +5519 -0
- data/sorbet/rbi/gems/prism@0.30.0.rbi +39212 -0
- data/sorbet/rbi/gems/psych@5.1.2.rbi +1769 -0
- data/sorbet/rbi/gems/racc@1.8.0.rbi +162 -0
- data/sorbet/rbi/gems/rainbow@3.1.1.rbi +403 -0
- data/sorbet/rbi/gems/rake@13.2.1.rbi +3028 -0
- data/sorbet/rbi/gems/rbi@0.1.13.rbi +3078 -0
- data/sorbet/rbi/gems/regexp_parser@2.9.2.rbi +3772 -0
- data/sorbet/rbi/gems/reline@0.5.9.rbi +9 -0
- data/sorbet/rbi/gems/rexml@3.3.1.rbi +4813 -0
- data/sorbet/rbi/gems/rubocop-ast@1.31.3.rbi +7012 -0
- data/sorbet/rbi/gems/rubocop-performance@1.21.1.rbi +9 -0
- data/sorbet/rbi/gems/rubocop-sorbet@0.7.8.rbi +9 -0
- data/sorbet/rbi/gems/rubocop@1.64.1.rbi +58099 -0
- data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +1318 -0
- data/sorbet/rbi/gems/sorbet-http@0.0.1.rbi +143 -0
- data/sorbet/rbi/gems/sorbet-result@1.1.0.rbi +224 -0
- data/sorbet/rbi/gems/spoom@1.3.2.rbi +4421 -0
- data/sorbet/rbi/gems/standard-custom@1.0.2.rbi +9 -0
- data/sorbet/rbi/gems/standard-performance@1.4.0.rbi +9 -0
- data/sorbet/rbi/gems/standard-sorbet@0.0.2.rbi +53 -0
- data/sorbet/rbi/gems/standard@1.39.1.rbi +923 -0
- data/sorbet/rbi/gems/stringio@3.1.1.rbi +9 -0
- data/sorbet/rbi/gems/strscan@3.1.0.rbi +9 -0
- data/sorbet/rbi/gems/tapioca@0.15.0.rbi +3566 -0
- data/sorbet/rbi/gems/thor@1.3.1.rbi +4352 -0
- data/sorbet/rbi/gems/unicode-display_width@2.5.0.rbi +66 -0
- data/sorbet/rbi/gems/yard-sorbet@0.9.0.rbi +435 -0
- data/sorbet/rbi/gems/yard@0.9.36.rbi +18221 -0
- data/sorbet/rbi/gems/zeitwerk@2.6.16.rbi +9 -0
- data/sorbet/tapioca/config.yml +4 -0
- data/sorbet/tapioca/require.rb +7 -0
- metadata +145 -0
@@ -0,0 +1,143 @@
|
|
1
|
+
# typed: true
|
2
|
+
|
3
|
+
# DO NOT EDIT MANUALLY
|
4
|
+
# This is an autogenerated file for types exported from the `sorbet-http` gem.
|
5
|
+
# Please instead update this file by running `bin/tapioca gem sorbet-http`.
|
6
|
+
|
7
|
+
|
8
|
+
# source://sorbet-http//lib/sorbet-http.rb#10
|
9
|
+
module Typed; end
|
10
|
+
|
11
|
+
# source://sorbet-http//lib/typed/http/method.rb#5
|
12
|
+
module Typed::HTTP; end
|
13
|
+
|
14
|
+
# Enumerates all valid request header methods.
|
15
|
+
#
|
16
|
+
# source://sorbet-http//lib/typed/http/method.rb#7
|
17
|
+
class Typed::HTTP::Method < ::T::Enum
|
18
|
+
enums do
|
19
|
+
Connect = new
|
20
|
+
Delete = new
|
21
|
+
Get = new
|
22
|
+
Head = new
|
23
|
+
Options = new
|
24
|
+
Patch = new
|
25
|
+
Post = new
|
26
|
+
Put = new
|
27
|
+
Trace = new
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
# Enumerates all valid HTTP response status codes and
|
32
|
+
# provides conversion and convenience methods.
|
33
|
+
#
|
34
|
+
# source://sorbet-http//lib/typed/http/status_code.rb#8
|
35
|
+
class Typed::HTTP::StatusCode < ::T::Enum
|
36
|
+
enums do
|
37
|
+
Continue = new
|
38
|
+
SwitchingProtocols = new
|
39
|
+
Processing = new
|
40
|
+
EarlyHints = new
|
41
|
+
OK = new
|
42
|
+
Created = new
|
43
|
+
Accepted = new
|
44
|
+
NonAuthoritativeInformation = new
|
45
|
+
NoContent = new
|
46
|
+
ResetContent = new
|
47
|
+
PartialContent = new
|
48
|
+
MultipleChoices = new
|
49
|
+
MovedPermanently = new
|
50
|
+
Found = new
|
51
|
+
SeeOther = new
|
52
|
+
NotModified = new
|
53
|
+
TemporaryRedirect = new
|
54
|
+
PermanentRedirect = new
|
55
|
+
BadRequest = new
|
56
|
+
Unauthorized = new
|
57
|
+
PaymentRequired = new
|
58
|
+
Forbidden = new
|
59
|
+
NotFound = new
|
60
|
+
MethodNotAllowed = new
|
61
|
+
NotAcceptable = new
|
62
|
+
ProxyAuthenticationRequired = new
|
63
|
+
RequestTimeout = new
|
64
|
+
Conflict = new
|
65
|
+
Gone = new
|
66
|
+
LengthRequired = new
|
67
|
+
PreconditionFailed = new
|
68
|
+
ContentTooLarge = new
|
69
|
+
URITooLong = new
|
70
|
+
UnsupportedMediaType = new
|
71
|
+
RangeNotSatisfied = new
|
72
|
+
ExpectationFailed = new
|
73
|
+
ImATeapot = new
|
74
|
+
MisdirectedRequest = new
|
75
|
+
UnprocessableContent = new
|
76
|
+
Locked = new
|
77
|
+
FailedDependency = new
|
78
|
+
TooEarly = new
|
79
|
+
UpgradeRequired = new
|
80
|
+
PreconditionRequired = new
|
81
|
+
TooManyRequests = new
|
82
|
+
RequestHeaderFieldsTooLarge = new
|
83
|
+
UnavailableForLegalReasons = new
|
84
|
+
InternalServerError = new
|
85
|
+
NotImplemented = new
|
86
|
+
BadGateway = new
|
87
|
+
ServiceUnavailable = new
|
88
|
+
GatewayTimeout = new
|
89
|
+
HTTPVersionNotSupported = new
|
90
|
+
VariantAlsoNegotiates = new
|
91
|
+
InsufficientStorage = new
|
92
|
+
LoopDetected = new
|
93
|
+
NotExtended = new
|
94
|
+
NetworkAuthenticationRequired = new
|
95
|
+
end
|
96
|
+
|
97
|
+
# source://sorbet-http//lib/typed/http/status_code.rb#349
|
98
|
+
sig { returns(T::Boolean) }
|
99
|
+
def client_error?; end
|
100
|
+
|
101
|
+
# source://sorbet-http//lib/typed/http/status_code.rb#334
|
102
|
+
sig { returns(T::Boolean) }
|
103
|
+
def informational?; end
|
104
|
+
|
105
|
+
# source://sorbet-http//lib/typed/http/status_code.rb#344
|
106
|
+
sig { returns(T::Boolean) }
|
107
|
+
def redirection?; end
|
108
|
+
|
109
|
+
# source://sorbet-http//lib/typed/http/status_code.rb#354
|
110
|
+
sig { returns(T::Boolean) }
|
111
|
+
def server_error?; end
|
112
|
+
|
113
|
+
# source://sorbet-http//lib/typed/http/status_code.rb#339
|
114
|
+
sig { returns(T::Boolean) }
|
115
|
+
def successful?; end
|
116
|
+
|
117
|
+
# @return [Integer]
|
118
|
+
#
|
119
|
+
# source://sorbet-runtime/0.5.11471/lib/types/private/methods/_methods.rb#257
|
120
|
+
def to_code(*args, **_arg1, &blk); end
|
121
|
+
|
122
|
+
# source://sorbet-http//lib/typed/http/status_code.rb#208
|
123
|
+
sig { returns(::Integer) }
|
124
|
+
def to_i; end
|
125
|
+
|
126
|
+
private
|
127
|
+
|
128
|
+
# source://sorbet-http//lib/typed/http/status_code.rb#361
|
129
|
+
sig { returns(::Integer) }
|
130
|
+
def first_digit; end
|
131
|
+
|
132
|
+
class << self
|
133
|
+
# @param int [Integer]
|
134
|
+
# @return [StatusCode]
|
135
|
+
#
|
136
|
+
# source://sorbet-runtime/0.5.11471/lib/types/private/methods/_methods.rb#257
|
137
|
+
def from_code(*args, **_arg1, &blk); end
|
138
|
+
|
139
|
+
# source://sorbet-http//lib/typed/http/status_code.rb#81
|
140
|
+
sig { params(int: ::Integer).returns(::Typed::HTTP::StatusCode) }
|
141
|
+
def from_i(int); end
|
142
|
+
end
|
143
|
+
end
|
@@ -0,0 +1,224 @@
|
|
1
|
+
# typed: true
|
2
|
+
|
3
|
+
# DO NOT EDIT MANUALLY
|
4
|
+
# This is an autogenerated file for types exported from the `sorbet-result` gem.
|
5
|
+
# Please instead update this file by running `bin/tapioca gem sorbet-result`.
|
6
|
+
|
7
|
+
|
8
|
+
# source://sorbet-result//lib/typed/no_error_on_success_error.rb#4
|
9
|
+
module Typed; end
|
10
|
+
|
11
|
+
# source://sorbet-result//lib/typed/result.rb#138
|
12
|
+
class Typed::Failure < ::Typed::Result
|
13
|
+
extend T::Generic
|
14
|
+
|
15
|
+
Payload = type_member { { fixed: T.noreturn } }
|
16
|
+
Error = type_member
|
17
|
+
|
18
|
+
# source://sorbet-result//lib/typed/result.rb#163
|
19
|
+
sig { params(error: Error).void }
|
20
|
+
def initialize(error); end
|
21
|
+
|
22
|
+
# source://sorbet-result//lib/typed/result.rb#189
|
23
|
+
sig do
|
24
|
+
override
|
25
|
+
.type_parameters(:U, :T)
|
26
|
+
.params(
|
27
|
+
_block: T.proc.params(arg0: Payload).returns(Typed::Result[T.type_parameter(:U), T.type_parameter(:T)])
|
28
|
+
).returns(Typed::Result[T.type_parameter(:U), Error])
|
29
|
+
end
|
30
|
+
def and_then(&_block); end
|
31
|
+
|
32
|
+
# source://sorbet-result//lib/typed/result.rb#146
|
33
|
+
sig { override.returns(Error) }
|
34
|
+
def error; end
|
35
|
+
|
36
|
+
# source://sorbet-result//lib/typed/result.rb#174
|
37
|
+
sig { override.returns(T::Boolean) }
|
38
|
+
def failure?; end
|
39
|
+
|
40
|
+
# source://sorbet-result//lib/typed/result.rb#198
|
41
|
+
sig { override.params(block: T.proc.params(arg0: Error).void).returns(T.self_type) }
|
42
|
+
def on_error(&block); end
|
43
|
+
|
44
|
+
# @raise [NoPayloadOnFailureError]
|
45
|
+
#
|
46
|
+
# source://sorbet-result//lib/typed/result.rb#179
|
47
|
+
sig { override.returns(T.noreturn) }
|
48
|
+
def payload; end
|
49
|
+
|
50
|
+
# source://sorbet-result//lib/typed/result.rb#209
|
51
|
+
sig do
|
52
|
+
override
|
53
|
+
.type_parameters(:Fallback)
|
54
|
+
.params(
|
55
|
+
value: T.type_parameter(:Fallback)
|
56
|
+
).returns(T.any(Payload, T.type_parameter(:Fallback)))
|
57
|
+
end
|
58
|
+
def payload_or(value); end
|
59
|
+
|
60
|
+
# source://sorbet-result//lib/typed/result.rb#169
|
61
|
+
sig { override.returns(T::Boolean) }
|
62
|
+
def success?; end
|
63
|
+
|
64
|
+
class << self
|
65
|
+
# source://sorbet-result//lib/typed/result.rb#158
|
66
|
+
sig { returns(Typed::Failure[::NilClass]) }
|
67
|
+
def blank; end
|
68
|
+
|
69
|
+
# source://sorbet-result//lib/typed/result.rb#153
|
70
|
+
sig { type_parameters(:T).params(error: T.type_parameter(:T)).returns(Typed::Failure[T.type_parameter(:T)]) }
|
71
|
+
def new(error); end
|
72
|
+
end
|
73
|
+
end
|
74
|
+
|
75
|
+
# Error when user attempts to access payload from a Failure Result.
|
76
|
+
#
|
77
|
+
# source://sorbet-result//lib/typed/no_error_on_success_error.rb#6
|
78
|
+
class Typed::NoErrorOnSuccessError < ::StandardError
|
79
|
+
# source://sorbet-result//lib/typed/no_error_on_success_error.rb#10
|
80
|
+
sig { void }
|
81
|
+
def initialize; end
|
82
|
+
end
|
83
|
+
|
84
|
+
# Error when user attempts to access payload from a Failure Result.
|
85
|
+
#
|
86
|
+
# source://sorbet-result//lib/typed/no_payload_on_failure_error.rb#6
|
87
|
+
class Typed::NoPayloadOnFailureError < ::StandardError
|
88
|
+
# source://sorbet-result//lib/typed/no_payload_on_failure_error.rb#10
|
89
|
+
sig { void }
|
90
|
+
def initialize; end
|
91
|
+
end
|
92
|
+
|
93
|
+
# A monad representing either a success or a failure. Contains payload and error information as well.
|
94
|
+
#
|
95
|
+
# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below.
|
96
|
+
#
|
97
|
+
# source://sorbet-result//lib/typed/result.rb#9
|
98
|
+
class Typed::Result
|
99
|
+
extend T::Generic
|
100
|
+
|
101
|
+
abstract!
|
102
|
+
sealed!
|
103
|
+
|
104
|
+
Payload = type_member(:out)
|
105
|
+
Error = type_member(:out)
|
106
|
+
|
107
|
+
# @abstract
|
108
|
+
#
|
109
|
+
# source://sorbet-result//lib/typed/result.rb#42
|
110
|
+
sig do
|
111
|
+
abstract
|
112
|
+
.type_parameters(:U, :T)
|
113
|
+
.params(
|
114
|
+
_block: T.proc.params(arg0: Payload).returns(Typed::Result[T.type_parameter(:U), T.type_parameter(:T)])
|
115
|
+
).returns(T.any(Typed::Result[T.type_parameter(:U), Error], Typed::Result[T.type_parameter(:U), T.type_parameter(:T)]))
|
116
|
+
end
|
117
|
+
def and_then(&_block); end
|
118
|
+
|
119
|
+
# @abstract
|
120
|
+
#
|
121
|
+
# source://sorbet-result//lib/typed/result.rb#33
|
122
|
+
sig { abstract.returns(Error) }
|
123
|
+
def error; end
|
124
|
+
|
125
|
+
# @abstract
|
126
|
+
#
|
127
|
+
# source://sorbet-result//lib/typed/result.rb#25
|
128
|
+
sig { abstract.returns(T::Boolean) }
|
129
|
+
def failure?; end
|
130
|
+
|
131
|
+
# @abstract
|
132
|
+
#
|
133
|
+
# source://sorbet-result//lib/typed/result.rb#50
|
134
|
+
sig { abstract.params(block: T.proc.params(arg0: Error).void).returns(T.self_type) }
|
135
|
+
def on_error(&block); end
|
136
|
+
|
137
|
+
# @abstract
|
138
|
+
#
|
139
|
+
# source://sorbet-result//lib/typed/result.rb#29
|
140
|
+
sig { abstract.returns(Payload) }
|
141
|
+
def payload; end
|
142
|
+
|
143
|
+
# @abstract
|
144
|
+
#
|
145
|
+
# source://sorbet-result//lib/typed/result.rb#59
|
146
|
+
sig do
|
147
|
+
abstract
|
148
|
+
.type_parameters(:Fallback)
|
149
|
+
.params(
|
150
|
+
value: T.type_parameter(:Fallback)
|
151
|
+
).returns(T.any(Payload, T.type_parameter(:Fallback)))
|
152
|
+
end
|
153
|
+
def payload_or(value); end
|
154
|
+
|
155
|
+
# @abstract
|
156
|
+
#
|
157
|
+
# source://sorbet-result//lib/typed/result.rb#21
|
158
|
+
sig { abstract.returns(T::Boolean) }
|
159
|
+
def success?; end
|
160
|
+
end
|
161
|
+
|
162
|
+
# source://sorbet-result//lib/typed/result.rb#63
|
163
|
+
class Typed::Success < ::Typed::Result
|
164
|
+
extend T::Generic
|
165
|
+
|
166
|
+
Payload = type_member
|
167
|
+
Error = type_member { { fixed: T.noreturn } }
|
168
|
+
|
169
|
+
# source://sorbet-result//lib/typed/result.rb#88
|
170
|
+
sig { params(payload: Payload).void }
|
171
|
+
def initialize(payload); end
|
172
|
+
|
173
|
+
# source://sorbet-result//lib/typed/result.rb#114
|
174
|
+
sig do
|
175
|
+
override
|
176
|
+
.type_parameters(:U, :T)
|
177
|
+
.params(
|
178
|
+
block: T.proc.params(arg0: Payload).returns(Typed::Result[T.type_parameter(:U), T.type_parameter(:T)])
|
179
|
+
).returns(Typed::Result[T.type_parameter(:U), T.type_parameter(:T)])
|
180
|
+
end
|
181
|
+
def and_then(&block); end
|
182
|
+
|
183
|
+
# @raise [NoErrorOnSuccessError]
|
184
|
+
#
|
185
|
+
# source://sorbet-result//lib/typed/result.rb#104
|
186
|
+
sig { override.returns(T.noreturn) }
|
187
|
+
def error; end
|
188
|
+
|
189
|
+
# source://sorbet-result//lib/typed/result.rb#99
|
190
|
+
sig { override.returns(T::Boolean) }
|
191
|
+
def failure?; end
|
192
|
+
|
193
|
+
# source://sorbet-result//lib/typed/result.rb#123
|
194
|
+
sig { override.params(_block: T.proc.params(arg0: Error).void).returns(T.self_type) }
|
195
|
+
def on_error(&_block); end
|
196
|
+
|
197
|
+
# source://sorbet-result//lib/typed/result.rb#71
|
198
|
+
sig { override.returns(Payload) }
|
199
|
+
def payload; end
|
200
|
+
|
201
|
+
# source://sorbet-result//lib/typed/result.rb#133
|
202
|
+
sig do
|
203
|
+
override
|
204
|
+
.type_parameters(:Fallback)
|
205
|
+
.params(
|
206
|
+
_value: T.type_parameter(:Fallback)
|
207
|
+
).returns(T.any(Payload, T.type_parameter(:Fallback)))
|
208
|
+
end
|
209
|
+
def payload_or(_value); end
|
210
|
+
|
211
|
+
# source://sorbet-result//lib/typed/result.rb#94
|
212
|
+
sig { override.returns(T::Boolean) }
|
213
|
+
def success?; end
|
214
|
+
|
215
|
+
class << self
|
216
|
+
# source://sorbet-result//lib/typed/result.rb#83
|
217
|
+
sig { returns(Typed::Success[::NilClass]) }
|
218
|
+
def blank; end
|
219
|
+
|
220
|
+
# source://sorbet-result//lib/typed/result.rb#78
|
221
|
+
sig { type_parameters(:T).params(payload: T.type_parameter(:T)).returns(Typed::Success[T.type_parameter(:T)]) }
|
222
|
+
def new(payload); end
|
223
|
+
end
|
224
|
+
end
|