ocean-rails 2.1.2 → 2.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config/initializers/zeromq_logger.rb +7 -6
- data/lib/ocean/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 67494c6924df9d8f1a2dd704500df6010a384595
|
4
|
+
data.tar.gz: 0dc5770477a5bf2c31262d58a27cd8baa9a7b607
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b0517b03630de1a8e630c65bc1404e2ff9bb3cfd167e5cfd79b3f94686abaf01529c5b7d12ffb35002a10380c27ffb6bae82679e3005af55e149cbe2b75845da
|
7
|
+
data.tar.gz: 4e0f65e6727fca759254d0ce821b4e48a3a4690631afbf491f0f27fa5c9633f9e61a6365779569e9009c6124966f4b64aa393808decb833df4af93a1d0be4fc0
|
@@ -25,12 +25,6 @@ if Rails.env == 'production' && ENV['NO_ZEROMQ_LOGGING'].blank?
|
|
25
25
|
remove_existing_log_subscriptions
|
26
26
|
|
27
27
|
|
28
|
-
ActiveSupport::Notifications.subscribe "halted_callback.action_controller" do |*args|
|
29
|
-
data = args.extract_options!
|
30
|
-
Thread.current[:filter] = data[:filter]
|
31
|
-
end
|
32
|
-
|
33
|
-
|
34
28
|
INTERNAL_PARAMS = %w(controller action format _method only_path)
|
35
29
|
|
36
30
|
ActiveSupport::Notifications.subscribe "process_action.action_controller" do |name, started, finished, unique_id, payload|
|
@@ -53,6 +47,7 @@ if Rails.env == 'production' && ENV['NO_ZEROMQ_LOGGING'].blank?
|
|
53
47
|
}
|
54
48
|
data[:params] = params if params.present?
|
55
49
|
data[:filter] = Thread.current[:filter] if Thread.current[:filter]
|
50
|
+
data[:token] = @x_api_token if @x_api_token
|
56
51
|
|
57
52
|
Thread.current[:logdata] = data
|
58
53
|
Thread.current[:filter] = nil
|
@@ -69,6 +64,12 @@ if Rails.env == 'production' && ENV['NO_ZEROMQ_LOGGING'].blank?
|
|
69
64
|
end
|
70
65
|
|
71
66
|
|
67
|
+
ActiveSupport::Notifications.subscribe "halted_callback.action_controller" do |*args|
|
68
|
+
data = args.extract_options!
|
69
|
+
Thread.current[:filter] = data[:filter]
|
70
|
+
end
|
71
|
+
|
72
|
+
|
72
73
|
ActiveSupport::Notifications.subscribe 'request.action_dispatch' do |*args|
|
73
74
|
x = args.extract_options!
|
74
75
|
request = x[:request]
|
data/lib/ocean/version.rb
CHANGED
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: 2.
|
4
|
+
version: 2.2.0
|
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-
|
11
|
+
date: 2014-02-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|