w3clove 0.3.3 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- data/MIT-LICENSE +20 -0
- data/README.rdoc +5 -1
- data/lib/w3clove/templates/w3clove.html.erb +22 -16
- data/lib/w3clove/version.rb +1 -1
- metadata +3 -2
data/MIT-LICENSE
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2011 Jaime Iniesta
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.rdoc
CHANGED
@@ -20,4 +20,8 @@ This will validate all the URLs of your sitemap.xml (so be sure to pass it a sho
|
|
20
20
|
|
21
21
|
= Notes:
|
22
22
|
|
23
|
-
This gem requires Ruby 1.9, and has been tested on Ruby 1.9.2
|
23
|
+
This gem requires Ruby 1.9, and has been tested on Ruby 1.9.2
|
24
|
+
|
25
|
+
= License:
|
26
|
+
|
27
|
+
This is a free, open source project with a MIT license. See the file MIT-LICENSE for details.
|
@@ -1,5 +1,7 @@
|
|
1
|
+
<!DOCTYPE html>
|
1
2
|
<html>
|
2
3
|
<head>
|
4
|
+
<meta charset=utf-8>
|
3
5
|
<title>W3Clove report for <%= @url %></title>
|
4
6
|
<link href='http://fonts.googleapis.com/css?family=Cabin+Sketch:bold' rel='stylesheet' type='text/css'>
|
5
7
|
<style type="text/css">
|
@@ -43,14 +45,16 @@
|
|
43
45
|
<% errors.group_by {|e| e.message_id}.sort_by {|m,e| e.length}.reverse.each do |message_id, errors| %>
|
44
46
|
<% if message_id == 'html5' %>
|
45
47
|
<li><%= errors.length %> HTML5 errors found</li>
|
46
|
-
<
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
48
|
+
<li>
|
49
|
+
<ul>
|
50
|
+
<% errors.select{|e| e.message_id == 'html5'}
|
51
|
+
.group_by {|e| e.text}
|
52
|
+
.sort_by {|m,e| e.length}
|
53
|
+
.reverse.each do |text, errors| %>
|
54
|
+
<li><%= errors.length %> times: <strong><%= text %></strong></li>
|
55
|
+
<% end %>
|
56
|
+
</ul>
|
57
|
+
</li>
|
54
58
|
<% elsif message_id %>
|
55
59
|
<li>error <a href="http://validator.w3.org/docs/errors.html#ve-<%= message_id %>"><%= message_id %></a>
|
56
60
|
happens <%= errors.length %> times</li>
|
@@ -65,14 +69,16 @@
|
|
65
69
|
<% warnings.group_by {|w| w.message_id}.sort_by {|m,w| w.length}.reverse.each do |message_id, warnings| %>
|
66
70
|
<% if message_id == 'html5' %>
|
67
71
|
<li><%= warnings.length %> HTML5 warnings found</li>
|
68
|
-
<
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
72
|
+
<li>
|
73
|
+
<ul>
|
74
|
+
<% warnings.select{|w| w.message_id == 'html5'}
|
75
|
+
.group_by {|w| w.text}
|
76
|
+
.sort_by {|m,w| w.length}
|
77
|
+
.reverse.each do |text, warnings| %>
|
78
|
+
<li><%= warnings.length %> times: <strong><%= text %></strong></li>
|
79
|
+
<% end %>
|
80
|
+
</ul>
|
81
|
+
</li>
|
76
82
|
<% elsif message_id %>
|
77
83
|
<li>warning <a href="http://validator.w3.org/docs/errors.html#ve-<%= message_id %>"><%= message_id %></a>
|
78
84
|
found <%= warnings.length %> times</li>
|
data/lib/w3clove/version.rb
CHANGED
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 3
|
8
|
-
-
|
9
|
-
version: 0.3.
|
8
|
+
- 4
|
9
|
+
version: 0.3.4
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Jaime Iniesta
|
@@ -84,6 +84,7 @@ extra_rdoc_files: []
|
|
84
84
|
files:
|
85
85
|
- .gitignore
|
86
86
|
- Gemfile
|
87
|
+
- MIT-LICENSE
|
87
88
|
- README.rdoc
|
88
89
|
- Rakefile
|
89
90
|
- bin/w3clove
|