ocean-rails 2.2.0 → 2.2.1

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: 67494c6924df9d8f1a2dd704500df6010a384595
4
- data.tar.gz: 0dc5770477a5bf2c31262d58a27cd8baa9a7b607
3
+ metadata.gz: 87e447d4f5093f7cafc67fd52f9fea8fe563f7c7
4
+ data.tar.gz: b9d938fcd817ca784af0bb7278239166dc5e73df
5
5
  SHA512:
6
- metadata.gz: b0517b03630de1a8e630c65bc1404e2ff9bb3cfd167e5cfd79b3f94686abaf01529c5b7d12ffb35002a10380c27ffb6bae82679e3005af55e149cbe2b75845da
7
- data.tar.gz: 4e0f65e6727fca759254d0ce821b4e48a3a4690631afbf491f0f27fa5c9633f9e61a6365779569e9009c6124966f4b64aa393808decb833df4af93a1d0be4fc0
6
+ metadata.gz: 94c578ceaa77bae5eca755263d68434dbdf87c6b16ce57de1efac0e1a6c04b51b9b841fe3c15a69d10cdd8f512bbac65ad0da8f12b8b15210124ff52bc42d512
7
+ data.tar.gz: dc87dfae698a8bb3aaef8000c40cce655db9820a3114555f626de5e47a6ef40e555ab0eec9d7735b2446ee99159d76f2f58554ea6586c8d9defaacb6bd76b3bb
@@ -47,7 +47,7 @@ if Rails.env == 'production' && ENV['NO_ZEROMQ_LOGGING'].blank?
47
47
  }
48
48
  data[:params] = params if params.present?
49
49
  data[:filter] = Thread.current[:filter] if Thread.current[:filter]
50
- data[:token] = @x_api_token if @x_api_token
50
+ data[:token] = Thread.current[:x_api_token] if Thread.current[:x_api_token].present?
51
51
 
52
52
  Thread.current[:logdata] = data
53
53
  Thread.current[:filter] = nil
@@ -30,6 +30,7 @@ module OceanApplicationController
30
30
  def require_x_api_token
31
31
  return true if ENV['NO_OCEAN_AUTH']
32
32
  @x_api_token = request.headers['X-API-Token']
33
+ Thread.current[:x_api_token] = @x_api_token
33
34
  return true if @x_api_token.present?
34
35
  logger.info "X-API-Token missing"
35
36
  render_api_error 400, "X-API-Token missing"
data/lib/ocean/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Ocean
2
- VERSION = "2.2.0"
2
+ VERSION = "2.2.1"
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.2.0
4
+ version: 2.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Bengtson