moneylovercli 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.
Files changed (55) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +14 -0
  3. data/.rspec +3 -0
  4. data/.ruby-version +1 -0
  5. data/.travis.yml +6 -0
  6. data/CODE_OF_CONDUCT.md +74 -0
  7. data/Gemfile +9 -0
  8. data/Gemfile.lock +67 -0
  9. data/LICENSE.txt +20 -0
  10. data/README.md +45 -0
  11. data/Rakefile +6 -0
  12. data/bin/console +14 -0
  13. data/bin/setup +8 -0
  14. data/exe/moneylovercli +18 -0
  15. data/lib/moneylovercli.rb +7 -0
  16. data/lib/moneylovercli/api/access_token.rb +19 -0
  17. data/lib/moneylovercli/api/base.rb +15 -0
  18. data/lib/moneylovercli/api/category.rb +15 -0
  19. data/lib/moneylovercli/api/money_lover.rb +14 -0
  20. data/lib/moneylovercli/api/transaction.rb +25 -0
  21. data/lib/moneylovercli/api/user.rb +13 -0
  22. data/lib/moneylovercli/api/wallet.rb +13 -0
  23. data/lib/moneylovercli/cli.rb +62 -0
  24. data/lib/moneylovercli/command.rb +141 -0
  25. data/lib/moneylovercli/commands/.gitkeep +1 -0
  26. data/lib/moneylovercli/commands/add_transaction.rb +74 -0
  27. data/lib/moneylovercli/commands/login.rb +61 -0
  28. data/lib/moneylovercli/commands/wallets.rb +31 -0
  29. data/lib/moneylovercli/version.rb +4 -0
  30. data/moneylovercli.gemspec +33 -0
  31. data/sorbet/config +2 -0
  32. data/sorbet/rbi/gems/byebug.rbi +1041 -0
  33. data/sorbet/rbi/gems/coderay.rbi +92 -0
  34. data/sorbet/rbi/gems/equatable.rbi +26 -0
  35. data/sorbet/rbi/gems/httparty.rbi +421 -0
  36. data/sorbet/rbi/gems/method_source.rbi +64 -0
  37. data/sorbet/rbi/gems/mime-types-data.rbi +17 -0
  38. data/sorbet/rbi/gems/mime-types.rbi +218 -0
  39. data/sorbet/rbi/gems/multi_xml.rbi +35 -0
  40. data/sorbet/rbi/gems/pastel.rbi +128 -0
  41. data/sorbet/rbi/gems/pry-byebug.rbi +155 -0
  42. data/sorbet/rbi/gems/pry.rbi +1949 -0
  43. data/sorbet/rbi/gems/rake.rbi +645 -0
  44. data/sorbet/rbi/gems/rspec-core.rbi +1923 -0
  45. data/sorbet/rbi/gems/rspec-expectations.rbi +1123 -0
  46. data/sorbet/rbi/gems/rspec-mocks.rbi +1090 -0
  47. data/sorbet/rbi/gems/rspec-support.rbi +280 -0
  48. data/sorbet/rbi/gems/rspec.rbi +15 -0
  49. data/sorbet/rbi/gems/tty-color.rbi +44 -0
  50. data/sorbet/rbi/gems/zeitwerk.rbi +136 -0
  51. data/sorbet/rbi/hidden-definitions/errors.txt +4361 -0
  52. data/sorbet/rbi/hidden-definitions/hidden.rbi +8227 -0
  53. data/sorbet/rbi/sorbet-typed/lib/httparty/all/httparty.rbi +427 -0
  54. data/sorbet/rbi/todo.rbi +20 -0
  55. metadata +167 -0
@@ -0,0 +1,92 @@
1
+ # This file is autogenerated. Do not edit it by hand. Regenerate it with:
2
+ # srb rbi gems
3
+
4
+ # typed: strict
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/coderay/all/coderay.rbi
9
+ #
10
+ # coderay-1.1.3
11
+
12
+ module CodeRay
13
+ def self.coderay_path(*path); end
14
+ def self.encode(code, lang, format, options = nil); end
15
+ def self.encode_file(filename, format, options = nil); end
16
+ def self.encode_tokens(tokens, format, options = nil); end
17
+ def self.encoder(format, options = nil); end
18
+ def self.get_scanner_options(options); end
19
+ def self.highlight(code, lang, options = nil, format = nil); end
20
+ def self.highlight_file(filename, options = nil, format = nil); end
21
+ def self.scan(code, lang, options = nil, &block); end
22
+ def self.scan_file(filename, lang = nil, options = nil, &block); end
23
+ def self.scanner(lang, options = nil, &block); end
24
+ end
25
+ module CodeRay::PluginHost
26
+ def [](id, *args, &blk); end
27
+ def all_plugins; end
28
+ def const_missing(const); end
29
+ def default(id = nil); end
30
+ def list; end
31
+ def load(id, *args, &blk); end
32
+ def load_all; end
33
+ def load_plugin_map; end
34
+ def make_plugin_hash; end
35
+ def map(hash); end
36
+ def path_to(plugin_id); end
37
+ def plugin_hash; end
38
+ def plugin_path(*args); end
39
+ def register(plugin, id); end
40
+ def self.extended(mod); end
41
+ def validate_id(id); end
42
+ end
43
+ class CodeRay::PluginHost::PluginNotFound < LoadError
44
+ end
45
+ class CodeRay::PluginHost::HostNotFound < LoadError
46
+ end
47
+ module CodeRay::Encoders
48
+ extend CodeRay::PluginHost
49
+ end
50
+ module CodeRay::Plugin
51
+ def aliases; end
52
+ def plugin_host(host = nil); end
53
+ def plugin_id; end
54
+ def register_for(id); end
55
+ def title(title = nil); end
56
+ end
57
+ class CodeRay::Encoders::Encoder
58
+ def <<(token); end
59
+ def begin_group(kind); end
60
+ def begin_line(kind); end
61
+ def compile(tokens, options = nil); end
62
+ def encode(code, lang, options = nil); end
63
+ def encode_tokens(tokens, options = nil); end
64
+ def end_group(kind); end
65
+ def end_line(kind); end
66
+ def file_extension; end
67
+ def finish(options); end
68
+ def get_output(options); end
69
+ def highlight(code, lang, options = nil); end
70
+ def initialize(options = nil); end
71
+ def options; end
72
+ def options=(arg0); end
73
+ def output(data); end
74
+ def scanner; end
75
+ def scanner=(arg0); end
76
+ def self.const_missing(sym); end
77
+ def self.file_extension; end
78
+ def setup(options); end
79
+ def text_token(text, kind); end
80
+ def token(content, kind); end
81
+ def tokens(tokens, options = nil); end
82
+ extend CodeRay::Plugin
83
+ end
84
+ class CodeRay::Encoders::Terminal < CodeRay::Encoders::Encoder
85
+ def begin_group(kind); end
86
+ def begin_line(kind); end
87
+ def end_group(kind); end
88
+ def end_line(kind); end
89
+ def open_token(kind); end
90
+ def setup(options); end
91
+ def text_token(text, kind); end
92
+ end
@@ -0,0 +1,26 @@
1
+ # This file is autogenerated. Do not edit it by hand. Regenerate it with:
2
+ # srb rbi gems
3
+
4
+ # typed: strict
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/equatable/all/equatable.rbi
9
+ #
10
+ # equatable-0.6.1
11
+
12
+ module Equatable
13
+ def attr_reader(*args); end
14
+ def comparison_attrs; end
15
+ def define_compare; end
16
+ def define_comparison_attrs; end
17
+ def define_hash; end
18
+ def define_inspect; end
19
+ def define_methods; end
20
+ def inherited(subclass); end
21
+ def self.included(base); end
22
+ end
23
+ module Equatable::Methods
24
+ def ==(other); end
25
+ def eql?(other); end
26
+ end
@@ -0,0 +1,421 @@
1
+ # This file is autogenerated. Do not edit it by hand. Regenerate it with:
2
+ # srb rbi gems
3
+
4
+ # typed: true
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/httparty/all/httparty.rbi
9
+ #
10
+ # httparty-0.18.1
11
+
12
+ module HTTParty
13
+ def self.copy(*args, &block); end
14
+ def self.delete(*args, &block); end
15
+ def self.get(*args, &block); end
16
+ def self.head(*args, &block); end
17
+ def self.included(base); end
18
+ def self.move(*args, &block); end
19
+ def self.normalize_base_uri(url); end
20
+ def self.options(*args, &block); end
21
+ def self.patch(*args, &block); end
22
+ def self.post(*args, &block); end
23
+ def self.put(*args, &block); end
24
+ end
25
+ module HTTParty::ModuleInheritableAttributes
26
+ def self.hash_deep_dup(hash); end
27
+ def self.included(base); end
28
+ end
29
+ module HTTParty::ModuleInheritableAttributes::ClassMethods
30
+ def inherited(subclass); end
31
+ def mattr_inheritable(*args); end
32
+ end
33
+ class HTTParty::CookieHash < Hash
34
+ def add_cookies(data); end
35
+ def to_cookie_string; end
36
+ end
37
+ module Net
38
+ end
39
+ module Net::HTTPHeader
40
+ def digest_auth(username, password, response); end
41
+ end
42
+ class Net::HTTPHeader::DigestAuthenticator
43
+ def a1; end
44
+ def a2; end
45
+ def algorithm_present?; end
46
+ def authorization_header; end
47
+ def cookie_header; end
48
+ def initialize(username, password, method, path, response_header); end
49
+ def md5(str); end
50
+ def opaque_present?; end
51
+ def parse(response_header); end
52
+ def parse_cookies(response_header); end
53
+ def qop_present?; end
54
+ def random; end
55
+ def request_digest; end
56
+ def use_md5_sess?; end
57
+ end
58
+ class HTTParty::ConnectionAdapter
59
+ def add_max_retries?(max_retries); end
60
+ def add_timeout?(timeout); end
61
+ def attach_ssl_certificates(http, options); end
62
+ def clean_host(host); end
63
+ def connection; end
64
+ def from_ruby_version(ruby_version, option: nil, warn: nil); end
65
+ def initialize(uri, options = nil); end
66
+ def options; end
67
+ def self.call(uri, options); end
68
+ def self.default_cert_store; end
69
+ def ssl_implied?(uri); end
70
+ def strip_ipv6_brackets(host); end
71
+ def uri; end
72
+ def verify_ssl_certificate?; end
73
+ end
74
+ module HTTParty::Logger
75
+ def self.add_formatter(name, formatter); end
76
+ def self.build(logger, level, formatter); end
77
+ def self.formatters; end
78
+ end
79
+ class HTTParty::Logger::ApacheFormatter
80
+ def content_length; end
81
+ def current_time; end
82
+ def format(request, response); end
83
+ def http_method; end
84
+ def initialize(logger, level); end
85
+ def level; end
86
+ def level=(arg0); end
87
+ def logger; end
88
+ def logger=(arg0); end
89
+ def message; end
90
+ def path; end
91
+ def request; end
92
+ def response; end
93
+ end
94
+ class HTTParty::Logger::CurlFormatter
95
+ def current_time; end
96
+ def format(request, response); end
97
+ def initialize(logger, level); end
98
+ def level; end
99
+ def level=(arg0); end
100
+ def log(direction, line = nil); end
101
+ def log_hash(hash); end
102
+ def log_headers; end
103
+ def log_query; end
104
+ def log_request; end
105
+ def log_response; end
106
+ def log_response_headers; end
107
+ def log_url; end
108
+ def logger; end
109
+ def logger=(arg0); end
110
+ def messages; end
111
+ def messages=(arg0); end
112
+ def request; end
113
+ def response; end
114
+ end
115
+ class HTTParty::Logger::LogstashFormatter
116
+ def content_length; end
117
+ def current_time; end
118
+ def format(request, response); end
119
+ def http_method; end
120
+ def initialize(logger, level); end
121
+ def level; end
122
+ def level=(arg0); end
123
+ def logger; end
124
+ def logger=(arg0); end
125
+ def logstash_message; end
126
+ def message; end
127
+ def path; end
128
+ def request; end
129
+ def response; end
130
+ end
131
+ class HTTParty::Request
132
+ def assume_utf16_is_big_endian; end
133
+ def base_uri; end
134
+ def capture_cookies(response); end
135
+ def check_duplicate_location_header; end
136
+ def connection_adapter; end
137
+ def credentials; end
138
+ def digest_auth?; end
139
+ def encode_text(text, content_type); end
140
+ def format; end
141
+ def format_from_mimetype(mimetype); end
142
+ def handle_host_redirection; end
143
+ def handle_response(body, &block); end
144
+ def handle_unauthorized(&block); end
145
+ def http; end
146
+ def http_method; end
147
+ def http_method=(arg0); end
148
+ def initialize(http_method, path, o = nil); end
149
+ def last_response; end
150
+ def last_response=(arg0); end
151
+ def last_uri; end
152
+ def last_uri=(arg0); end
153
+ def normalize_query(query); end
154
+ def options; end
155
+ def options=(arg0); end
156
+ def parse_response(body); end
157
+ def parser; end
158
+ def password; end
159
+ def path; end
160
+ def path=(uri); end
161
+ def perform(&block); end
162
+ def post?; end
163
+ def query_string(uri); end
164
+ def query_string_normalizer; end
165
+ def raw_body; end
166
+ def redirect; end
167
+ def redirect=(arg0); end
168
+ def request_uri(uri); end
169
+ def response_has_digest_auth_challenge?; end
170
+ def response_redirects?; end
171
+ def response_unauthorized?; end
172
+ def send_authorization_header?; end
173
+ def set_basic_auth_from_uri; end
174
+ def setup_digest_auth; end
175
+ def setup_raw_request; end
176
+ def uri; end
177
+ def username; end
178
+ def validate; end
179
+ end
180
+ class HTTParty::Request::MultipartBoundary
181
+ def self.generate; end
182
+ end
183
+ class HTTParty::Request::Body
184
+ def boundary; end
185
+ def call; end
186
+ def content_type(object); end
187
+ def file?(object); end
188
+ def file_name(object); end
189
+ def force_multipart; end
190
+ def generate_multipart; end
191
+ def has_file?(value); end
192
+ def initialize(params, query_string_normalizer: nil, force_multipart: nil); end
193
+ def multipart?; end
194
+ def normalize_query(query); end
195
+ def params; end
196
+ def query_string_normalizer; end
197
+ end
198
+ class HTTParty::ResponseFragment < SimpleDelegator
199
+ def code; end
200
+ def connection; end
201
+ def http_response; end
202
+ def initialize(fragment, http_response, connection); end
203
+ end
204
+ class HTTParty::TextEncoder
205
+ def assume_utf16_is_big_endian; end
206
+ def call; end
207
+ def can_encode?; end
208
+ def charset; end
209
+ def content_type; end
210
+ def encode_utf_16; end
211
+ def encode_with_ruby_encoding; end
212
+ def encoded_text; end
213
+ def initialize(text, assume_utf16_is_big_endian: nil, content_type: nil); end
214
+ def text; end
215
+ end
216
+ class HTTParty::HeadersProcessor
217
+ def call; end
218
+ def headers; end
219
+ def initialize(headers, options); end
220
+ def options; end
221
+ def process_dynamic_headers; end
222
+ end
223
+ module HTTParty::HashConversions
224
+ def self.normalize_keys(key, value); end
225
+ def self.normalize_param(key, value); end
226
+ def self.to_params(hash); end
227
+ end
228
+ module HTTParty::Utils
229
+ def self.stringify_keys(hash); end
230
+ end
231
+ class HTTParty::Error < StandardError
232
+ end
233
+ class HTTParty::UnsupportedFormat < HTTParty::Error
234
+ end
235
+ class HTTParty::UnsupportedURIScheme < HTTParty::Error
236
+ end
237
+ class HTTParty::ResponseError < HTTParty::Error
238
+ def initialize(response); end
239
+ def response; end
240
+ end
241
+ class HTTParty::RedirectionTooDeep < HTTParty::ResponseError
242
+ end
243
+ class HTTParty::DuplicateLocationHeader < HTTParty::ResponseError
244
+ end
245
+ class HTTParty::Parser
246
+ def body; end
247
+ def csv; end
248
+ def format; end
249
+ def html; end
250
+ def initialize(body, format); end
251
+ def json; end
252
+ def parse; end
253
+ def parse_supported_format; end
254
+ def plain; end
255
+ def self.call(body, format); end
256
+ def self.format_from_mimetype(mimetype); end
257
+ def self.formats; end
258
+ def self.supported_formats; end
259
+ def self.supports_format?(format); end
260
+ def supports_format?; end
261
+ def xml; end
262
+ end
263
+ class HTTParty::Response
264
+ def _dump(_level); end
265
+ def accepted?; end
266
+ def already_reported?; end
267
+ def bad_gateway?; end
268
+ def bad_request?; end
269
+ def body; end
270
+ def client_error?; end
271
+ def code; end
272
+ def conflict?; end
273
+ def continue?; end
274
+ def created?; end
275
+ def display(port = nil); end
276
+ def early_hints?; end
277
+ def expectation_failed?; end
278
+ def failed_dependency?; end
279
+ def forbidden?; end
280
+ def found?; end
281
+ def gateway_time_out?; end
282
+ def gateway_timeout?; end
283
+ def gone?; end
284
+ def headers; end
285
+ def http_version; end
286
+ def im_used?; end
287
+ def information?; end
288
+ def initialize(request, response, parsed_block, options = nil); end
289
+ def inspect; end
290
+ def insufficient_storage?; end
291
+ def internal_server_error?; end
292
+ def length_required?; end
293
+ def locked?; end
294
+ def loop_detected?; end
295
+ def method_missing(name, *args, &block); end
296
+ def method_not_allowed?; end
297
+ def misdirected_request?; end
298
+ def moved_permanently?; end
299
+ def multi_status?; end
300
+ def multiple_choice?; end
301
+ def multiple_choices?; end
302
+ def network_authentication_required?; end
303
+ def nil?; end
304
+ def no_content?; end
305
+ def non_authoritative_information?; end
306
+ def not_acceptable?; end
307
+ def not_extended?; end
308
+ def not_found?; end
309
+ def not_implemented?; end
310
+ def not_modified?; end
311
+ def ok?; end
312
+ def parsed_response; end
313
+ def partial_content?; end
314
+ def payload_too_large?; end
315
+ def payment_required?; end
316
+ def permanent_redirect?; end
317
+ def precondition_failed?; end
318
+ def precondition_required?; end
319
+ def pretty_print(pp); end
320
+ def processing?; end
321
+ def proxy_authentication_required?; end
322
+ def range_not_satisfiable?; end
323
+ def redirection?; end
324
+ def request; end
325
+ def request_entity_too_large?; end
326
+ def request_header_fields_too_large?; end
327
+ def request_time_out?; end
328
+ def request_timeout?; end
329
+ def request_uri_too_long?; end
330
+ def requested_range_not_satisfiable?; end
331
+ def reset_content?; end
332
+ def respond_to_missing?(name, *args); end
333
+ def response; end
334
+ def see_other?; end
335
+ def self._load(data); end
336
+ def self.underscore(string); end
337
+ def server_error?; end
338
+ def service_unavailable?; end
339
+ def success?; end
340
+ def switch_protocol?; end
341
+ def tap; end
342
+ def temporary_redirect?; end
343
+ def throw_exception; end
344
+ def to_s; end
345
+ def too_many_requests?; end
346
+ def unauthorized?; end
347
+ def unavailable_for_legal_reasons?; end
348
+ def unprocessable_entity?; end
349
+ def unsupported_media_type?; end
350
+ def upgrade_required?; end
351
+ def uri_too_long?; end
352
+ def use_proxy?; end
353
+ def variant_also_negotiates?; end
354
+ def version_not_supported?; end
355
+ def warn_about_nil_deprecation; end
356
+ end
357
+ class HTTParty::Response::Headers < SimpleDelegator
358
+ def ==(other); end
359
+ def initialize(header_values = nil); end
360
+ include Net::HTTPHeader
361
+ end
362
+ module HTTParty::ClassMethods
363
+ def base_uri(uri = nil); end
364
+ def basic_auth(u, p); end
365
+ def ciphers(cipher_names); end
366
+ def connection_adapter(custom_adapter = nil, options = nil); end
367
+ def cookies(h = nil); end
368
+ def copy(path, options = nil, &block); end
369
+ def debug_output(stream = nil); end
370
+ def default_options; end
371
+ def default_params(h = nil); end
372
+ def default_timeout(value); end
373
+ def delete(path, options = nil, &block); end
374
+ def digest_auth(u, p); end
375
+ def disable_rails_query_string_format; end
376
+ def ensure_method_maintained_across_redirects(options); end
377
+ def follow_redirects(value = nil); end
378
+ def format(f = nil); end
379
+ def get(path, options = nil, &block); end
380
+ def head(path, options = nil, &block); end
381
+ def headers(h = nil); end
382
+ def http_proxy(addr = nil, port = nil, user = nil, pass = nil); end
383
+ def lock(path, options = nil, &block); end
384
+ def logger(logger, level = nil, format = nil); end
385
+ def maintain_method_across_redirects(value = nil); end
386
+ def mkcol(path, options = nil, &block); end
387
+ def move(path, options = nil, &block); end
388
+ def no_follow(value = nil); end
389
+ def open_timeout(value); end
390
+ def options(path, options = nil, &block); end
391
+ def parser(custom_parser = nil); end
392
+ def patch(path, options = nil, &block); end
393
+ def pem(pem_contents, password = nil); end
394
+ def perform_request(http_method, path, options, &block); end
395
+ def pkcs12(p12_contents, password); end
396
+ def post(path, options = nil, &block); end
397
+ def process_cookies(options); end
398
+ def put(path, options = nil, &block); end
399
+ def query_string_normalizer(normalizer); end
400
+ def raise_on(codes = nil); end
401
+ def read_timeout(value); end
402
+ def resend_on_redirect(value = nil); end
403
+ def ssl_ca_file(path); end
404
+ def ssl_ca_path(path); end
405
+ def ssl_version(version); end
406
+ def unlock(path, options = nil, &block); end
407
+ def uri_adapter(uri_adapter); end
408
+ def validate_format; end
409
+ def validate_timeout_argument(timeout_type, value); end
410
+ def write_timeout(value); end
411
+ end
412
+ class HTTParty::Basement
413
+ def self.default_cookies; end
414
+ def self.default_cookies=(arg0); end
415
+ def self.default_options; end
416
+ def self.default_options=(arg0); end
417
+ extend HTTParty::ClassMethods
418
+ extend HTTParty::ModuleInheritableAttributes::ClassMethods
419
+ include HTTParty
420
+ include HTTParty::ModuleInheritableAttributes
421
+ end