data_plane_api 0.1.1 → 0.2.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/.rubocop.yml +2 -2
- data/.ruby-version +1 -1
- data/CHANGELOG.md +6 -0
- data/Gemfile +6 -3
- data/Gemfile.lock +95 -38
- data/README.md +8 -1
- data/data_plane_api.gemspec +3 -1
- data/lib/data_plane_api/configuration.rb +52 -28
- data/lib/data_plane_api/server.rb +31 -36
- data/lib/data_plane_api/version.rb +1 -2
- data/lib/data_plane_api.rb +3 -3
- data/rbi/data_plane_api.rbi +135 -0
- data/sorbet/config +6 -0
- data/sorbet/rbi/annotations/.gitattributes +1 -0
- data/sorbet/rbi/annotations/faraday.rbi +17 -0
- data/sorbet/rbi/annotations/minitest.rbi +119 -0
- data/sorbet/rbi/annotations/rainbow.rbi +269 -0
- data/sorbet/rbi/annotations/webmock.rbi +9 -0
- data/sorbet/rbi/gems/.gitattributes +1 -0
- data/sorbet/rbi/gems/addressable@2.8.7.rbi +1994 -0
- data/sorbet/rbi/gems/ast@2.4.3.rbi +585 -0
- data/sorbet/rbi/gems/base64@0.2.0.rbi +509 -0
- data/sorbet/rbi/gems/bigdecimal@3.1.9.rbi +8 -0
- data/sorbet/rbi/gems/booleans@0.1.3.rbi +28 -0
- data/sorbet/rbi/gems/byebug@12.0.0.rbi +37 -0
- data/sorbet/rbi/gems/crack@1.0.0.rbi +145 -0
- data/sorbet/rbi/gems/faraday-net_http@3.0.2.rbi +147 -0
- data/sorbet/rbi/gems/faraday@2.7.2.rbi +2519 -0
- data/sorbet/rbi/gems/hashdiff@1.1.2.rbi +353 -0
- data/sorbet/rbi/gems/json@2.10.2.rbi +2112 -0
- data/sorbet/rbi/gems/lint_roller@1.1.0.rbi +86 -0
- data/sorbet/rbi/gems/minitest@5.25.5.rbi +1547 -0
- data/sorbet/rbi/gems/parallel@1.26.3.rbi +291 -0
- data/sorbet/rbi/gems/public_suffix@6.0.1.rbi +936 -0
- data/sorbet/rbi/gems/racc@1.8.1.rbi +160 -0
- data/sorbet/rbi/gems/rainbow@3.1.1.rbi +403 -0
- data/sorbet/rbi/gems/rake@13.0.6.rbi +3030 -0
- data/sorbet/rbi/gems/rexml@3.4.1.rbi +5346 -0
- data/sorbet/rbi/gems/rubocop-espago@1.1.8.rbi +9 -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/shoulda-context@2.0.0.rbi +563 -0
- data/sorbet/rbi/gems/unicode-display_width@3.1.4.rbi +132 -0
- data/sorbet/rbi/gems/unicode-emoji@4.0.4.rbi +251 -0
- data/sorbet/rbi/gems/vcr@6.3.1.rbi +3040 -0
- data/sorbet/rbi/gems/webmock@3.25.1.rbi +1792 -0
- data/sorbet/rbi/shims/gems/faraday.rbi +21 -0
- data/sorbet/rbi/shims/gems/shoulda-context@2.0.0.rbi +15 -0
- data/sorbet/tapioca/config.yml +28 -0
- data/sorbet/tapioca/extensions/load_gem.rb +1 -0
- data/sorbet/tapioca/require.rb +6 -0
- metadata +72 -7
@@ -0,0 +1,145 @@
|
|
1
|
+
# typed: true
|
2
|
+
|
3
|
+
# DO NOT EDIT MANUALLY
|
4
|
+
# This is an autogenerated file for types exported from the `crack` gem.
|
5
|
+
# Please instead update this file by running `bin/tapioca gem crack`.
|
6
|
+
|
7
|
+
|
8
|
+
# source://crack//lib/crack/xml.rb#196
|
9
|
+
module Crack; end
|
10
|
+
|
11
|
+
# source://crack//lib/crack/xml.rb#197
|
12
|
+
class Crack::REXMLParser
|
13
|
+
class << self
|
14
|
+
# source://crack//lib/crack/xml.rb#198
|
15
|
+
def parse(xml); end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
# source://crack//lib/crack/xml.rb#225
|
20
|
+
class Crack::XML
|
21
|
+
class << self
|
22
|
+
# source://crack//lib/crack/xml.rb#234
|
23
|
+
def parse(xml); end
|
24
|
+
|
25
|
+
# source://crack//lib/crack/xml.rb#226
|
26
|
+
def parser; end
|
27
|
+
|
28
|
+
# source://crack//lib/crack/xml.rb#230
|
29
|
+
def parser=(parser); end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
33
|
+
# This is a slighly modified version of the XMLUtilityNode from
|
34
|
+
# http://merb.devjavu.com/projects/merb/ticket/95 (has.sox@gmail.com)
|
35
|
+
# It's mainly just adding vowels, as I ht cd wth n vwls :)
|
36
|
+
# This represents the hard part of the work, all I did was change the
|
37
|
+
# underlying parser.
|
38
|
+
#
|
39
|
+
# source://crack//lib/crack/xml.rb#23
|
40
|
+
class REXMLUtilityNode
|
41
|
+
# @return [REXMLUtilityNode] a new instance of REXMLUtilityNode
|
42
|
+
#
|
43
|
+
# source://crack//lib/crack/xml.rb#56
|
44
|
+
def initialize(name, normalized_attributes = T.unsafe(nil)); end
|
45
|
+
|
46
|
+
# source://crack//lib/crack/xml.rb#73
|
47
|
+
def add_node(node); end
|
48
|
+
|
49
|
+
# source://crack//lib/crack/xml.rb#24
|
50
|
+
def attributes; end
|
51
|
+
|
52
|
+
# source://crack//lib/crack/xml.rb#24
|
53
|
+
def attributes=(_arg0); end
|
54
|
+
|
55
|
+
# source://crack//lib/crack/xml.rb#24
|
56
|
+
def children; end
|
57
|
+
|
58
|
+
# source://crack//lib/crack/xml.rb#24
|
59
|
+
def children=(_arg0); end
|
60
|
+
|
61
|
+
# Get the inner_html of the REXML node.
|
62
|
+
#
|
63
|
+
# source://crack//lib/crack/xml.rb#172
|
64
|
+
def inner_html; end
|
65
|
+
|
66
|
+
# source://crack//lib/crack/xml.rb#24
|
67
|
+
def name; end
|
68
|
+
|
69
|
+
# source://crack//lib/crack/xml.rb#24
|
70
|
+
def name=(_arg0); end
|
71
|
+
|
72
|
+
# source://crack//lib/crack/xml.rb#78
|
73
|
+
def to_hash; end
|
74
|
+
|
75
|
+
# Converts the node into a readable HTML node.
|
76
|
+
#
|
77
|
+
# @return [String] The HTML node in text form.
|
78
|
+
#
|
79
|
+
# source://crack//lib/crack/xml.rb#179
|
80
|
+
def to_html; end
|
81
|
+
|
82
|
+
# source://crack//lib/crack/xml.rb#185
|
83
|
+
def to_s; end
|
84
|
+
|
85
|
+
# source://crack//lib/crack/xml.rb#24
|
86
|
+
def type; end
|
87
|
+
|
88
|
+
# source://crack//lib/crack/xml.rb#24
|
89
|
+
def type=(_arg0); end
|
90
|
+
|
91
|
+
# Typecasts a value based upon its type. For instance, if
|
92
|
+
# +node+ has #type == "integer",
|
93
|
+
# {{[node.typecast_value("12") #=> 12]}}
|
94
|
+
#
|
95
|
+
# @note If +self+ does not have a "type" key, or if it's not one of the
|
96
|
+
# options specified above, the raw +value+ will be returned.
|
97
|
+
# @param value [String] The value that is being typecast.
|
98
|
+
# @return [Integer, TrueClass, FalseClass, Time, Date, Object] The result of typecasting +value+.
|
99
|
+
#
|
100
|
+
# source://crack//lib/crack/xml.rb#157
|
101
|
+
def typecast_value(value); end
|
102
|
+
|
103
|
+
# Take keys of the form foo-bar and convert them to foo_bar
|
104
|
+
#
|
105
|
+
# source://crack//lib/crack/xml.rb#164
|
106
|
+
def undasherize_keys(params); end
|
107
|
+
|
108
|
+
private
|
109
|
+
|
110
|
+
# source://crack//lib/crack/xml.rb#191
|
111
|
+
def unnormalize_xml_entities(value); end
|
112
|
+
|
113
|
+
class << self
|
114
|
+
# source://crack//lib/crack/xml.rb#34
|
115
|
+
def available_typecasts; end
|
116
|
+
|
117
|
+
# source://crack//lib/crack/xml.rb#38
|
118
|
+
def available_typecasts=(obj); end
|
119
|
+
|
120
|
+
# source://crack//lib/crack/xml.rb#26
|
121
|
+
def typecasts; end
|
122
|
+
|
123
|
+
# source://crack//lib/crack/xml.rb#30
|
124
|
+
def typecasts=(obj); end
|
125
|
+
end
|
126
|
+
end
|
127
|
+
|
128
|
+
# The Reason behind redefining the String Class for this specific plugin is to
|
129
|
+
# avoid the dynamic insertion of stuff on it (see version previous to this commit).
|
130
|
+
# Doing that disables the possibility of efectuating a dump on the structure. This way it goes.
|
131
|
+
#
|
132
|
+
# source://crack//lib/crack/xml.rb#14
|
133
|
+
class REXMLUtiliyNodeString < ::String
|
134
|
+
# Returns the value of attribute attributes.
|
135
|
+
#
|
136
|
+
# source://crack//lib/crack/xml.rb#15
|
137
|
+
def attributes; end
|
138
|
+
|
139
|
+
# Sets the attribute attributes
|
140
|
+
#
|
141
|
+
# @param value the value to set the attribute attributes to.
|
142
|
+
#
|
143
|
+
# source://crack//lib/crack/xml.rb#15
|
144
|
+
def attributes=(_arg0); end
|
145
|
+
end
|
@@ -0,0 +1,147 @@
|
|
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/2.7.2/lib/faraday.rb#55
|
12
|
+
def default_adapter; end
|
13
|
+
|
14
|
+
# source://faraday/2.7.2/lib/faraday.rb#102
|
15
|
+
def default_adapter=(adapter); end
|
16
|
+
|
17
|
+
# source://faraday/2.7.2/lib/faraday.rb#59
|
18
|
+
def default_adapter_options; end
|
19
|
+
|
20
|
+
# source://faraday/2.7.2/lib/faraday.rb#59
|
21
|
+
def default_adapter_options=(_arg0); end
|
22
|
+
|
23
|
+
# source://faraday/2.7.2/lib/faraday.rb#120
|
24
|
+
def default_connection; end
|
25
|
+
|
26
|
+
# source://faraday/2.7.2/lib/faraday.rb#62
|
27
|
+
def default_connection=(_arg0); end
|
28
|
+
|
29
|
+
# source://faraday/2.7.2/lib/faraday.rb#127
|
30
|
+
def default_connection_options; end
|
31
|
+
|
32
|
+
# source://faraday/2.7.2/lib/faraday.rb#134
|
33
|
+
def default_connection_options=(options); end
|
34
|
+
|
35
|
+
# source://faraday/2.7.2/lib/faraday.rb#67
|
36
|
+
def ignore_env_proxy; end
|
37
|
+
|
38
|
+
# source://faraday/2.7.2/lib/faraday.rb#67
|
39
|
+
def ignore_env_proxy=(_arg0); end
|
40
|
+
|
41
|
+
# source://faraday/2.7.2/lib/faraday.rb#46
|
42
|
+
def lib_path; end
|
43
|
+
|
44
|
+
# source://faraday/2.7.2/lib/faraday.rb#46
|
45
|
+
def lib_path=(_arg0); end
|
46
|
+
|
47
|
+
# source://faraday/2.7.2/lib/faraday.rb#96
|
48
|
+
def new(url = T.unsafe(nil), options = T.unsafe(nil), &block); end
|
49
|
+
|
50
|
+
# source://faraday/2.7.2/lib/faraday.rb#107
|
51
|
+
def respond_to_missing?(symbol, include_private = T.unsafe(nil)); end
|
52
|
+
|
53
|
+
# source://faraday/2.7.2/lib/faraday.rb#42
|
54
|
+
def root_path; end
|
55
|
+
|
56
|
+
# source://faraday/2.7.2/lib/faraday.rb#42
|
57
|
+
def root_path=(_arg0); end
|
58
|
+
|
59
|
+
private
|
60
|
+
|
61
|
+
# source://faraday/2.7.2/lib/faraday.rb#143
|
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/2.7.2/lib/faraday/adapter.rb#28
|
69
|
+
def initialize(_app = T.unsafe(nil), opts = T.unsafe(nil), &block); end
|
70
|
+
|
71
|
+
# source://faraday/2.7.2/lib/faraday/adapter.rb#55
|
72
|
+
def call(env); end
|
73
|
+
|
74
|
+
# source://faraday/2.7.2/lib/faraday/adapter.rb#50
|
75
|
+
def close; end
|
76
|
+
|
77
|
+
# source://faraday/2.7.2/lib/faraday/adapter.rb#41
|
78
|
+
def connection(env); end
|
79
|
+
|
80
|
+
private
|
81
|
+
|
82
|
+
# source://faraday/2.7.2/lib/faraday/adapter.rb#85
|
83
|
+
def request_timeout(type, options); end
|
84
|
+
|
85
|
+
# source://faraday/2.7.2/lib/faraday/adapter.rb#62
|
86
|
+
def save_response(env, status, body, headers = T.unsafe(nil), reason_phrase = T.unsafe(nil), finished: 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#38
|
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#43
|
97
|
+
def build_connection(env); end
|
98
|
+
|
99
|
+
# source://faraday-net_http//lib/faraday/adapter/net_http.rb#63
|
100
|
+
def call(env); end
|
101
|
+
|
102
|
+
# source://faraday-net_http//lib/faraday/adapter/net_http.rb#51
|
103
|
+
def net_http_connection(env); end
|
104
|
+
|
105
|
+
private
|
106
|
+
|
107
|
+
# source://faraday-net_http//lib/faraday/adapter/net_http.rb#152
|
108
|
+
def configure_request(http, req); end
|
109
|
+
|
110
|
+
# source://faraday-net_http//lib/faraday/adapter/net_http.rb#135
|
111
|
+
def configure_ssl(http, ssl); end
|
112
|
+
|
113
|
+
# source://faraday-net_http//lib/faraday/adapter/net_http.rb#79
|
114
|
+
def create_request(env); end
|
115
|
+
|
116
|
+
# source://faraday-net_http//lib/faraday/adapter/net_http.rb#191
|
117
|
+
def encoded_body(http_response); end
|
118
|
+
|
119
|
+
# source://faraday-net_http//lib/faraday/adapter/net_http.rb#95
|
120
|
+
def perform_request(http, env); end
|
121
|
+
|
122
|
+
# source://faraday-net_http//lib/faraday/adapter/net_http.rb#109
|
123
|
+
def request_with_wrapped_block(http, env); end
|
124
|
+
|
125
|
+
# source://faraday-net_http//lib/faraday/adapter/net_http.rb#125
|
126
|
+
def save_http_response(env, http_response); end
|
127
|
+
|
128
|
+
# source://faraday-net_http//lib/faraday/adapter/net_http.rb#172
|
129
|
+
def ssl_cert_store(ssl); end
|
130
|
+
|
131
|
+
# source://faraday-net_http//lib/faraday/adapter/net_http.rb#181
|
132
|
+
def ssl_verify_mode(ssl); end
|
133
|
+
|
134
|
+
# @return [Boolean]
|
135
|
+
#
|
136
|
+
# source://faraday-net_http//lib/faraday/adapter/net_http.rb#203
|
137
|
+
def verify_hostname_enabled?(http, ssl); end
|
138
|
+
end
|
139
|
+
|
140
|
+
# source://faraday-net_http//lib/faraday/adapter/net_http.rb#36
|
141
|
+
Faraday::Adapter::NetHttp::NET_HTTP_EXCEPTIONS = T.let(T.unsafe(nil), Array)
|
142
|
+
|
143
|
+
# source://faraday-net_http//lib/faraday/net_http/version.rb#4
|
144
|
+
module Faraday::NetHttp; end
|
145
|
+
|
146
|
+
# source://faraday-net_http//lib/faraday/net_http/version.rb#5
|
147
|
+
Faraday::NetHttp::VERSION = T.let(T.unsafe(nil), String)
|