minato_ruby_api_client 0.2.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/CHANGELOG.md +23 -0
- data/Dockerfile +1 -0
- data/Gemfile +17 -0
- data/Gemfile.lock +398 -0
- data/README.md +54 -0
- data/Rakefile +10 -0
- data/compose.yml +11 -0
- data/coverage/.last_run.json +5 -0
- data/coverage/.resultset.json +1248 -0
- data/coverage/.resultset.json.lock +0 -0
- data/coverage/assets/0.12.3/DataTables-1.10.20/images/sort_asc.png +0 -0
- data/coverage/assets/0.12.3/DataTables-1.10.20/images/sort_asc_disabled.png +0 -0
- data/coverage/assets/0.12.3/DataTables-1.10.20/images/sort_both.png +0 -0
- data/coverage/assets/0.12.3/DataTables-1.10.20/images/sort_desc.png +0 -0
- data/coverage/assets/0.12.3/DataTables-1.10.20/images/sort_desc_disabled.png +0 -0
- data/coverage/assets/0.12.3/application.css +1 -0
- data/coverage/assets/0.12.3/application.js +7 -0
- data/coverage/assets/0.12.3/colorbox/border.png +0 -0
- data/coverage/assets/0.12.3/colorbox/controls.png +0 -0
- data/coverage/assets/0.12.3/colorbox/loading.gif +0 -0
- data/coverage/assets/0.12.3/colorbox/loading_background.png +0 -0
- data/coverage/assets/0.12.3/favicon_green.png +0 -0
- data/coverage/assets/0.12.3/favicon_red.png +0 -0
- data/coverage/assets/0.12.3/favicon_yellow.png +0 -0
- data/coverage/assets/0.12.3/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/coverage/assets/0.12.3/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/coverage/assets/0.12.3/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/coverage/assets/0.12.3/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/coverage/assets/0.12.3/images/ui-bg_glass_75_dadada_1x400.png +0 -0
- data/coverage/assets/0.12.3/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/coverage/assets/0.12.3/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/coverage/assets/0.12.3/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- data/coverage/assets/0.12.3/images/ui-icons_222222_256x240.png +0 -0
- data/coverage/assets/0.12.3/images/ui-icons_2e83ff_256x240.png +0 -0
- data/coverage/assets/0.12.3/images/ui-icons_454545_256x240.png +0 -0
- data/coverage/assets/0.12.3/images/ui-icons_888888_256x240.png +0 -0
- data/coverage/assets/0.12.3/images/ui-icons_cd0a0a_256x240.png +0 -0
- data/coverage/assets/0.12.3/loading.gif +0 -0
- data/coverage/assets/0.12.3/magnify.png +0 -0
- data/coverage/index.html +13728 -0
- data/lib/minato_ruby_api_client/api_client.rb +389 -0
- data/lib/minato_ruby_api_client/api_error.rb +16 -0
- data/lib/minato_ruby_api_client/configuration.rb +247 -0
- data/lib/minato_ruby_api_client/version.rb +3 -0
- data/lib/minato_ruby_api_client.rb +24 -0
- data/minato_ruby_api_client.gemspec +35 -0
- data/spec/api_client_spec.rb +309 -0
- data/spec/configuration_spec.rb +204 -0
- data/spec/minato_ruby_api_client_spec.rb +17 -0
- data/spec/spec_helper.rb +105 -0
- metadata +165 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 436afa58beefb36c4f555846ac2995ca5a0563c22b12bc4ba878f6c55da69572
|
4
|
+
data.tar.gz: 18c73ed86dc609d1e2f34fe9261ccf2eeb5f722bcdf9933578b4252f54366f42
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 7080f6cf8240b433ace15adbfb84d88c6fe5b951a91afdbb2f32ae7902e084e72df813f3a037656c1cbd39bf5ee5401159fe2aa22f1a3d7a0351a015740a45a7
|
7
|
+
data.tar.gz: a9e56118027e89e9daea74f41767ba2158dd60356b2373739f2131df63e0de77af27213b65cc57b50b7732442c24c995cdd2704a8611b4be8c69bdf18ffbc329
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
# Changelog
|
2
|
+
|
3
|
+
All notable changes to this project will be documented in this file.
|
4
|
+
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
7
|
+
|
8
|
+
## [0.2.0]
|
9
|
+
|
10
|
+
### Added
|
11
|
+
|
12
|
+
- Log all requests, successful and error requests.
|
13
|
+
|
14
|
+
## [0.1.0] - 2024-07-22
|
15
|
+
|
16
|
+
### Added
|
17
|
+
|
18
|
+
- Log errors directly using the minato_error_handler gem.
|
19
|
+
- Support to distributed trace with minato-trace gem.
|
20
|
+
|
21
|
+
|
22
|
+
[0.2.0]: https://gitlab.com/ferreri/minato/minato-ruby-api-client/-/compare/v0.1.0...v.2.0
|
23
|
+
[0.1.0]: https://gitlab.com/ferreri/minato/minato-ruby-api-client/-/releases/v0.1.0
|
data/Dockerfile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
FROM us-east1-docker.pkg.dev/minato-cloud/images/ruby-minato:1.0.0-dev
|
data/Gemfile
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
source 'https://rubygems.org'
|
2
|
+
|
3
|
+
gemspec
|
4
|
+
|
5
|
+
group :development, :test do
|
6
|
+
gem 'rake', '~> 13.0.1'
|
7
|
+
gem 'pry-byebug'
|
8
|
+
gem 'rubocop', '~> 1.64.1'
|
9
|
+
gem 'rubocop-rspec', '~> 3.0.2'
|
10
|
+
end
|
11
|
+
|
12
|
+
group :test do
|
13
|
+
gem 'webmock'
|
14
|
+
|
15
|
+
end
|
16
|
+
|
17
|
+
gem 'simplecov', require: false, group: :test
|
data/Gemfile.lock
ADDED
@@ -0,0 +1,398 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
minato_ruby_api_client (0.2.1)
|
5
|
+
faraday (~> 1.0, >= 1.0.1)
|
6
|
+
minato-trace (~> 0.1.6.pre.8)
|
7
|
+
minato_error_handler (~> 0.1.9.pre.1)
|
8
|
+
|
9
|
+
GEM
|
10
|
+
remote: https://rubygems.org/
|
11
|
+
specs:
|
12
|
+
actioncable (7.1.3.4)
|
13
|
+
actionpack (= 7.1.3.4)
|
14
|
+
activesupport (= 7.1.3.4)
|
15
|
+
nio4r (~> 2.0)
|
16
|
+
websocket-driver (>= 0.6.1)
|
17
|
+
zeitwerk (~> 2.6)
|
18
|
+
actionmailbox (7.1.3.4)
|
19
|
+
actionpack (= 7.1.3.4)
|
20
|
+
activejob (= 7.1.3.4)
|
21
|
+
activerecord (= 7.1.3.4)
|
22
|
+
activestorage (= 7.1.3.4)
|
23
|
+
activesupport (= 7.1.3.4)
|
24
|
+
mail (>= 2.7.1)
|
25
|
+
net-imap
|
26
|
+
net-pop
|
27
|
+
net-smtp
|
28
|
+
actionmailer (7.1.3.4)
|
29
|
+
actionpack (= 7.1.3.4)
|
30
|
+
actionview (= 7.1.3.4)
|
31
|
+
activejob (= 7.1.3.4)
|
32
|
+
activesupport (= 7.1.3.4)
|
33
|
+
mail (~> 2.5, >= 2.5.4)
|
34
|
+
net-imap
|
35
|
+
net-pop
|
36
|
+
net-smtp
|
37
|
+
rails-dom-testing (~> 2.2)
|
38
|
+
actionpack (7.1.3.4)
|
39
|
+
actionview (= 7.1.3.4)
|
40
|
+
activesupport (= 7.1.3.4)
|
41
|
+
nokogiri (>= 1.8.5)
|
42
|
+
racc
|
43
|
+
rack (>= 2.2.4)
|
44
|
+
rack-session (>= 1.0.1)
|
45
|
+
rack-test (>= 0.6.3)
|
46
|
+
rails-dom-testing (~> 2.2)
|
47
|
+
rails-html-sanitizer (~> 1.6)
|
48
|
+
actiontext (7.1.3.4)
|
49
|
+
actionpack (= 7.1.3.4)
|
50
|
+
activerecord (= 7.1.3.4)
|
51
|
+
activestorage (= 7.1.3.4)
|
52
|
+
activesupport (= 7.1.3.4)
|
53
|
+
globalid (>= 0.6.0)
|
54
|
+
nokogiri (>= 1.8.5)
|
55
|
+
actionview (7.1.3.4)
|
56
|
+
activesupport (= 7.1.3.4)
|
57
|
+
builder (~> 3.1)
|
58
|
+
erubi (~> 1.11)
|
59
|
+
rails-dom-testing (~> 2.2)
|
60
|
+
rails-html-sanitizer (~> 1.6)
|
61
|
+
activejob (7.1.3.4)
|
62
|
+
activesupport (= 7.1.3.4)
|
63
|
+
globalid (>= 0.3.6)
|
64
|
+
activemodel (7.1.3.4)
|
65
|
+
activesupport (= 7.1.3.4)
|
66
|
+
activerecord (7.1.3.4)
|
67
|
+
activemodel (= 7.1.3.4)
|
68
|
+
activesupport (= 7.1.3.4)
|
69
|
+
timeout (>= 0.4.0)
|
70
|
+
activestorage (7.1.3.4)
|
71
|
+
actionpack (= 7.1.3.4)
|
72
|
+
activejob (= 7.1.3.4)
|
73
|
+
activerecord (= 7.1.3.4)
|
74
|
+
activesupport (= 7.1.3.4)
|
75
|
+
marcel (~> 1.0)
|
76
|
+
activesupport (7.1.3.4)
|
77
|
+
base64
|
78
|
+
bigdecimal
|
79
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
80
|
+
connection_pool (>= 2.2.5)
|
81
|
+
drb
|
82
|
+
i18n (>= 1.6, < 2)
|
83
|
+
minitest (>= 5.1)
|
84
|
+
mutex_m
|
85
|
+
tzinfo (~> 2.0)
|
86
|
+
addressable (2.8.7)
|
87
|
+
public_suffix (>= 2.0.2, < 7.0)
|
88
|
+
ast (2.4.2)
|
89
|
+
base64 (0.2.0)
|
90
|
+
bigdecimal (3.1.8)
|
91
|
+
builder (3.3.0)
|
92
|
+
byebug (11.1.3)
|
93
|
+
coderay (1.1.3)
|
94
|
+
concurrent-ruby (1.3.3)
|
95
|
+
connection_pool (2.4.1)
|
96
|
+
crack (1.0.0)
|
97
|
+
bigdecimal
|
98
|
+
rexml
|
99
|
+
crass (1.0.6)
|
100
|
+
date (3.3.4)
|
101
|
+
diff-lcs (1.5.1)
|
102
|
+
docile (1.4.0)
|
103
|
+
drb (2.2.1)
|
104
|
+
erubi (1.13.0)
|
105
|
+
faraday (1.10.3)
|
106
|
+
faraday-em_http (~> 1.0)
|
107
|
+
faraday-em_synchrony (~> 1.0)
|
108
|
+
faraday-excon (~> 1.1)
|
109
|
+
faraday-httpclient (~> 1.0)
|
110
|
+
faraday-multipart (~> 1.0)
|
111
|
+
faraday-net_http (~> 1.0)
|
112
|
+
faraday-net_http_persistent (~> 1.0)
|
113
|
+
faraday-patron (~> 1.0)
|
114
|
+
faraday-rack (~> 1.0)
|
115
|
+
faraday-retry (~> 1.0)
|
116
|
+
ruby2_keywords (>= 0.0.4)
|
117
|
+
faraday-em_http (1.0.0)
|
118
|
+
faraday-em_synchrony (1.0.0)
|
119
|
+
faraday-excon (1.1.0)
|
120
|
+
faraday-httpclient (1.0.1)
|
121
|
+
faraday-multipart (1.0.4)
|
122
|
+
multipart-post (~> 2)
|
123
|
+
faraday-net_http (1.0.1)
|
124
|
+
faraday-net_http_persistent (1.2.0)
|
125
|
+
faraday-patron (1.0.0)
|
126
|
+
faraday-rack (1.0.0)
|
127
|
+
faraday-retry (1.0.3)
|
128
|
+
gapic-common (0.22.0)
|
129
|
+
faraday (>= 1.9, < 3.a)
|
130
|
+
faraday-retry (>= 1.0, < 3.a)
|
131
|
+
google-protobuf (>= 3.25, < 5.a)
|
132
|
+
googleapis-common-protos (~> 1.6)
|
133
|
+
googleapis-common-protos-types (~> 1.15)
|
134
|
+
googleauth (~> 1.11)
|
135
|
+
grpc (~> 1.65)
|
136
|
+
globalid (1.2.1)
|
137
|
+
activesupport (>= 6.1)
|
138
|
+
google-cloud-core (1.7.0)
|
139
|
+
google-cloud-env (>= 1.0, < 3.a)
|
140
|
+
google-cloud-errors (~> 1.0)
|
141
|
+
google-cloud-env (2.1.1)
|
142
|
+
faraday (>= 1.0, < 3.a)
|
143
|
+
google-cloud-errors (1.4.0)
|
144
|
+
google-cloud-trace (0.42.2)
|
145
|
+
concurrent-ruby (~> 1.1)
|
146
|
+
google-cloud-core (~> 1.5)
|
147
|
+
google-cloud-trace-v1 (~> 0.0)
|
148
|
+
google-cloud-trace-v2 (~> 0.0)
|
149
|
+
stackdriver-core (~> 1.3)
|
150
|
+
google-cloud-trace-v1 (0.9.0)
|
151
|
+
gapic-common (>= 0.21.1, < 2.a)
|
152
|
+
google-cloud-errors (~> 1.0)
|
153
|
+
google-cloud-trace-v2 (0.9.0)
|
154
|
+
gapic-common (>= 0.21.1, < 2.a)
|
155
|
+
google-cloud-errors (~> 1.0)
|
156
|
+
google-protobuf (4.27.2)
|
157
|
+
bigdecimal
|
158
|
+
rake (>= 13)
|
159
|
+
google-protobuf (4.27.2-aarch64-linux)
|
160
|
+
bigdecimal
|
161
|
+
rake (>= 13)
|
162
|
+
google-protobuf (4.27.2-arm64-darwin)
|
163
|
+
bigdecimal
|
164
|
+
rake (>= 13)
|
165
|
+
google-protobuf (4.27.2-x86-linux)
|
166
|
+
bigdecimal
|
167
|
+
rake (>= 13)
|
168
|
+
google-protobuf (4.27.2-x86_64-darwin)
|
169
|
+
bigdecimal
|
170
|
+
rake (>= 13)
|
171
|
+
google-protobuf (4.27.2-x86_64-linux)
|
172
|
+
bigdecimal
|
173
|
+
rake (>= 13)
|
174
|
+
googleapis-common-protos (1.6.0)
|
175
|
+
google-protobuf (>= 3.18, < 5.a)
|
176
|
+
googleapis-common-protos-types (~> 1.7)
|
177
|
+
grpc (~> 1.41)
|
178
|
+
googleapis-common-protos-types (1.15.0)
|
179
|
+
google-protobuf (>= 3.18, < 5.a)
|
180
|
+
googleauth (1.11.0)
|
181
|
+
faraday (>= 1.0, < 3.a)
|
182
|
+
google-cloud-env (~> 2.1)
|
183
|
+
jwt (>= 1.4, < 3.0)
|
184
|
+
multi_json (~> 1.11)
|
185
|
+
os (>= 0.9, < 2.0)
|
186
|
+
signet (>= 0.16, < 2.a)
|
187
|
+
grpc (1.65.1)
|
188
|
+
google-protobuf (>= 3.25, < 5.0)
|
189
|
+
googleapis-common-protos-types (~> 1.0)
|
190
|
+
grpc (1.65.1-aarch64-linux)
|
191
|
+
google-protobuf (>= 3.25, < 5.0)
|
192
|
+
googleapis-common-protos-types (~> 1.0)
|
193
|
+
grpc (1.65.1-arm64-darwin)
|
194
|
+
google-protobuf (>= 3.25, < 5.0)
|
195
|
+
googleapis-common-protos-types (~> 1.0)
|
196
|
+
grpc (1.65.1-x86-linux)
|
197
|
+
google-protobuf (>= 3.25, < 5.0)
|
198
|
+
googleapis-common-protos-types (~> 1.0)
|
199
|
+
grpc (1.65.1-x86_64-darwin)
|
200
|
+
google-protobuf (>= 3.25, < 5.0)
|
201
|
+
googleapis-common-protos-types (~> 1.0)
|
202
|
+
grpc (1.65.1-x86_64-linux)
|
203
|
+
google-protobuf (>= 3.25, < 5.0)
|
204
|
+
googleapis-common-protos-types (~> 1.0)
|
205
|
+
hashdiff (1.1.0)
|
206
|
+
i18n (1.14.5)
|
207
|
+
concurrent-ruby (~> 1.0)
|
208
|
+
io-console (0.7.2)
|
209
|
+
irb (1.14.0)
|
210
|
+
rdoc (>= 4.0.0)
|
211
|
+
reline (>= 0.4.2)
|
212
|
+
json (2.7.2)
|
213
|
+
jwt (2.8.2)
|
214
|
+
base64
|
215
|
+
language_server-protocol (3.17.0.3)
|
216
|
+
loofah (2.22.0)
|
217
|
+
crass (~> 1.0.2)
|
218
|
+
nokogiri (>= 1.12.0)
|
219
|
+
mail (2.8.1)
|
220
|
+
mini_mime (>= 0.1.1)
|
221
|
+
net-imap
|
222
|
+
net-pop
|
223
|
+
net-smtp
|
224
|
+
marcel (1.0.4)
|
225
|
+
method_source (1.1.0)
|
226
|
+
minato-trace (0.1.6.pre.8)
|
227
|
+
google-cloud-trace (~> 0.42.2)
|
228
|
+
rails (>= 7.0.0)
|
229
|
+
minato_error_handler (0.1.9.pre.1)
|
230
|
+
rails (>= 7.0.4)
|
231
|
+
mini_mime (1.1.5)
|
232
|
+
minitest (5.24.1)
|
233
|
+
multi_json (1.15.0)
|
234
|
+
multipart-post (2.4.1)
|
235
|
+
mutex_m (0.2.0)
|
236
|
+
net-imap (0.4.14)
|
237
|
+
date
|
238
|
+
net-protocol
|
239
|
+
net-pop (0.1.2)
|
240
|
+
net-protocol
|
241
|
+
net-protocol (0.2.2)
|
242
|
+
timeout
|
243
|
+
net-smtp (0.5.0)
|
244
|
+
net-protocol
|
245
|
+
nio4r (2.7.3)
|
246
|
+
nokogiri (1.16.6-aarch64-linux)
|
247
|
+
racc (~> 1.4)
|
248
|
+
nokogiri (1.16.6-arm-linux)
|
249
|
+
racc (~> 1.4)
|
250
|
+
nokogiri (1.16.6-arm64-darwin)
|
251
|
+
racc (~> 1.4)
|
252
|
+
nokogiri (1.16.6-x86-linux)
|
253
|
+
racc (~> 1.4)
|
254
|
+
nokogiri (1.16.6-x86_64-darwin)
|
255
|
+
racc (~> 1.4)
|
256
|
+
nokogiri (1.16.6-x86_64-linux)
|
257
|
+
racc (~> 1.4)
|
258
|
+
os (1.1.4)
|
259
|
+
parallel (1.25.1)
|
260
|
+
parser (3.3.4.0)
|
261
|
+
ast (~> 2.4.1)
|
262
|
+
racc
|
263
|
+
pry (0.14.2)
|
264
|
+
coderay (~> 1.1)
|
265
|
+
method_source (~> 1.0)
|
266
|
+
pry-byebug (3.10.1)
|
267
|
+
byebug (~> 11.0)
|
268
|
+
pry (>= 0.13, < 0.15)
|
269
|
+
psych (5.1.2)
|
270
|
+
stringio
|
271
|
+
public_suffix (6.0.0)
|
272
|
+
racc (1.8.0)
|
273
|
+
rack (3.1.7)
|
274
|
+
rack-session (2.0.0)
|
275
|
+
rack (>= 3.0.0)
|
276
|
+
rack-test (2.1.0)
|
277
|
+
rack (>= 1.3)
|
278
|
+
rackup (2.1.0)
|
279
|
+
rack (>= 3)
|
280
|
+
webrick (~> 1.8)
|
281
|
+
rails (7.1.3.4)
|
282
|
+
actioncable (= 7.1.3.4)
|
283
|
+
actionmailbox (= 7.1.3.4)
|
284
|
+
actionmailer (= 7.1.3.4)
|
285
|
+
actionpack (= 7.1.3.4)
|
286
|
+
actiontext (= 7.1.3.4)
|
287
|
+
actionview (= 7.1.3.4)
|
288
|
+
activejob (= 7.1.3.4)
|
289
|
+
activemodel (= 7.1.3.4)
|
290
|
+
activerecord (= 7.1.3.4)
|
291
|
+
activestorage (= 7.1.3.4)
|
292
|
+
activesupport (= 7.1.3.4)
|
293
|
+
bundler (>= 1.15.0)
|
294
|
+
railties (= 7.1.3.4)
|
295
|
+
rails-dom-testing (2.2.0)
|
296
|
+
activesupport (>= 5.0.0)
|
297
|
+
minitest
|
298
|
+
nokogiri (>= 1.6)
|
299
|
+
rails-html-sanitizer (1.6.0)
|
300
|
+
loofah (~> 2.21)
|
301
|
+
nokogiri (~> 1.14)
|
302
|
+
railties (7.1.3.4)
|
303
|
+
actionpack (= 7.1.3.4)
|
304
|
+
activesupport (= 7.1.3.4)
|
305
|
+
irb
|
306
|
+
rackup (>= 1.0.0)
|
307
|
+
rake (>= 12.2)
|
308
|
+
thor (~> 1.0, >= 1.2.2)
|
309
|
+
zeitwerk (~> 2.6)
|
310
|
+
rainbow (3.1.1)
|
311
|
+
rake (13.0.6)
|
312
|
+
rdoc (6.7.0)
|
313
|
+
psych (>= 4.0.0)
|
314
|
+
regexp_parser (2.9.2)
|
315
|
+
reline (0.5.9)
|
316
|
+
io-console (~> 0.5)
|
317
|
+
rexml (3.3.2)
|
318
|
+
strscan
|
319
|
+
rspec (3.13.0)
|
320
|
+
rspec-core (~> 3.13.0)
|
321
|
+
rspec-expectations (~> 3.13.0)
|
322
|
+
rspec-mocks (~> 3.13.0)
|
323
|
+
rspec-core (3.13.0)
|
324
|
+
rspec-support (~> 3.13.0)
|
325
|
+
rspec-expectations (3.13.1)
|
326
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
327
|
+
rspec-support (~> 3.13.0)
|
328
|
+
rspec-mocks (3.13.1)
|
329
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
330
|
+
rspec-support (~> 3.13.0)
|
331
|
+
rspec-support (3.13.1)
|
332
|
+
rubocop (1.64.1)
|
333
|
+
json (~> 2.3)
|
334
|
+
language_server-protocol (>= 3.17.0)
|
335
|
+
parallel (~> 1.10)
|
336
|
+
parser (>= 3.3.0.2)
|
337
|
+
rainbow (>= 2.2.2, < 4.0)
|
338
|
+
regexp_parser (>= 1.8, < 3.0)
|
339
|
+
rexml (>= 3.2.5, < 4.0)
|
340
|
+
rubocop-ast (>= 1.31.1, < 2.0)
|
341
|
+
ruby-progressbar (~> 1.7)
|
342
|
+
unicode-display_width (>= 2.4.0, < 3.0)
|
343
|
+
rubocop-ast (1.31.3)
|
344
|
+
parser (>= 3.3.1.0)
|
345
|
+
rubocop-rspec (3.0.3)
|
346
|
+
rubocop (~> 1.61)
|
347
|
+
ruby-progressbar (1.13.0)
|
348
|
+
ruby2_keywords (0.0.5)
|
349
|
+
signet (0.19.0)
|
350
|
+
addressable (~> 2.8)
|
351
|
+
faraday (>= 0.17.5, < 3.a)
|
352
|
+
jwt (>= 1.5, < 3.0)
|
353
|
+
multi_json (~> 1.10)
|
354
|
+
simplecov (0.22.0)
|
355
|
+
docile (~> 1.1)
|
356
|
+
simplecov-html (~> 0.11)
|
357
|
+
simplecov_json_formatter (~> 0.1)
|
358
|
+
simplecov-html (0.12.3)
|
359
|
+
simplecov_json_formatter (0.1.4)
|
360
|
+
stackdriver-core (1.6.0)
|
361
|
+
google-cloud-core (~> 1.2)
|
362
|
+
stringio (3.1.1)
|
363
|
+
strscan (3.1.0)
|
364
|
+
thor (1.3.1)
|
365
|
+
timeout (0.4.1)
|
366
|
+
tzinfo (2.0.6)
|
367
|
+
concurrent-ruby (~> 1.0)
|
368
|
+
unicode-display_width (2.5.0)
|
369
|
+
webmock (3.23.1)
|
370
|
+
addressable (>= 2.8.0)
|
371
|
+
crack (>= 0.3.2)
|
372
|
+
hashdiff (>= 0.4.0, < 2.0.0)
|
373
|
+
webrick (1.8.1)
|
374
|
+
websocket-driver (0.7.6)
|
375
|
+
websocket-extensions (>= 0.1.0)
|
376
|
+
websocket-extensions (0.1.5)
|
377
|
+
zeitwerk (2.6.16)
|
378
|
+
|
379
|
+
PLATFORMS
|
380
|
+
aarch64-linux
|
381
|
+
arm-linux
|
382
|
+
arm64-darwin
|
383
|
+
x86-linux
|
384
|
+
x86_64-darwin
|
385
|
+
x86_64-linux
|
386
|
+
|
387
|
+
DEPENDENCIES
|
388
|
+
minato_ruby_api_client!
|
389
|
+
pry-byebug
|
390
|
+
rake (~> 13.0.1)
|
391
|
+
rspec (~> 3.6, >= 3.6.0)
|
392
|
+
rubocop (~> 1.64.1)
|
393
|
+
rubocop-rspec (~> 3.0.2)
|
394
|
+
simplecov
|
395
|
+
webmock
|
396
|
+
|
397
|
+
BUNDLED WITH
|
398
|
+
2.5.5
|
data/README.md
ADDED
@@ -0,0 +1,54 @@
|
|
1
|
+
# Minato Ruby Api Client
|
2
|
+
|
3
|
+
The Minato ruby HTTP Client.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
### Install via command gem
|
8
|
+
|
9
|
+
gem install minato_ruby_api_client
|
10
|
+
|
11
|
+
|
12
|
+
### Install via Gemfile
|
13
|
+
|
14
|
+
gem 'minato_ruby_api_client'
|
15
|
+
|
16
|
+
### Install from Git
|
17
|
+
|
18
|
+
gem 'minato_ruby_api_client', git: 'https://gitlab.com/ferreri/minato/minato-ruby-api-client.git', ref: 'v0.2.1', glob: '*.gemspec'
|
19
|
+
|
20
|
+
## Getting Started
|
21
|
+
|
22
|
+
Please follow the [installation](#installation) procedure and then run the following code:
|
23
|
+
|
24
|
+
```ruby
|
25
|
+
# Load the gem
|
26
|
+
require 'minato_ruby_api_client'
|
27
|
+
|
28
|
+
# Setup authorization via config
|
29
|
+
MinatoRubyApiClient.configure do |config|
|
30
|
+
# Configure API key
|
31
|
+
config.api_key['Your-Subscription-Key'] = 'YOUR API KEY'
|
32
|
+
# Configure base path
|
33
|
+
config.base_path = 'YOUR BASE PATH'
|
34
|
+
end
|
35
|
+
|
36
|
+
client = MinatoRubyApiClient::ApiClient.default
|
37
|
+
|
38
|
+
# All available options
|
39
|
+
opts = {
|
40
|
+
header_params: { 'Source' => 'Your Source' },
|
41
|
+
query_params: {}, # When does not have value you can ommit the option
|
42
|
+
form_params: {},
|
43
|
+
body: { email: 'test@email' },
|
44
|
+
auth_names: 'apikey',
|
45
|
+
return_type: 'Object' # To return a generic hash you must use 'Object', for other types see examples.
|
46
|
+
}
|
47
|
+
# dispatch request
|
48
|
+
data, status, headers = client.api_call(:post, '/v1/accounts', opts)
|
49
|
+
|
50
|
+
# data => 'Response body'
|
51
|
+
# status => 'Response status'
|
52
|
+
# headers => 'Response headers'
|
53
|
+
|
54
|
+
```
|
data/Rakefile
ADDED
data/compose.yml
ADDED