qodex-rails 0.1.16 → 0.1.18
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/qodex/rails/version.rb +1 -1
- data/lib/qodex-rails/middleware.rb +1 -6
- data/lib/qodex-rails/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ce5f5de3faaf3adde564acb805f603e3f067b0f2bcfd80a18185180896c35f19
|
4
|
+
data.tar.gz: 3877101ac459c3fdd3bf575e02f2394799102cc51ca09c09329d8cceb3fa6dc2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8c419d2dbcc2daa85d0d281680be95c2aa9e31ed07ecfcc091c1d87055d54d19fd90bb6414b0abd5e512400178e9368d006aa863ef466101181840d4b03315ea
|
7
|
+
data.tar.gz: 4231a570d9ecb963103bcf5ec0e617fe2d334a006245a279d24f86f4172ff93adecabe5aefa4de99a75c81fa947dd02e1a823e25557251af6d904962d795c589
|
data/lib/qodex/rails/version.rb
CHANGED
@@ -42,9 +42,6 @@ module QodexRails
|
|
42
42
|
|
43
43
|
# Capture the request details
|
44
44
|
request = Rack::Request.new(env)
|
45
|
-
request_body = request.body.read
|
46
|
-
request.body.rewind
|
47
|
-
|
48
45
|
status, headers, response = @app.call(env)
|
49
46
|
response_content_type = response.instance_eval('@response').headers['content-type']
|
50
47
|
if response_content_type.present? && !(response_content_type.include?('application/json'))
|
@@ -72,7 +69,6 @@ module QodexRails
|
|
72
69
|
response_headers = MaskingUtil.mask_data(response_headers, pii_masking)
|
73
70
|
request_params = MaskingUtil.mask_data(request_params, pii_masking)
|
74
71
|
response_body = MaskingUtil.mask_data(response_body, pii_masking)
|
75
|
-
request_body = MaskingUtil.mask_data(request_body, pii_masking)
|
76
72
|
request_url = MaskingUtil.mask_query_params(request.url, pii_masking)
|
77
73
|
|
78
74
|
# Construct the logs
|
@@ -83,7 +79,6 @@ module QodexRails
|
|
83
79
|
controller_name: controller_name,
|
84
80
|
action_name: action_name,
|
85
81
|
time_spent: (end_time - start_time).to_i,
|
86
|
-
body: request_body,
|
87
82
|
response_body: response_body,
|
88
83
|
body_type: 'none-type',
|
89
84
|
request_type: request.request_method,
|
@@ -97,7 +92,7 @@ module QodexRails
|
|
97
92
|
}
|
98
93
|
|
99
94
|
# Send the logs to the external API
|
100
|
-
send_to_api(logs)
|
95
|
+
send_to_api(logs) rescue nil
|
101
96
|
|
102
97
|
[status, headers, response]
|
103
98
|
end
|
data/lib/qodex-rails/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: qodex-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.18
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- sid
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-06-
|
11
|
+
date: 2024-06-20 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Intercept your rails application to power Qodex.ai AI copilot.
|
14
14
|
email:
|