deprecation_collector 0.7.2 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/deprecation_collector/version.rb +1 -1
- data/lib/deprecation_collector/web/views/index.html.slim +4 -4
- data/lib/deprecation_collector/web/views/index.html.template.rb +4 -4
- data/lib/deprecation_collector/web/views/show.html.slim +6 -6
- data/lib/deprecation_collector/web/views/show.html.template.rb +6 -6
- metadata +3 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b7fee4262bb1eaad24bec542d9261e40cffcffcb232dc7f9b945282091f21c70
|
4
|
+
data.tar.gz: 77917cc08a2603799cb7eb8d2765e8b1da1c7761512c1a8e59d9c166277fb152
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a4663d4af95904f52b6ccd5e50fe56a1d0e36a95f28503d4a9aea2b6e6d2abd206396b85b1a402ca3b61877e78dd7a71044fe97cef17c621b82a147ff5b81987
|
7
|
+
data.tar.gz: 6cf90aff9dec23eb9f74eee0ef499545abed686c9525a62542801e689e1d71ad4c7931c7e94ca09623f5d3cda7b4619fc2cce2a3c984a58689be8afaca3352f3
|
data/CHANGELOG.md
CHANGED
@@ -64,17 +64,17 @@ main
|
|
64
64
|
td.small
|
65
65
|
- if deprecation[:gem_traceline]
|
66
66
|
.gem_location
|
67
|
-
- location, function = deprecation[:gem_traceline].split(
|
67
|
+
- location, function = deprecation[:gem_traceline].split(/:in [`']/, 2)
|
68
68
|
- full_gemname = location.delete_prefix('/gems/').gsub(%r{/.*}, '')
|
69
69
|
- location_in_gem = location.delete_prefix("/gems/#{full_gemname}/")
|
70
70
|
i>= full_gemname
|
71
71
|
code.code_location> data-copy-value=location_in_gem = location_in_gem.delete_prefix('lib/')
|
72
|
-
i= function
|
72
|
+
i= function&.delete_suffix("'")
|
73
73
|
- if deprecation[:app_traceline]
|
74
74
|
.app_location
|
75
|
-
- location, function = deprecation[:app_traceline].split(
|
75
|
+
- location, function = deprecation[:app_traceline].split(/:in [`']/, 2)
|
76
76
|
code.code_location>= location
|
77
|
-
i= function
|
77
|
+
i= function&.delete_suffix("'")
|
78
78
|
td
|
79
79
|
.small.ruby = deprecation[:ruby_version]
|
80
80
|
.small.rails = deprecation[:rails_version]
|
@@ -64,17 +64,17 @@ msg.delete_prefix!("warning: ")
|
|
64
64
|
; _buf << ("</i>".freeze); end; _buf << ("</td><td class=\"small\">".freeze);
|
65
65
|
; if deprecation[:gem_traceline];
|
66
66
|
; _buf << ("<div class=\"gem_location\">".freeze);
|
67
|
-
; location, function = deprecation[:gem_traceline].split(
|
67
|
+
; location, function = deprecation[:gem_traceline].split(/:in [`']/, 2);
|
68
68
|
; full_gemname = location.delete_prefix('/gems/').gsub(%r{/.*}, '');
|
69
69
|
; location_in_gem = location.delete_prefix("/gems/#{full_gemname}/");
|
70
70
|
; _buf << ("<i>".freeze); _buf << ((::Temple::Utils.escape_html((full_gemname))).to_s);
|
71
71
|
; _buf << ("</i> <code class=\"code_location\"".freeze); _slim_codeattributes8 = location_in_gem; if _slim_codeattributes8; if _slim_codeattributes8 == true; _buf << (" data-copy-value=\"\"".freeze); else; _buf << (" data-copy-value=\"".freeze); _buf << ((::Temple::Utils.escape_html((_slim_codeattributes8))).to_s); _buf << ("\"".freeze); end; end; _buf << (">".freeze); _buf << ((::Temple::Utils.escape_html((location_in_gem.delete_prefix('lib/')))).to_s);
|
72
|
-
; _buf << ("</code> <i>".freeze); _buf << ((::Temple::Utils.escape_html((function
|
72
|
+
; _buf << ("</code> <i>".freeze); _buf << ((::Temple::Utils.escape_html((function&.delete_suffix("'")))).to_s);
|
73
73
|
; _buf << ("</i></div>".freeze); end; if deprecation[:app_traceline];
|
74
74
|
; _buf << ("<div class=\"app_location\">".freeze);
|
75
|
-
; location, function = deprecation[:app_traceline].split(
|
75
|
+
; location, function = deprecation[:app_traceline].split(/:in [`']/, 2);
|
76
76
|
; _buf << ("<code class=\"code_location\">".freeze); _buf << ((::Temple::Utils.escape_html((location))).to_s);
|
77
|
-
; _buf << ("</code> <i>".freeze); _buf << ((::Temple::Utils.escape_html((function
|
77
|
+
; _buf << ("</code> <i>".freeze); _buf << ((::Temple::Utils.escape_html((function&.delete_suffix("'")))).to_s);
|
78
78
|
; _buf << ("</i></div>".freeze); end; _buf << ("</td><td><div class=\"small ruby\">".freeze);
|
79
79
|
; _buf << ((::Temple::Utils.escape_html((deprecation[:ruby_version]))).to_s);
|
80
80
|
; _buf << ("</div><div class=\"small rails\">".freeze); _buf << ((::Temple::Utils.escape_html((deprecation[:rails_version]))).to_s);
|
@@ -47,28 +47,28 @@ main
|
|
47
47
|
- if @deprecation[:app_traceline]
|
48
48
|
dt App traceline
|
49
49
|
dd
|
50
|
-
- location, function = @deprecation[:app_traceline].split(
|
50
|
+
- location, function = @deprecation[:app_traceline].split(/:in [`'']/, 2)
|
51
51
|
code.code_location>= location
|
52
|
-
i= function
|
52
|
+
i= function&.delete_suffix("'")
|
53
53
|
|
54
54
|
- if @deprecation[:gem_traceline]
|
55
55
|
dt Gem traceline
|
56
56
|
dd
|
57
|
-
- location, function = @deprecation[:gem_traceline].split(
|
57
|
+
- location, function = @deprecation[:gem_traceline].split(/:in [`'']/, 2)
|
58
58
|
- full_gemname = location.delete_prefix('/gems/').gsub(%r{/.*}, '')
|
59
59
|
- location_in_gem = location.delete_prefix("/gems/#{full_gemname}/")
|
60
60
|
i>= full_gemname
|
61
61
|
code.code_location> data-copy-value=location_in_gem = location_in_gem.delete_prefix('lib/')
|
62
|
-
i= function
|
62
|
+
i= function&.delete_suffix("'")
|
63
63
|
|
64
64
|
- if @deprecation[:full_backtrace]
|
65
65
|
dt Backtrace
|
66
66
|
dd
|
67
67
|
- @deprecation[:full_backtrace].each do |trace_line|
|
68
68
|
.trace-line
|
69
|
-
- location, function = trace_line.split(
|
69
|
+
- location, function = trace_line.split(/:in ['`]/, 2)
|
70
70
|
code.code_location>= location
|
71
|
-
i= function
|
71
|
+
i= function&.delete_suffix("'")
|
72
72
|
|
73
73
|
- fields_to_reject = %i[message first_timestamp count realm app_traceline gem_traceline full_backtrace ruby_version rails_version context revision hostname digest_base digest].to_set
|
74
74
|
- additional_data = @deprecation.reject { |key,_val| fields_to_reject.include?(key) }
|
@@ -47,28 +47,28 @@ _buf = ''.dup; _buf << ("<header class=\"mb-3\"><h1>Deprecation</h1><a class=\"b
|
|
47
47
|
; _buf << ("</code></pre></div></dd>".freeze); end; if @deprecation[:app_traceline];
|
48
48
|
; _buf << ("<dt>App traceline</dt><dd>".freeze);
|
49
49
|
;
|
50
|
-
; location, function = @deprecation[:app_traceline].split(
|
50
|
+
; location, function = @deprecation[:app_traceline].split(/:in [`'']/, 2);
|
51
51
|
; _buf << ("<code class=\"code_location\">".freeze); _buf << ((::Temple::Utils.escape_html((location))).to_s);
|
52
|
-
; _buf << ("</code> <i>".freeze); _buf << ((::Temple::Utils.escape_html((function
|
52
|
+
; _buf << ("</code> <i>".freeze); _buf << ((::Temple::Utils.escape_html((function&.delete_suffix("'")))).to_s);
|
53
53
|
;
|
54
54
|
; _buf << ("</i></dd>".freeze); end; if @deprecation[:gem_traceline];
|
55
55
|
; _buf << ("<dt>Gem traceline</dt><dd>".freeze);
|
56
56
|
;
|
57
|
-
; location, function = @deprecation[:gem_traceline].split(
|
57
|
+
; location, function = @deprecation[:gem_traceline].split(/:in [`'']/, 2);
|
58
58
|
; full_gemname = location.delete_prefix('/gems/').gsub(%r{/.*}, '');
|
59
59
|
; location_in_gem = location.delete_prefix("/gems/#{full_gemname}/");
|
60
60
|
; _buf << ("<i>".freeze); _buf << ((::Temple::Utils.escape_html((full_gemname))).to_s);
|
61
61
|
; _buf << ("</i> <code class=\"code_location\"".freeze); _slim_codeattributes3 = location_in_gem; if _slim_codeattributes3; if _slim_codeattributes3 == true; _buf << (" data-copy-value=\"\"".freeze); else; _buf << (" data-copy-value=\"".freeze); _buf << ((::Temple::Utils.escape_html((_slim_codeattributes3))).to_s); _buf << ("\"".freeze); end; end; _buf << (">".freeze); _buf << ((::Temple::Utils.escape_html((location_in_gem.delete_prefix('lib/')))).to_s);
|
62
|
-
; _buf << ("</code> <i>".freeze); _buf << ((::Temple::Utils.escape_html((function
|
62
|
+
; _buf << ("</code> <i>".freeze); _buf << ((::Temple::Utils.escape_html((function&.delete_suffix("'")))).to_s);
|
63
63
|
;
|
64
64
|
; _buf << ("</i></dd>".freeze); end; if @deprecation[:full_backtrace];
|
65
65
|
; _buf << ("<dt>Backtrace</dt><dd>".freeze);
|
66
66
|
;
|
67
67
|
; @deprecation[:full_backtrace].each do |trace_line|;
|
68
68
|
; _buf << ("<div class=\"trace-line\">".freeze);
|
69
|
-
; location, function = trace_line.split(
|
69
|
+
; location, function = trace_line.split(/:in ['`]/, 2);
|
70
70
|
; _buf << ("<code class=\"code_location\">".freeze); _buf << ((::Temple::Utils.escape_html((location))).to_s);
|
71
|
-
; _buf << ("</code> <i>".freeze); _buf << ((::Temple::Utils.escape_html((function
|
71
|
+
; _buf << ("</code> <i>".freeze); _buf << ((::Temple::Utils.escape_html((function&.delete_suffix("'")))).to_s);
|
72
72
|
;
|
73
73
|
; _buf << ("</i></div>".freeze); end; _buf << ("</dd>".freeze); end; fields_to_reject = %i[message first_timestamp count realm app_traceline gem_traceline full_backtrace ruby_version rails_version context revision hostname digest_base digest].to_set;
|
74
74
|
; additional_data = @deprecation.reject { |key,_val| fields_to_reject.include?(key) };
|
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: deprecation_collector
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vasily Fedoseyev
|
8
|
-
autorequire:
|
9
8
|
bindir: bin
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 2025-01-14 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: redis
|
@@ -63,7 +62,6 @@ metadata:
|
|
63
62
|
homepage_uri: https://github.com/Vasfed/deprecation_collector
|
64
63
|
source_code_uri: https://github.com/Vasfed/deprecation_collector
|
65
64
|
changelog_uri: https://github.com/Vasfed/deprecation_collector/blob/main/CHANGELOG.md
|
66
|
-
post_install_message:
|
67
65
|
rdoc_options: []
|
68
66
|
require_paths:
|
69
67
|
- lib
|
@@ -78,8 +76,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
78
76
|
- !ruby/object:Gem::Version
|
79
77
|
version: '0'
|
80
78
|
requirements: []
|
81
|
-
rubygems_version: 3.
|
82
|
-
signing_key:
|
79
|
+
rubygems_version: 3.6.2
|
83
80
|
specification_version: 4
|
84
81
|
summary: Collector for ruby/rails deprecations and warnings, suitable for production
|
85
82
|
test_files: []
|