stackify-api-ruby 1.2.9 → 1.2.10

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 371cb99e1d47ff1680b37a4e4a8b69a992787ef047c3973e923bb08032486239
4
- data.tar.gz: 379714698256d7614a12b1e07e996e5a0256f868df5db33e103ec136fd8eec01
3
+ metadata.gz: 176a9f9e6549b6c0b3245f2877f07c2ed3f60bce859a0100b0969ba15bc13bed
4
+ data.tar.gz: 2a0e49c2d11c76f213601b78ae1c654f350daedc340f1b006bc6574744d881a2
5
5
  SHA512:
6
- metadata.gz: f7aff04aee12c3a8346c39fb32f34965f360e969e960607053685c3081b2a27a333e4e7842d87f486d3ddb2341b49f18107276c96d8090d1b90e6ea258b766ab
7
- data.tar.gz: 7e2d3a430f5794f6e29689255adc9be0dd36b4bddc9504507161c1a0d0edd4699bfa1df675c803f0bc1c4bd4090d2b080bf78886837f89f0b84d74e7f673f050
6
+ metadata.gz: 93a6a7e73c28b1fa019c3709b48ea4352aaba4d14659a788a60305ea8ea23bc796836c1388d60b2530c4349a40cba9f99aee68ec9b74af593cfa172c4d3500cf
7
+ data.tar.gz: e999677aaa16ea4d4b3d3a500869f44b47251f0711573370dae92cc18828fe32cf95cb9781943d2e99e9d35d6a6c12fa1d92fa7d77575ff875a3b58c9d0b0fe9
@@ -39,15 +39,27 @@ module Stackify
39
39
  end
40
40
  end
41
41
 
42
- def set_console_logs logger
43
- # Handle the stdout logs from Action Controller
44
- ActionController::Base.logger = logger
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
- # Handle the stdout logs from Action View
47
- ActionView::Base.logger = logger
57
+ # Handle the stdout logs from Action View
58
+ ActionView::Base.logger = new_logger
48
59
 
49
- # Handle the stdout logs from Active Record
50
- ActiveRecord::Base.logger = logger
60
+ # Handle the stdout logs from Active Record
61
+ ActiveRecord::Base.logger = new_logger
62
+ end
51
63
  end
52
64
  end
53
65
 
@@ -1,3 +1,3 @@
1
1
  module Stackify
2
- VERSION = '1.2.9'
2
+ VERSION = '1.2.10'
3
3
  end
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.9
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: 2020-06-10 00:00:00.000000000 Z
11
+ date: 2021-02-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler