ocean-rails 2.3.2 → 2.3.3
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 +4 -4
- data/config/initializers/zeromq_logger.rb +4 -3
- data/lib/ocean/ocean_application_controller.rb +0 -1
- data/lib/ocean/version.rb +1 -1
- metadata +1 -1
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA1:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 6c8fc6e246cde2aa68bc5dce289c38594179e3bc
         | 
| 4 | 
            +
              data.tar.gz: 11b887939c230f3d018bd4d20a9b4d6bdd6c1951
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 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']
         | 
    
        data/lib/ocean/version.rb
    CHANGED