rails_api_logger 0.10.0 → 0.11.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/.gitignore +4 -1
- data/.ruby-version +1 -1
- data/.semaphore/main-deploy.yml +2 -2
- data/.semaphore/semaphore.yml +106 -14
- data/.standard.yml +2 -0
- data/Appraisals +51 -0
- data/CHANGELOG.md +17 -3
- data/README.md +65 -8
- data/app/middlewares/rails_api_logger/middleware.rb +7 -6
- data/app/models/rails_api_logger/request_log.rb +7 -2
- data/bin/rails +6 -1
- data/gemfiles/rails_6.1.gemfile +12 -0
- data/gemfiles/rails_6.1.gemfile.lock +261 -0
- data/gemfiles/rails_7.0.gemfile +12 -0
- data/gemfiles/rails_7.0.gemfile.lock +260 -0
- data/gemfiles/rails_7.1.gemfile +11 -0
- data/gemfiles/rails_7.1.gemfile.lock +292 -0
- data/gemfiles/rails_7.2.gemfile +11 -0
- data/gemfiles/rails_7.2.gemfile.lock +292 -0
- data/gemfiles/rails_8.0.gemfile +12 -0
- data/gemfiles/rails_8.0.gemfile.lock +298 -0
- data/gemfiles/rails_webrick_8.0.gemfile +12 -0
- data/gemfiles/rails_webrick_8.0.gemfile.lock +297 -0
- data/lib/generators/templates/create_rails_api_logger_table.rb.tt +5 -4
- data/lib/rails_api_logger/engine.rb +2 -1
- data/lib/rails_api_logger/version.rb +1 -1
- data/lib/rails_api_logger.rb +2 -2
- data/rails_api_logger.gemspec +3 -3
- metadata +38 -24
|
@@ -0,0 +1,298 @@
|
|
|
1
|
+
PATH
|
|
2
|
+
remote: ..
|
|
3
|
+
specs:
|
|
4
|
+
rails_api_logger (0.10.1)
|
|
5
|
+
activejob (>= 6.0)
|
|
6
|
+
activerecord (>= 6.0)
|
|
7
|
+
nokogiri
|
|
8
|
+
railties (>= 6.0)
|
|
9
|
+
zeitwerk (>= 2.0.0)
|
|
10
|
+
|
|
11
|
+
GEM
|
|
12
|
+
remote: https://rubygems.org/
|
|
13
|
+
specs:
|
|
14
|
+
actioncable (8.0.2)
|
|
15
|
+
actionpack (= 8.0.2)
|
|
16
|
+
activesupport (= 8.0.2)
|
|
17
|
+
nio4r (~> 2.0)
|
|
18
|
+
websocket-driver (>= 0.6.1)
|
|
19
|
+
zeitwerk (~> 2.6)
|
|
20
|
+
actionmailbox (8.0.2)
|
|
21
|
+
actionpack (= 8.0.2)
|
|
22
|
+
activejob (= 8.0.2)
|
|
23
|
+
activerecord (= 8.0.2)
|
|
24
|
+
activestorage (= 8.0.2)
|
|
25
|
+
activesupport (= 8.0.2)
|
|
26
|
+
mail (>= 2.8.0)
|
|
27
|
+
actionmailer (8.0.2)
|
|
28
|
+
actionpack (= 8.0.2)
|
|
29
|
+
actionview (= 8.0.2)
|
|
30
|
+
activejob (= 8.0.2)
|
|
31
|
+
activesupport (= 8.0.2)
|
|
32
|
+
mail (>= 2.8.0)
|
|
33
|
+
rails-dom-testing (~> 2.2)
|
|
34
|
+
actionpack (8.0.2)
|
|
35
|
+
actionview (= 8.0.2)
|
|
36
|
+
activesupport (= 8.0.2)
|
|
37
|
+
nokogiri (>= 1.8.5)
|
|
38
|
+
rack (>= 2.2.4)
|
|
39
|
+
rack-session (>= 1.0.1)
|
|
40
|
+
rack-test (>= 0.6.3)
|
|
41
|
+
rails-dom-testing (~> 2.2)
|
|
42
|
+
rails-html-sanitizer (~> 1.6)
|
|
43
|
+
useragent (~> 0.16)
|
|
44
|
+
actiontext (8.0.2)
|
|
45
|
+
actionpack (= 8.0.2)
|
|
46
|
+
activerecord (= 8.0.2)
|
|
47
|
+
activestorage (= 8.0.2)
|
|
48
|
+
activesupport (= 8.0.2)
|
|
49
|
+
globalid (>= 0.6.0)
|
|
50
|
+
nokogiri (>= 1.8.5)
|
|
51
|
+
actionview (8.0.2)
|
|
52
|
+
activesupport (= 8.0.2)
|
|
53
|
+
builder (~> 3.1)
|
|
54
|
+
erubi (~> 1.11)
|
|
55
|
+
rails-dom-testing (~> 2.2)
|
|
56
|
+
rails-html-sanitizer (~> 1.6)
|
|
57
|
+
activejob (8.0.2)
|
|
58
|
+
activesupport (= 8.0.2)
|
|
59
|
+
globalid (>= 0.3.6)
|
|
60
|
+
activemodel (8.0.2)
|
|
61
|
+
activesupport (= 8.0.2)
|
|
62
|
+
activerecord (8.0.2)
|
|
63
|
+
activemodel (= 8.0.2)
|
|
64
|
+
activesupport (= 8.0.2)
|
|
65
|
+
timeout (>= 0.4.0)
|
|
66
|
+
activestorage (8.0.2)
|
|
67
|
+
actionpack (= 8.0.2)
|
|
68
|
+
activejob (= 8.0.2)
|
|
69
|
+
activerecord (= 8.0.2)
|
|
70
|
+
activesupport (= 8.0.2)
|
|
71
|
+
marcel (~> 1.0)
|
|
72
|
+
activesupport (8.0.2)
|
|
73
|
+
base64
|
|
74
|
+
benchmark (>= 0.3)
|
|
75
|
+
bigdecimal
|
|
76
|
+
concurrent-ruby (~> 1.0, >= 1.3.1)
|
|
77
|
+
connection_pool (>= 2.2.5)
|
|
78
|
+
drb
|
|
79
|
+
i18n (>= 1.6, < 2)
|
|
80
|
+
logger (>= 1.4.2)
|
|
81
|
+
minitest (>= 5.1)
|
|
82
|
+
securerandom (>= 0.3)
|
|
83
|
+
tzinfo (~> 2.0, >= 2.0.5)
|
|
84
|
+
uri (>= 0.13.1)
|
|
85
|
+
addressable (2.8.7)
|
|
86
|
+
public_suffix (>= 2.0.2, < 7.0)
|
|
87
|
+
ammeter (1.1.7)
|
|
88
|
+
activesupport (>= 3.0)
|
|
89
|
+
railties (>= 3.0)
|
|
90
|
+
rspec-rails (>= 2.2)
|
|
91
|
+
appraisal (2.5.0)
|
|
92
|
+
bundler
|
|
93
|
+
rake
|
|
94
|
+
thor (>= 0.14.0)
|
|
95
|
+
ast (2.4.2)
|
|
96
|
+
base64 (0.2.0)
|
|
97
|
+
benchmark (0.4.0)
|
|
98
|
+
bigdecimal (3.1.9)
|
|
99
|
+
builder (3.3.0)
|
|
100
|
+
byebug (12.0.0)
|
|
101
|
+
concurrent-ruby (1.3.5)
|
|
102
|
+
connection_pool (2.5.3)
|
|
103
|
+
crack (1.0.0)
|
|
104
|
+
bigdecimal
|
|
105
|
+
rexml
|
|
106
|
+
crass (1.0.6)
|
|
107
|
+
date (3.4.1)
|
|
108
|
+
diff-lcs (1.6.2)
|
|
109
|
+
drb (2.2.3)
|
|
110
|
+
erb (5.0.1)
|
|
111
|
+
erubi (1.13.1)
|
|
112
|
+
globalid (1.2.1)
|
|
113
|
+
activesupport (>= 6.1)
|
|
114
|
+
hashdiff (1.2.0)
|
|
115
|
+
i18n (1.14.7)
|
|
116
|
+
concurrent-ruby (~> 1.0)
|
|
117
|
+
io-console (0.8.0)
|
|
118
|
+
irb (1.15.2)
|
|
119
|
+
pp (>= 0.6.0)
|
|
120
|
+
rdoc (>= 4.0.0)
|
|
121
|
+
reline (>= 0.4.2)
|
|
122
|
+
json (2.10.1)
|
|
123
|
+
language_server-protocol (3.17.0.4)
|
|
124
|
+
lint_roller (1.1.0)
|
|
125
|
+
logger (1.7.0)
|
|
126
|
+
loofah (2.24.1)
|
|
127
|
+
crass (~> 1.0.2)
|
|
128
|
+
nokogiri (>= 1.12.0)
|
|
129
|
+
mail (2.8.1)
|
|
130
|
+
mini_mime (>= 0.1.1)
|
|
131
|
+
net-imap
|
|
132
|
+
net-pop
|
|
133
|
+
net-smtp
|
|
134
|
+
marcel (1.0.4)
|
|
135
|
+
mini_mime (1.1.5)
|
|
136
|
+
minitest (5.25.5)
|
|
137
|
+
mysql2 (0.5.6)
|
|
138
|
+
net-imap (0.5.8)
|
|
139
|
+
date
|
|
140
|
+
net-protocol
|
|
141
|
+
net-pop (0.1.2)
|
|
142
|
+
net-protocol
|
|
143
|
+
net-protocol (0.2.2)
|
|
144
|
+
timeout
|
|
145
|
+
net-smtp (0.5.1)
|
|
146
|
+
net-protocol
|
|
147
|
+
nio4r (2.7.4)
|
|
148
|
+
nokogiri (1.18.8-arm64-darwin)
|
|
149
|
+
racc (~> 1.4)
|
|
150
|
+
parallel (1.26.3)
|
|
151
|
+
parser (3.3.7.1)
|
|
152
|
+
ast (~> 2.4.1)
|
|
153
|
+
racc
|
|
154
|
+
pg (1.5.9)
|
|
155
|
+
pp (0.6.2)
|
|
156
|
+
prettyprint
|
|
157
|
+
prettyprint (0.2.0)
|
|
158
|
+
psych (5.2.6)
|
|
159
|
+
date
|
|
160
|
+
stringio
|
|
161
|
+
public_suffix (6.0.2)
|
|
162
|
+
puma (6.6.1)
|
|
163
|
+
nio4r (~> 2.0)
|
|
164
|
+
racc (1.8.1)
|
|
165
|
+
rack (3.1.15)
|
|
166
|
+
rack-session (2.1.1)
|
|
167
|
+
base64 (>= 0.1.0)
|
|
168
|
+
rack (>= 3.0.0)
|
|
169
|
+
rack-test (2.2.0)
|
|
170
|
+
rack (>= 1.3)
|
|
171
|
+
rackup (2.2.1)
|
|
172
|
+
rack (>= 3)
|
|
173
|
+
rails (8.0.2)
|
|
174
|
+
actioncable (= 8.0.2)
|
|
175
|
+
actionmailbox (= 8.0.2)
|
|
176
|
+
actionmailer (= 8.0.2)
|
|
177
|
+
actionpack (= 8.0.2)
|
|
178
|
+
actiontext (= 8.0.2)
|
|
179
|
+
actionview (= 8.0.2)
|
|
180
|
+
activejob (= 8.0.2)
|
|
181
|
+
activemodel (= 8.0.2)
|
|
182
|
+
activerecord (= 8.0.2)
|
|
183
|
+
activestorage (= 8.0.2)
|
|
184
|
+
activesupport (= 8.0.2)
|
|
185
|
+
bundler (>= 1.15.0)
|
|
186
|
+
railties (= 8.0.2)
|
|
187
|
+
rails-dom-testing (2.3.0)
|
|
188
|
+
activesupport (>= 5.0.0)
|
|
189
|
+
minitest
|
|
190
|
+
nokogiri (>= 1.6)
|
|
191
|
+
rails-html-sanitizer (1.6.2)
|
|
192
|
+
loofah (~> 2.21)
|
|
193
|
+
nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0)
|
|
194
|
+
railties (8.0.2)
|
|
195
|
+
actionpack (= 8.0.2)
|
|
196
|
+
activesupport (= 8.0.2)
|
|
197
|
+
irb (~> 1.13)
|
|
198
|
+
rackup (>= 1.0.0)
|
|
199
|
+
rake (>= 12.2)
|
|
200
|
+
thor (~> 1.0, >= 1.2.2)
|
|
201
|
+
zeitwerk (~> 2.6)
|
|
202
|
+
rainbow (3.1.1)
|
|
203
|
+
rake (12.3.3)
|
|
204
|
+
rdoc (6.14.0)
|
|
205
|
+
erb
|
|
206
|
+
psych (>= 4.0.0)
|
|
207
|
+
regexp_parser (2.10.0)
|
|
208
|
+
reline (0.6.1)
|
|
209
|
+
io-console (~> 0.5)
|
|
210
|
+
rexml (3.4.1)
|
|
211
|
+
rspec-core (3.13.4)
|
|
212
|
+
rspec-support (~> 3.13.0)
|
|
213
|
+
rspec-expectations (3.13.5)
|
|
214
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
|
215
|
+
rspec-support (~> 3.13.0)
|
|
216
|
+
rspec-mocks (3.13.5)
|
|
217
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
|
218
|
+
rspec-support (~> 3.13.0)
|
|
219
|
+
rspec-rails (7.1.1)
|
|
220
|
+
actionpack (>= 7.0)
|
|
221
|
+
activesupport (>= 7.0)
|
|
222
|
+
railties (>= 7.0)
|
|
223
|
+
rspec-core (~> 3.13)
|
|
224
|
+
rspec-expectations (~> 3.13)
|
|
225
|
+
rspec-mocks (~> 3.13)
|
|
226
|
+
rspec-support (~> 3.13)
|
|
227
|
+
rspec-support (3.13.4)
|
|
228
|
+
rubocop (1.71.2)
|
|
229
|
+
json (~> 2.3)
|
|
230
|
+
language_server-protocol (>= 3.17.0)
|
|
231
|
+
parallel (~> 1.10)
|
|
232
|
+
parser (>= 3.3.0.2)
|
|
233
|
+
rainbow (>= 2.2.2, < 4.0)
|
|
234
|
+
regexp_parser (>= 2.9.3, < 3.0)
|
|
235
|
+
rubocop-ast (>= 1.38.0, < 2.0)
|
|
236
|
+
ruby-progressbar (~> 1.7)
|
|
237
|
+
unicode-display_width (>= 2.4.0, < 4.0)
|
|
238
|
+
rubocop-ast (1.38.0)
|
|
239
|
+
parser (>= 3.3.1.0)
|
|
240
|
+
rubocop-performance (1.23.1)
|
|
241
|
+
rubocop (>= 1.48.1, < 2.0)
|
|
242
|
+
rubocop-ast (>= 1.31.1, < 2.0)
|
|
243
|
+
ruby-progressbar (1.13.0)
|
|
244
|
+
securerandom (0.4.1)
|
|
245
|
+
sqlite3 (2.1.1-arm64-darwin)
|
|
246
|
+
standard (1.45.0)
|
|
247
|
+
language_server-protocol (~> 3.17.0.2)
|
|
248
|
+
lint_roller (~> 1.0)
|
|
249
|
+
rubocop (~> 1.71.0)
|
|
250
|
+
standard-custom (~> 1.0.0)
|
|
251
|
+
standard-performance (~> 1.6)
|
|
252
|
+
standard-custom (1.0.2)
|
|
253
|
+
lint_roller (~> 1.0)
|
|
254
|
+
rubocop (~> 1.50)
|
|
255
|
+
standard-performance (1.6.0)
|
|
256
|
+
lint_roller (~> 1.1)
|
|
257
|
+
rubocop-performance (~> 1.23.0)
|
|
258
|
+
stringio (3.1.7)
|
|
259
|
+
thor (1.3.2)
|
|
260
|
+
timeout (0.4.3)
|
|
261
|
+
tzinfo (2.0.6)
|
|
262
|
+
concurrent-ruby (~> 1.0)
|
|
263
|
+
unicode-display_width (3.1.4)
|
|
264
|
+
unicode-emoji (~> 4.0, >= 4.0.4)
|
|
265
|
+
unicode-emoji (4.0.4)
|
|
266
|
+
uri (1.0.3)
|
|
267
|
+
useragent (0.16.11)
|
|
268
|
+
webmock (3.25.1)
|
|
269
|
+
addressable (>= 2.8.0)
|
|
270
|
+
crack (>= 0.3.2)
|
|
271
|
+
hashdiff (>= 0.4.0, < 2.0.0)
|
|
272
|
+
websocket-driver (0.8.0)
|
|
273
|
+
base64
|
|
274
|
+
websocket-extensions (>= 0.1.0)
|
|
275
|
+
websocket-extensions (0.1.5)
|
|
276
|
+
zeitwerk (2.7.3)
|
|
277
|
+
|
|
278
|
+
PLATFORMS
|
|
279
|
+
arm64-darwin
|
|
280
|
+
|
|
281
|
+
DEPENDENCIES
|
|
282
|
+
ammeter (~> 1.1)
|
|
283
|
+
appraisal (~> 2.5)
|
|
284
|
+
byebug
|
|
285
|
+
mysql2 (~> 0.5.6)
|
|
286
|
+
pg (~> 1.5.4)
|
|
287
|
+
puma
|
|
288
|
+
rack
|
|
289
|
+
rails (~> 8.0.0)
|
|
290
|
+
rails_api_logger!
|
|
291
|
+
rake (~> 12.0)
|
|
292
|
+
rspec-rails (~> 7.1.0)
|
|
293
|
+
sqlite3 (~> 2.1.0)
|
|
294
|
+
standard (~> 1.31)
|
|
295
|
+
webmock (~> 3.25.0)
|
|
296
|
+
|
|
297
|
+
BUNDLED WITH
|
|
298
|
+
2.5.4
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# This file was generated by Appraisal
|
|
2
|
+
|
|
3
|
+
source "https://rubygems.org"
|
|
4
|
+
|
|
5
|
+
gem "rails", "~> 8.0.0"
|
|
6
|
+
gem "rspec-rails", "~> 7.1.0"
|
|
7
|
+
gem "sqlite3", "~> 2.1.0"
|
|
8
|
+
gem "ammeter", "~> 1.1"
|
|
9
|
+
gem "webrick", "~> 1.9.1"
|
|
10
|
+
gem "webmock", "~> 3.25.0"
|
|
11
|
+
|
|
12
|
+
gemspec path: "../"
|
|
@@ -0,0 +1,297 @@
|
|
|
1
|
+
PATH
|
|
2
|
+
remote: ..
|
|
3
|
+
specs:
|
|
4
|
+
rails_api_logger (0.10.1)
|
|
5
|
+
activejob (>= 6.0)
|
|
6
|
+
activerecord (>= 6.0)
|
|
7
|
+
nokogiri
|
|
8
|
+
railties (>= 6.0)
|
|
9
|
+
zeitwerk (>= 2.0.0)
|
|
10
|
+
|
|
11
|
+
GEM
|
|
12
|
+
remote: https://rubygems.org/
|
|
13
|
+
specs:
|
|
14
|
+
actioncable (8.0.2)
|
|
15
|
+
actionpack (= 8.0.2)
|
|
16
|
+
activesupport (= 8.0.2)
|
|
17
|
+
nio4r (~> 2.0)
|
|
18
|
+
websocket-driver (>= 0.6.1)
|
|
19
|
+
zeitwerk (~> 2.6)
|
|
20
|
+
actionmailbox (8.0.2)
|
|
21
|
+
actionpack (= 8.0.2)
|
|
22
|
+
activejob (= 8.0.2)
|
|
23
|
+
activerecord (= 8.0.2)
|
|
24
|
+
activestorage (= 8.0.2)
|
|
25
|
+
activesupport (= 8.0.2)
|
|
26
|
+
mail (>= 2.8.0)
|
|
27
|
+
actionmailer (8.0.2)
|
|
28
|
+
actionpack (= 8.0.2)
|
|
29
|
+
actionview (= 8.0.2)
|
|
30
|
+
activejob (= 8.0.2)
|
|
31
|
+
activesupport (= 8.0.2)
|
|
32
|
+
mail (>= 2.8.0)
|
|
33
|
+
rails-dom-testing (~> 2.2)
|
|
34
|
+
actionpack (8.0.2)
|
|
35
|
+
actionview (= 8.0.2)
|
|
36
|
+
activesupport (= 8.0.2)
|
|
37
|
+
nokogiri (>= 1.8.5)
|
|
38
|
+
rack (>= 2.2.4)
|
|
39
|
+
rack-session (>= 1.0.1)
|
|
40
|
+
rack-test (>= 0.6.3)
|
|
41
|
+
rails-dom-testing (~> 2.2)
|
|
42
|
+
rails-html-sanitizer (~> 1.6)
|
|
43
|
+
useragent (~> 0.16)
|
|
44
|
+
actiontext (8.0.2)
|
|
45
|
+
actionpack (= 8.0.2)
|
|
46
|
+
activerecord (= 8.0.2)
|
|
47
|
+
activestorage (= 8.0.2)
|
|
48
|
+
activesupport (= 8.0.2)
|
|
49
|
+
globalid (>= 0.6.0)
|
|
50
|
+
nokogiri (>= 1.8.5)
|
|
51
|
+
actionview (8.0.2)
|
|
52
|
+
activesupport (= 8.0.2)
|
|
53
|
+
builder (~> 3.1)
|
|
54
|
+
erubi (~> 1.11)
|
|
55
|
+
rails-dom-testing (~> 2.2)
|
|
56
|
+
rails-html-sanitizer (~> 1.6)
|
|
57
|
+
activejob (8.0.2)
|
|
58
|
+
activesupport (= 8.0.2)
|
|
59
|
+
globalid (>= 0.3.6)
|
|
60
|
+
activemodel (8.0.2)
|
|
61
|
+
activesupport (= 8.0.2)
|
|
62
|
+
activerecord (8.0.2)
|
|
63
|
+
activemodel (= 8.0.2)
|
|
64
|
+
activesupport (= 8.0.2)
|
|
65
|
+
timeout (>= 0.4.0)
|
|
66
|
+
activestorage (8.0.2)
|
|
67
|
+
actionpack (= 8.0.2)
|
|
68
|
+
activejob (= 8.0.2)
|
|
69
|
+
activerecord (= 8.0.2)
|
|
70
|
+
activesupport (= 8.0.2)
|
|
71
|
+
marcel (~> 1.0)
|
|
72
|
+
activesupport (8.0.2)
|
|
73
|
+
base64
|
|
74
|
+
benchmark (>= 0.3)
|
|
75
|
+
bigdecimal
|
|
76
|
+
concurrent-ruby (~> 1.0, >= 1.3.1)
|
|
77
|
+
connection_pool (>= 2.2.5)
|
|
78
|
+
drb
|
|
79
|
+
i18n (>= 1.6, < 2)
|
|
80
|
+
logger (>= 1.4.2)
|
|
81
|
+
minitest (>= 5.1)
|
|
82
|
+
securerandom (>= 0.3)
|
|
83
|
+
tzinfo (~> 2.0, >= 2.0.5)
|
|
84
|
+
uri (>= 0.13.1)
|
|
85
|
+
addressable (2.8.7)
|
|
86
|
+
public_suffix (>= 2.0.2, < 7.0)
|
|
87
|
+
ammeter (1.1.7)
|
|
88
|
+
activesupport (>= 3.0)
|
|
89
|
+
railties (>= 3.0)
|
|
90
|
+
rspec-rails (>= 2.2)
|
|
91
|
+
appraisal (2.5.0)
|
|
92
|
+
bundler
|
|
93
|
+
rake
|
|
94
|
+
thor (>= 0.14.0)
|
|
95
|
+
ast (2.4.2)
|
|
96
|
+
base64 (0.2.0)
|
|
97
|
+
benchmark (0.4.0)
|
|
98
|
+
bigdecimal (3.1.9)
|
|
99
|
+
builder (3.3.0)
|
|
100
|
+
byebug (12.0.0)
|
|
101
|
+
concurrent-ruby (1.3.5)
|
|
102
|
+
connection_pool (2.5.3)
|
|
103
|
+
crack (1.0.0)
|
|
104
|
+
bigdecimal
|
|
105
|
+
rexml
|
|
106
|
+
crass (1.0.6)
|
|
107
|
+
date (3.4.1)
|
|
108
|
+
diff-lcs (1.6.2)
|
|
109
|
+
drb (2.2.3)
|
|
110
|
+
erb (5.0.1)
|
|
111
|
+
erubi (1.13.1)
|
|
112
|
+
globalid (1.2.1)
|
|
113
|
+
activesupport (>= 6.1)
|
|
114
|
+
hashdiff (1.2.0)
|
|
115
|
+
i18n (1.14.7)
|
|
116
|
+
concurrent-ruby (~> 1.0)
|
|
117
|
+
io-console (0.8.0)
|
|
118
|
+
irb (1.15.2)
|
|
119
|
+
pp (>= 0.6.0)
|
|
120
|
+
rdoc (>= 4.0.0)
|
|
121
|
+
reline (>= 0.4.2)
|
|
122
|
+
json (2.10.1)
|
|
123
|
+
language_server-protocol (3.17.0.4)
|
|
124
|
+
lint_roller (1.1.0)
|
|
125
|
+
logger (1.7.0)
|
|
126
|
+
loofah (2.24.1)
|
|
127
|
+
crass (~> 1.0.2)
|
|
128
|
+
nokogiri (>= 1.12.0)
|
|
129
|
+
mail (2.8.1)
|
|
130
|
+
mini_mime (>= 0.1.1)
|
|
131
|
+
net-imap
|
|
132
|
+
net-pop
|
|
133
|
+
net-smtp
|
|
134
|
+
marcel (1.0.4)
|
|
135
|
+
mini_mime (1.1.5)
|
|
136
|
+
minitest (5.25.5)
|
|
137
|
+
mysql2 (0.5.6)
|
|
138
|
+
net-imap (0.5.8)
|
|
139
|
+
date
|
|
140
|
+
net-protocol
|
|
141
|
+
net-pop (0.1.2)
|
|
142
|
+
net-protocol
|
|
143
|
+
net-protocol (0.2.2)
|
|
144
|
+
timeout
|
|
145
|
+
net-smtp (0.5.1)
|
|
146
|
+
net-protocol
|
|
147
|
+
nio4r (2.7.4)
|
|
148
|
+
nokogiri (1.18.8-arm64-darwin)
|
|
149
|
+
racc (~> 1.4)
|
|
150
|
+
parallel (1.26.3)
|
|
151
|
+
parser (3.3.7.1)
|
|
152
|
+
ast (~> 2.4.1)
|
|
153
|
+
racc
|
|
154
|
+
pg (1.5.9)
|
|
155
|
+
pp (0.6.2)
|
|
156
|
+
prettyprint
|
|
157
|
+
prettyprint (0.2.0)
|
|
158
|
+
psych (5.2.6)
|
|
159
|
+
date
|
|
160
|
+
stringio
|
|
161
|
+
public_suffix (6.0.2)
|
|
162
|
+
racc (1.8.1)
|
|
163
|
+
rack (3.1.15)
|
|
164
|
+
rack-session (2.1.1)
|
|
165
|
+
base64 (>= 0.1.0)
|
|
166
|
+
rack (>= 3.0.0)
|
|
167
|
+
rack-test (2.2.0)
|
|
168
|
+
rack (>= 1.3)
|
|
169
|
+
rackup (2.2.1)
|
|
170
|
+
rack (>= 3)
|
|
171
|
+
rails (8.0.2)
|
|
172
|
+
actioncable (= 8.0.2)
|
|
173
|
+
actionmailbox (= 8.0.2)
|
|
174
|
+
actionmailer (= 8.0.2)
|
|
175
|
+
actionpack (= 8.0.2)
|
|
176
|
+
actiontext (= 8.0.2)
|
|
177
|
+
actionview (= 8.0.2)
|
|
178
|
+
activejob (= 8.0.2)
|
|
179
|
+
activemodel (= 8.0.2)
|
|
180
|
+
activerecord (= 8.0.2)
|
|
181
|
+
activestorage (= 8.0.2)
|
|
182
|
+
activesupport (= 8.0.2)
|
|
183
|
+
bundler (>= 1.15.0)
|
|
184
|
+
railties (= 8.0.2)
|
|
185
|
+
rails-dom-testing (2.3.0)
|
|
186
|
+
activesupport (>= 5.0.0)
|
|
187
|
+
minitest
|
|
188
|
+
nokogiri (>= 1.6)
|
|
189
|
+
rails-html-sanitizer (1.6.2)
|
|
190
|
+
loofah (~> 2.21)
|
|
191
|
+
nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0)
|
|
192
|
+
railties (8.0.2)
|
|
193
|
+
actionpack (= 8.0.2)
|
|
194
|
+
activesupport (= 8.0.2)
|
|
195
|
+
irb (~> 1.13)
|
|
196
|
+
rackup (>= 1.0.0)
|
|
197
|
+
rake (>= 12.2)
|
|
198
|
+
thor (~> 1.0, >= 1.2.2)
|
|
199
|
+
zeitwerk (~> 2.6)
|
|
200
|
+
rainbow (3.1.1)
|
|
201
|
+
rake (12.3.3)
|
|
202
|
+
rdoc (6.14.0)
|
|
203
|
+
erb
|
|
204
|
+
psych (>= 4.0.0)
|
|
205
|
+
regexp_parser (2.10.0)
|
|
206
|
+
reline (0.6.1)
|
|
207
|
+
io-console (~> 0.5)
|
|
208
|
+
rexml (3.4.1)
|
|
209
|
+
rspec-core (3.13.4)
|
|
210
|
+
rspec-support (~> 3.13.0)
|
|
211
|
+
rspec-expectations (3.13.5)
|
|
212
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
|
213
|
+
rspec-support (~> 3.13.0)
|
|
214
|
+
rspec-mocks (3.13.5)
|
|
215
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
|
216
|
+
rspec-support (~> 3.13.0)
|
|
217
|
+
rspec-rails (7.1.1)
|
|
218
|
+
actionpack (>= 7.0)
|
|
219
|
+
activesupport (>= 7.0)
|
|
220
|
+
railties (>= 7.0)
|
|
221
|
+
rspec-core (~> 3.13)
|
|
222
|
+
rspec-expectations (~> 3.13)
|
|
223
|
+
rspec-mocks (~> 3.13)
|
|
224
|
+
rspec-support (~> 3.13)
|
|
225
|
+
rspec-support (3.13.4)
|
|
226
|
+
rubocop (1.71.2)
|
|
227
|
+
json (~> 2.3)
|
|
228
|
+
language_server-protocol (>= 3.17.0)
|
|
229
|
+
parallel (~> 1.10)
|
|
230
|
+
parser (>= 3.3.0.2)
|
|
231
|
+
rainbow (>= 2.2.2, < 4.0)
|
|
232
|
+
regexp_parser (>= 2.9.3, < 3.0)
|
|
233
|
+
rubocop-ast (>= 1.38.0, < 2.0)
|
|
234
|
+
ruby-progressbar (~> 1.7)
|
|
235
|
+
unicode-display_width (>= 2.4.0, < 4.0)
|
|
236
|
+
rubocop-ast (1.38.0)
|
|
237
|
+
parser (>= 3.3.1.0)
|
|
238
|
+
rubocop-performance (1.23.1)
|
|
239
|
+
rubocop (>= 1.48.1, < 2.0)
|
|
240
|
+
rubocop-ast (>= 1.31.1, < 2.0)
|
|
241
|
+
ruby-progressbar (1.13.0)
|
|
242
|
+
securerandom (0.4.1)
|
|
243
|
+
sqlite3 (2.1.1-arm64-darwin)
|
|
244
|
+
standard (1.45.0)
|
|
245
|
+
language_server-protocol (~> 3.17.0.2)
|
|
246
|
+
lint_roller (~> 1.0)
|
|
247
|
+
rubocop (~> 1.71.0)
|
|
248
|
+
standard-custom (~> 1.0.0)
|
|
249
|
+
standard-performance (~> 1.6)
|
|
250
|
+
standard-custom (1.0.2)
|
|
251
|
+
lint_roller (~> 1.0)
|
|
252
|
+
rubocop (~> 1.50)
|
|
253
|
+
standard-performance (1.6.0)
|
|
254
|
+
lint_roller (~> 1.1)
|
|
255
|
+
rubocop-performance (~> 1.23.0)
|
|
256
|
+
stringio (3.1.7)
|
|
257
|
+
thor (1.3.2)
|
|
258
|
+
timeout (0.4.3)
|
|
259
|
+
tzinfo (2.0.6)
|
|
260
|
+
concurrent-ruby (~> 1.0)
|
|
261
|
+
unicode-display_width (3.1.4)
|
|
262
|
+
unicode-emoji (~> 4.0, >= 4.0.4)
|
|
263
|
+
unicode-emoji (4.0.4)
|
|
264
|
+
uri (1.0.3)
|
|
265
|
+
useragent (0.16.11)
|
|
266
|
+
webmock (3.25.1)
|
|
267
|
+
addressable (>= 2.8.0)
|
|
268
|
+
crack (>= 0.3.2)
|
|
269
|
+
hashdiff (>= 0.4.0, < 2.0.0)
|
|
270
|
+
webrick (1.9.1)
|
|
271
|
+
websocket-driver (0.8.0)
|
|
272
|
+
base64
|
|
273
|
+
websocket-extensions (>= 0.1.0)
|
|
274
|
+
websocket-extensions (0.1.5)
|
|
275
|
+
zeitwerk (2.7.3)
|
|
276
|
+
|
|
277
|
+
PLATFORMS
|
|
278
|
+
arm64-darwin
|
|
279
|
+
|
|
280
|
+
DEPENDENCIES
|
|
281
|
+
ammeter (~> 1.1)
|
|
282
|
+
appraisal (~> 2.5)
|
|
283
|
+
byebug
|
|
284
|
+
mysql2 (~> 0.5.6)
|
|
285
|
+
pg (~> 1.5.4)
|
|
286
|
+
rack
|
|
287
|
+
rails (~> 8.0.0)
|
|
288
|
+
rails_api_logger!
|
|
289
|
+
rake (~> 12.0)
|
|
290
|
+
rspec-rails (~> 7.1.0)
|
|
291
|
+
sqlite3 (~> 2.1.0)
|
|
292
|
+
standard (~> 1.31)
|
|
293
|
+
webmock (~> 3.25.0)
|
|
294
|
+
webrick (~> 1.9.1)
|
|
295
|
+
|
|
296
|
+
BUNDLED WITH
|
|
297
|
+
2.5.4
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
class CreateRailsApiLoggerTable < ActiveRecord::Migration[<%= ActiveRecord::Migration.current_version %>]
|
|
2
|
+
<% pk_type = Rails.application.config.generators.options[:active_record].dig(:primary_key_type) %>
|
|
2
3
|
def change
|
|
3
|
-
create_table :inbound_request_logs do |t|
|
|
4
|
+
create_table :inbound_request_logs<%= ", id: :#{pk_type}" if pk_type %> do |t|
|
|
4
5
|
t.string :method
|
|
5
6
|
t.string :path
|
|
6
7
|
t.text :request_body
|
|
@@ -8,11 +9,11 @@ class CreateRailsApiLoggerTable < ActiveRecord::Migration[<%= ActiveRecord::Migr
|
|
|
8
9
|
t.integer :response_code
|
|
9
10
|
t.timestamp :started_at
|
|
10
11
|
t.timestamp :ended_at
|
|
11
|
-
t.references :loggable, index: true, polymorphic: true
|
|
12
|
+
t.references :loggable, index: true, polymorphic: true<%= ", type: :#{pk_type}" if pk_type %>
|
|
12
13
|
t.timestamps null: false
|
|
13
14
|
end
|
|
14
15
|
|
|
15
|
-
create_table :outbound_request_logs do |t|
|
|
16
|
+
create_table :outbound_request_logs<%= ", id: :#{pk_type}" if pk_type %> do |t|
|
|
16
17
|
t.string :method
|
|
17
18
|
t.string :path
|
|
18
19
|
t.text :request_body
|
|
@@ -20,7 +21,7 @@ class CreateRailsApiLoggerTable < ActiveRecord::Migration[<%= ActiveRecord::Migr
|
|
|
20
21
|
t.integer :response_code
|
|
21
22
|
t.timestamp :started_at
|
|
22
23
|
t.timestamp :ended_at
|
|
23
|
-
t.references :loggable, index: true, polymorphic: true
|
|
24
|
+
t.references :loggable, index: true, polymorphic: true<%= ", type: :#{pk_type}" if pk_type %>
|
|
24
25
|
t.timestamps null: false
|
|
25
26
|
end
|
|
26
27
|
end
|
|
@@ -15,7 +15,8 @@ module RailsApiLogger
|
|
|
15
15
|
end
|
|
16
16
|
|
|
17
17
|
ActiveSupport.on_load(:action_controller) do
|
|
18
|
-
|
|
18
|
+
require_dependency "inbound_requests_logger"
|
|
19
|
+
ActionController::Base.include ::InboundRequestsLogger
|
|
19
20
|
end
|
|
20
21
|
|
|
21
22
|
ActiveSupport.on_load(:active_record) do
|
data/lib/rails_api_logger.rb
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
require "rails_api_logger/version"
|
|
2
|
-
require "rails_api_logger/engine"
|
|
3
1
|
require_relative "../app/models/rails_api_logger/loggable"
|
|
4
2
|
require_relative "../app/middlewares/rails_api_logger/middleware"
|
|
3
|
+
require "rails_api_logger/version"
|
|
4
|
+
require "rails_api_logger/engine"
|
|
5
5
|
|
|
6
6
|
require "rails"
|
|
7
7
|
require "nokogiri"
|
data/rails_api_logger.gemspec
CHANGED
|
@@ -25,7 +25,7 @@ Gem::Specification.new do |spec|
|
|
|
25
25
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
|
26
26
|
spec.require_paths = ["lib"]
|
|
27
27
|
|
|
28
|
-
rails_version = ">=
|
|
28
|
+
rails_version = ">= 6.0"
|
|
29
29
|
spec.add_dependency "activerecord", rails_version
|
|
30
30
|
spec.add_dependency "activejob", rails_version
|
|
31
31
|
spec.add_dependency "railties", rails_version
|
|
@@ -37,7 +37,7 @@ Gem::Specification.new do |spec|
|
|
|
37
37
|
spec.add_development_dependency "mysql2", "~> 0.5.6"
|
|
38
38
|
spec.add_development_dependency "standard", "~> 1.31"
|
|
39
39
|
spec.add_development_dependency "rake", "~> 12.0"
|
|
40
|
-
spec.add_development_dependency "rspec", "~> 3.0"
|
|
41
|
-
spec.add_development_dependency "rspec-rails", "~> 7.1.0"
|
|
42
40
|
spec.add_development_dependency "rack"
|
|
41
|
+
spec.add_development_dependency "byebug"
|
|
42
|
+
spec.add_development_dependency "appraisal", "~> 2.5"
|
|
43
43
|
end
|