site_validator 2.0.0 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/site_validator/sitemap.rb +2 -1
- data/lib/site_validator/version.rb +1 -1
- data/site_validator.gemspec +1 -1
- data/test.html +173 -0
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a6bca1a5525661281303127e938e3abe6bc2d601
|
4
|
+
data.tar.gz: f66ae704581dfa5ce0eb188b45c4076bed337cd2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 84e741f04a9cfaa33acb9df9278c2453f419d17c8767080ee63f64815fb48ffca0cec56ecf0d10e0dc071f16641334f9a37c29d134d546442fdc8d6873f2ec82
|
7
|
+
data.tar.gz: 16bd79590c5f8e38d486566ac82be903fd89a372ee7655b4f0585352831ecc1643feeb1eb07b54cfb189f39647a04aad00437ec558ac00a67f6dd59f83bd3b0d
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
###Site Validator Gem [![travis build status](https://secure.travis-ci.org/
|
1
|
+
###Site Validator Gem [![travis build status](https://secure.travis-ci.org/sitevalidator/site_validator.png?branch=master)](http://travis-ci.org/sitevalidator/site_validator)
|
2
2
|
|
3
3
|
site_validator is the free, open source version of the [Site Validator app](https://sitevalidator.com).
|
4
4
|
|
@@ -87,7 +87,8 @@ module SiteValidator
|
|
87
87
|
end
|
88
88
|
|
89
89
|
def scraped_doc
|
90
|
-
@scraped_doc ||= MetaInspector.new(url, :
|
90
|
+
@scraped_doc ||= MetaInspector.new(url, headers: {'User-Agent' => SiteValidator::USER_AGENT},
|
91
|
+
faraday_options: { ssl: { verify: false } })
|
91
92
|
end
|
92
93
|
|
93
94
|
def doc
|
data/site_validator.gemspec
CHANGED
@@ -17,7 +17,7 @@ Gem::Specification.new do |gem|
|
|
17
17
|
gem.version = SiteValidator::VERSION
|
18
18
|
|
19
19
|
gem.add_dependency 'w3c_validators', '~> 1.2'
|
20
|
-
gem.add_dependency 'metainspector', '~> 4.
|
20
|
+
gem.add_dependency 'metainspector', '~> 4.6'
|
21
21
|
|
22
22
|
gem.add_development_dependency 'rspec', '~> 2.14.1'
|
23
23
|
gem.add_development_dependency 'mocha', '~> 0.11.4'
|
data/test.html
ADDED
@@ -0,0 +1,173 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<meta charset="utf-8">
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
|
+
|
7
|
+
<title>Site Validator report for http://www.jucy.co.nz/</title>
|
8
|
+
|
9
|
+
<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css">
|
10
|
+
<style type="text/css">
|
11
|
+
/*
|
12
|
+
* Style tweaks from http://getbootstrap.com/examples/offcanvas/offcanvas.css
|
13
|
+
* --------------------------------------------------
|
14
|
+
*/
|
15
|
+
body {
|
16
|
+
padding-top: 70px;
|
17
|
+
}
|
18
|
+
footer {
|
19
|
+
padding-left: 15px;
|
20
|
+
padding-right: 15px;
|
21
|
+
}
|
22
|
+
|
23
|
+
/*
|
24
|
+
* Off Canvas
|
25
|
+
* --------------------------------------------------
|
26
|
+
*/
|
27
|
+
@media screen and (max-width: 768px) {
|
28
|
+
.row-offcanvas {
|
29
|
+
position: relative;
|
30
|
+
-webkit-transition: all 0.25s ease-out;
|
31
|
+
-moz-transition: all 0.25s ease-out;
|
32
|
+
transition: all 0.25s ease-out;
|
33
|
+
}
|
34
|
+
|
35
|
+
.row-offcanvas-right
|
36
|
+
.sidebar-offcanvas {
|
37
|
+
right: -50%; /* 6 columns */
|
38
|
+
}
|
39
|
+
|
40
|
+
.row-offcanvas-left
|
41
|
+
.sidebar-offcanvas {
|
42
|
+
left: -50%; /* 6 columns */
|
43
|
+
}
|
44
|
+
|
45
|
+
.row-offcanvas-right.active {
|
46
|
+
right: 50%; /* 6 columns */
|
47
|
+
}
|
48
|
+
|
49
|
+
.row-offcanvas-left.active {
|
50
|
+
left: 50%; /* 6 columns */
|
51
|
+
}
|
52
|
+
|
53
|
+
.sidebar-offcanvas {
|
54
|
+
position: absolute;
|
55
|
+
top: 0;
|
56
|
+
width: 50%; /* 6 columns */
|
57
|
+
}
|
58
|
+
}
|
59
|
+
</style>
|
60
|
+
|
61
|
+
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
62
|
+
<!--[if lt IE 9]>
|
63
|
+
<script src="http://cdnjs.cloudflare.com/ajax/libs/html5shiv/3.6.2/html5shiv.js"></script>
|
64
|
+
<script src="http://cdnjs.cloudflare.com/ajax/libs/respond.js/1.3.0/respond.js"></script>
|
65
|
+
<![endif]-->
|
66
|
+
|
67
|
+
<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css">
|
68
|
+
|
69
|
+
<link rel="stylesheet" href="https://sitevalidator.com/cdn/highlightjs/7.3/styles/default.min.css">
|
70
|
+
|
71
|
+
<style type="text/css">
|
72
|
+
|
73
|
+
h1 { margin-top: 0px; margin-bottom: 15px; }
|
74
|
+
|
75
|
+
a.navbar-brand { color: #FFF !important; }
|
76
|
+
|
77
|
+
footer { margin-top: 10px; font-weight: bold; font-size: 0.95em; }
|
78
|
+
|
79
|
+
/* Tabs */
|
80
|
+
.tab-content {
|
81
|
+
border: 1px solid #ddd;
|
82
|
+
border-top: 0px;
|
83
|
+
padding: 10px;
|
84
|
+
}
|
85
|
+
|
86
|
+
.nav-tabs {
|
87
|
+
margin-bottom: 0;
|
88
|
+
}
|
89
|
+
|
90
|
+
/* Explanations */
|
91
|
+
.w3c_explanation { border: 1px solid #ddd; background-color: #ffe; padding: 10px; margin: 5px 5px 25px 5px; font-size: 0.8em; }
|
92
|
+
.coordinates { float: right; margin: 10px; background-color: #fff; color: #333; border: 1px solid #aaa;}
|
93
|
+
|
94
|
+
</style>
|
95
|
+
</head>
|
96
|
+
|
97
|
+
<body>
|
98
|
+
|
99
|
+
<div class="navbar navbar-fixed-top navbar-inverse" role="navigation">
|
100
|
+
<div class="container">
|
101
|
+
<div class="navbar-header">
|
102
|
+
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
|
103
|
+
<span class="icon-bar"></span>
|
104
|
+
<span class="icon-bar"></span>
|
105
|
+
<span class="icon-bar"></span>
|
106
|
+
</button>
|
107
|
+
<a class="navbar-brand" href="http://sitevalidator.com">Site Validator</a>
|
108
|
+
</div>
|
109
|
+
<div class="collapse navbar-collapse">
|
110
|
+
<ul class="nav navbar-nav">
|
111
|
+
<li><a href="https://app.sitevalidator.com/pricing">Plans and pricing</a></li>
|
112
|
+
<li><a href="http://docs.sitevalidator.com/">Documentation</a></li>
|
113
|
+
<li><a href="mailto:support@sitevalidator.com">Contact</a></li>
|
114
|
+
</ul>
|
115
|
+
</div><!-- /.nav-collapse -->
|
116
|
+
</div><!-- /.container -->
|
117
|
+
</div><!-- /.navbar -->
|
118
|
+
|
119
|
+
<div class="container">
|
120
|
+
|
121
|
+
<h1>Site validation for <a href='http://www.jucy.co.nz/'>http://www.jucy.co.nz/</a></h1>
|
122
|
+
|
123
|
+
<ul class="nav nav-tabs">
|
124
|
+
<li class="active"><a href="#urls">List of URLs</a></li>
|
125
|
+
<li><a href="#errors">0 HTML errors</a></li>
|
126
|
+
<li><a href="#warnings">0 HTML warnings</a></li>
|
127
|
+
</ul>
|
128
|
+
|
129
|
+
<div class="tab-content">
|
130
|
+
<div class="tab-pane active" id="urls">
|
131
|
+
|
132
|
+
|
133
|
+
</div>
|
134
|
+
|
135
|
+
<div class="tab-pane" id="errors">
|
136
|
+
|
137
|
+
</div>
|
138
|
+
|
139
|
+
<div class="tab-pane" id="warnings">
|
140
|
+
|
141
|
+
</div>
|
142
|
+
</div>
|
143
|
+
|
144
|
+
<footer class="well well-lg">
|
145
|
+
<p>This site validation report has been generated using the free, open source <a href="http://gem.sitevalidator.com">Site Validator ruby gem</a>.</p>
|
146
|
+
<p>For deep link crawling, HTML+CSS validation, and storage of results, you can use the <a href="http://sitevalidator.com">Site Validator app</a>.</p>
|
147
|
+
<p class="small">We're independent, not associated with the W3C.</p>
|
148
|
+
</footer>
|
149
|
+
|
150
|
+
</div>
|
151
|
+
|
152
|
+
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
|
153
|
+
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script>
|
154
|
+
<script type="text/javascript">
|
155
|
+
$('.accordion').accordion({active: 'false', heightStyle: 'content' });
|
156
|
+
</script>
|
157
|
+
|
158
|
+
<script src="http://netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script>
|
159
|
+
|
160
|
+
<script type="text/javascript">
|
161
|
+
$('.nav-tabs a').click(function (e) {
|
162
|
+
e.preventDefault();
|
163
|
+
$(this).tab('show');
|
164
|
+
})
|
165
|
+
</script>
|
166
|
+
|
167
|
+
<script src="https://sitevalidator.com/cdn/highlightjs/7.3/highlight.min.js"></script>
|
168
|
+
<script type="text/javascript">
|
169
|
+
hljs.initHighlightingOnLoad();
|
170
|
+
</script>
|
171
|
+
|
172
|
+
</body>
|
173
|
+
</html>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: site_validator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jaime Iniesta
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-06-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: w3c_validators
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '4.
|
33
|
+
version: '4.6'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '4.
|
40
|
+
version: '4.6'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rspec
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -142,6 +142,7 @@ files:
|
|
142
142
|
- spec/samples/zigotica.com.html
|
143
143
|
- spec/sitemap_spec.rb
|
144
144
|
- spec/spec_helper.rb
|
145
|
+
- test.html
|
145
146
|
homepage: http://gem.sitevalidator.com/
|
146
147
|
licenses:
|
147
148
|
- MIT
|