zuora_connect 1.5.40e → 1.5.40f

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
  SHA1:
3
- metadata.gz: 3e03cc9adf835227924f1f8edfe54365a64477b0
4
- data.tar.gz: 8090964dd258ed93961a17c6d1362403ed23aea5
3
+ metadata.gz: 8459de233752587359297a4a7c4e204c23b4dd12
4
+ data.tar.gz: bb1f3f9c77ed74662dfd2cca3a8a432b79187b99
5
5
  SHA512:
6
- metadata.gz: 290894fb06bad82d629ed05a9f95095f3b994363e743692ef00300d4cad1f813ed7d06de31eb74cb808cdd148cc557a031833ee81bfb6d95a1a11ca63050a5aa
7
- data.tar.gz: acdb498de14c477e3cbbdc23ff0dba8b4ddb395d2ce2a733454e2b62ccb2c33e6605a25047228393e865221b1cdf29be0bba994506cd774896ac222578e9472e
6
+ metadata.gz: cf9f594167a676151b1cedc729da825a7aa0362ad78f390faf60b27560326e8dfbe9e083d69299123e3e4ac24b8c22dcf0d64d2b43c8a3f1c5a14bc03e4aa597
7
+ data.tar.gz: e49dac97ab00b6e07d536021e3ae10568e7717828adad5b498ed0111a1584fe484f67dabadf2639401e754006733e2ea2148592ff79e08b9563b413a78c85709
@@ -31,7 +31,7 @@ module Middleware
31
31
  tags: {endpoint: endpoint_name, "content-type": content_type, method: method_name, status: status_code, process_type: p_type},
32
32
  values: {response_time: response_time})
33
33
  end
34
-
34
+
35
35
  end
36
36
 
37
37
 
@@ -47,10 +47,19 @@ module Middleware
47
47
  return nil
48
48
  end
49
49
 
50
+
50
51
  # Getting the endpoint and the content_type
51
- request_path = URI(payload[:headers]['REQUEST_URI']).path.split(".")[0]
52
- content_type = ((payload[:headers]["action_controller.instance"].instance_variable_get :@_response).instance_variable_get :@header)["Content-Type"]
53
- content_type = content_type.split(";")[0]
52
+ content_hash = {:html => "text/html", :js => "application/js", :json => "application/json"}
53
+ content_type = content_hash[payload[:format]]
54
+
55
+ if payload[:headers]
56
+ request_path = URI(payload[:headers]['REQUEST_URI']).path.split(".")[0]
57
+ else
58
+ request_path = payload[:path]
59
+ end
60
+
61
+ # content_type = ((payload[:headers]["action_controller.instance"].instance_variable_get :@_response).instance_variable_get :@header)["Content-Type"]
62
+ # content_type = content_type.split(";")[0]
54
63
 
55
64
  response_time = finished-started
56
65
 
@@ -1,3 +1,3 @@
1
1
  module ZuoraConnect
2
- VERSION = "1.5.40e"
2
+ VERSION = "1.5.40f"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zuora_connect
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.40e
4
+ version: 1.5.40f
5
5
  platform: ruby
6
6
  authors:
7
7
  - Connect Team