console-adapter-rails 0.1.2 → 0.1.4

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: b83029d181036c865ec489f6d59634fa975b3159664dc24d24638785e89c11d7
4
- data.tar.gz: '039ca5efca96c8d0eece6892fed268cd60170f4573725cecb3c8779d68976fb9'
3
+ metadata.gz: 32ef4499bd171281da2f8cd2cb4e4b8f2416ca4135422c23d6c2a8bae3d453ef
4
+ data.tar.gz: 96242d4c920937b903f1d3f8a09503368d3ee6198fbe9eaa76d640f8c7edde3b
5
5
  SHA512:
6
- metadata.gz: b4f710f1c68b72c2a58036f199a308d023ffaa251da28ed1608ba2ddd1ce2377aa6682c24aa732b53d597052870debe46307707870d7f1d91715a7e0ca8cfdf2
7
- data.tar.gz: 6b2ca0f6ba996643d01bc501e810369875485f8ef23321ca0185e4bb647c6d745f2e6fe5f3758600219eee87bf1b89f9d0d221ffef6c8ca067b9bd80d9f794ec
6
+ metadata.gz: c99b2b28e664e0739b4bb333c373e691950d1b4f0268c957dc02f4e677e78741d1aa8f6f6cbd4189fa3a7391f241b2db93ed1b55a422fb625f25ac4c973c5610
7
+ data.tar.gz: e00bd99060fc1b8a0119756fe612f5d1ea89f8816211c2d41eab9da9e752a25c3c24155a778023141336808ec83958868b88199a103d434245ab614af94f8a32
checksums.yaml.gz.sig CHANGED
Binary file
@@ -6,7 +6,7 @@
6
6
  module Console
7
7
  module Adapter
8
8
  module Rails
9
- VERSION = "0.1.2"
9
+ VERSION = "0.1.4"
10
10
  end
11
11
  end
12
12
  end
@@ -7,6 +7,7 @@ require 'console'
7
7
  require 'console/compatible/logger'
8
8
 
9
9
  require 'active_support/log_subscriber'
10
+ require 'active_support/tagged_logging'
10
11
  require 'action_controller/log_subscriber'
11
12
  require 'action_view/log_subscriber'
12
13
  require 'active_job/log_subscriber'
@@ -45,10 +46,12 @@ module Console
45
46
  request = payload.delete(:request)
46
47
  response = payload.delete(:response)
47
48
 
48
- # Extract redirect location if any:
49
- location = response.headers['Location'] || response.headers['location']
50
- if location
51
- payload[:location] = location
49
+ if response and headers = response.headers
50
+ # Extract redirect location if any:
51
+ location = response.headers['Location'] || response.headers['location']
52
+ if location
53
+ payload[:location] = location
54
+ end
52
55
  end
53
56
 
54
57
  payload[:allocations] = event.allocations
@@ -69,7 +72,10 @@ module Console
69
72
 
70
73
  if configuration
71
74
  # Set the logger to a compatible logger to catch `Rails.logger` output:
72
- configuration.logger = Console::Compatible::Logger.new("Rails", Console.logger)
75
+ configuration.logger = ActiveSupport::TaggedLogging.new(
76
+ Console::Compatible::Logger.new("Rails", Console.logger)
77
+ )
78
+
73
79
  # Delete `Rails::Rack::Logger` as it also doubles up on request logs:
74
80
  configuration.middleware.delete ::Rails::Rack::Logger
75
81
  end
data.tar.gz.sig CHANGED
@@ -1,3 +1 @@
1
- #!_oi��6Ԑ��I�;8c��`�;��["��IW#+F�Ҽ���J2ˮ(8��-dbV
2
- �#bX���(��ϦA�1��)���Z�����B��̛�ґa���� *����lKL�𩁦���#��a�c�K� �y6 �;+e g�{%;���P"���z
3
- T�īT3az��� �}���(��m����y�0+���{������&ak/��&V��������������[��bm�,.M�,�(y���Ng��<��^�Pveb��� </\��a�H����0J����H'Ho�z^c�u 4�G�E�R�I�Oeb m]��U�;H����u}�+��l N�����gv\���n_�`������φ9�
1
+ 5"V��z��c}~Y�K|�x��ܑ2�A�[�O1H4����MFl˸�+�gިkjӇ핑K["0����n=�E�?�U�o�%�u��2���%Ͳ�k&�y��p�����.3`��<�(�����BEh��"'�g��v!P���t�_B>��dp���[�7�]�J�;v�'qvE��/�N��}������j�w ������Ƚ} A��ʦ�w�+�S���f���7��<��0�0MזW����q�`�`O��ȁm�.�UЋ�/Ŝ�D���k8PF<��v�^��]uDl�o��qL��,і+�w�òA%��X���hO�3A���ܗ��,u��J�&ɪYY֢�塳�}����^�۩��x�QX[] Z�s���d�Q����
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: console-adapter-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
@@ -37,7 +37,7 @@ cert_chain:
37
37
  Q2K9NVun/S785AP05vKkXZEFYxqG6EW012U4oLcFl5MySFajYXRYbuUpH6AY+HP8
38
38
  voD0MPg1DssDLKwXyt1eKD/+Fq0bFWhwVM/1XiAXL7lyYUyOq24KHgQ2Csg=
39
39
  -----END CERTIFICATE-----
40
- date: 2023-08-02 00:00:00.000000000 Z
40
+ date: 2023-08-03 00:00:00.000000000 Z
41
41
  dependencies:
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: console
metadata.gz.sig CHANGED
Binary file