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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 81d6dd372292acd1a8e2fcddc6ed4ca2f8f2d4ab73f9894318ba26067e96a8a0
4
- data.tar.gz: c4884163cbc574b1ce86d4a799c51507b88e2dbaa2f1c720c1d7362e1e39e7c0
3
+ metadata.gz: b7fee4262bb1eaad24bec542d9261e40cffcffcb232dc7f9b945282091f21c70
4
+ data.tar.gz: 77917cc08a2603799cb7eb8d2765e8b1da1c7761512c1a8e59d9c166277fb152
5
5
  SHA512:
6
- metadata.gz: 9d17b36f5eee269337f20ca2901db6fb12f59d4fedc6a440be878e05956b742c69da0169ada8f89cd86e9d003e8a58421b00b18a767f23ce43ab0f17071aa0c4
7
- data.tar.gz: a9902de9301144e6ed222eb786d32f1a13c3f504598d0dcc9d7479876c8fe0df566df1d6dc22af5695027c09231e360b72fbf9230632aacc9bd83656e08918e3
6
+ metadata.gz: a4663d4af95904f52b6ccd5e50fe56a1d0e36a95f28503d4a9aea2b6e6d2abd206396b85b1a402ca3b61877e78dd7a71044fe97cef17c621b82a147ff5b81987
7
+ data.tar.gz: 6cf90aff9dec23eb9f74eee0ef499545abed686c9525a62542801e689e1d71ad4c7931c7e94ca09623f5d3cda7b4619fc2cce2a3c984a58689be8afaca3352f3
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ == 0.8.0
2
+ - add ruby 3.4 support
3
+ - stop testing on some old rubies and rails (should still work on these)
4
+
1
5
  == 0.7.2
2
6
  - fix error `undefined method instance_of? for Redis::Future` for redis < 5
3
7
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class DeprecationCollector
4
- VERSION = "0.7.2"
4
+ VERSION = "0.8.0"
5
5
  end
@@ -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(':in `', 2)
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.delete_suffix("'")
72
+ i= function&.delete_suffix("'")
73
73
  - if deprecation[:app_traceline]
74
74
  .app_location
75
- - location, function = deprecation[:app_traceline].split(':in `', 2)
75
+ - location, function = deprecation[:app_traceline].split(/:in [`']/, 2)
76
76
  code.code_location>= location
77
- i= function.delete_suffix("'")
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(':in `', 2);
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.delete_suffix("'")))).to_s);
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(':in `', 2);
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.delete_suffix("'")))).to_s);
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(':in `', 2)
50
+ - location, function = @deprecation[:app_traceline].split(/:in [`'']/, 2)
51
51
  code.code_location>= location
52
- i= function.delete_suffix("'")
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(':in `', 2)
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.delete_suffix("'")
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(':in `', 2)
69
+ - location, function = trace_line.split(/:in ['`]/, 2)
70
70
  code.code_location>= location
71
- i= function.delete_suffix("'")
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(':in `', 2);
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.delete_suffix("'")))).to_s);
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(':in `', 2);
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.delete_suffix("'")))).to_s);
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(':in `', 2);
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.delete_suffix("'")))).to_s);
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.7.2
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: 2024-04-03 00:00:00.000000000 Z
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.1.6
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: []