salestation 5.3.3 → 5.4.0

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: e67e18c608d03d9fa6f1e3cff2345dd87eb55f76d7e087e57a75c4ce2b6f591f
4
- data.tar.gz: '086a420e0dcd1483b346253be2d3a18405f02ee310956ae69501dd47832a1800'
3
+ metadata.gz: bd50a9f9fe461dc0d4fe8e4fea4153d1d361eb0f19a4e727ad74f33719fb043b
4
+ data.tar.gz: 630f442282e5b19ecae156ab11f672ac3e8159ef7256ea6d2de8b1413ff8e7c9
5
5
  SHA512:
6
- metadata.gz: 0fc035f130d5e795c15facde88ab5b2961a188e6c33bd40fa742f8b7700996c6b6a2dabc637b4a9083b4c364e9ed37ba97aca977231051a3410d91adb6fd4657
7
- data.tar.gz: 4a1e69e9fd30f9c6c1e7d46853849f5db4614c684051ae38c39af0075fad267ad5ecba456c559866bb032f909bbf95bbe838ada29390c6a8b062f881758d8747
6
+ metadata.gz: c58774b66069bd350a63381752d18dc4dd6e6f374a741730010ed756678f5c6c19df5bb88fcbb4a87a31d2c5ebc319341c603c6dd646416835278723d760a1f5
7
+ data.tar.gz: 6303f98fdb4269192c70c9123eae98d82821751da0b695425dd24c896af1dcca9f26600d95f9ed58a41a744408aa923acfec09eaaa66214cba634c2be77ab0a6
@@ -13,6 +13,8 @@ module Salestation
13
13
  HTTP_ACCEPT = 'HTTP_ACCEPT'
14
14
  HTTP_ORIGIN = 'HTTP_ORIGIN'
15
15
  SERVER_NAME = 'SERVER_NAME'
16
+ GLIA_ACCOUNT_ID = 'HTTP_GLIA_ACCOUNT_ID'
17
+ GLIA_USER_ID = 'HTTP_GLIA_USER_ID'
16
18
 
17
19
  def initialize(app, logger, log_response_body: false, level: :info)
18
20
  @app = app
@@ -47,18 +49,20 @@ module Salestation
47
49
 
48
50
  def response_log(env, status, headers, body, began_at)
49
51
  log = {
50
- remote_addr: env[REMOTE_ADDR],
51
- method: env[REQUEST_METHOD],
52
- path: env[REQUEST_URI],
53
- query: env[QUERY_STRING],
54
- content_type: env[CONTENT_TYPE],
55
- http_agent: env[HTTP_USER_AGENT],
56
- http_accept: env[HTTP_ACCEPT],
57
- http_origin: env[HTTP_ORIGIN],
58
- server_name: env[SERVER_NAME],
59
- status: status,
60
- duration: duration(from: began_at),
61
- headers: headers
52
+ remote_addr: env[REMOTE_ADDR],
53
+ method: env[REQUEST_METHOD],
54
+ path: env[REQUEST_URI],
55
+ query: env[QUERY_STRING],
56
+ content_type: env[CONTENT_TYPE],
57
+ http_agent: env[HTTP_USER_AGENT],
58
+ http_accept: env[HTTP_ACCEPT],
59
+ http_origin: env[HTTP_ORIGIN],
60
+ server_name: env[SERVER_NAME],
61
+ status: status,
62
+ duration: duration(from: began_at),
63
+ glia_account_id: env[GLIA_ACCOUNT_ID],
64
+ glia_user_id: env[GLIA_USER_ID],
65
+ headers: headers
62
66
  }
63
67
 
64
68
  if status >= 400
data/salestation.gemspec CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "salestation"
7
- spec.version = "5.3.3"
7
+ spec.version = "5.4.0"
8
8
  spec.authors = ["Glia TechMovers"]
9
9
  spec.email = ["open-source@glia.com"]
10
10
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: salestation
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.3.3
4
+ version: 5.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Glia TechMovers
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-12-27 00:00:00.000000000 Z
11
+ date: 2024-05-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -235,7 +235,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
235
235
  - !ruby/object:Gem::Version
236
236
  version: '0'
237
237
  requirements: []
238
- rubygems_version: 3.5.3
238
+ rubygems_version: 3.5.9
239
239
  signing_key:
240
240
  specification_version: 4
241
241
  summary: ''