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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/console/adapter/rails/version.rb +1 -1
- data/lib/console/adapter/rails.rb +11 -5
- data.tar.gz.sig +1 -3
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 32ef4499bd171281da2f8cd2cb4e4b8f2416ca4135422c23d6c2a8bae3d453ef
|
|
4
|
+
data.tar.gz: 96242d4c920937b903f1d3f8a09503368d3ee6198fbe9eaa76d640f8c7edde3b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c99b2b28e664e0739b4bb333c373e691950d1b4f0268c957dc02f4e677e78741d1aa8f6f6cbd4189fa3a7391f241b2db93ed1b55a422fb625f25ac4c973c5610
|
|
7
|
+
data.tar.gz: e00bd99060fc1b8a0119756fe612f5d1ea89f8816211c2d41eab9da9e752a25c3c24155a778023141336808ec83958868b88199a103d434245ab614af94f8a32
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
|
@@ -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
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
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 =
|
|
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
|
-
|
|
2
|
-
�#bX���(��ϦA�1��)���Z�����B��̛�ґa���� *����lKL�𩁦���#��a�c�K��y6�;+eg�{%;���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�Oebm]��U�;H����u}�+��lN�����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.
|
|
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-
|
|
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
|