bungie_sdk 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.gitignore +14 -0
- data/.rspec +3 -0
- data/.rubocop.yml +147 -0
- data/.solargraph.yml +23 -0
- data/.travis.yml +6 -0
- data/.vim/coc-settings.json +12 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +19 -0
- data/Gemfile.lock +133 -0
- data/LICENSE.txt +21 -0
- data/README.md +56 -0
- data/Rakefile +6 -0
- data/bin/console +15 -0
- data/bin/setup +8 -0
- data/bin/tapioca +29 -0
- data/bungie_sdk.gemspec +35 -0
- data/lib/bungie_sdk/agent.rb +166 -0
- data/lib/bungie_sdk/character.rb +82 -0
- data/lib/bungie_sdk/client.rb +72 -0
- data/lib/bungie_sdk/item.rb +83 -0
- data/lib/bungie_sdk/membership.rb +30 -0
- data/lib/bungie_sdk/profile.rb +36 -0
- data/lib/bungie_sdk/token_manager.rb +136 -0
- data/lib/bungie_sdk/vendor.rb +64 -0
- data/lib/bungie_sdk/version.rb +4 -0
- data/lib/bungie_sdk.rb +104 -0
- data/sorbet/config +3 -0
- data/sorbet/rbi/gems/addressable.rbi +151 -0
- data/sorbet/rbi/gems/addressable@2.8.0.rbi +224 -0
- data/sorbet/rbi/gems/ast@2.4.2.rbi +54 -0
- data/sorbet/rbi/gems/bungie_sdk.rbi +15 -0
- data/sorbet/rbi/gems/coderay.rbi +285 -0
- data/sorbet/rbi/gems/coderay@1.1.3.rbi +1005 -0
- data/sorbet/rbi/gems/diff-lcs@1.5.0.rbi +185 -0
- data/sorbet/rbi/gems/dotenv.rbi +68 -0
- data/sorbet/rbi/gems/dotenv@2.7.6.rbi +88 -0
- data/sorbet/rbi/gems/ethon.rbi +716 -0
- data/sorbet/rbi/gems/ethon@0.15.0.rbi +883 -0
- data/sorbet/rbi/gems/faraday-net_http.rbi +33 -0
- data/sorbet/rbi/gems/faraday-net_http@2.0.1.rbi +78 -0
- data/sorbet/rbi/gems/faraday.rbi +696 -0
- data/sorbet/rbi/gems/faraday@2.2.0.rbi +685 -0
- data/sorbet/rbi/gems/ffi.rbi +560 -0
- data/sorbet/rbi/gems/ffi@1.15.5.rbi +849 -0
- data/sorbet/rbi/gems/gem-release.rbi +582 -0
- data/sorbet/rbi/gems/gem-release@2.2.2.rbi +644 -0
- data/sorbet/rbi/gems/hashie.rbi +160 -0
- data/sorbet/rbi/gems/jwt.rbi +274 -0
- data/sorbet/rbi/gems/jwt@2.3.0.rbi +437 -0
- data/sorbet/rbi/gems/launchy.rbi +226 -0
- data/sorbet/rbi/gems/launchy@2.5.0.rbi +327 -0
- data/sorbet/rbi/gems/method_source.rbi +64 -0
- data/sorbet/rbi/gems/method_source@1.0.0.rbi +72 -0
- data/sorbet/rbi/gems/multi_json.rbi +62 -0
- data/sorbet/rbi/gems/multi_json@1.15.0.rbi +96 -0
- data/sorbet/rbi/gems/multi_xml.rbi +35 -0
- data/sorbet/rbi/gems/multi_xml@0.6.0.rbi +36 -0
- data/sorbet/rbi/gems/oauth2.rbi +143 -0
- data/sorbet/rbi/gems/oauth2@1.4.9.rbi +181 -0
- data/sorbet/rbi/gems/parallel@1.22.1.rbi +8 -0
- data/sorbet/rbi/gems/parser@3.1.1.0.rbi +1196 -0
- data/sorbet/rbi/gems/pry.rbi +1898 -0
- data/sorbet/rbi/gems/pry@0.14.1.rbi +2486 -0
- data/sorbet/rbi/gems/public_suffix.rbi +104 -0
- data/sorbet/rbi/gems/public_suffix@4.0.6.rbi +145 -0
- data/sorbet/rbi/gems/rack.rbi +21 -0
- data/sorbet/rbi/gems/rack@2.2.3.rbi +1622 -0
- data/sorbet/rbi/gems/rainbow@3.1.1.rbi +8 -0
- data/sorbet/rbi/gems/rake.rbi +644 -0
- data/sorbet/rbi/gems/rake@12.3.3.rbi +804 -0
- data/sorbet/rbi/gems/rbi@0.0.14.rbi +2073 -0
- data/sorbet/rbi/gems/regexp_parser@2.3.0.rbi +8 -0
- data/sorbet/rbi/gems/rexml@3.2.5.rbi +672 -0
- data/sorbet/rbi/gems/rspec-core.rbi +1898 -0
- data/sorbet/rbi/gems/rspec-core@3.11.0.rbi +2468 -0
- data/sorbet/rbi/gems/rspec-expectations.rbi +1171 -0
- data/sorbet/rbi/gems/rspec-expectations@3.11.0.rbi +1634 -0
- data/sorbet/rbi/gems/rspec-mocks.rbi +1094 -0
- data/sorbet/rbi/gems/rspec-mocks@3.11.1.rbi +1497 -0
- data/sorbet/rbi/gems/rspec-support.rbi +280 -0
- data/sorbet/rbi/gems/rspec-support@3.11.0.rbi +511 -0
- data/sorbet/rbi/gems/rspec.rbi +15 -0
- data/sorbet/rbi/gems/rspec@3.11.0.rbi +40 -0
- data/sorbet/rbi/gems/rubocop-ast@1.17.0.rbi +8 -0
- data/sorbet/rbi/gems/rubocop-sorbet@0.6.7.rbi +8 -0
- data/sorbet/rbi/gems/rubocop@1.27.0.rbi +8 -0
- data/sorbet/rbi/gems/ruby-progressbar@1.11.0.rbi +8 -0
- data/sorbet/rbi/gems/ruby2_keywords@0.0.5.rbi +8 -0
- data/sorbet/rbi/gems/spoom@1.1.11.rbi +1445 -0
- data/sorbet/rbi/gems/tapioca@0.7.1.rbi +1677 -0
- data/sorbet/rbi/gems/thor@1.2.1.rbi +844 -0
- data/sorbet/rbi/gems/typhoeus.rbi +301 -0
- data/sorbet/rbi/gems/typhoeus@1.4.0.rbi +450 -0
- data/sorbet/rbi/gems/unicode-display_width@2.1.0.rbi +8 -0
- data/sorbet/rbi/gems/unparser@0.6.4.rbi +8 -0
- data/sorbet/rbi/gems/webrick@1.7.0.rbi +601 -0
- data/sorbet/rbi/gems/yard-sorbet@0.6.1.rbi +235 -0
- data/sorbet/rbi/gems/yard@0.9.27.rbi +3966 -0
- data/sorbet/rbi/hidden-definitions/errors.txt +4013 -0
- data/sorbet/rbi/hidden-definitions/hidden.rbi +8945 -0
- data/sorbet/rbi/sorbet-typed/lib/faraday/all/faraday.rbi +82 -0
- data/sorbet/rbi/sorbet-typed/lib/rake/all/rake.rbi +645 -0
- data/sorbet/rbi/sorbet-typed/lib/rspec-core/all/rspec-core.rbi +24 -0
- data/sorbet/rbi/todo.rbi +8 -0
- data/sorbet/tapioca/config.yml +13 -0
- data/sorbet/tapioca/require.rb +4 -0
- metadata +236 -0
|
@@ -0,0 +1,301 @@
|
|
|
1
|
+
# This file is autogenerated. Do not edit it by hand. Regenerate it with:
|
|
2
|
+
# srb rbi gems
|
|
3
|
+
|
|
4
|
+
# typed: ignore
|
|
5
|
+
#
|
|
6
|
+
# If you would like to make changes to this file, great! Please create the gem's shim here:
|
|
7
|
+
#
|
|
8
|
+
# https://github.com/sorbet/sorbet-typed/new/master?filename=lib/typhoeus/all/typhoeus.rbi
|
|
9
|
+
#
|
|
10
|
+
# typhoeus-1.4.0
|
|
11
|
+
|
|
12
|
+
module Typhoeus
|
|
13
|
+
def self.before(&block); end
|
|
14
|
+
def self.configure; end
|
|
15
|
+
def self.stub(base_url, options = nil, &block); end
|
|
16
|
+
def self.with_connection; end
|
|
17
|
+
extend Typhoeus::Request::Actions
|
|
18
|
+
extend Typhoeus::Request::Callbacks::Types
|
|
19
|
+
end
|
|
20
|
+
module Typhoeus::Config
|
|
21
|
+
def block_connection; end
|
|
22
|
+
def block_connection=(arg0); end
|
|
23
|
+
def cache; end
|
|
24
|
+
def cache=(arg0); end
|
|
25
|
+
def memoize; end
|
|
26
|
+
def memoize=(arg0); end
|
|
27
|
+
def proxy; end
|
|
28
|
+
def proxy=(arg0); end
|
|
29
|
+
def user_agent; end
|
|
30
|
+
def user_agent=(arg0); end
|
|
31
|
+
def verbose; end
|
|
32
|
+
def verbose=(arg0); end
|
|
33
|
+
extend Typhoeus::Config
|
|
34
|
+
end
|
|
35
|
+
class Typhoeus::EasyFactory
|
|
36
|
+
def easy; end
|
|
37
|
+
def get; end
|
|
38
|
+
def hydra; end
|
|
39
|
+
def initialize(request, hydra = nil); end
|
|
40
|
+
def provide_help(option); end
|
|
41
|
+
def request; end
|
|
42
|
+
def sanitize(options); end
|
|
43
|
+
def sanitize_timeout!(options, timeout); end
|
|
44
|
+
def set_callback; end
|
|
45
|
+
end
|
|
46
|
+
module Typhoeus::Errors
|
|
47
|
+
end
|
|
48
|
+
class Typhoeus::Errors::TyphoeusError < StandardError
|
|
49
|
+
end
|
|
50
|
+
class Typhoeus::Errors::NoStub < Typhoeus::Errors::TyphoeusError
|
|
51
|
+
def initialize(request); end
|
|
52
|
+
end
|
|
53
|
+
class Typhoeus::Expectation
|
|
54
|
+
def and_return(response = nil, &block); end
|
|
55
|
+
def base_url; end
|
|
56
|
+
def from; end
|
|
57
|
+
def initialize(base_url, options = nil); end
|
|
58
|
+
def matches?(request); end
|
|
59
|
+
def options; end
|
|
60
|
+
def options_match?(request); end
|
|
61
|
+
def response(request); end
|
|
62
|
+
def responses; end
|
|
63
|
+
def self.all; end
|
|
64
|
+
def self.clear; end
|
|
65
|
+
def self.find_by(request); end
|
|
66
|
+
def self.response_for(request); end
|
|
67
|
+
def stubbed_from(value); end
|
|
68
|
+
def url_match?(request_url); end
|
|
69
|
+
end
|
|
70
|
+
class Typhoeus::Hydra
|
|
71
|
+
def initialize(options = nil); end
|
|
72
|
+
def max_concurrency; end
|
|
73
|
+
def max_concurrency=(arg0); end
|
|
74
|
+
def multi; end
|
|
75
|
+
def self.hydra; end
|
|
76
|
+
include Typhoeus::Hydra::Addable
|
|
77
|
+
include Typhoeus::Hydra::Before
|
|
78
|
+
include Typhoeus::Hydra::BlockConnection
|
|
79
|
+
include Typhoeus::Hydra::Cacheable
|
|
80
|
+
include Typhoeus::Hydra::Memoizable
|
|
81
|
+
include Typhoeus::Hydra::Queueable
|
|
82
|
+
include Typhoeus::Hydra::Runnable
|
|
83
|
+
include Typhoeus::Hydra::Stubbable
|
|
84
|
+
end
|
|
85
|
+
module Typhoeus::Hydra::Addable
|
|
86
|
+
def add(request); end
|
|
87
|
+
end
|
|
88
|
+
module Typhoeus::Hydra::Before
|
|
89
|
+
def add(request); end
|
|
90
|
+
end
|
|
91
|
+
module Typhoeus::Hydra::Cacheable
|
|
92
|
+
def add(request); end
|
|
93
|
+
end
|
|
94
|
+
module Typhoeus::Hydra::BlockConnection
|
|
95
|
+
def add(request); end
|
|
96
|
+
end
|
|
97
|
+
module Typhoeus::Hydra::Memoizable
|
|
98
|
+
def add(request); end
|
|
99
|
+
def memory; end
|
|
100
|
+
def run; end
|
|
101
|
+
end
|
|
102
|
+
module Typhoeus::Hydra::Queueable
|
|
103
|
+
def abort; end
|
|
104
|
+
def dequeue; end
|
|
105
|
+
def dequeue_many; end
|
|
106
|
+
def queue(request); end
|
|
107
|
+
def queue_front(request); end
|
|
108
|
+
def queued_requests; end
|
|
109
|
+
end
|
|
110
|
+
module Typhoeus::Hydra::Runnable
|
|
111
|
+
def run; end
|
|
112
|
+
end
|
|
113
|
+
module Typhoeus::Hydra::Stubbable
|
|
114
|
+
def add(request); end
|
|
115
|
+
end
|
|
116
|
+
module Typhoeus::Pool
|
|
117
|
+
def self.clear; end
|
|
118
|
+
def self.easies; end
|
|
119
|
+
def self.get; end
|
|
120
|
+
def self.release(easy); end
|
|
121
|
+
def self.with_easy(&block); end
|
|
122
|
+
end
|
|
123
|
+
class Typhoeus::Request
|
|
124
|
+
def base_url; end
|
|
125
|
+
def base_url=(arg0); end
|
|
126
|
+
def block_connection; end
|
|
127
|
+
def block_connection=(arg0); end
|
|
128
|
+
def cache_key; end
|
|
129
|
+
def encoded_body; end
|
|
130
|
+
def eql?(other); end
|
|
131
|
+
def fuzzy_hash_eql?(left, right); end
|
|
132
|
+
def hash; end
|
|
133
|
+
def hashable_string_for(obj); end
|
|
134
|
+
def hydra; end
|
|
135
|
+
def hydra=(arg0); end
|
|
136
|
+
def initialize(base_url, options = nil); end
|
|
137
|
+
def options; end
|
|
138
|
+
def options=(arg0); end
|
|
139
|
+
def original_options; end
|
|
140
|
+
def original_options=(arg0); end
|
|
141
|
+
def set_defaults; end
|
|
142
|
+
def url; end
|
|
143
|
+
extend Typhoeus::Request::Actions
|
|
144
|
+
include Typhoeus::Request::Before
|
|
145
|
+
include Typhoeus::Request::BlockConnection
|
|
146
|
+
include Typhoeus::Request::Cacheable
|
|
147
|
+
include Typhoeus::Request::Callbacks
|
|
148
|
+
include Typhoeus::Request::Callbacks::Types
|
|
149
|
+
include Typhoeus::Request::Marshal
|
|
150
|
+
include Typhoeus::Request::Memoizable
|
|
151
|
+
include Typhoeus::Request::Operations
|
|
152
|
+
include Typhoeus::Request::Responseable
|
|
153
|
+
include Typhoeus::Request::Streamable
|
|
154
|
+
include Typhoeus::Request::Stubbable
|
|
155
|
+
end
|
|
156
|
+
module Typhoeus::Request::Actions
|
|
157
|
+
def delete(base_url, options = nil); end
|
|
158
|
+
def get(base_url, options = nil); end
|
|
159
|
+
def head(base_url, options = nil); end
|
|
160
|
+
def options(base_url, options = nil); end
|
|
161
|
+
def patch(base_url, options = nil); end
|
|
162
|
+
def post(base_url, options = nil); end
|
|
163
|
+
def put(base_url, options = nil); end
|
|
164
|
+
end
|
|
165
|
+
module Typhoeus::Request::Before
|
|
166
|
+
def run; end
|
|
167
|
+
end
|
|
168
|
+
module Typhoeus::Request::BlockConnection
|
|
169
|
+
def blocked?; end
|
|
170
|
+
def run; end
|
|
171
|
+
end
|
|
172
|
+
module Typhoeus::Request::Cacheable
|
|
173
|
+
def cache; end
|
|
174
|
+
def cache_ttl; end
|
|
175
|
+
def cacheable?; end
|
|
176
|
+
def cached_response; end
|
|
177
|
+
def response=(response); end
|
|
178
|
+
def run; end
|
|
179
|
+
end
|
|
180
|
+
module Typhoeus::Request::Callbacks
|
|
181
|
+
def execute_callbacks; end
|
|
182
|
+
def execute_headers_callbacks(response); end
|
|
183
|
+
end
|
|
184
|
+
module Typhoeus::Request::Callbacks::Types
|
|
185
|
+
def on_complete(&block); end
|
|
186
|
+
def on_failure(&block); end
|
|
187
|
+
def on_headers(&block); end
|
|
188
|
+
def on_progress(&block); end
|
|
189
|
+
def on_success(&block); end
|
|
190
|
+
end
|
|
191
|
+
module Typhoeus::Request::Marshal
|
|
192
|
+
def marshal_dump; end
|
|
193
|
+
def marshal_load(attributes); end
|
|
194
|
+
end
|
|
195
|
+
module Typhoeus::Request::Memoizable
|
|
196
|
+
def memoizable?; end
|
|
197
|
+
def response=(response); end
|
|
198
|
+
end
|
|
199
|
+
module Typhoeus::Request::Operations
|
|
200
|
+
def finish(response, bypass_memoization = nil); end
|
|
201
|
+
def run; end
|
|
202
|
+
end
|
|
203
|
+
module Typhoeus::Request::Responseable
|
|
204
|
+
def response; end
|
|
205
|
+
def response=(value); end
|
|
206
|
+
end
|
|
207
|
+
module Typhoeus::Request::Streamable
|
|
208
|
+
def on_body(&block); end
|
|
209
|
+
def streaming?; end
|
|
210
|
+
end
|
|
211
|
+
module Typhoeus::Request::Stubbable
|
|
212
|
+
def run; end
|
|
213
|
+
end
|
|
214
|
+
class Typhoeus::Response
|
|
215
|
+
def handled_response; end
|
|
216
|
+
def handled_response=(arg0); end
|
|
217
|
+
def initialize(options = nil); end
|
|
218
|
+
def mock; end
|
|
219
|
+
def mock=(arg0); end
|
|
220
|
+
def mock?; end
|
|
221
|
+
def options; end
|
|
222
|
+
def options=(arg0); end
|
|
223
|
+
def request; end
|
|
224
|
+
def request=(arg0); end
|
|
225
|
+
include Typhoeus::Response::Cacheable
|
|
226
|
+
include Typhoeus::Response::Informations
|
|
227
|
+
include Typhoeus::Response::Status
|
|
228
|
+
end
|
|
229
|
+
class Typhoeus::Response::Header < Anonymous_Delegator_24
|
|
230
|
+
def [](key); end
|
|
231
|
+
def initialize(raw); end
|
|
232
|
+
def parse; end
|
|
233
|
+
def process_line(header); end
|
|
234
|
+
def process_pair(key, value); end
|
|
235
|
+
def raw; end
|
|
236
|
+
def set_default_proc_on(hash, default_proc); end
|
|
237
|
+
def set_value(key, value, hash); end
|
|
238
|
+
end
|
|
239
|
+
module Typhoeus::Response::Informations
|
|
240
|
+
def app_connect_time; end
|
|
241
|
+
def appconnect_time; end
|
|
242
|
+
def body; end
|
|
243
|
+
def code; end
|
|
244
|
+
def connect_time; end
|
|
245
|
+
def debug_info; end
|
|
246
|
+
def effective_url; end
|
|
247
|
+
def headers; end
|
|
248
|
+
def headers_hash; end
|
|
249
|
+
def httpauth_avail; end
|
|
250
|
+
def name_lookup_time; end
|
|
251
|
+
def namelookup_time; end
|
|
252
|
+
def pretransfer_time; end
|
|
253
|
+
def primary_ip; end
|
|
254
|
+
def redirect_count; end
|
|
255
|
+
def redirect_time; end
|
|
256
|
+
def redirections; end
|
|
257
|
+
def request_size; end
|
|
258
|
+
def response_body; end
|
|
259
|
+
def response_code; end
|
|
260
|
+
def response_headers; end
|
|
261
|
+
def return_code; end
|
|
262
|
+
def return_message; end
|
|
263
|
+
def start_transfer_time; end
|
|
264
|
+
def starttransfer_time; end
|
|
265
|
+
def time; end
|
|
266
|
+
def total_time; end
|
|
267
|
+
end
|
|
268
|
+
module Typhoeus::Response::Status
|
|
269
|
+
def failure?; end
|
|
270
|
+
def first_header_line; end
|
|
271
|
+
def has_bad_response_code?; end
|
|
272
|
+
def has_good_response_code?; end
|
|
273
|
+
def http_version; end
|
|
274
|
+
def modified?; end
|
|
275
|
+
def status_message; end
|
|
276
|
+
def success?; end
|
|
277
|
+
def timed_out?; end
|
|
278
|
+
end
|
|
279
|
+
module Typhoeus::Response::Cacheable
|
|
280
|
+
def cached=(arg0); end
|
|
281
|
+
def cached?; end
|
|
282
|
+
end
|
|
283
|
+
module Rack
|
|
284
|
+
end
|
|
285
|
+
module Rack::Typhoeus
|
|
286
|
+
end
|
|
287
|
+
module Rack::Typhoeus::Middleware
|
|
288
|
+
end
|
|
289
|
+
class Rack::Typhoeus::Middleware::ParamsDecoder
|
|
290
|
+
def call(env); end
|
|
291
|
+
def initialize(app); end
|
|
292
|
+
def update_params(req, k, v); end
|
|
293
|
+
include Rack::Typhoeus::Middleware::ParamsDecoder::Helper
|
|
294
|
+
end
|
|
295
|
+
module Rack::Typhoeus::Middleware::ParamsDecoder::Helper
|
|
296
|
+
def convert(hash); end
|
|
297
|
+
def decode!(hash); end
|
|
298
|
+
def decode(hash); end
|
|
299
|
+
def decode_typhoeus_arrays; end
|
|
300
|
+
def encoded?(hash); end
|
|
301
|
+
end
|