qodex-rails 0.1.17 → 0.1.19

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ea44a483e6aa5b9a0256ad3bf9be3da14ddf820af5aacec1dba49310282ee8ef
4
- data.tar.gz: 8f00c98d8144d5c5a01a0adccaa4193e3d520be3b1b6a1f9b8d5ab3a7b5dbbfa
3
+ metadata.gz: d46888d7f3aafcafbf52f36ce313e4e84b6e5e0922536601caf9d2b9603872fa
4
+ data.tar.gz: 3ab172b7b5c8d8e5e333bb13d0050f1e0d898f2b852d213de938bd7891fbbc69
5
5
  SHA512:
6
- metadata.gz: 48dcddcf6e7548de399a4a87c691846c6b998c5a72ffffd77089d23aad37b43dc8caa4145f839612e36ef9d0b45282e41df4fec7ec29b14abcb066390f5bc5a0
7
- data.tar.gz: d83a6f240b820bf731fd9cb865ed4fa6550593436cf8267e925fcc9a3221cb708abf50848027eb131d97e9f1ebba4acef5a905c41a483b18567d75f2a4bb82a5
6
+ metadata.gz: 7580d3cb6e15c8d36695458dbd28ee15e9bc0428d64cb4a6907e15450addd58dd9a73db99a63d9d1729c3b23b97118a179a7d18376e7bbec3e6f768aa261124e
7
+ data.tar.gz: 99e282b18d867d7e5d9596e5e9556fd75f62f635a8c333c838870acb9bb88094bd86a4f41148df6fdfe84e745d773da7c40220d6a0ca0d4b706aa33f2e83f4a0
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Qodex
4
4
  module Rails
5
- VERSION = "0.1.17"
5
+ VERSION = "0.1.19"
6
6
  end
7
7
  end
@@ -43,7 +43,7 @@ module QodexRails
43
43
  # Capture the request details
44
44
  request = Rack::Request.new(env)
45
45
  status, headers, response = @app.call(env)
46
- response_content_type = response.instance_eval('@response').headers['content-type']
46
+ response_content_type = response.instance_eval('@response')&.headers['content-type']
47
47
  if response_content_type.present? && !(response_content_type.include?('application/json'))
48
48
  return [status, headers, response]
49
49
  end
@@ -92,7 +92,7 @@ module QodexRails
92
92
  }
93
93
 
94
94
  # Send the logs to the external API
95
- send_to_api(logs)
95
+ send_to_api(logs) rescue nil
96
96
 
97
97
  [status, headers, response]
98
98
  end
@@ -1,3 +1,3 @@
1
1
  module QodexRails
2
- VERSION = "0.1.17"
2
+ VERSION = "0.1.19"
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.17
4
+ version: 0.1.19
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-08-14 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Intercept your rails application to power Qodex.ai AI copilot.
14
14
  email: