eml 2.1.7 → 3.0.0
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 +4 -4
- data/eml.gemspec +3 -3
- data/lib/eml/error/rest/internal_server.rb +1 -1
- data/lib/eml/error/tns.rb +1 -1
- data/lib/eml/lib/basic_auth/generate.rb +1 -1
- data/lib/eml/lib/basic_auth/verify.rb +1 -1
- data/lib/eml/lib/constant_time_compare.rb +1 -1
- data/lib/eml/parameters.rb +6 -3
- data/lib/eml/payload.rb +1 -1
- data/lib/eml/response.rb +1 -1
- data/lib/eml/uk/models/tns/card.rb +1 -1
- data/lib/eml/uk/models/transaction.rb +1 -1
- data/lib/eml/uk/parameters/agreement/show.rb +3 -2
- data/lib/eml/uk/parameters/card/activation.rb +4 -4
- data/lib/eml/uk/parameters/card/lock.rb +4 -4
- data/lib/eml/uk/parameters/card/register.rb +4 -4
- data/lib/eml/uk/parameters/card/reload.rb +4 -4
- data/lib/eml/uk/parameters/card/show.rb +16 -7
- data/lib/eml/uk/parameters/card/transaction.rb +14 -7
- data/lib/eml/uk/parameters/card/unload.rb +4 -4
- data/lib/eml/uk/parameters/card/unlock.rb +4 -4
- data/lib/eml/uk/parameters/card/void.rb +4 -4
- data/lib/eml/uk/parameters.rb +3 -0
- data/lib/eml/uk/payload/agreement/show.rb +19 -10
- data/lib/eml/uk/payload/card/activation.rb +25 -14
- data/lib/eml/uk/payload/card/lock.rb +14 -7
- data/lib/eml/uk/payload/card/register.rb +24 -5
- data/lib/eml/uk/payload/card/reload.rb +17 -8
- data/lib/eml/uk/payload/card/show.rb +1 -1
- data/lib/eml/uk/payload/card/transaction.rb +1 -1
- data/lib/eml/uk/payload/card/unload.rb +17 -8
- data/lib/eml/uk/payload/card/unlock.rb +5 -5
- data/lib/eml/uk/payload/card/void.rb +5 -5
- data/lib/eml/uk/payload/location.rb +6 -6
- data/lib/eml/uk/response.rb +1 -1
- data/lib/eml/uk/responses/agreement/show.rb +1 -1
- data/lib/eml/uk/responses/card/reload.rb +1 -1
- data/lib/eml/uk/responses/card/show.rb +1 -1
- data/lib/eml/version.rb +1 -1
- data/sorbet/rbi/gems/addressable.rbi +2 -2
- data/sorbet/rbi/gems/byebug.rbi +1039 -0
- data/sorbet/rbi/gems/coderay.rbi +91 -0
- data/sorbet/rbi/gems/ffi-compiler.rbi +26 -0
- data/sorbet/rbi/gems/ffi.rbi +559 -0
- data/sorbet/rbi/gems/http-parser.rbi +120 -0
- data/sorbet/rbi/gems/http.rbi +13 -7
- data/sorbet/rbi/gems/method_source.rbi +63 -0
- data/sorbet/rbi/gems/pry-byebug.rbi +149 -0
- data/sorbet/rbi/gems/pry.rbi +1964 -0
- data/sorbet/rbi/gems/public_suffix.rbi +1 -1
- data/sorbet/rbi/gems/rake.rbi +645 -0
- data/sorbet/rbi/gems/rspec-core.rbi +38 -1
- data/sorbet/rbi/gems/rubocop.rbi +4 -0
- data/sorbet/rbi/gems/simplecov-html.rbi +5 -1
- data/sorbet/rbi/gems/simplecov.rbi +143 -17
- data/sorbet/rbi/gems/webmock.rbi +0 -4
- data/sorbet/rbi/hidden-definitions/errors.txt +7053 -166
- data/sorbet/rbi/hidden-definitions/hidden.rbi +12951 -3455
- data/sorbet/rbi/sorbet-typed/lib/bundler/all/bundler.rbi +3 -1
- data/sorbet/rbi/sorbet-typed/lib/rainbow/all/rainbow.rbi +254 -0
- data/sorbet/rbi/sorbet-typed/lib/ruby/all/open3.rbi +8 -8
- data/sorbet/rbi/todo.rbi +18 -0
- metadata +30 -15
- data/sorbet/rbi/gems/http_parser.rb.rbi +0 -36
@@ -0,0 +1,120 @@
|
|
1
|
+
# This file is autogenerated. Do not edit it by hand. Regenerate it with:
|
2
|
+
# srb rbi gems
|
3
|
+
|
4
|
+
# typed: strong
|
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/http-parser/all/http-parser.rbi
|
9
|
+
#
|
10
|
+
# http-parser-1.2.1
|
11
|
+
module HttpParser
|
12
|
+
def err_desc(*arg0); end
|
13
|
+
def err_name(*arg0); end
|
14
|
+
def http_body_is_final(*arg0); end
|
15
|
+
def http_parser_execute(*arg0); end
|
16
|
+
def http_parser_init(*arg0); end
|
17
|
+
def http_should_keep_alive(*arg0); end
|
18
|
+
def self.err_desc(*arg0); end
|
19
|
+
def self.err_name(*arg0); end
|
20
|
+
def self.http_body_is_final(*arg0); end
|
21
|
+
def self.http_parser_execute(*arg0); end
|
22
|
+
def self.http_parser_init(*arg0); end
|
23
|
+
def self.http_should_keep_alive(*arg0); end
|
24
|
+
extend FFI::Library
|
25
|
+
end
|
26
|
+
class HttpParser::Error < StandardError
|
27
|
+
end
|
28
|
+
class HttpParser::Error::OK < HttpParser::Error
|
29
|
+
end
|
30
|
+
class HttpParser::Error::CALLBACK < HttpParser::Error
|
31
|
+
end
|
32
|
+
class HttpParser::Error::INVALID_EOF_STATE < HttpParser::Error
|
33
|
+
end
|
34
|
+
class HttpParser::Error::HEADER_OVERFLOW < HttpParser::Error
|
35
|
+
end
|
36
|
+
class HttpParser::Error::CLOSED_CONNECTION < HttpParser::Error
|
37
|
+
end
|
38
|
+
class HttpParser::Error::INVALID_VERSION < HttpParser::Error
|
39
|
+
end
|
40
|
+
class HttpParser::Error::INVALID_STATUS < HttpParser::Error
|
41
|
+
end
|
42
|
+
class HttpParser::Error::INVALID_METHOD < HttpParser::Error
|
43
|
+
end
|
44
|
+
class HttpParser::Error::INVALID_URL < HttpParser::Error
|
45
|
+
end
|
46
|
+
class HttpParser::Error::INVALID_HOST < HttpParser::Error
|
47
|
+
end
|
48
|
+
class HttpParser::Error::INVALID_PORT < HttpParser::Error
|
49
|
+
end
|
50
|
+
class HttpParser::Error::INVALID_PATH < HttpParser::Error
|
51
|
+
end
|
52
|
+
class HttpParser::Error::INVALID_QUERY_STRING < HttpParser::Error
|
53
|
+
end
|
54
|
+
class HttpParser::Error::INVALID_FRAGMENT < HttpParser::Error
|
55
|
+
end
|
56
|
+
class HttpParser::Error::LF_EXPECTED < HttpParser::Error
|
57
|
+
end
|
58
|
+
class HttpParser::Error::INVALID_HEADER_TOKEN < HttpParser::Error
|
59
|
+
end
|
60
|
+
class HttpParser::Error::INVALID_CONTENT_LENGTH < HttpParser::Error
|
61
|
+
end
|
62
|
+
class HttpParser::Error::INVALID_CHUNK_SIZE < HttpParser::Error
|
63
|
+
end
|
64
|
+
class HttpParser::Error::INVALID_CONSTANT < HttpParser::Error
|
65
|
+
end
|
66
|
+
class HttpParser::Error::INVALID_INTERNAL_STATE < HttpParser::Error
|
67
|
+
end
|
68
|
+
class HttpParser::Error::STRICT < HttpParser::Error
|
69
|
+
end
|
70
|
+
class HttpParser::Error::PAUSED < HttpParser::Error
|
71
|
+
end
|
72
|
+
class HttpParser::Error::UNKNOWN < HttpParser::Error
|
73
|
+
end
|
74
|
+
class HttpParser::Instance < FFI::Struct
|
75
|
+
def data; end
|
76
|
+
def error!; end
|
77
|
+
def error; end
|
78
|
+
def error?; end
|
79
|
+
def final_chunk?; end
|
80
|
+
def flags; end
|
81
|
+
def http_major; end
|
82
|
+
def http_method; end
|
83
|
+
def http_minor; end
|
84
|
+
def http_status; end
|
85
|
+
def http_version; end
|
86
|
+
def initialize(ptr = nil); end
|
87
|
+
def keep_alive?; end
|
88
|
+
def reset!(new_type = nil); end
|
89
|
+
def stop!; end
|
90
|
+
def type; end
|
91
|
+
def type=(new_type); end
|
92
|
+
def upgrade?; end
|
93
|
+
end
|
94
|
+
class HttpParser::FieldData < FFI::Struct
|
95
|
+
end
|
96
|
+
class HttpParser::HttpParserUrl < FFI::Struct
|
97
|
+
end
|
98
|
+
class HttpParser::Settings < FFI::Struct
|
99
|
+
end
|
100
|
+
class HttpParser::Parser
|
101
|
+
def initialize(callback_obj = nil); end
|
102
|
+
def on_body(&block); end
|
103
|
+
def on_chunk_complete(&block); end
|
104
|
+
def on_chunk_header(&block); end
|
105
|
+
def on_header_field(&block); end
|
106
|
+
def on_header_value(&block); end
|
107
|
+
def on_headers_complete(&block); end
|
108
|
+
def on_message_begin(&block); end
|
109
|
+
def on_message_complete(&block); end
|
110
|
+
def on_status(&block); end
|
111
|
+
def on_url(&block); end
|
112
|
+
def parse(inst, data); end
|
113
|
+
def self.new_instance(&block); end
|
114
|
+
end
|
115
|
+
class HttpParser::Parser::Callback < FFI::Function
|
116
|
+
def self.new(&block); end
|
117
|
+
end
|
118
|
+
class HttpParser::Parser::DataCallback < FFI::Function
|
119
|
+
def self.new(&block); end
|
120
|
+
end
|
data/sorbet/rbi/gems/http.rbi
CHANGED
@@ -7,7 +7,7 @@
|
|
7
7
|
#
|
8
8
|
# https://github.com/sorbet/sorbet-typed/new/master?filename=lib/http/all/http.rbi
|
9
9
|
#
|
10
|
-
# http-4.0
|
10
|
+
# http-4.2.0
|
11
11
|
module HTTP
|
12
12
|
def self.[](headers); end
|
13
13
|
extend HTTP::Chainable
|
@@ -278,8 +278,9 @@ class HTTP::Request
|
|
278
278
|
def include_proxy_headers; end
|
279
279
|
def initialize(opts); end
|
280
280
|
def inspect; end
|
281
|
-
def normalize_uri(uri); end
|
282
281
|
def port; end
|
282
|
+
def prepare_body(body); end
|
283
|
+
def prepare_headers(headers); end
|
283
284
|
def proxy; end
|
284
285
|
def proxy_authorization_header; end
|
285
286
|
def proxy_connect_header; end
|
@@ -290,6 +291,7 @@ class HTTP::Request
|
|
290
291
|
def socket_port; end
|
291
292
|
def stream(socket); end
|
292
293
|
def uri; end
|
294
|
+
def uri_normalizer; end
|
293
295
|
def using_authenticated_proxy?; end
|
294
296
|
def using_proxy?; end
|
295
297
|
def verb; end
|
@@ -363,6 +365,10 @@ class HTTP::Features::Instrumentation::NullInstrumenter
|
|
363
365
|
def instrument(name, payload = nil); end
|
364
366
|
def start(_name, _payload); end
|
365
367
|
end
|
368
|
+
class HTTP::Features::NormalizeUri < HTTP::Feature
|
369
|
+
def initialize(normalizer: nil); end
|
370
|
+
def normalizer; end
|
371
|
+
end
|
366
372
|
class HTTP::Feature
|
367
373
|
def initialize(opts = nil); end
|
368
374
|
def wrap_request(request); end
|
@@ -402,9 +408,11 @@ class HTTP::Response::Parser
|
|
402
408
|
def headers?; end
|
403
409
|
def http_version; end
|
404
410
|
def initialize; end
|
405
|
-
def on_body(chunk); end
|
406
|
-
def
|
407
|
-
def
|
411
|
+
def on_body(_response, chunk); end
|
412
|
+
def on_header_field(_response, field); end
|
413
|
+
def on_header_value(_response, value); end
|
414
|
+
def on_headers_complete(_reposse); end
|
415
|
+
def on_message_complete(_response); end
|
408
416
|
def read(size); end
|
409
417
|
def reset; end
|
410
418
|
def status_code; end
|
@@ -501,7 +509,6 @@ class HTTP::MimeType::Adapter
|
|
501
509
|
def self.allocate; end
|
502
510
|
def self.decode(*args, &block); end
|
503
511
|
def self.encode(*args, &block); end
|
504
|
-
def self.instance; end
|
505
512
|
def self.new(*arg0); end
|
506
513
|
extend Singleton::SingletonClassMethods
|
507
514
|
include Singleton
|
@@ -509,7 +516,6 @@ end
|
|
509
516
|
class HTTP::MimeType::JSON < HTTP::MimeType::Adapter
|
510
517
|
def decode(str); end
|
511
518
|
def encode(obj); end
|
512
|
-
def self.instance; end
|
513
519
|
end
|
514
520
|
class HTTP::Response::Status < Delegator
|
515
521
|
def __getobj__; end
|
@@ -0,0 +1,63 @@
|
|
1
|
+
# This file is autogenerated. Do not edit it by hand. Regenerate it with:
|
2
|
+
# srb rbi gems
|
3
|
+
|
4
|
+
# typed: strong
|
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/method_source/all/method_source.rbi
|
9
|
+
#
|
10
|
+
# method_source-0.9.2
|
11
|
+
module MethodSource
|
12
|
+
def self.comment_helper(source_location, name = nil); end
|
13
|
+
def self.extract_code(source_location); end
|
14
|
+
def self.lines_for(file_name, name = nil); end
|
15
|
+
def self.source_helper(source_location, name = nil); end
|
16
|
+
def self.valid_expression?(str); end
|
17
|
+
extend MethodSource::CodeHelpers
|
18
|
+
end
|
19
|
+
module MethodSource::ReeSourceLocation
|
20
|
+
def source_location; end
|
21
|
+
end
|
22
|
+
module MethodSource::SourceLocation
|
23
|
+
end
|
24
|
+
module MethodSource::SourceLocation::MethodExtensions
|
25
|
+
def source_location; end
|
26
|
+
def trace_func(event, file, line, id, binding, classname); end
|
27
|
+
end
|
28
|
+
module MethodSource::SourceLocation::ProcExtensions
|
29
|
+
def source_location; end
|
30
|
+
end
|
31
|
+
module MethodSource::SourceLocation::UnboundMethodExtensions
|
32
|
+
def source_location; end
|
33
|
+
end
|
34
|
+
module MethodSource::CodeHelpers
|
35
|
+
def comment_describing(file, line_number); end
|
36
|
+
def complete_expression?(str); end
|
37
|
+
def expression_at(file, line_number, options = nil); end
|
38
|
+
def extract_first_expression(lines, consume = nil, &block); end
|
39
|
+
def extract_last_comment(lines); end
|
40
|
+
end
|
41
|
+
module MethodSource::CodeHelpers::IncompleteExpression
|
42
|
+
def self.===(ex); end
|
43
|
+
def self.rbx?; end
|
44
|
+
end
|
45
|
+
class MethodSource::SourceNotFoundError < StandardError
|
46
|
+
end
|
47
|
+
module MethodSource::MethodExtensions
|
48
|
+
def comment; end
|
49
|
+
def self.included(klass); end
|
50
|
+
def source; end
|
51
|
+
end
|
52
|
+
class Method
|
53
|
+
include MethodSource::MethodExtensions
|
54
|
+
include MethodSource::SourceLocation::MethodExtensions
|
55
|
+
end
|
56
|
+
class UnboundMethod
|
57
|
+
include MethodSource::MethodExtensions
|
58
|
+
include MethodSource::SourceLocation::UnboundMethodExtensions
|
59
|
+
end
|
60
|
+
class Proc
|
61
|
+
include MethodSource::MethodExtensions
|
62
|
+
include MethodSource::SourceLocation::ProcExtensions
|
63
|
+
end
|
@@ -0,0 +1,149 @@
|
|
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/pry-byebug/all/pry-byebug.rbi
|
9
|
+
#
|
10
|
+
# pry-byebug-3.7.0
|
11
|
+
module PryByebug
|
12
|
+
def check_file_context(target, msg = nil); end
|
13
|
+
def current_remote_server; end
|
14
|
+
def current_remote_server=(arg0); end
|
15
|
+
def file_context?(target); end
|
16
|
+
def self.check_file_context(target, msg = nil); end
|
17
|
+
def self.file_context?(target); end
|
18
|
+
end
|
19
|
+
module Byebug
|
20
|
+
end
|
21
|
+
class Byebug::PryProcessor < Byebug::CommandProcessor
|
22
|
+
def at_breakpoint(breakpoint); end
|
23
|
+
def at_end; end
|
24
|
+
def at_line; end
|
25
|
+
def at_return(_return_value); end
|
26
|
+
def bold(*args, &block); end
|
27
|
+
def n_hits(breakpoint); end
|
28
|
+
def output(*args, &block); end
|
29
|
+
def perform(action, options = nil); end
|
30
|
+
def perform_backtrace(_options); end
|
31
|
+
def perform_down(options); end
|
32
|
+
def perform_finish(*arg0); end
|
33
|
+
def perform_frame(options); end
|
34
|
+
def perform_next(options); end
|
35
|
+
def perform_step(options); end
|
36
|
+
def perform_up(options); end
|
37
|
+
def pry; end
|
38
|
+
def pry=(arg0); end
|
39
|
+
def resume_pry; end
|
40
|
+
def run(&_block); end
|
41
|
+
def self.start; end
|
42
|
+
extend Forwardable
|
43
|
+
end
|
44
|
+
class Pry
|
45
|
+
def self.start_with_pry_byebug(target = nil, options = nil); end
|
46
|
+
def self.start_without_pry_byebug(target = nil, options = nil); end
|
47
|
+
end
|
48
|
+
module PryByebug::Helpers
|
49
|
+
end
|
50
|
+
module PryByebug::Helpers::Navigation
|
51
|
+
def breakout_navigation(action, options = nil); end
|
52
|
+
end
|
53
|
+
class PryByebug::BacktraceCommand < Pry::ClassCommand
|
54
|
+
def process; end
|
55
|
+
include PryByebug::Helpers::Navigation
|
56
|
+
end
|
57
|
+
module PryByebug::Helpers::Multiline
|
58
|
+
def check_multiline_context; end
|
59
|
+
end
|
60
|
+
class PryByebug::NextCommand < Pry::ClassCommand
|
61
|
+
def process; end
|
62
|
+
include PryByebug::Helpers::Multiline
|
63
|
+
include PryByebug::Helpers::Navigation
|
64
|
+
end
|
65
|
+
class PryByebug::StepCommand < Pry::ClassCommand
|
66
|
+
def process; end
|
67
|
+
include PryByebug::Helpers::Navigation
|
68
|
+
end
|
69
|
+
module PryByebug::Helpers::Breakpoints
|
70
|
+
def bold_puts(msg); end
|
71
|
+
def breakpoints; end
|
72
|
+
def current_file; end
|
73
|
+
def max_width; end
|
74
|
+
def print_breakpoints_header; end
|
75
|
+
def print_full_breakpoint(breakpoint); end
|
76
|
+
def print_short_breakpoint(breakpoint); end
|
77
|
+
end
|
78
|
+
class PryByebug::ContinueCommand < Pry::ClassCommand
|
79
|
+
def process; end
|
80
|
+
include PryByebug::Helpers::Breakpoints
|
81
|
+
include PryByebug::Helpers::Navigation
|
82
|
+
end
|
83
|
+
class PryByebug::FinishCommand < Pry::ClassCommand
|
84
|
+
def process; end
|
85
|
+
include PryByebug::Helpers::Navigation
|
86
|
+
end
|
87
|
+
class PryByebug::UpCommand < Pry::ClassCommand
|
88
|
+
def process; end
|
89
|
+
include PryByebug::Helpers::Navigation
|
90
|
+
end
|
91
|
+
class PryByebug::DownCommand < Pry::ClassCommand
|
92
|
+
def process; end
|
93
|
+
include PryByebug::Helpers::Navigation
|
94
|
+
end
|
95
|
+
class PryByebug::FrameCommand < Pry::ClassCommand
|
96
|
+
def process; end
|
97
|
+
include PryByebug::Helpers::Navigation
|
98
|
+
end
|
99
|
+
module Pry::Byebug
|
100
|
+
end
|
101
|
+
module Pry::Byebug::Breakpoints
|
102
|
+
def add_file(file, line, expression = nil); end
|
103
|
+
def add_method(method, expression = nil); end
|
104
|
+
def breakpoints; end
|
105
|
+
def change(id, expression = nil); end
|
106
|
+
def change_status(id, enabled = nil); end
|
107
|
+
def delete(id); end
|
108
|
+
def delete_all; end
|
109
|
+
def disable(id); end
|
110
|
+
def disable_all; end
|
111
|
+
def each(&block); end
|
112
|
+
def enable(id); end
|
113
|
+
def find_by_id(id); end
|
114
|
+
def last; end
|
115
|
+
def size; end
|
116
|
+
def to_a; end
|
117
|
+
def validate_expression(exp); end
|
118
|
+
extend Enumerable
|
119
|
+
extend Pry::Byebug::Breakpoints
|
120
|
+
end
|
121
|
+
class Pry::Byebug::Breakpoints::FileBreakpoint < SimpleDelegator
|
122
|
+
def source_code; end
|
123
|
+
def to_s; end
|
124
|
+
end
|
125
|
+
class Pry::Byebug::Breakpoints::MethodBreakpoint < SimpleDelegator
|
126
|
+
def initialize(byebug_bp, method); end
|
127
|
+
def source_code; end
|
128
|
+
def to_s; end
|
129
|
+
end
|
130
|
+
class PryByebug::BreakCommand < Pry::ClassCommand
|
131
|
+
def add_breakpoint(place, condition); end
|
132
|
+
def new_breakpoint; end
|
133
|
+
def option_to_method(option); end
|
134
|
+
def options(opt); end
|
135
|
+
def print_all; end
|
136
|
+
def process; end
|
137
|
+
def process_condition; end
|
138
|
+
def process_delete; end
|
139
|
+
def process_delete_all; end
|
140
|
+
def process_disable; end
|
141
|
+
def process_disable_all; end
|
142
|
+
def process_enable; end
|
143
|
+
def process_show; end
|
144
|
+
include PryByebug::Helpers::Breakpoints
|
145
|
+
include PryByebug::Helpers::Multiline
|
146
|
+
end
|
147
|
+
class PryByebug::ExitAllCommand < Pry::Command::ExitAll
|
148
|
+
def process; end
|
149
|
+
end
|