html-proofer 1.1.5 → 1.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +26 -0
- data/.travis.yml +6 -0
- data/Gemfile +3 -0
- data/LICENSE.txt +22 -0
- data/README.md +177 -0
- data/Rakefile +8 -0
- data/html-proofer.gemspec +28 -0
- data/spec/html/proofer/favicon_spec.rb +46 -0
- data/spec/html/proofer/fixtures/favicon/favicon_absent.html +4 -0
- data/spec/html/proofer/fixtures/favicon/favicon_absent_apple.html +7 -0
- data/spec/html/proofer/fixtures/favicon/favicon_broken.html +7 -0
- data/spec/html/proofer/fixtures/favicon/favicon_broken_but_ignored.html +7 -0
- data/spec/html/proofer/fixtures/favicon/favicon_present.html +7 -0
- data/spec/html/proofer/fixtures/favicon/favicon_present_shortcut.html +7 -0
- data/spec/html/proofer/fixtures/images/existingImageExternal.html +9 -0
- data/spec/html/proofer/fixtures/images/gpl.png +0 -0
- data/spec/html/proofer/fixtures/images/ignorableAltViaOptions.html +13 -0
- data/spec/html/proofer/fixtures/images/ignorableImages.html +10 -0
- data/spec/html/proofer/fixtures/images/ignoreAltButNotLink.html +13 -0
- data/spec/html/proofer/fixtures/images/image_missing_protocol_invalid.html +9 -0
- data/spec/html/proofer/fixtures/images/image_missing_protocol_valid.html +9 -0
- data/spec/html/proofer/fixtures/images/missingImageAlt.html +9 -0
- data/spec/html/proofer/fixtures/images/missingImageAltText.html +9 -0
- data/spec/html/proofer/fixtures/images/missingImageExternal.html +9 -0
- data/spec/html/proofer/fixtures/images/missingImageInternal.html +9 -0
- data/spec/html/proofer/fixtures/images/missingImageSrc.html +9 -0
- data/spec/html/proofer/fixtures/images/relativeToSelf.html +2 -0
- data/spec/html/proofer/fixtures/images/rootRelativeImages.html +2 -0
- data/spec/html/proofer/fixtures/images/terribleImageName.html +9 -0
- data/spec/html/proofer/fixtures/images/workingDataURIImage.html +3 -0
- data/spec/html/proofer/fixtures/links/anchors_in_pre.html +12 -0
- data/spec/html/proofer/fixtures/links/blank_mailto_link.html +9 -0
- data/spec/html/proofer/fixtures/links/blank_tel_link.html +9 -0
- data/spec/html/proofer/fixtures/links/brokenHashExternal.html +11 -0
- data/spec/html/proofer/fixtures/links/brokenHashInternal.html +14 -0
- data/spec/html/proofer/fixtures/links/brokenInternalLink.html +0 -0
- data/spec/html/proofer/fixtures/links/brokenLinkExternal.html +11 -0
- data/spec/html/proofer/fixtures/links/brokenLinkInternal.html +10 -0
- data/spec/html/proofer/fixtures/links/brokenLinkWithNumber.html +8 -0
- data/spec/html/proofer/fixtures/links/checkSSLLinks.html +1 -0
- data/spec/html/proofer/fixtures/links/folder/anchorLink.html +0 -0
- data/spec/html/proofer/fixtures/links/folder/assets/barrel.png +0 -0
- data/spec/html/proofer/fixtures/links/folder/index.html +0 -0
- data/spec/html/proofer/fixtures/links/folder/relativeImage.html +2 -0
- data/spec/html/proofer/fixtures/links/gpl.png +0 -0
- data/spec/html/proofer/fixtures/links/head_link_href.html +7 -0
- data/spec/html/proofer/fixtures/links/head_link_href_absent.html +7 -0
- data/spec/html/proofer/fixtures/links/head_link_href_empty.html +7 -0
- data/spec/html/proofer/fixtures/links/ignorableLinks.html +13 -0
- data/spec/html/proofer/fixtures/links/ignorableLinksViaOptions.html +13 -0
- data/spec/html/proofer/fixtures/links/index.html +1 -0
- data/spec/html/proofer/fixtures/links/javascript_link.html +9 -0
- data/spec/html/proofer/fixtures/links/linkToFolder.html +9 -0
- data/spec/html/proofer/fixtures/links/linkTranslatedViaHrefSwap.html +9 -0
- data/spec/html/proofer/fixtures/links/linkWithHttps.html +9 -0
- data/spec/html/proofer/fixtures/links/linkWithRedirect.html +12 -0
- data/spec/html/proofer/fixtures/links/link_directory_without_slash.html +1 -0
- data/spec/html/proofer/fixtures/links/link_missing_protocol_invalid.html +9 -0
- data/spec/html/proofer/fixtures/links/link_missing_protocol_valid.html +9 -0
- data/spec/html/proofer/fixtures/links/links_in_pre.html +13 -0
- data/spec/html/proofer/fixtures/links/mailto_link.html +9 -0
- data/spec/html/proofer/fixtures/links/missingLinkHref.html +9 -0
- data/spec/html/proofer/fixtures/links/multipleProblems.html +11 -0
- data/spec/html/proofer/fixtures/links/notarealhash.html +0 -0
- data/spec/html/proofer/fixtures/links/relativeLinks.html +4 -0
- data/spec/html/proofer/fixtures/links/rootLink.html +10 -0
- data/spec/html/proofer/fixtures/links/tel_link.html +9 -0
- data/spec/html/proofer/fixtures/resources/Screen Shot 2012-08-09 at 7.51.18 AM.png +0 -0
- data/spec/html/proofer/fixtures/resources/books/assets/getting-good-with-git.jpg +0 -0
- data/spec/html/proofer/fixtures/resources/books/assets/pro-git.jpg +0 -0
- data/spec/html/proofer/fixtures/resources/books/assets/version-control-with-git.jpg +0 -0
- data/spec/html/proofer/fixtures/resources/books/nestedRelativeImages.html +5 -0
- data/spec/html/proofer/fixtures/resources/gpl.png +0 -0
- data/spec/html/proofer/fixtures/scripts/script.js +1 -0
- data/spec/html/proofer/fixtures/scripts/script_broken_external.html +9 -0
- data/spec/html/proofer/fixtures/scripts/script_content.html +9 -0
- data/spec/html/proofer/fixtures/scripts/script_content_absent.html +9 -0
- data/spec/html/proofer/fixtures/scripts/script_in_pre.html +5 -0
- data/spec/html/proofer/fixtures/scripts/script_missing_internal.html +9 -0
- data/spec/html/proofer/fixtures/scripts/script_valid_internal.html +9 -0
- data/spec/html/proofer/images_spec.rb +98 -0
- data/spec/html/proofer/links_spec.rb +192 -0
- data/spec/html/proofer/scripts_spec.rb +41 -0
- data/spec/html/proofer_spec.rb +12 -0
- data/spec/spec_helper.rb +30 -0
- metadata +166 -3
@@ -0,0 +1,11 @@
|
|
1
|
+
<html>
|
2
|
+
|
3
|
+
<body>
|
4
|
+
|
5
|
+
<p>Blah blah blah. <a href="./notarealhash.html#noHash">Not a real file, don't even bother with hash!</a></p>
|
6
|
+
<p>Blah blah blah. <a href="../images/missingImageAlt.html#asdfasfdkafl">A real file, not a real hash!</a></p>
|
7
|
+
<a href="./brokenLinkInternal.html#safeHash">At last, a real hash link.</a>
|
8
|
+
|
9
|
+
</body>
|
10
|
+
|
11
|
+
</html>
|
@@ -0,0 +1,14 @@
|
|
1
|
+
<html>
|
2
|
+
|
3
|
+
<body>
|
4
|
+
|
5
|
+
<p>Blah blah blah. <a href="#noHash">Not a real hash!</a></p>
|
6
|
+
<p>Blah blah blah. <a href="./brokenInternalLink.html#safeHash">A real link!</a></p>
|
7
|
+
<a href="#myID">Let's go to the header, though.</a>
|
8
|
+
|
9
|
+
|
10
|
+
<a id="myID"></a>
|
11
|
+
<h1>Fake header.</h1>
|
12
|
+
</body>
|
13
|
+
|
14
|
+
</html>
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
<a href="https://developers.google.com/university">Some link</a>
|
File without changes
|
Binary file
|
File without changes
|
Binary file
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<html>
|
2
|
+
|
3
|
+
<body>
|
4
|
+
|
5
|
+
<a href="http://www.asdo3IRJ395295jsingrkrg4.com" data-proofer-ignore="true">broken link!</a>
|
6
|
+
|
7
|
+
<a href="#anadaasdadsadschor" data-proofer-ignore=true>Anchor relative to nothing</a>
|
8
|
+
|
9
|
+
<a href="../whaadadt.html" data-proofer-ignore>Relative to nothing</a>
|
10
|
+
|
11
|
+
</body>
|
12
|
+
|
13
|
+
</html>
|
@@ -0,0 +1 @@
|
|
1
|
+
<h1 id="anchor">root.</a>
|
@@ -0,0 +1,9 @@
|
|
1
|
+
<html>
|
2
|
+
|
3
|
+
<body>
|
4
|
+
|
5
|
+
<a href="javascript:if(typeof WZXYxe58==typeof alert)WZXYxe58();(function(){var s=document.createElement('link');s.setAttribute('href','/static/css/dyslexia.css');s.setAttribute('rel','stylesheet');s.setAttribute('type','text/css');document.getElementsByTagName('head')[0].appendChild(s);})();">Click me</a>
|
6
|
+
|
7
|
+
</body>
|
8
|
+
|
9
|
+
</html>
|
@@ -0,0 +1,12 @@
|
|
1
|
+
<html>
|
2
|
+
|
3
|
+
<body>
|
4
|
+
|
5
|
+
<p>Blah blah blah. <a href="http://github.github.com/github-flavored-markdown/">This is a redirect.</a>. </p>
|
6
|
+
|
7
|
+
<p>Blah blah blah. <a href="https://help.github.com/changing-author-info/">This is another redirect.</a>. </p>
|
8
|
+
|
9
|
+
<p>Blah blah blah. <a href="http://timclem.wordpress.com/2012/03/01/mind-the-end-of-your-line/">This is a third redirect.</a>. </p>
|
10
|
+
</body>
|
11
|
+
|
12
|
+
</html>
|
@@ -0,0 +1 @@
|
|
1
|
+
<a href="folder">Folder</a>
|
File without changes
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
var x = 1;
|