ocean-rails 2.3.2 → 2.3.3

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
  SHA1:
3
- metadata.gz: b13718e43658a8cbbab59eeea8772fb33e4af6a5
4
- data.tar.gz: 93e4ad6542d92d6b618418a619d7500d96aa7849
3
+ metadata.gz: 6c8fc6e246cde2aa68bc5dce289c38594179e3bc
4
+ data.tar.gz: 11b887939c230f3d018bd4d20a9b4d6bdd6c1951
5
5
  SHA512:
6
- metadata.gz: 1c7b16ef3c629ae4f19a59bb62078b31eaf356a8ff2c0d9ad73969aa9544f349e466802230e30a2eade8cce98b6492d65189ff5db800eaf8dfeac3e9403d88e1
7
- data.tar.gz: 550c1ce9f07e06a834ecac0ebe3f97b5799e93b660e0488e20e798f84ab44a95bfc2546ef74696f32900c66130fd836ce7246fde9b7919624f0091f2d3f598b8
6
+ metadata.gz: 7a8b28df7106d2271eb53fdf0a8cda8db530715c9b79052d238ca0b0a6c601c2fd532b71135bc2b996da72f241ed3fc403903bcdf919dcbd3a3704af440d8bfd
7
+ data.tar.gz: 00fa21db7eee1c99e25352ad8143709c80f551fafa5c23ca023aa7bb36ac919b52f2043ce247a61eae4ea7babed7325972e4b1019272808feb6c3efae3bef301
@@ -49,14 +49,11 @@ if Rails.env == 'production' && ENV['NO_ZEROMQ_LOGGING'].blank?
49
49
  data[:filter] = Thread.current[:filter] if Thread.current[:filter]
50
50
  data[:token] = Thread.current[:x_api_token] if Thread.current[:x_api_token].present?
51
51
  data[:username] = Thread.current[:username] if Thread.current[:username].present?
52
- data[:max_age] = Thread.current[:max_age] if Thread.current[:max_age].present?
53
- data[:cache_control] = payload[:response].headers['Cache-Control'] if payload[:response].headers['Cache-Control']
54
52
 
55
53
  Thread.current[:logdata] = data
56
54
  Thread.current[:filter] = nil
57
55
  Thread.current[:x_api_token] = nil
58
56
  Thread.current[:username] = nil
59
- Thread.current[:max_age] = nil
60
57
  Thread.current[:cache_control] = nil
61
58
  end
62
59
  end
@@ -93,6 +90,10 @@ if Rails.env == 'production' && ENV['NO_ZEROMQ_LOGGING'].blank?
93
90
  data[:_api_error] = JSON.parse(body)['_api_error']
94
91
  end
95
92
 
93
+ if response
94
+ data[:cache_control] = response.headers['Cache-Control']
95
+ end
96
+
96
97
  ex = request.env["action_dispatch.exception"]
97
98
  if ex
98
99
  if data[:status] == 404
@@ -67,7 +67,6 @@ module OceanApplicationController
67
67
  @auth_api_user_id = response.body['authentication']['user_id'] # Deprecate and remove
68
68
  @auth_api_user_uri = response.body['authentication']['_links']['creator']['href'] # Keep
69
69
  Thread.current[:username] = response.body['authentication']['username']
70
- Thread.current[:max_age] = response.body['authentication']['max_age']
71
70
  return true
72
71
  end
73
72
  error_messages = response.body['_api_error']
@@ -1,3 +1,3 @@
1
1
  module Ocean
2
- VERSION = "2.3.2"
2
+ VERSION = "2.3.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ocean-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.2
4
+ version: 2.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Bengtson