my_api_client 0.22.0 → 0.24.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +26 -26
- data/.rubocop.yml +14 -10
- data/.rubocop_todo.yml +2 -2
- data/CHANGELOG.md +220 -157
- data/Gemfile +0 -2
- data/Gemfile.lock +51 -68
- data/README.jp.md +38 -22
- data/README.md +25 -11
- data/example/api_clients/application_api_client.rb +1 -1
- data/example/api_clients/my_errors.rb +9 -0
- data/example/api_clients/my_header_api_client.rb +38 -0
- data/lib/my_api_client/error_handling/generator.rb +16 -3
- data/lib/my_api_client/errors/network_error.rb +3 -3
- data/lib/my_api_client/errors.rb +2 -2
- data/lib/my_api_client/integrations/bugsnag.rb +2 -2
- data/lib/my_api_client/version.rb +1 -1
- data/my_api/Gemfile +2 -2
- data/my_api/Gemfile.lock +94 -94
- data/my_api/app/controllers/header_controller.rb +12 -0
- data/my_api/app/controllers/pagination_controller.rb +1 -1
- data/my_api/config/routes.rb +1 -0
- data/my_api/spec/controllers/error_controller_spec.rb +1 -1
- data/my_api/spec/controllers/header_controller_spec.rb +33 -0
- data/my_api/spec/controllers/pagination_controller_spec.rb +1 -1
- data/my_api/spec/controllers/rest_controller_spec.rb +1 -1
- data/my_api/spec/controllers/status_controller_spec.rb +1 -1
- data/my_api_client.gemspec +1 -1
- data/rails_app/rails_5.2/Gemfile.lock +8 -8
- data/rails_app/rails_6.0/Gemfile +1 -0
- data/rails_app/rails_6.0/Gemfile.lock +84 -98
- data/rails_app/rails_6.1/Gemfile.lock +89 -99
- data/rails_app/rails_7.0/Gemfile.lock +132 -69
- metadata +7 -4
@@ -1,80 +1,105 @@
|
|
1
|
+
PATH
|
2
|
+
remote: ../..
|
3
|
+
specs:
|
4
|
+
my_api_client (0.22.0)
|
5
|
+
activesupport (>= 5.2.0)
|
6
|
+
faraday (>= 0.17.1)
|
7
|
+
jsonpath
|
8
|
+
sawyer (>= 0.8.2)
|
9
|
+
|
1
10
|
GEM
|
2
11
|
remote: https://rubygems.org/
|
3
12
|
specs:
|
4
|
-
actioncable (7.0.
|
5
|
-
actionpack (= 7.0.
|
6
|
-
activesupport (= 7.0.
|
13
|
+
actioncable (7.0.2.4)
|
14
|
+
actionpack (= 7.0.2.4)
|
15
|
+
activesupport (= 7.0.2.4)
|
7
16
|
nio4r (~> 2.0)
|
8
17
|
websocket-driver (>= 0.6.1)
|
9
|
-
actionmailbox (7.0.
|
10
|
-
actionpack (= 7.0.
|
11
|
-
activejob (= 7.0.
|
12
|
-
activerecord (= 7.0.
|
13
|
-
activestorage (= 7.0.
|
14
|
-
activesupport (= 7.0.
|
18
|
+
actionmailbox (7.0.2.4)
|
19
|
+
actionpack (= 7.0.2.4)
|
20
|
+
activejob (= 7.0.2.4)
|
21
|
+
activerecord (= 7.0.2.4)
|
22
|
+
activestorage (= 7.0.2.4)
|
23
|
+
activesupport (= 7.0.2.4)
|
15
24
|
mail (>= 2.7.1)
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
25
|
+
net-imap
|
26
|
+
net-pop
|
27
|
+
net-smtp
|
28
|
+
actionmailer (7.0.2.4)
|
29
|
+
actionpack (= 7.0.2.4)
|
30
|
+
actionview (= 7.0.2.4)
|
31
|
+
activejob (= 7.0.2.4)
|
32
|
+
activesupport (= 7.0.2.4)
|
21
33
|
mail (~> 2.5, >= 2.5.4)
|
34
|
+
net-imap
|
35
|
+
net-pop
|
36
|
+
net-smtp
|
22
37
|
rails-dom-testing (~> 2.0)
|
23
|
-
actionpack (7.0.
|
24
|
-
actionview (= 7.0.
|
25
|
-
activesupport (= 7.0.
|
38
|
+
actionpack (7.0.2.4)
|
39
|
+
actionview (= 7.0.2.4)
|
40
|
+
activesupport (= 7.0.2.4)
|
26
41
|
rack (~> 2.0, >= 2.2.0)
|
27
42
|
rack-test (>= 0.6.3)
|
28
43
|
rails-dom-testing (~> 2.0)
|
29
44
|
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
30
|
-
actiontext (7.0.
|
31
|
-
actionpack (= 7.0.
|
32
|
-
activerecord (= 7.0.
|
33
|
-
activestorage (= 7.0.
|
34
|
-
activesupport (= 7.0.
|
45
|
+
actiontext (7.0.2.4)
|
46
|
+
actionpack (= 7.0.2.4)
|
47
|
+
activerecord (= 7.0.2.4)
|
48
|
+
activestorage (= 7.0.2.4)
|
49
|
+
activesupport (= 7.0.2.4)
|
35
50
|
globalid (>= 0.6.0)
|
36
51
|
nokogiri (>= 1.8.5)
|
37
|
-
actionview (7.0.
|
38
|
-
activesupport (= 7.0.
|
52
|
+
actionview (7.0.2.4)
|
53
|
+
activesupport (= 7.0.2.4)
|
39
54
|
builder (~> 3.1)
|
40
55
|
erubi (~> 1.4)
|
41
56
|
rails-dom-testing (~> 2.0)
|
42
57
|
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
43
|
-
activejob (7.0.
|
44
|
-
activesupport (= 7.0.
|
58
|
+
activejob (7.0.2.4)
|
59
|
+
activesupport (= 7.0.2.4)
|
45
60
|
globalid (>= 0.3.6)
|
46
|
-
activemodel (7.0.
|
47
|
-
activesupport (= 7.0.
|
48
|
-
activerecord (7.0.
|
49
|
-
activemodel (= 7.0.
|
50
|
-
activesupport (= 7.0.
|
51
|
-
activestorage (7.0.
|
52
|
-
actionpack (= 7.0.
|
53
|
-
activejob (= 7.0.
|
54
|
-
activerecord (= 7.0.
|
55
|
-
activesupport (= 7.0.
|
61
|
+
activemodel (7.0.2.4)
|
62
|
+
activesupport (= 7.0.2.4)
|
63
|
+
activerecord (7.0.2.4)
|
64
|
+
activemodel (= 7.0.2.4)
|
65
|
+
activesupport (= 7.0.2.4)
|
66
|
+
activestorage (7.0.2.4)
|
67
|
+
actionpack (= 7.0.2.4)
|
68
|
+
activejob (= 7.0.2.4)
|
69
|
+
activerecord (= 7.0.2.4)
|
70
|
+
activesupport (= 7.0.2.4)
|
56
71
|
marcel (~> 1.0)
|
57
72
|
mini_mime (>= 1.1.0)
|
58
|
-
activesupport (7.0.
|
73
|
+
activesupport (7.0.2.4)
|
59
74
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
60
75
|
i18n (>= 1.6, < 2)
|
61
76
|
minitest (>= 5.1)
|
62
77
|
tzinfo (~> 2.0)
|
78
|
+
addressable (2.8.0)
|
79
|
+
public_suffix (>= 2.0.2, < 5.0)
|
63
80
|
builder (3.2.4)
|
64
|
-
concurrent-ruby (1.1.
|
81
|
+
concurrent-ruby (1.1.10)
|
65
82
|
crass (1.0.6)
|
66
83
|
debug (1.4.0)
|
67
84
|
irb (>= 1.3.6)
|
68
85
|
reline (>= 0.2.7)
|
86
|
+
diff-lcs (1.5.0)
|
87
|
+
digest (3.1.0)
|
69
88
|
erubi (1.10.0)
|
89
|
+
faraday (2.3.0)
|
90
|
+
faraday-net_http (~> 2.0)
|
91
|
+
ruby2_keywords (>= 0.0.4)
|
92
|
+
faraday-net_http (2.0.2)
|
70
93
|
globalid (1.0.0)
|
71
94
|
activesupport (>= 5.0)
|
72
|
-
i18n (1.
|
95
|
+
i18n (1.10.0)
|
73
96
|
concurrent-ruby (~> 1.0)
|
74
97
|
io-console (0.5.9)
|
75
98
|
irb (1.4.1)
|
76
99
|
reline (>= 0.3.0)
|
77
|
-
|
100
|
+
jsonpath (1.1.2)
|
101
|
+
multi_json
|
102
|
+
loofah (2.18.0)
|
78
103
|
crass (~> 1.0.2)
|
79
104
|
nokogiri (>= 1.5.9)
|
80
105
|
mail (2.7.1)
|
@@ -83,37 +108,53 @@ GEM
|
|
83
108
|
method_source (1.0.0)
|
84
109
|
mini_mime (1.1.2)
|
85
110
|
minitest (5.15.0)
|
111
|
+
multi_json (1.15.0)
|
112
|
+
net-imap (0.2.3)
|
113
|
+
digest
|
114
|
+
net-protocol
|
115
|
+
strscan
|
116
|
+
net-pop (0.1.1)
|
117
|
+
digest
|
118
|
+
net-protocol
|
119
|
+
timeout
|
120
|
+
net-protocol (0.1.3)
|
121
|
+
timeout
|
122
|
+
net-smtp (0.3.1)
|
123
|
+
digest
|
124
|
+
net-protocol
|
125
|
+
timeout
|
86
126
|
nio4r (2.5.8)
|
87
|
-
nokogiri (1.
|
127
|
+
nokogiri (1.13.9-x86_64-darwin)
|
88
128
|
racc (~> 1.4)
|
89
|
-
|
90
|
-
|
129
|
+
nokogiri (1.13.9-x86_64-linux)
|
130
|
+
racc (~> 1.4)
|
131
|
+
public_suffix (4.0.7)
|
91
132
|
racc (1.6.0)
|
92
|
-
rack (2.2.3)
|
133
|
+
rack (2.2.3.1)
|
93
134
|
rack-test (1.1.0)
|
94
135
|
rack (>= 1.0, < 3)
|
95
|
-
rails (7.0.
|
96
|
-
actioncable (= 7.0.
|
97
|
-
actionmailbox (= 7.0.
|
98
|
-
actionmailer (= 7.0.
|
99
|
-
actionpack (= 7.0.
|
100
|
-
actiontext (= 7.0.
|
101
|
-
actionview (= 7.0.
|
102
|
-
activejob (= 7.0.
|
103
|
-
activemodel (= 7.0.
|
104
|
-
activerecord (= 7.0.
|
105
|
-
activestorage (= 7.0.
|
106
|
-
activesupport (= 7.0.
|
136
|
+
rails (7.0.2.4)
|
137
|
+
actioncable (= 7.0.2.4)
|
138
|
+
actionmailbox (= 7.0.2.4)
|
139
|
+
actionmailer (= 7.0.2.4)
|
140
|
+
actionpack (= 7.0.2.4)
|
141
|
+
actiontext (= 7.0.2.4)
|
142
|
+
actionview (= 7.0.2.4)
|
143
|
+
activejob (= 7.0.2.4)
|
144
|
+
activemodel (= 7.0.2.4)
|
145
|
+
activerecord (= 7.0.2.4)
|
146
|
+
activestorage (= 7.0.2.4)
|
147
|
+
activesupport (= 7.0.2.4)
|
107
148
|
bundler (>= 1.15.0)
|
108
|
-
railties (= 7.0.
|
149
|
+
railties (= 7.0.2.4)
|
109
150
|
rails-dom-testing (2.0.3)
|
110
151
|
activesupport (>= 4.2.0)
|
111
152
|
nokogiri (>= 1.6)
|
112
|
-
rails-html-sanitizer (1.4.
|
153
|
+
rails-html-sanitizer (1.4.3)
|
113
154
|
loofah (~> 2.3)
|
114
|
-
railties (7.0.
|
115
|
-
actionpack (= 7.0.
|
116
|
-
activesupport (= 7.0.
|
155
|
+
railties (7.0.2.4)
|
156
|
+
actionpack (= 7.0.2.4)
|
157
|
+
activesupport (= 7.0.2.4)
|
117
158
|
method_source
|
118
159
|
rake (>= 12.2)
|
119
160
|
thor (~> 1.0)
|
@@ -121,27 +162,49 @@ GEM
|
|
121
162
|
rake (13.0.6)
|
122
163
|
reline (0.3.0)
|
123
164
|
io-console (~> 0.5)
|
165
|
+
rspec-core (3.11.0)
|
166
|
+
rspec-support (~> 3.11.0)
|
167
|
+
rspec-expectations (3.11.0)
|
168
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
169
|
+
rspec-support (~> 3.11.0)
|
170
|
+
rspec-mocks (3.11.1)
|
171
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
172
|
+
rspec-support (~> 3.11.0)
|
173
|
+
rspec-rails (5.1.2)
|
174
|
+
actionpack (>= 5.2)
|
175
|
+
activesupport (>= 5.2)
|
176
|
+
railties (>= 5.2)
|
177
|
+
rspec-core (~> 3.10)
|
178
|
+
rspec-expectations (~> 3.10)
|
179
|
+
rspec-mocks (~> 3.10)
|
180
|
+
rspec-support (~> 3.10)
|
181
|
+
rspec-support (3.11.0)
|
182
|
+
ruby2_keywords (0.0.5)
|
183
|
+
sawyer (0.9.1)
|
184
|
+
addressable (>= 2.3.5)
|
185
|
+
faraday (>= 0.17.3, < 3)
|
124
186
|
sqlite3 (1.4.2)
|
125
|
-
|
187
|
+
strscan (3.0.1)
|
188
|
+
thor (1.2.1)
|
189
|
+
timeout (0.2.0)
|
126
190
|
tzinfo (2.0.4)
|
127
191
|
concurrent-ruby (~> 1.0)
|
128
192
|
websocket-driver (0.7.5)
|
129
193
|
websocket-extensions (>= 0.1.0)
|
130
194
|
websocket-extensions (0.1.5)
|
131
|
-
zeitwerk (2.5.
|
195
|
+
zeitwerk (2.5.4)
|
132
196
|
|
133
197
|
PLATFORMS
|
134
198
|
x86_64-darwin-19
|
199
|
+
x86_64-darwin-20
|
200
|
+
x86_64-linux
|
135
201
|
|
136
202
|
DEPENDENCIES
|
137
203
|
debug
|
138
|
-
|
204
|
+
my_api_client!
|
139
205
|
rails (~> 7.0.0)
|
206
|
+
rspec-rails
|
140
207
|
sqlite3 (~> 1.4)
|
141
|
-
tzinfo-data
|
142
|
-
|
143
|
-
RUBY VERSION
|
144
|
-
ruby 3.0.0p0
|
145
208
|
|
146
209
|
BUNDLED WITH
|
147
|
-
2.
|
210
|
+
2.3.11
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: my_api_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.24.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ryz310
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-11-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -248,6 +248,7 @@ files:
|
|
248
248
|
- example/api_clients/application_api_client.rb
|
249
249
|
- example/api_clients/my_error_api_client.rb
|
250
250
|
- example/api_clients/my_errors.rb
|
251
|
+
- example/api_clients/my_header_api_client.rb
|
251
252
|
- example/api_clients/my_pagination_api_client.rb
|
252
253
|
- example/api_clients/my_rest_api_client.rb
|
253
254
|
- example/api_clients/my_status_api_client.rb
|
@@ -306,6 +307,7 @@ files:
|
|
306
307
|
- my_api/Rakefile
|
307
308
|
- my_api/app/controllers/application_controller.rb
|
308
309
|
- my_api/app/controllers/error_controller.rb
|
310
|
+
- my_api/app/controllers/header_controller.rb
|
309
311
|
- my_api/app/controllers/pagination_controller.rb
|
310
312
|
- my_api/app/controllers/rest_controller.rb
|
311
313
|
- my_api/app/controllers/status_controller.rb
|
@@ -326,6 +328,7 @@ files:
|
|
326
328
|
- my_api/public/favicon.ico
|
327
329
|
- my_api/public/index.html
|
328
330
|
- my_api/spec/controllers/error_controller_spec.rb
|
331
|
+
- my_api/spec/controllers/header_controller_spec.rb
|
329
332
|
- my_api/spec/controllers/pagination_controller_spec.rb
|
330
333
|
- my_api/spec/controllers/rest_controller_spec.rb
|
331
334
|
- my_api/spec/controllers/status_controller_spec.rb
|
@@ -480,14 +483,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
480
483
|
requirements:
|
481
484
|
- - ">="
|
482
485
|
- !ruby/object:Gem::Version
|
483
|
-
version: 2.
|
486
|
+
version: 2.7.0
|
484
487
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
485
488
|
requirements:
|
486
489
|
- - ">="
|
487
490
|
- !ruby/object:Gem::Version
|
488
491
|
version: '0'
|
489
492
|
requirements: []
|
490
|
-
rubygems_version: 3.
|
493
|
+
rubygems_version: 3.3.11
|
491
494
|
signing_key:
|
492
495
|
specification_version: 4
|
493
496
|
summary: The framework of Web API Client
|