rails_api_logger 0.11.1 → 1.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.
@@ -0,0 +1,460 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ rails_api_logger (1.0.0)
5
+ activejob (>= 8.0)
6
+ activerecord (>= 8.0)
7
+ nokogiri
8
+ railties (>= 8.0)
9
+ zeitwerk (>= 2.0.0)
10
+
11
+ GEM
12
+ remote: https://rubygems.org/
13
+ specs:
14
+ action_text-trix (2.1.19)
15
+ railties
16
+ actioncable (8.1.4)
17
+ actionpack (= 8.1.4)
18
+ activesupport (= 8.1.4)
19
+ nio4r (~> 2.0)
20
+ websocket-driver (>= 0.6.1)
21
+ zeitwerk (~> 2.6)
22
+ actionmailbox (8.1.4)
23
+ actionpack (= 8.1.4)
24
+ activejob (= 8.1.4)
25
+ activerecord (= 8.1.4)
26
+ activestorage (= 8.1.4)
27
+ activesupport (= 8.1.4)
28
+ mail (>= 2.8.0)
29
+ actionmailer (8.1.4)
30
+ actionpack (= 8.1.4)
31
+ actionview (= 8.1.4)
32
+ activejob (= 8.1.4)
33
+ activesupport (= 8.1.4)
34
+ mail (>= 2.8.0)
35
+ rails-dom-testing (~> 2.2)
36
+ actionpack (8.1.4)
37
+ actionview (= 8.1.4)
38
+ activesupport (= 8.1.4)
39
+ nokogiri (>= 1.8.5)
40
+ rack (>= 2.2.4)
41
+ rack-session (>= 1.0.1)
42
+ rack-test (>= 0.6.3)
43
+ rails-dom-testing (~> 2.2)
44
+ rails-html-sanitizer (~> 1.6)
45
+ useragent (~> 0.16)
46
+ actiontext (8.1.4)
47
+ action_text-trix (~> 2.1.15)
48
+ actionpack (= 8.1.4)
49
+ activerecord (= 8.1.4)
50
+ activestorage (= 8.1.4)
51
+ activesupport (= 8.1.4)
52
+ globalid (>= 0.6.0)
53
+ nokogiri (>= 1.8.5)
54
+ actionview (8.1.4)
55
+ activesupport (= 8.1.4)
56
+ builder (~> 3.1)
57
+ erubi (~> 1.11)
58
+ rails-dom-testing (~> 2.2)
59
+ rails-html-sanitizer (~> 1.6)
60
+ activejob (8.1.4)
61
+ activesupport (= 8.1.4)
62
+ globalid (>= 0.3.6)
63
+ activemodel (8.1.4)
64
+ activesupport (= 8.1.4)
65
+ activerecord (8.1.4)
66
+ activemodel (= 8.1.4)
67
+ activesupport (= 8.1.4)
68
+ timeout (>= 0.4.0)
69
+ activestorage (8.1.4)
70
+ actionpack (= 8.1.4)
71
+ activejob (= 8.1.4)
72
+ activerecord (= 8.1.4)
73
+ activesupport (= 8.1.4)
74
+ marcel (~> 1.0)
75
+ activesupport (8.1.4)
76
+ base64
77
+ bigdecimal
78
+ concurrent-ruby (~> 1.0, >= 1.3.1)
79
+ connection_pool (>= 2.2.5)
80
+ drb
81
+ i18n (>= 1.6, < 2)
82
+ json
83
+ logger (>= 1.4.2)
84
+ minitest (>= 5.1)
85
+ securerandom (>= 0.3)
86
+ tzinfo (~> 2.0, >= 2.0.5)
87
+ uri (>= 0.13.1)
88
+ addressable (2.9.2)
89
+ public_suffix (>= 2.0.2, < 8.0)
90
+ ammeter (1.1.7)
91
+ activesupport (>= 3.0)
92
+ railties (>= 3.0)
93
+ rspec-rails (>= 2.2)
94
+ appraisal (2.5.0)
95
+ bundler
96
+ rake
97
+ thor (>= 0.14.0)
98
+ ast (2.4.3)
99
+ base64 (0.3.0)
100
+ bigdecimal (4.1.3)
101
+ builder (3.3.0)
102
+ byebug (13.0.0)
103
+ reline (>= 0.6.0)
104
+ concurrent-ruby (1.3.8)
105
+ connection_pool (3.0.2)
106
+ crack (1.0.1)
107
+ bigdecimal
108
+ rexml
109
+ crass (1.0.8)
110
+ date (3.6.0)
111
+ diff-lcs (1.6.2)
112
+ drb (2.2.3)
113
+ erb (6.0.7)
114
+ erubi (1.13.1)
115
+ globalid (1.4.0)
116
+ activesupport (>= 6.1)
117
+ hashdiff (1.2.1)
118
+ i18n (1.15.2)
119
+ concurrent-ruby (~> 1.0)
120
+ io-console (0.9.5)
121
+ irb (1.18.0)
122
+ pp (>= 0.6.0)
123
+ prism (>= 1.3.0)
124
+ rdoc (>= 4.0.0)
125
+ reline (>= 0.4.2)
126
+ json (3.1.0)
127
+ language_server-protocol (3.17.0.6)
128
+ lint_roller (1.1.0)
129
+ logger (1.7.0)
130
+ loofah (2.25.3)
131
+ crass (~> 1.0.2)
132
+ nokogiri (>= 1.19.5)
133
+ mail (2.9.1)
134
+ logger
135
+ mini_mime (>= 0.1.1)
136
+ net-imap
137
+ net-pop
138
+ net-smtp
139
+ marcel (1.2.1)
140
+ mini_mime (1.1.5)
141
+ minitest (6.0.6)
142
+ drb (~> 2.0)
143
+ prism (~> 1.5)
144
+ mysql2 (0.5.7)
145
+ bigdecimal
146
+ net-imap (0.6.8)
147
+ date
148
+ net-protocol
149
+ net-pop (0.1.2)
150
+ net-protocol
151
+ net-protocol (0.4.0)
152
+ timeout
153
+ net-smtp (0.5.2)
154
+ net-protocol
155
+ nio4r (2.7.5)
156
+ nokogiri (1.19.6-aarch64-linux-gnu)
157
+ racc (~> 1.4)
158
+ nokogiri (1.19.6-aarch64-linux-musl)
159
+ racc (~> 1.4)
160
+ nokogiri (1.19.6-arm-linux-gnu)
161
+ racc (~> 1.4)
162
+ nokogiri (1.19.6-arm-linux-musl)
163
+ racc (~> 1.4)
164
+ nokogiri (1.19.6-arm64-darwin)
165
+ racc (~> 1.4)
166
+ nokogiri (1.19.6-x86_64-darwin)
167
+ racc (~> 1.4)
168
+ nokogiri (1.19.6-x86_64-linux-gnu)
169
+ racc (~> 1.4)
170
+ nokogiri (1.19.6-x86_64-linux-musl)
171
+ racc (~> 1.4)
172
+ parallel (1.28.0)
173
+ parser (3.3.13.0)
174
+ ast (~> 2.4.1)
175
+ racc
176
+ pg (1.5.9)
177
+ pp (0.6.4)
178
+ prettyprint
179
+ prettyprint (0.2.1)
180
+ prism (1.9.0)
181
+ public_suffix (7.0.5)
182
+ puma (8.0.2)
183
+ nio4r (~> 2.0)
184
+ racc (1.8.1)
185
+ rack (3.2.8)
186
+ rack-session (2.1.2)
187
+ base64 (>= 0.1.0)
188
+ rack (>= 3.0.0)
189
+ rack-test (2.3.0)
190
+ rack (>= 1.3)
191
+ rackup (2.3.1)
192
+ rack (>= 3)
193
+ rails (8.1.4)
194
+ actioncable (= 8.1.4)
195
+ actionmailbox (= 8.1.4)
196
+ actionmailer (= 8.1.4)
197
+ actionpack (= 8.1.4)
198
+ actiontext (= 8.1.4)
199
+ actionview (= 8.1.4)
200
+ activejob (= 8.1.4)
201
+ activemodel (= 8.1.4)
202
+ activerecord (= 8.1.4)
203
+ activestorage (= 8.1.4)
204
+ activesupport (= 8.1.4)
205
+ bundler (>= 1.15.0)
206
+ railties (= 8.1.4)
207
+ rails-dom-testing (2.3.0)
208
+ activesupport (>= 5.0.0)
209
+ minitest
210
+ nokogiri (>= 1.6)
211
+ rails-html-sanitizer (1.7.2)
212
+ loofah (~> 2.25, >= 2.25.3)
213
+ 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)
214
+ railties (8.1.4)
215
+ actionpack (= 8.1.4)
216
+ activesupport (= 8.1.4)
217
+ irb (~> 1.13)
218
+ rackup (>= 1.0.0)
219
+ rake (>= 12.2)
220
+ thor (~> 1.0, >= 1.2.2)
221
+ tsort (>= 0.2)
222
+ zeitwerk (~> 2.6)
223
+ rainbow (3.1.1)
224
+ rake (12.3.3)
225
+ rbs (4.1.3)
226
+ logger
227
+ prism (>= 1.6.0)
228
+ tsort
229
+ rdoc (8.1.0)
230
+ erb
231
+ prism (>= 1.6.0)
232
+ rbs (>= 4.0.0)
233
+ tsort
234
+ regexp_parser (2.13.1)
235
+ reline (0.7.0)
236
+ io-console (~> 0.5)
237
+ rexml (3.4.4)
238
+ rspec-core (3.13.6)
239
+ rspec-support (~> 3.13.0)
240
+ rspec-expectations (3.13.5)
241
+ diff-lcs (>= 1.2.0, < 2.0)
242
+ rspec-support (~> 3.13.0)
243
+ rspec-mocks (3.13.8)
244
+ diff-lcs (>= 1.2.0, < 2.0)
245
+ rspec-support (~> 3.13.0)
246
+ rspec-rails (8.0.4)
247
+ actionpack (>= 7.2)
248
+ activesupport (>= 7.2)
249
+ railties (>= 7.2)
250
+ rspec-core (>= 3.13.0, < 5.0.0)
251
+ rspec-expectations (>= 3.13.0, < 5.0.0)
252
+ rspec-mocks (>= 3.13.0, < 5.0.0)
253
+ rspec-support (>= 3.13.0, < 5.0.0)
254
+ rspec-support (3.13.7)
255
+ rubocop (1.91.0)
256
+ json (>= 2.3)
257
+ language_server-protocol (~> 3.17.0.2)
258
+ lint_roller (~> 1.1.0)
259
+ parallel (>= 1.10)
260
+ parser (>= 3.3.0.2)
261
+ rainbow (>= 2.2.2, < 4.0)
262
+ regexp_parser (>= 2.9.3, < 3.0)
263
+ rubocop-ast (>= 1.49.0, < 2.0)
264
+ ruby-progressbar (~> 1.7)
265
+ unicode-display_width (>= 2.4.0, < 4.0)
266
+ rubocop-ast (1.50.0)
267
+ parser (>= 3.3.7.2)
268
+ prism (~> 1.7)
269
+ rubocop-performance (1.26.1)
270
+ lint_roller (~> 1.1)
271
+ rubocop (>= 1.75.0, < 2.0)
272
+ rubocop-ast (>= 1.47.1, < 2.0)
273
+ ruby-progressbar (1.13.0)
274
+ securerandom (0.4.1)
275
+ sqlite3 (2.1.1-aarch64-linux-gnu)
276
+ sqlite3 (2.1.1-aarch64-linux-musl)
277
+ sqlite3 (2.1.1-arm-linux-gnu)
278
+ sqlite3 (2.1.1-arm-linux-musl)
279
+ sqlite3 (2.1.1-arm64-darwin)
280
+ sqlite3 (2.1.1-x86_64-darwin)
281
+ sqlite3 (2.1.1-x86_64-linux-gnu)
282
+ sqlite3 (2.1.1-x86_64-linux-musl)
283
+ standard (1.57.0)
284
+ language_server-protocol (~> 3.17.0.2)
285
+ lint_roller (~> 1.0)
286
+ rubocop (~> 1.91.0)
287
+ standard-custom (~> 1.0.0)
288
+ standard-performance (~> 1.8)
289
+ standard-custom (1.0.2)
290
+ lint_roller (~> 1.0)
291
+ rubocop (~> 1.50)
292
+ standard-performance (1.9.0)
293
+ lint_roller (~> 1.1)
294
+ rubocop-performance (~> 1.26.0)
295
+ thor (1.5.0)
296
+ timeout (0.6.1)
297
+ tsort (0.2.0)
298
+ tzinfo (2.0.6)
299
+ concurrent-ruby (~> 1.0)
300
+ unicode-display_width (3.3.0)
301
+ unicode-emoji (~> 4.3)
302
+ unicode-emoji (4.3.0)
303
+ uri (1.1.2)
304
+ useragent (0.16.11)
305
+ webmock (3.25.2)
306
+ addressable (>= 2.8.0)
307
+ crack (>= 0.3.2)
308
+ hashdiff (>= 0.4.0, < 2.0.0)
309
+ websocket-driver (0.8.2)
310
+ base64
311
+ websocket-extensions (>= 0.1.0)
312
+ websocket-extensions (0.1.5)
313
+ zeitwerk (2.8.3)
314
+
315
+ PLATFORMS
316
+ aarch64-linux-gnu
317
+ aarch64-linux-musl
318
+ arm-linux-gnu
319
+ arm-linux-musl
320
+ arm64-darwin
321
+ x86_64-darwin
322
+ x86_64-linux-gnu
323
+ x86_64-linux-musl
324
+
325
+ DEPENDENCIES
326
+ ammeter (~> 1.1)
327
+ appraisal (~> 2.5)
328
+ byebug
329
+ mysql2 (~> 0.5.6)
330
+ pg (~> 1.5.4)
331
+ puma
332
+ rack
333
+ rails (~> 8.1.0)
334
+ rails_api_logger!
335
+ rake (~> 12.0)
336
+ rspec-rails (~> 8.0)
337
+ sqlite3 (~> 2.1.0)
338
+ standard (~> 1.31)
339
+ webmock (~> 3.25.0)
340
+
341
+ CHECKSUMS
342
+ action_text-trix (2.1.19) sha256=7012f59421009cf284aa651294896414d653a61a2417c9b8714c8476d2f74009
343
+ actioncable (8.1.4) sha256=cfcd72f8c861e01ccdc96d772ad8c5ad6ed0ea7c571aef81a794b6027eaa7f11
344
+ actionmailbox (8.1.4) sha256=9c4525e577ebb671ce558f3ea78b8a634f64e56a0e6e8d105b28b873793a06eb
345
+ actionmailer (8.1.4) sha256=f82d95d6762ae46ea38f221d3363639266af4f8e56d50e2bd367558674baf093
346
+ actionpack (8.1.4) sha256=245493cc51be195a7645e6fc184880fa7e5b32ff1a08e053ee31f58c76e30ea4
347
+ actiontext (8.1.4) sha256=33ee99bea7da6af911fc7d98b17013a8e1ec62aa01b20b20e9a5366f40dbf644
348
+ actionview (8.1.4) sha256=eff1efd07c4d969abad288322b423bcb67fdbab5e324c91ca37352b80f226076
349
+ activejob (8.1.4) sha256=4ed5b2ed8d4cc5c8f5f09becfef8346f202a4884eee0c8c73cae5ac378824099
350
+ activemodel (8.1.4) sha256=9a0906c127bd118aa5f06157db12b8f750da83dccee72db2f658547a0ae7a0e8
351
+ activerecord (8.1.4) sha256=3b4957ea7f246c9231bd7faa909312eac03a9101aaf87977b6c52733ff00b04f
352
+ activestorage (8.1.4) sha256=f4956f3ec9ee63e5e0b332b57c877cb627f82b56f4cc902279310d2aa285c7a8
353
+ activesupport (8.1.4) sha256=891dd3fe43c4fc8391934b237b1189bb1f661c932a84a840043db9d46a4e80df
354
+ addressable (2.9.2) sha256=9117c7e7d6ee07230e75ce41fb9401ae55354dc654fcd0e862ba41d539e9a610
355
+ ammeter (1.1.7) sha256=59805315dcc392a76b358978cb3007dd140b9500e984986b1588837d986d11f9
356
+ appraisal (2.5.0) sha256=36989221be127913b0dba8d114da2001e6b2dceea7bd4951200eaba764eed3ce
357
+ ast (2.4.3) sha256=954615157c1d6a382bc27d690d973195e79db7f55e9765ac7c481c60bdb4d383
358
+ base64 (0.3.0) sha256=27337aeabad6ffae05c265c450490628ef3ebd4b67be58257393227588f5a97b
359
+ bigdecimal (4.1.3) sha256=61ebe1e5e559bdc3cc6f2c0ee7f427321fc838f59611c294356eb04d6e21cf66
360
+ builder (3.3.0) sha256=497918d2f9dca528fdca4b88d84e4ef4387256d984b8154e9d5d3fe5a9c8835f
361
+ bundler (4.0.20) sha256=7978a8ac648767f5e635bc522445b79e80a52b907a39a36c2d8085ed6bc762ae
362
+ byebug (13.0.0) sha256=d2263efe751941ca520fa29744b71972d39cbc41839496706f5d9b22e92ae05d
363
+ concurrent-ruby (1.3.8) sha256=b2f1be836e968ccc78ccfce277ea79c72a88633f22306782c16ff23fb415d1e1
364
+ connection_pool (3.0.2) sha256=33fff5ba71a12d2aa26cb72b1db8bba2a1a01823559fb01d29eb74c286e62e0a
365
+ crack (1.0.1) sha256=ff4a10390cd31d66440b7524eb1841874db86201d5b70032028553130b6d4c7e
366
+ crass (1.0.8) sha256=7a0145c7a2c59f8e7923b3a69ce819c444823a00a5127d805298fea13be24efe
367
+ date (3.6.0) sha256=18ac945c4e24ebd93534f8eab8c2fd8c5604b3e977105b3798d62a1e8d27b580
368
+ diff-lcs (1.6.2) sha256=9ae0d2cba7d4df3075fe8cd8602a8604993efc0dfa934cff568969efb1909962
369
+ drb (2.2.3) sha256=0b00d6fdb50995fe4a45dea13663493c841112e4068656854646f418fda13373
370
+ erb (6.0.7) sha256=c5ca6dc25b0ef974a44dc8f59fe847577122483b1968a38dec305c60bf91ee92
371
+ erubi (1.13.1) sha256=a082103b0885dbc5ecf1172fede897f9ebdb745a4b97a5e8dc63953db1ee4ad9
372
+ globalid (1.4.0) sha256=037f12fbf1d9d7a014d501c2d5c77356fd4ddd96d7a7991d6700bba96706f427
373
+ hashdiff (1.2.1) sha256=9c079dbc513dfc8833ab59c0c2d8f230fa28499cc5efb4b8dd276cf931457cd1
374
+ i18n (1.15.2) sha256=00f9eb62412fe593b2a65a97daa75300d37abb8f7202ec748e94b6d46a9dd1b5
375
+ io-console (0.9.5) sha256=83dd9bbf4c4680416629245b39cd4212eb5f4d9a4ea91804870c1f6b846414d5
376
+ irb (1.18.0) sha256=de9454a0703a54704b9811a5ef31a60c86949fbf4013fcf244fabc7c775248e3
377
+ json (3.1.0) sha256=3ce7ccf8fde58960177a3a756c31f292a4c1e1dedee884547096a5b0604e3bd8
378
+ language_server-protocol (3.17.0.6) sha256=5ef2c0c138f8267e1bc631d3328347d354f96724b0af22f2c79516120443b7f0
379
+ lint_roller (1.1.0) sha256=2c0c845b632a7d172cb849cc90c1bce937a28c5c8ccccb50dfd46a485003cc87
380
+ logger (1.7.0) sha256=196edec7cc44b66cfb40f9755ce11b392f21f7967696af15d274dde7edff0203
381
+ loofah (2.25.3) sha256=545f14eef0cc2a7de80df560530d593232b7c07e515c5c4e37532d9cb5b0185c
382
+ mail (2.9.1) sha256=06574eca475253d6c18145dd70af80d0eb970182d55053497c5f4d797ea160e8
383
+ marcel (1.2.1) sha256=1678e9360e32f9eafa917c80029e2f6d10b2715c66a4b87b6d0da9b9cd1f859f
384
+ mini_mime (1.1.5) sha256=8681b7e2e4215f2a159f9400b5816d85e9d8c6c6b491e96a12797e798f8bccef
385
+ minitest (6.0.6) sha256=153ea36d1d987a62942382b61075745042a2b3123b1cd48f4c3675af9cc7d6f1
386
+ mysql2 (0.5.7) sha256=ba09ede515a0ae8a7192040a1b778c0fb0f025fa5877e9be895cd325fa5e9d7b
387
+ net-imap (0.6.8) sha256=eb30bb62227b64a3af6b518b04b2375113d69f68f15de59b0193b07d98acf6d9
388
+ net-pop (0.1.2) sha256=848b4e982013c15b2f0382792268763b748cce91c9e91e36b0f27ed26420dff3
389
+ net-protocol (0.4.0) sha256=f9f90c8c6f64794a45160bf422177a336db12809de3beeeaa26b88fcd2e8c853
390
+ net-smtp (0.5.2) sha256=35103cc04d6b2d94632f9928ede07483c24b70b9c0db1f231fea43909b678f3c
391
+ nio4r (2.7.5) sha256=6c90168e48fb5f8e768419c93abb94ba2b892a1d0602cb06eef16d8b7df1dca1
392
+ nokogiri (1.19.6-aarch64-linux-gnu) sha256=746fca23be3cd3f121cabab65cb44c52049e4cf9f0d36e7e8c3c0eb6cc298c57
393
+ nokogiri (1.19.6-aarch64-linux-musl) sha256=4a5620da1c52150e0343bd2bba7dbd9b3899b5eb41687dc1942c9092d81e52a3
394
+ nokogiri (1.19.6-arm-linux-gnu) sha256=574e50ddd99ed71aaa868027d84eb3b9f051e55fe07ddc844e4fdd654be953fc
395
+ nokogiri (1.19.6-arm-linux-musl) sha256=c20ea8d8c92cbaa475f0952f755dea88cf6e3ace8b49d634a0a5385a1feaea10
396
+ nokogiri (1.19.6-arm64-darwin) sha256=0a89005ba8cf40c7bd580f4c0873f5f11e5866a99e364764fb59ac6516f560d0
397
+ nokogiri (1.19.6-x86_64-darwin) sha256=8f15f820fa1373d8685ae48cdd8020d923b4104db74d149d1235ddae956469a6
398
+ nokogiri (1.19.6-x86_64-linux-gnu) sha256=ad1e228c3bc873e4f4fc4f845d7e37b4d3648af537acd7b5e8463cce5693065b
399
+ nokogiri (1.19.6-x86_64-linux-musl) sha256=c92b29e897f4ddc19bea67188695aab667f695e74592a5c8741642ecb25d34d9
400
+ parallel (1.28.0) sha256=33e6de1484baf2524792d178b0913fc8eb94c628d6cfe45599ad4458c638c970
401
+ parser (3.3.13.0) sha256=e02f9b63c2fe05b0c68f692ba4df89b3cb113b663964f75d988fbebfd6c3deca
402
+ pg (1.5.9) sha256=761efbdf73b66516f0c26fcbe6515dc7500c3f0aa1a1b853feae245433c64fdc
403
+ pp (0.6.4) sha256=dfcb0fce700c41456265922884f9fe195d7fbb0674a3578e6c0f69588e82b570
404
+ prettyprint (0.2.1) sha256=d555d57ea6d7cf001d4774b693546a6bd88bec1e778ddffb5c60b68ceec4b7d4
405
+ prism (1.9.0) sha256=7b530c6a9f92c24300014919c9dcbc055bf4cdf51ec30aed099b06cd6674ef85
406
+ public_suffix (7.0.5) sha256=1a8bb08f1bbea19228d3bed6e5ed908d1cb4f7c2726d18bd9cadf60bc676f623
407
+ puma (8.0.2) sha256=c8ed871dfbbe66448ea9ffd46692342d9804d4071522b52b5331b7b6e7b686fb
408
+ racc (1.8.1) sha256=4a7f6929691dbec8b5209a0b373bc2614882b55fc5d2e447a21aaa691303d62f
409
+ rack (3.2.8) sha256=1fecc85e463ebc7a2a945fff829ffcd549babeb1556384796fad946c28dc4ec7
410
+ rack-session (2.1.2) sha256=595434f8c0c3473ae7d7ac56ecda6cc6dfd9d37c0b2b5255330aa1576967ffe8
411
+ rack-test (2.3.0) sha256=b118d177cc002c572fc1b6fd8d19c9ed5881a36e8d6f689f9e618f9f861241e8
412
+ rackup (2.3.1) sha256=6c79c26753778e90983761d677a48937ee3192b3ffef6bc963c0950f94688868
413
+ rails (8.1.4) sha256=5f3ecdf9a2a3b79b2e31b8fee3b64a00f7284d76e5631f87d0e58e665911a33b
414
+ rails-dom-testing (2.3.0) sha256=8acc7953a7b911ca44588bf08737bc16719f431a1cc3091a292bca7317925c1d
415
+ rails-html-sanitizer (1.7.2) sha256=a21ef45b7a6639fc8e2282473c547514cb86ae271616162a946bf89148fa2424
416
+ rails_api_logger (1.0.0)
417
+ railties (8.1.4) sha256=b5e7a8e8984e33114d68af62227971960aae1e6c02bd7c9d826ffad97fff583c
418
+ rainbow (3.1.1) sha256=039491aa3a89f42efa1d6dec2fc4e62ede96eb6acd95e52f1ad581182b79bc6a
419
+ rake (12.3.3) sha256=f7694adb4fe638da35452300cee6c545e9c377a0e3190018ac04d590b3c26ab3
420
+ rbs (4.1.3) sha256=0c4474a9751cdc14364bfad0b3e53678323bbdc2c31683b0445932867dbab8c4
421
+ rdoc (8.1.0) sha256=befc37880a5cfd36dcb176c748b5fd5ee39dd3536a75e81824e4972ce230f60a
422
+ regexp_parser (2.13.1) sha256=5aedb6b7c35688f51e86eef17a15374dfd287c83f4ca644b2c5f3ec50a33b44b
423
+ reline (0.7.0) sha256=5b012d8e55dbf9d450f12bde2cf7d15ff546ae80b3f8f3b30e570d431815583d
424
+ rexml (3.4.4) sha256=19e0a2c3425dfbf2d4fc1189747bdb2f849b6c5e74180401b15734bc97b5d142
425
+ rspec-core (3.13.6) sha256=a8823c6411667b60a8bca135364351dda34cd55e44ff94c4be4633b37d828b2d
426
+ rspec-expectations (3.13.5) sha256=33a4d3a1d95060aea4c94e9f237030a8f9eae5615e9bd85718fe3a09e4b58836
427
+ rspec-mocks (3.13.8) sha256=086ad3d3d17533f4237643de0b5c42f04b66348c28bf6b9c2d3f4a3b01af1d47
428
+ rspec-rails (8.0.4) sha256=06235692fc0892683d3d34977e081db867434b3a24ae0dd0c6f3516bad4e22df
429
+ rspec-support (3.13.7) sha256=0640e5570872aafefd79867901deeeeb40b0c9875a36b983d85f54fb7381c47c
430
+ rubocop (1.91.0) sha256=9c82b7bf391c5d7e3798c5b9996e22a1fe3bd7468e351dfdeb96140c058296d0
431
+ rubocop-ast (1.50.0) sha256=b9ca88300da0803ee222ad20cdb30494c0a784eed06fdc35d254b06d662788db
432
+ rubocop-performance (1.26.1) sha256=cd19b936ff196df85829d264b522fd4f98b6c89ad271fa52744a8c11b8f71834
433
+ ruby-progressbar (1.13.0) sha256=80fc9c47a9b640d6834e0dc7b3c94c9df37f08cb072b7761e4a71e22cff29b33
434
+ securerandom (0.4.1) sha256=cc5193d414a4341b6e225f0cb4446aceca8e50d5e1888743fac16987638ea0b1
435
+ sqlite3 (2.1.1-aarch64-linux-gnu) sha256=8e66a55e17ab5251d8a3e86c95fa79676d7b6f9657f5a2bade6604d69e15fc6f
436
+ sqlite3 (2.1.1-aarch64-linux-musl) sha256=74bb21dade2c31eb9de8bcb410ed0a5b5e2d3bfe8643ad129b38d8452e2e46ce
437
+ sqlite3 (2.1.1-arm-linux-gnu) sha256=c42e2888360ba68bcb11e56b6df253ccdd650208f9ee25acbe0df1d3b8776113
438
+ sqlite3 (2.1.1-arm-linux-musl) sha256=2e3adc9f0d42287376ee3dbf2176fd01a100c6588271ad8418ea70758a161a06
439
+ sqlite3 (2.1.1-arm64-darwin) sha256=964d03e90952b355827a6c981511304c36d6cb552a894112720655793d09b78c
440
+ sqlite3 (2.1.1-x86_64-darwin) sha256=b38eac8abe54341d4cc8ffa4285f78755e07852f82559b2815e7b85e353d398c
441
+ sqlite3 (2.1.1-x86_64-linux-gnu) sha256=f2cd96fe785f6928d1696751b54dac854dda880db67cd54525838d5849a5c1b9
442
+ sqlite3 (2.1.1-x86_64-linux-musl) sha256=e7f43e4f0fbe575ebaf437489bd12c90464c8d287af14d3879359e4ac1e6a820
443
+ standard (1.57.0) sha256=4a65ea92421fbaf77fb54da91e16093cf79b335b8f62c35aaa3dd714c8592858
444
+ standard-custom (1.0.2) sha256=424adc84179a074f1a2a309bb9cf7cd6bfdb2b6541f20c6bf9436c0ba22a652b
445
+ standard-performance (1.9.0) sha256=49483d31be448292951d80e5e67cdcb576c2502103c7b40aec6f1b6e9c88e3f2
446
+ thor (1.5.0) sha256=e3a9e55fe857e44859ce104a84675ab6e8cd59c650a49106a05f55f136425e73
447
+ timeout (0.6.1) sha256=78f57368a7e7bbadec56971f78a3f5ecbcfb59b7fcbb0a3ed6ddc08a5094accb
448
+ tsort (0.2.0) sha256=9650a793f6859a43b6641671278f79cfead60ac714148aabe4e3f0060480089f
449
+ tzinfo (2.0.6) sha256=8daf828cc77bcf7d63b0e3bdb6caa47e2272dcfaf4fbfe46f8c3a9df087a829b
450
+ unicode-display_width (3.3.0) sha256=4b7aa66a4b11db50f6f7e98411215cd0dd10eaecb665d36eec5bcacb3fa0b613
451
+ unicode-emoji (4.3.0) sha256=11c02fa73290378c066bb0562cd4c87d8e1b706fbbe0059ca12746a4244de8ce
452
+ uri (1.1.2) sha256=89292e98eabbef6248b0a0ed5e7e398e152f83f17560023a6d94a7f492b169fb
453
+ useragent (0.16.11) sha256=700e6413ad4bb954bb63547fa098dddf7b0ebe75b40cc6f93b8d54255b173844
454
+ webmock (3.25.2) sha256=b18a5fe3b292cf116cb9b7c653eabb5995af5237cc565b4963168f82b9ad6468
455
+ websocket-driver (0.8.2) sha256=97c556b019bf3410b4961002ac501621e9322d3f8a7bc02161a09301cc4c4146
456
+ websocket-extensions (0.1.5) sha256=1c6ba63092cda343eb53fc657110c71c754c56484aad42578495227d717a8241
457
+ zeitwerk (2.8.3) sha256=2c85125a8467ce069e20123d1e709a08955c9d29c118c25b46b7b7fafdbb92e5
458
+
459
+ BUNDLED WITH
460
+ 4.0.20
@@ -1,11 +1,11 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- rails_api_logger (0.11.0)
5
- activejob (>= 6.0)
6
- activerecord (>= 6.0)
4
+ rails_api_logger (1.0.0)
5
+ activejob (>= 8.0)
6
+ activerecord (>= 8.0)
7
7
  nokogiri
8
- railties (>= 6.0)
8
+ railties (>= 8.0)
9
9
  zeitwerk (>= 2.0.0)
10
10
 
11
11
  GEM
@@ -261,7 +261,7 @@ GEM
261
261
  unicode-display_width (3.1.4)
262
262
  unicode-emoji (~> 4.0, >= 4.0.4)
263
263
  unicode-emoji (4.0.4)
264
- uri (1.0.3)
264
+ uri (1.1.2)
265
265
  useragent (0.16.11)
266
266
  webmock (3.25.1)
267
267
  addressable (>= 2.8.0)
@@ -0,0 +1,25 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "rails/generators/base"
4
+ require "rails/generators/migration"
5
+
6
+ module RailsApiLogger
7
+ module Generators
8
+ class UpgradeClientReferenceGenerator < Rails::Generators::Base
9
+ include Rails::Generators::Migration
10
+
11
+ source_root File.expand_path("../../templates", __FILE__)
12
+
13
+ def self.next_migration_number(dirname)
14
+ next_migration_number = current_migration_number(dirname) + 1
15
+ ActiveRecord::Migration.next_migration_number(next_migration_number)
16
+ end
17
+
18
+ desc "Add the client_reference column to the rails_api_logger tables."
19
+ def copy_migration
20
+ migration_template "add_client_reference_to_rails_api_logger_tables.rb",
21
+ "db/migrate/add_client_reference_to_rails_api_logger_tables.rb"
22
+ end
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,9 @@
1
+ class AddClientReferenceToRailsApiLoggerTables < ActiveRecord::Migration[<%= ActiveRecord::Migration.current_version %>]
2
+ def change
3
+ add_column :inbound_request_logs, :client_reference, :string
4
+ add_index :inbound_request_logs, :client_reference
5
+
6
+ add_column :outbound_request_logs, :client_reference, :string
7
+ add_index :outbound_request_logs, :client_reference
8
+ end
9
+ end
@@ -7,9 +7,10 @@ class CreateRailsApiLoggerTable < ActiveRecord::Migration[<%= ActiveRecord::Migr
7
7
  t.text :request_body
8
8
  t.text :response_body
9
9
  t.integer :response_code
10
- t.timestamp :started_at
11
- t.timestamp :ended_at
10
+ t.datetime :started_at
11
+ t.datetime :ended_at
12
12
  t.references :loggable, index: true, polymorphic: true<%= ", type: :#{pk_type}" if pk_type %>
13
+ t.string :client_reference, index: true
13
14
  t.timestamps null: false
14
15
  end
15
16
 
@@ -19,9 +20,10 @@ class CreateRailsApiLoggerTable < ActiveRecord::Migration[<%= ActiveRecord::Migr
19
20
  t.text :request_body
20
21
  t.text :response_body
21
22
  t.integer :response_code
22
- t.timestamp :started_at
23
- t.timestamp :ended_at
23
+ t.datetime :started_at
24
+ t.datetime :ended_at
24
25
  t.references :loggable, index: true, polymorphic: true<%= ", type: :#{pk_type}" if pk_type %>
26
+ t.string :client_reference, index: true
25
27
  t.timestamps null: false
26
28
  end
27
29
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RailsApiLogger
4
- VERSION = "0.11.1"
4
+ VERSION = "1.0.0"
5
5
  end
@@ -14,4 +14,20 @@ loader.setup
14
14
 
15
15
  module RailsApiLogger
16
16
  mattr_accessor :connects_to
17
+
18
+ # Logging must never break the host app: report the error and go on without the log.
19
+ # Inside an open transaction the log runs in a savepoint, so that a failed write
20
+ # doesn't abort the transaction of the app (Postgres).
21
+ # A connection that is not leased yet can't have an open transaction, so we don't lease one just to ask:
22
+ # with `permanent_connection_checkout = :disallowed` that would raise and no log would ever be written.
23
+ def self.safely(&block)
24
+ if RequestLog.connection_pool.active_connection?&.transaction_open?
25
+ RequestLog.transaction(requires_new: true, &block)
26
+ else
27
+ yield
28
+ end
29
+ rescue => e
30
+ Rails.error.report(e, handled: true, source: "rails_api_logger")
31
+ nil
32
+ end
17
33
  end
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
10
10
  spec.description = "Log inbound and outbound API requests in your Rails application"
11
11
  spec.homepage = "https://github.com/renuo/rails_api_logger"
12
12
  spec.license = "MIT"
13
- spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
13
+ spec.required_ruby_version = Gem::Requirement.new(">= 3.2.0")
14
14
 
15
15
  spec.metadata["homepage_uri"] = spec.homepage
16
16
  spec.metadata["source_code_uri"] = "https://github.com/renuo/rails_api_logger"
@@ -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 = ">= 6.0"
28
+ rails_version = ">= 8.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