qodex-rails 0.1.15 → 0.1.17

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: ba87db4007efe72ee98d47d2a52d72614fce543aca0a7e7ba3dd086828da806d
4
- data.tar.gz: a7fa6d9cddbdd3485395431a81863990c56c86f7468ec17188ca9a9e515fbfb3
3
+ metadata.gz: ea44a483e6aa5b9a0256ad3bf9be3da14ddf820af5aacec1dba49310282ee8ef
4
+ data.tar.gz: 8f00c98d8144d5c5a01a0adccaa4193e3d520be3b1b6a1f9b8d5ab3a7b5dbbfa
5
5
  SHA512:
6
- metadata.gz: b45cf81b94e23c1186e0bc7b155078ac75a09f858387cdb300b0f9f28bb8be51013e6a81ef51f32d97efab5599cb4676afed41fa09136e76dd8a7ef2f055c071
7
- data.tar.gz: 7f452b6f2d952f9d32c1d45962622ae1b6e6b3345ce787a3ba342d158f075f2d7439dfb3a3e4a41d8880ed844d1f71e3ea9a628e07db7a567985b9aa21ee183d
6
+ metadata.gz: 48dcddcf6e7548de399a4a87c691846c6b998c5a72ffffd77089d23aad37b43dc8caa4145f839612e36ef9d0b45282e41df4fec7ec29b14abcb066390f5bc5a0
7
+ data.tar.gz: d83a6f240b820bf731fd9cb865ed4fa6550593436cf8267e925fcc9a3221cb708abf50848027eb131d97e9f1ebba4acef5a905c41a483b18567d75f2a4bb82a5
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Qodex
4
4
  module Rails
5
- VERSION = "0.1.15"
5
+ VERSION = "0.1.17"
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,
@@ -1,3 +1,3 @@
1
1
  module QodexRails
2
- VERSION = "0.1.15"
2
+ VERSION = "0.1.17"
3
3
  end
data/lib/qodex-rails.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  require "qodex-rails/version"
2
+ require "qodex-rails/masking_util"
2
3
  require "qodex-rails/middleware"
3
4
  require "qodex-rails/configuration" # Require the new configuration file
4
5
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: qodex-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.15
4
+ version: 0.1.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - sid