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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e88448baabd3c75fe3d312fe1b58fa9a0ba449d457f5acd4b4727efb1f9dcc5c
4
- data.tar.gz: 40239b7f2e897ef1f6ed3ca51f54b4a1af66a3c95c28cf3d3ac1d12090d5004c
3
+ metadata.gz: ce5f5de3faaf3adde564acb805f603e3f067b0f2bcfd80a18185180896c35f19
4
+ data.tar.gz: 3877101ac459c3fdd3bf575e02f2394799102cc51ca09c09329d8cceb3fa6dc2
5
5
  SHA512:
6
- metadata.gz: 40233126d4c00ca269c1f04f0038c5222d365496b0eb6d5ee8b9233d8d47d1a34a850fac55022738b69c2b04d6d641bbb19659e011f1a6f097c43fa7e9693a97
7
- data.tar.gz: 89246f891ba54b5617b77e1811b53200cec88bbdf097bb80fa9fe254a3d3d4ae50a4d44a2f3123d8a64e9e67394f710b784008819a1305e92121075087b247af
6
+ metadata.gz: 8c419d2dbcc2daa85d0d281680be95c2aa9e31ed07ecfcc091c1d87055d54d19fd90bb6414b0abd5e512400178e9368d006aa863ef466101181840d4b03315ea
7
+ data.tar.gz: 4231a570d9ecb963103bcf5ec0e617fe2d334a006245a279d24f86f4172ff93adecabe5aefa4de99a75c81fa947dd02e1a823e25557251af6d904962d795c589
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Qodex
4
4
  module Rails
5
- VERSION = "0.1.16"
5
+ VERSION = "0.1.18"
6
6
  end
7
7
  end
@@ -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
@@ -1,3 +1,3 @@
1
1
  module QodexRails
2
- VERSION = "0.1.16"
2
+ VERSION = "0.1.18"
3
3
  end
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.16
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-02 00:00:00.000000000 Z
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: