stackify-api-ruby 1.2.9 → 1.2.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/stackify/engine.rb +19 -7
- data/lib/stackify/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 176a9f9e6549b6c0b3245f2877f07c2ed3f60bce859a0100b0969ba15bc13bed
|
4
|
+
data.tar.gz: 2a0e49c2d11c76f213601b78ae1c654f350daedc340f1b006bc6574744d881a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 93a6a7e73c28b1fa019c3709b48ea4352aaba4d14659a788a60305ea8ea23bc796836c1388d60b2530c4349a40cba9f99aee68ec9b74af593cfa172c4d3500cf
|
7
|
+
data.tar.gz: e999677aaa16ea4d4b3d3a500869f44b47251f0711573370dae92cc18828fe32cf95cb9781943d2e99e9d35d6a6c12fa1d92fa7d77575ff875a3b58c9d0b0fe9
|
data/lib/stackify/engine.rb
CHANGED
@@ -39,15 +39,27 @@ module Stackify
|
|
39
39
|
end
|
40
40
|
end
|
41
41
|
|
42
|
-
def set_console_logs
|
43
|
-
|
44
|
-
|
42
|
+
def set_console_logs new_logger
|
43
|
+
if Gem::Version.new(Rails::VERSION::STRING) >= Gem::Version.new('6.0')
|
44
|
+
ActiveSupport.on_load(:action_controller_base) do
|
45
|
+
logger = new_logger
|
46
|
+
end
|
47
|
+
ActiveSupport.on_load(:action_view) do
|
48
|
+
logger = new_logger
|
49
|
+
end
|
50
|
+
ActiveSupport.on_load(:active_record) do
|
51
|
+
logger = new_logger
|
52
|
+
end
|
53
|
+
else
|
54
|
+
# Handle the stdout logs from Action Controller
|
55
|
+
ActionController::Base.logger = new_logger
|
45
56
|
|
46
|
-
|
47
|
-
|
57
|
+
# Handle the stdout logs from Action View
|
58
|
+
ActionView::Base.logger = new_logger
|
48
59
|
|
49
|
-
|
50
|
-
|
60
|
+
# Handle the stdout logs from Active Record
|
61
|
+
ActiveRecord::Base.logger = new_logger
|
62
|
+
end
|
51
63
|
end
|
52
64
|
end
|
53
65
|
|
data/lib/stackify/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stackify-api-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stackify
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-02-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|