zuora_connect 1.4.27 → 1.4.28

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: 68db8fc7b5747a7f48f637fa7617c9236fe855e3
4
- data.tar.gz: 6e0f26cb0c70fa8c644b2feea037006e55790958
3
+ metadata.gz: bb0b55360a75c7c19a17aa978b02c075d056ae66
4
+ data.tar.gz: 0cf9190ff0f1d327c39067c29f91665f7a89a13e
5
5
  SHA512:
6
- metadata.gz: 6ae942f39bf835b60bbc18f7ebba849786af486196a4a01c76bc91c95b2cbd356911348b92e6839a6c359bb89ea270555b9bf2d89df7ecd544a9a63e9a98292f
7
- data.tar.gz: d5887de872edffc73cb60b1c43e42bfff6e9d59560010d7b7bb8fdf6194dd8000ea2b6f60e511a1914581a85cb826d5d5dc3c3b1b8dcf6329bf642c3fa3bf0eb
6
+ metadata.gz: de9b5f1c96c77398c2fc3fbad7f52806179a80b836e5b8c7e26f43bfd1fc0e8522b712115b28dedf664e28b25e5aae7711beaddf7da59c986a3cf8a46e679701
7
+ data.tar.gz: 27c3451b81ef4f163aab441c2c5157b44bbb9a8d85372700252c984af77e69b408e8cc871f1e03b70284692eb6bbf2683daf8ce38021254a37f4b6e7260b1c2b
@@ -6,6 +6,7 @@ module ZuoraConnect
6
6
 
7
7
  def authenticate_app_api_request
8
8
  start_time = Time.now
9
+ PaperTrail.whodunnit = "API User" if defined?(PaperTrail)
9
10
  if !request.headers["API-Token"].blank?
10
11
  @appinstance = ZuoraConnect::AppInstance.where(:api_token => request.headers["API-Token"]).first
11
12
  Rails.logger.debug("[#{@appinstance.id}] API REQUEST - API token") if !@appinstance.blank?
@@ -35,6 +36,7 @@ module ZuoraConnect
35
36
  #Call .data_lookup with the current session to retrieve session. In some cases session may be stored/cache in redis
36
37
  #so data lookup provides a model method that can be overriden per app.
37
38
  @appinstance.new_session(:session => @appinstance.data_lookup(:session => session))
39
+ PaperTrail.whodunnit = session["#{@appinstance.id}::user::email"].present? ? session["#{@appinstance.id}::user::email"] : "N/A" if defined?(PaperTrail)
38
40
  I18n.locale = session["#{@appinstance.id}::user::locale"] ? session["#{@appinstance.id}::user::locale"] : @appinstance.locale
39
41
  Time.zone = session["#{@appinstance.id}::user::timezone"] ? session["#{@appinstance.id}::user::timezone"] : @appinstance.timezone
40
42
  Rails.logger.debug("[#{@appinstance.blank? ? "N/A" : @appinstance.id}] Authenticate App Request Completed In - #{(Time.now - start_time).round(2)}s")
@@ -1,3 +1,3 @@
1
1
  module ZuoraConnect
2
- VERSION = "1.4.27"
2
+ VERSION = "1.4.28"
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.4.27
4
+ version: 1.4.28
5
5
  platform: ruby
6
6
  authors:
7
7
  - Connect Team