gems-status 0.27.0 → 0.28.0
Sign up to get free protection for your applications and to get access to all the features.
@@ -77,10 +77,11 @@ class GemsCompositeCommand < GemsCommand
|
|
77
77
|
end
|
78
78
|
|
79
79
|
def print
|
80
|
-
HTMLView
|
80
|
+
html_view = HTMLView.new
|
81
|
+
html_view.print_head
|
81
82
|
ids = []
|
82
83
|
@commands.each { |c| ids << c.ident }
|
83
|
-
|
84
|
+
html_view.print_description(ids)
|
84
85
|
if !are_there_results?
|
85
86
|
return
|
86
87
|
end
|
@@ -98,9 +99,9 @@ class GemsCompositeCommand < GemsCommand
|
|
98
99
|
else
|
99
100
|
comments = nil
|
100
101
|
end
|
101
|
-
|
102
|
+
html_view.print_results(k, @results, @target, checker_results, comments)
|
102
103
|
@comments.delete(k)
|
103
104
|
end
|
104
|
-
|
105
|
+
html_view.print_tail(@checker_results, @comments)
|
105
106
|
end
|
106
107
|
end
|
@@ -60,11 +60,11 @@ class HTMLView
|
|
60
60
|
|
61
61
|
def update_summary(gem_name, status)
|
62
62
|
if status == "alert"
|
63
|
-
|
63
|
+
@patched << gem_name
|
64
64
|
elsif status == "warning"
|
65
|
-
|
65
|
+
@outdated << gem_name
|
66
66
|
else
|
67
|
-
|
67
|
+
@up_to_date << gem_name
|
68
68
|
end
|
69
69
|
end
|
70
70
|
|
@@ -235,19 +235,19 @@ class HTMLView
|
|
235
235
|
|
236
236
|
def print_summary
|
237
237
|
puts "<a name='summary'/><h1>Summary</h1>"
|
238
|
-
puts "<p><h2>patched/errored #{
|
238
|
+
puts "<p><h2>patched/errored #{@patched.length}</h2>"
|
239
239
|
puts "<ul>"
|
240
|
-
|
240
|
+
@patched.each do |p|
|
241
241
|
puts "<li><a href=\"\##{p}\">#{p}</a>"
|
242
242
|
end
|
243
243
|
puts "</ul></p>"
|
244
|
-
puts "<p><h2>outdated #{
|
245
|
-
|
244
|
+
puts "<p><h2>outdated #{@outdated.length}</h2>"
|
245
|
+
@outdated.each do |p|
|
246
246
|
puts "<li><a href=\"\##{p}\">#{p}</a>"
|
247
247
|
end
|
248
248
|
puts "</ul></p>"
|
249
|
-
puts "<p> <h2>up-to-date #{
|
250
|
-
|
249
|
+
puts "<p> <h2>up-to-date #{@up_to_date.length}</h2>"
|
250
|
+
@up_to_date.each do |p|
|
251
251
|
puts "<li><a href=\"\##{p}\">#{p}</a>"
|
252
252
|
end
|
253
253
|
puts "</ul></p>"
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gems-status
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 111
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
8
|
+
- 28
|
9
9
|
- 0
|
10
|
-
version: 0.
|
10
|
+
version: 0.28.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jordi Massaguer Pla
|