deprecation_collector 0.5.2 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +9 -0
  3. data/README.md +10 -0
  4. data/deprecation_collector.gemspec +1 -10
  5. data/lib/deprecation_collector/collectors.rb +32 -6
  6. data/lib/deprecation_collector/storage/active_record.rb +155 -0
  7. data/lib/deprecation_collector/storage.rb +6 -1
  8. data/lib/deprecation_collector/version.rb +1 -1
  9. data/lib/deprecation_collector/web/application.rb +6 -5
  10. data/lib/deprecation_collector/web/helpers.rb +18 -11
  11. data/lib/deprecation_collector/web/router.rb +9 -5
  12. data/lib/deprecation_collector/web/views/import.html.slim +12 -0
  13. data/lib/deprecation_collector/web/views/import.html.template.rb +1 -1
  14. data/lib/deprecation_collector/web/views/index.html.slim +121 -0
  15. data/lib/deprecation_collector/web/views/index.html.template.rb +6 -6
  16. data/lib/deprecation_collector/web/views/layout.html.slim +90 -0
  17. data/lib/deprecation_collector/web/views/layout.html.template.rb +1 -1
  18. data/lib/deprecation_collector/web/views/show.html.slim +81 -0
  19. data/lib/deprecation_collector/web/views/show.html.template.rb +2 -2
  20. data/lib/deprecation_collector.rb +13 -3
  21. metadata +7 -43
  22. data/.rspec +0 -3
  23. data/.rubocop.yml +0 -34
  24. data/Appraisals +0 -13
  25. data/Gemfile +0 -33
  26. data/Gemfile.lock +0 -249
  27. data/LICENSE +0 -21
  28. data/Rakefile +0 -30
  29. data/gemfiles/rails_6.gemfile +0 -15
  30. data/gemfiles/rails_6.gemfile.lock +0 -198
  31. data/gemfiles/rails_7.gemfile +0 -15
  32. data/gemfiles/rails_7.gemfile.lock +0 -197
  33. data/gemfiles/rails_none.gemfile +0 -14
  34. data/gemfiles/rails_none.gemfile.lock +0 -62
data/Rakefile DELETED
@@ -1,30 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require "bundler/gem_tasks"
4
- require "rspec/core/rake_task"
5
-
6
- RSpec::Core::RakeTask.new(:spec)
7
-
8
- begin
9
- require "rubocop/rake_task"
10
- RuboCop::RakeTask.new
11
- rescue LoadError # rubocop:disable Lint/SuppressedException
12
- end
13
-
14
- task default: %i[spec rubocop]
15
-
16
- desc "Compile slim templates (so that slim is not needed as dependency)"
17
- task :precompile_templates do
18
- require "slim"
19
- # Slim::Template.new { '.lala' }.precompiled_template
20
- Dir["lib/deprecation_collector/web/views/*.slim"].each do |file|
21
- target = file.sub(/\.slim\z/, ".template.rb")
22
- puts "Compiling #{file} -> #{target}"
23
- content = Slim::Template.new(file).precompiled_template # maybe send(:precompiled, []) is more correct
24
-
25
- File.write(target, content)
26
- end
27
- end
28
-
29
- Rake::Task[:spec].enhance [:precompile_templates]
30
- Rake::Task[:build].enhance [:precompile_templates]
@@ -1,15 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "rake", "~> 13.0"
6
- gem "rspec", "~> 3.0"
7
- gem "timecop"
8
- gem "fakeredis"
9
- gem "redis", "~>4.8"
10
- gem "rack"
11
- gem "webrick"
12
- gem "slim"
13
- gem "rails", "~>6.0"
14
-
15
- gemspec path: "../"
@@ -1,198 +0,0 @@
1
- PATH
2
- remote: ..
3
- specs:
4
- deprecation_collector (0.5.2)
5
- redis (>= 3.0)
6
-
7
- GEM
8
- remote: https://rubygems.org/
9
- specs:
10
- actioncable (6.1.7.3)
11
- actionpack (= 6.1.7.3)
12
- activesupport (= 6.1.7.3)
13
- nio4r (~> 2.0)
14
- websocket-driver (>= 0.6.1)
15
- actionmailbox (6.1.7.3)
16
- actionpack (= 6.1.7.3)
17
- activejob (= 6.1.7.3)
18
- activerecord (= 6.1.7.3)
19
- activestorage (= 6.1.7.3)
20
- activesupport (= 6.1.7.3)
21
- mail (>= 2.7.1)
22
- actionmailer (6.1.7.3)
23
- actionpack (= 6.1.7.3)
24
- actionview (= 6.1.7.3)
25
- activejob (= 6.1.7.3)
26
- activesupport (= 6.1.7.3)
27
- mail (~> 2.5, >= 2.5.4)
28
- rails-dom-testing (~> 2.0)
29
- actionpack (6.1.7.3)
30
- actionview (= 6.1.7.3)
31
- activesupport (= 6.1.7.3)
32
- rack (~> 2.0, >= 2.0.9)
33
- rack-test (>= 0.6.3)
34
- rails-dom-testing (~> 2.0)
35
- rails-html-sanitizer (~> 1.0, >= 1.2.0)
36
- actiontext (6.1.7.3)
37
- actionpack (= 6.1.7.3)
38
- activerecord (= 6.1.7.3)
39
- activestorage (= 6.1.7.3)
40
- activesupport (= 6.1.7.3)
41
- nokogiri (>= 1.8.5)
42
- actionview (6.1.7.3)
43
- activesupport (= 6.1.7.3)
44
- builder (~> 3.1)
45
- erubi (~> 1.4)
46
- rails-dom-testing (~> 2.0)
47
- rails-html-sanitizer (~> 1.1, >= 1.2.0)
48
- activejob (6.1.7.3)
49
- activesupport (= 6.1.7.3)
50
- globalid (>= 0.3.6)
51
- activemodel (6.1.7.3)
52
- activesupport (= 6.1.7.3)
53
- activerecord (6.1.7.3)
54
- activemodel (= 6.1.7.3)
55
- activesupport (= 6.1.7.3)
56
- activestorage (6.1.7.3)
57
- actionpack (= 6.1.7.3)
58
- activejob (= 6.1.7.3)
59
- activerecord (= 6.1.7.3)
60
- activesupport (= 6.1.7.3)
61
- marcel (~> 1.0)
62
- mini_mime (>= 1.1.0)
63
- activesupport (6.1.7.3)
64
- concurrent-ruby (~> 1.0, >= 1.0.2)
65
- i18n (>= 1.6, < 2)
66
- minitest (>= 5.1)
67
- tzinfo (~> 2.0)
68
- zeitwerk (~> 2.3)
69
- appraisal (2.4.1)
70
- bundler
71
- rake
72
- thor (>= 0.14.0)
73
- builder (3.2.4)
74
- concurrent-ruby (1.2.2)
75
- crass (1.0.6)
76
- date (3.3.3)
77
- diff-lcs (1.5.0)
78
- erubi (1.12.0)
79
- fakeredis (0.9.1)
80
- redis (~> 4.8)
81
- globalid (1.1.0)
82
- activesupport (>= 5.0)
83
- i18n (1.13.0)
84
- concurrent-ruby (~> 1.0)
85
- loofah (2.20.0)
86
- crass (~> 1.0.2)
87
- nokogiri (>= 1.5.9)
88
- mail (2.8.1)
89
- mini_mime (>= 0.1.1)
90
- net-imap
91
- net-pop
92
- net-smtp
93
- marcel (1.0.2)
94
- method_source (1.0.0)
95
- mini_mime (1.1.2)
96
- minitest (5.18.0)
97
- net-imap (0.3.4)
98
- date
99
- net-protocol
100
- net-pop (0.1.2)
101
- net-protocol
102
- net-protocol (0.2.1)
103
- timeout
104
- net-smtp (0.3.3)
105
- net-protocol
106
- nio4r (2.5.9)
107
- nokogiri (1.14.3-x86_64-darwin)
108
- racc (~> 1.4)
109
- nokogiri (1.14.3-x86_64-linux)
110
- racc (~> 1.4)
111
- racc (1.6.2)
112
- rack (2.2.7)
113
- rack-test (2.1.0)
114
- rack (>= 1.3)
115
- rails (6.1.7.3)
116
- actioncable (= 6.1.7.3)
117
- actionmailbox (= 6.1.7.3)
118
- actionmailer (= 6.1.7.3)
119
- actionpack (= 6.1.7.3)
120
- actiontext (= 6.1.7.3)
121
- actionview (= 6.1.7.3)
122
- activejob (= 6.1.7.3)
123
- activemodel (= 6.1.7.3)
124
- activerecord (= 6.1.7.3)
125
- activestorage (= 6.1.7.3)
126
- activesupport (= 6.1.7.3)
127
- bundler (>= 1.15.0)
128
- railties (= 6.1.7.3)
129
- sprockets-rails (>= 2.0.0)
130
- rails-dom-testing (2.0.3)
131
- activesupport (>= 4.2.0)
132
- nokogiri (>= 1.6)
133
- rails-html-sanitizer (1.5.0)
134
- loofah (~> 2.19, >= 2.19.1)
135
- railties (6.1.7.3)
136
- actionpack (= 6.1.7.3)
137
- activesupport (= 6.1.7.3)
138
- method_source
139
- rake (>= 12.2)
140
- thor (~> 1.0)
141
- rake (13.0.6)
142
- redis (4.8.1)
143
- rspec (3.12.0)
144
- rspec-core (~> 3.12.0)
145
- rspec-expectations (~> 3.12.0)
146
- rspec-mocks (~> 3.12.0)
147
- rspec-core (3.12.2)
148
- rspec-support (~> 3.12.0)
149
- rspec-expectations (3.12.3)
150
- diff-lcs (>= 1.2.0, < 2.0)
151
- rspec-support (~> 3.12.0)
152
- rspec-mocks (3.12.5)
153
- diff-lcs (>= 1.2.0, < 2.0)
154
- rspec-support (~> 3.12.0)
155
- rspec-support (3.12.0)
156
- slim (5.1.0)
157
- temple (~> 0.10.0)
158
- tilt (>= 2.0.6, < 2.2)
159
- sprockets (4.2.0)
160
- concurrent-ruby (~> 1.0)
161
- rack (>= 2.2.4, < 4)
162
- sprockets-rails (3.4.2)
163
- actionpack (>= 5.2)
164
- activesupport (>= 5.2)
165
- sprockets (>= 3.0.0)
166
- temple (0.10.0)
167
- thor (1.2.1)
168
- tilt (2.1.0)
169
- timecop (0.9.6)
170
- timeout (0.3.2)
171
- tzinfo (2.0.6)
172
- concurrent-ruby (~> 1.0)
173
- webrick (1.8.1)
174
- websocket-driver (0.7.5)
175
- websocket-extensions (>= 0.1.0)
176
- websocket-extensions (0.1.5)
177
- zeitwerk (2.6.7)
178
-
179
- PLATFORMS
180
- x86_64-darwin-21
181
- x86_64-linux
182
-
183
- DEPENDENCIES
184
- appraisal
185
- deprecation_collector!
186
- fakeredis
187
- rack
188
- rack-test
189
- rails (~> 6.0)
190
- rake (~> 13.0)
191
- redis (~> 4.8)
192
- rspec (~> 3.0)
193
- slim
194
- timecop
195
- webrick
196
-
197
- BUNDLED WITH
198
- 2.3.10
@@ -1,15 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "rake", "~> 13.0"
6
- gem "rspec", "~> 3.0"
7
- gem "timecop"
8
- gem "fakeredis"
9
- gem "redis", "~>4.8"
10
- gem "rack"
11
- gem "webrick"
12
- gem "slim"
13
- gem "rails", "~>7.0"
14
-
15
- gemspec path: "../"
@@ -1,197 +0,0 @@
1
- PATH
2
- remote: ..
3
- specs:
4
- deprecation_collector (0.5.2)
5
- redis (>= 3.0)
6
-
7
- GEM
8
- remote: https://rubygems.org/
9
- specs:
10
- actioncable (7.0.4.3)
11
- actionpack (= 7.0.4.3)
12
- activesupport (= 7.0.4.3)
13
- nio4r (~> 2.0)
14
- websocket-driver (>= 0.6.1)
15
- actionmailbox (7.0.4.3)
16
- actionpack (= 7.0.4.3)
17
- activejob (= 7.0.4.3)
18
- activerecord (= 7.0.4.3)
19
- activestorage (= 7.0.4.3)
20
- activesupport (= 7.0.4.3)
21
- mail (>= 2.7.1)
22
- net-imap
23
- net-pop
24
- net-smtp
25
- actionmailer (7.0.4.3)
26
- actionpack (= 7.0.4.3)
27
- actionview (= 7.0.4.3)
28
- activejob (= 7.0.4.3)
29
- activesupport (= 7.0.4.3)
30
- mail (~> 2.5, >= 2.5.4)
31
- net-imap
32
- net-pop
33
- net-smtp
34
- rails-dom-testing (~> 2.0)
35
- actionpack (7.0.4.3)
36
- actionview (= 7.0.4.3)
37
- activesupport (= 7.0.4.3)
38
- rack (~> 2.0, >= 2.2.0)
39
- rack-test (>= 0.6.3)
40
- rails-dom-testing (~> 2.0)
41
- rails-html-sanitizer (~> 1.0, >= 1.2.0)
42
- actiontext (7.0.4.3)
43
- actionpack (= 7.0.4.3)
44
- activerecord (= 7.0.4.3)
45
- activestorage (= 7.0.4.3)
46
- activesupport (= 7.0.4.3)
47
- globalid (>= 0.6.0)
48
- nokogiri (>= 1.8.5)
49
- actionview (7.0.4.3)
50
- activesupport (= 7.0.4.3)
51
- builder (~> 3.1)
52
- erubi (~> 1.4)
53
- rails-dom-testing (~> 2.0)
54
- rails-html-sanitizer (~> 1.1, >= 1.2.0)
55
- activejob (7.0.4.3)
56
- activesupport (= 7.0.4.3)
57
- globalid (>= 0.3.6)
58
- activemodel (7.0.4.3)
59
- activesupport (= 7.0.4.3)
60
- activerecord (7.0.4.3)
61
- activemodel (= 7.0.4.3)
62
- activesupport (= 7.0.4.3)
63
- activestorage (7.0.4.3)
64
- actionpack (= 7.0.4.3)
65
- activejob (= 7.0.4.3)
66
- activerecord (= 7.0.4.3)
67
- activesupport (= 7.0.4.3)
68
- marcel (~> 1.0)
69
- mini_mime (>= 1.1.0)
70
- activesupport (7.0.4.3)
71
- concurrent-ruby (~> 1.0, >= 1.0.2)
72
- i18n (>= 1.6, < 2)
73
- minitest (>= 5.1)
74
- tzinfo (~> 2.0)
75
- appraisal (2.4.1)
76
- bundler
77
- rake
78
- thor (>= 0.14.0)
79
- builder (3.2.4)
80
- concurrent-ruby (1.2.2)
81
- crass (1.0.6)
82
- date (3.3.3)
83
- diff-lcs (1.5.0)
84
- erubi (1.12.0)
85
- fakeredis (0.9.1)
86
- redis (~> 4.8)
87
- globalid (1.1.0)
88
- activesupport (>= 5.0)
89
- i18n (1.13.0)
90
- concurrent-ruby (~> 1.0)
91
- loofah (2.20.0)
92
- crass (~> 1.0.2)
93
- nokogiri (>= 1.5.9)
94
- mail (2.8.1)
95
- mini_mime (>= 0.1.1)
96
- net-imap
97
- net-pop
98
- net-smtp
99
- marcel (1.0.2)
100
- method_source (1.0.0)
101
- mini_mime (1.1.2)
102
- minitest (5.18.0)
103
- net-imap (0.3.4)
104
- date
105
- net-protocol
106
- net-pop (0.1.2)
107
- net-protocol
108
- net-protocol (0.2.1)
109
- timeout
110
- net-smtp (0.3.3)
111
- net-protocol
112
- nio4r (2.5.9)
113
- nokogiri (1.14.3-x86_64-darwin)
114
- racc (~> 1.4)
115
- nokogiri (1.14.3-x86_64-linux)
116
- racc (~> 1.4)
117
- racc (1.6.2)
118
- rack (2.2.7)
119
- rack-test (2.1.0)
120
- rack (>= 1.3)
121
- rails (7.0.4.3)
122
- actioncable (= 7.0.4.3)
123
- actionmailbox (= 7.0.4.3)
124
- actionmailer (= 7.0.4.3)
125
- actionpack (= 7.0.4.3)
126
- actiontext (= 7.0.4.3)
127
- actionview (= 7.0.4.3)
128
- activejob (= 7.0.4.3)
129
- activemodel (= 7.0.4.3)
130
- activerecord (= 7.0.4.3)
131
- activestorage (= 7.0.4.3)
132
- activesupport (= 7.0.4.3)
133
- bundler (>= 1.15.0)
134
- railties (= 7.0.4.3)
135
- rails-dom-testing (2.0.3)
136
- activesupport (>= 4.2.0)
137
- nokogiri (>= 1.6)
138
- rails-html-sanitizer (1.5.0)
139
- loofah (~> 2.19, >= 2.19.1)
140
- railties (7.0.4.3)
141
- actionpack (= 7.0.4.3)
142
- activesupport (= 7.0.4.3)
143
- method_source
144
- rake (>= 12.2)
145
- thor (~> 1.0)
146
- zeitwerk (~> 2.5)
147
- rake (13.0.6)
148
- redis (4.8.1)
149
- rspec (3.12.0)
150
- rspec-core (~> 3.12.0)
151
- rspec-expectations (~> 3.12.0)
152
- rspec-mocks (~> 3.12.0)
153
- rspec-core (3.12.2)
154
- rspec-support (~> 3.12.0)
155
- rspec-expectations (3.12.3)
156
- diff-lcs (>= 1.2.0, < 2.0)
157
- rspec-support (~> 3.12.0)
158
- rspec-mocks (3.12.5)
159
- diff-lcs (>= 1.2.0, < 2.0)
160
- rspec-support (~> 3.12.0)
161
- rspec-support (3.12.0)
162
- slim (5.1.0)
163
- temple (~> 0.10.0)
164
- tilt (>= 2.0.6, < 2.2)
165
- temple (0.10.0)
166
- thor (1.2.1)
167
- tilt (2.1.0)
168
- timecop (0.9.6)
169
- timeout (0.3.2)
170
- tzinfo (2.0.6)
171
- concurrent-ruby (~> 1.0)
172
- webrick (1.8.1)
173
- websocket-driver (0.7.5)
174
- websocket-extensions (>= 0.1.0)
175
- websocket-extensions (0.1.5)
176
- zeitwerk (2.6.7)
177
-
178
- PLATFORMS
179
- x86_64-darwin-21
180
- x86_64-linux
181
-
182
- DEPENDENCIES
183
- appraisal
184
- deprecation_collector!
185
- fakeredis
186
- rack
187
- rack-test
188
- rails (~> 7.0)
189
- rake (~> 13.0)
190
- redis (~> 4.8)
191
- rspec (~> 3.0)
192
- slim
193
- timecop
194
- webrick
195
-
196
- BUNDLED WITH
197
- 2.3.10
@@ -1,14 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "rake", "~> 13.0"
6
- gem "rspec", "~> 3.0"
7
- gem "timecop"
8
- gem "fakeredis"
9
- gem "redis", "~>4.8"
10
- gem "rack"
11
- gem "webrick"
12
- gem "slim"
13
-
14
- gemspec path: "../"
@@ -1,62 +0,0 @@
1
- PATH
2
- remote: ..
3
- specs:
4
- deprecation_collector (0.5.2)
5
- redis (>= 3.0)
6
-
7
- GEM
8
- remote: https://rubygems.org/
9
- specs:
10
- appraisal (2.4.1)
11
- bundler
12
- rake
13
- thor (>= 0.14.0)
14
- diff-lcs (1.5.0)
15
- fakeredis (0.9.1)
16
- redis (~> 4.8)
17
- rack (3.0.7)
18
- rack-test (2.1.0)
19
- rack (>= 1.3)
20
- rake (13.0.6)
21
- redis (4.8.1)
22
- rspec (3.12.0)
23
- rspec-core (~> 3.12.0)
24
- rspec-expectations (~> 3.12.0)
25
- rspec-mocks (~> 3.12.0)
26
- rspec-core (3.12.2)
27
- rspec-support (~> 3.12.0)
28
- rspec-expectations (3.12.3)
29
- diff-lcs (>= 1.2.0, < 2.0)
30
- rspec-support (~> 3.12.0)
31
- rspec-mocks (3.12.5)
32
- diff-lcs (>= 1.2.0, < 2.0)
33
- rspec-support (~> 3.12.0)
34
- rspec-support (3.12.0)
35
- slim (5.1.0)
36
- temple (~> 0.10.0)
37
- tilt (>= 2.0.6, < 2.2)
38
- temple (0.10.0)
39
- thor (1.2.1)
40
- tilt (2.1.0)
41
- timecop (0.9.6)
42
- webrick (1.8.1)
43
-
44
- PLATFORMS
45
- x86_64-darwin-21
46
- x86_64-linux
47
-
48
- DEPENDENCIES
49
- appraisal
50
- deprecation_collector!
51
- fakeredis
52
- rack
53
- rack-test
54
- rake (~> 13.0)
55
- redis (~> 4.8)
56
- rspec (~> 3.0)
57
- slim
58
- timecop
59
- webrick
60
-
61
- BUNDLED WITH
62
- 2.3.10