ocean-rails 1.29.3 → 1.29.4

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: 33f7c5df637adc115cbe36bb4b64200236157072
4
- data.tar.gz: 6a21e73db016ae2f6dd27cd770549d52e2a8786b
3
+ metadata.gz: f62098771fbece3d538d3fc124ab745e3b345400
4
+ data.tar.gz: ec0ec9a930e28e7f088098a078a1e25d3f99c129
5
5
  SHA512:
6
- metadata.gz: 24eeebbddad4df0e68fc19cb4d836e71004ac1adee201ec8968e033fbc4dc628182dcbdf7074bcb4c3f0f1e52a67df289cdf25322863d76187d83ec9f3e7f3e3
7
- data.tar.gz: dd0ae3c80216b9af828088db861ca2549838930321336f21f9cd4c88232765c93754307b1d3f0f3eb7bb68fba491cc1b94cd97bda946910ffba72ea88b833a0b
6
+ metadata.gz: 788db4f9e35dc3d4172e4f82b16e6124e87238d605c66df55b1e5f879d0ac883218a488b6ad1bf5c7b3fb42dbae045fbfa949b10eeea66cf243d63d75f7ee90f
7
+ data.tar.gz: cd36f14e52ad7095afb4efa3a2206865817012af080cea1ab0b62721ead56c0d8cc88787c535576f71a9daa3b369eb580bd3ffd436de5db2f92eb76618650ef5
@@ -30,4 +30,23 @@ class SelectiveRackLogger < Rails::Rack::Logger
30
30
  end
31
31
  end
32
32
 
33
+
34
+ protected
35
+
36
+ def call_app(request, env)
37
+ super(request, env) unless Rails.env.production?
38
+
39
+ instrumenter = ActiveSupport::Notifications.instrumenter
40
+ instrumenter.start 'request.action_dispatch', request: request
41
+ #logger.info started_request_message(request)
42
+ resp = @app.call(env)
43
+ resp[2] = ::Rack::BodyProxy.new(resp[2]) { finish(request) }
44
+ resp
45
+ rescue
46
+ finish(request)
47
+ raise
48
+ ensure
49
+ ActiveSupport::LogSubscriber.flush_all!
50
+ end
51
+
33
52
  end
@@ -1,3 +1,3 @@
1
1
  module Ocean
2
- VERSION = "1.29.3"
2
+ VERSION = "1.29.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ocean-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.29.3
4
+ version: 1.29.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Bengtson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-07 00:00:00.000000000 Z
11
+ date: 2014-02-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday