html-proofer 1.1.4 → 1.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/html/proofer/checks/links.rb +1 -1
- metadata +5 -168
- data/.gitignore +0 -26
- data/.travis.yml +0 -6
- data/Gemfile +0 -3
- data/LICENSE.txt +0 -22
- data/README.md +0 -177
- data/Rakefile +0 -8
- data/html-proofer.gemspec +0 -28
- data/spec/html/proofer/favicon_spec.rb +0 -46
- data/spec/html/proofer/fixtures/favicon/favicon_absent.html +0 -4
- data/spec/html/proofer/fixtures/favicon/favicon_absent_apple.html +0 -7
- data/spec/html/proofer/fixtures/favicon/favicon_broken.html +0 -7
- data/spec/html/proofer/fixtures/favicon/favicon_broken_but_ignored.html +0 -7
- data/spec/html/proofer/fixtures/favicon/favicon_present.html +0 -7
- data/spec/html/proofer/fixtures/favicon/favicon_present_shortcut.html +0 -7
- data/spec/html/proofer/fixtures/images/existingImageExternal.html +0 -9
- data/spec/html/proofer/fixtures/images/gpl.png +0 -0
- data/spec/html/proofer/fixtures/images/ignorableAltViaOptions.html +0 -13
- data/spec/html/proofer/fixtures/images/ignorableImages.html +0 -10
- data/spec/html/proofer/fixtures/images/ignoreAltButNotLink.html +0 -13
- data/spec/html/proofer/fixtures/images/image_missing_protocol_invalid.html +0 -9
- data/spec/html/proofer/fixtures/images/image_missing_protocol_valid.html +0 -9
- data/spec/html/proofer/fixtures/images/missingImageAlt.html +0 -9
- data/spec/html/proofer/fixtures/images/missingImageAltText.html +0 -9
- data/spec/html/proofer/fixtures/images/missingImageExternal.html +0 -9
- data/spec/html/proofer/fixtures/images/missingImageInternal.html +0 -9
- data/spec/html/proofer/fixtures/images/missingImageSrc.html +0 -9
- data/spec/html/proofer/fixtures/images/relativeToSelf.html +0 -2
- data/spec/html/proofer/fixtures/images/rootRelativeImages.html +0 -2
- data/spec/html/proofer/fixtures/images/terribleImageName.html +0 -9
- data/spec/html/proofer/fixtures/images/workingDataURIImage.html +0 -3
- data/spec/html/proofer/fixtures/links/anchors_in_pre.html +0 -12
- data/spec/html/proofer/fixtures/links/blank_mailto_link.html +0 -9
- data/spec/html/proofer/fixtures/links/blank_tel_link.html +0 -9
- data/spec/html/proofer/fixtures/links/brokenHashExternal.html +0 -11
- data/spec/html/proofer/fixtures/links/brokenHashInternal.html +0 -14
- data/spec/html/proofer/fixtures/links/brokenInternalLink.html +0 -0
- data/spec/html/proofer/fixtures/links/brokenLinkExternal.html +0 -11
- data/spec/html/proofer/fixtures/links/brokenLinkInternal.html +0 -10
- data/spec/html/proofer/fixtures/links/brokenLinkWithNumber.html +0 -8
- data/spec/html/proofer/fixtures/links/checkSSLLinks.html +0 -1
- 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 +0 -2
- data/spec/html/proofer/fixtures/links/gpl.png +0 -0
- data/spec/html/proofer/fixtures/links/head_link_href.html +0 -7
- data/spec/html/proofer/fixtures/links/head_link_href_absent.html +0 -7
- data/spec/html/proofer/fixtures/links/head_link_href_empty.html +0 -7
- data/spec/html/proofer/fixtures/links/ignorableLinks.html +0 -13
- data/spec/html/proofer/fixtures/links/ignorableLinksViaOptions.html +0 -13
- data/spec/html/proofer/fixtures/links/index.html +0 -1
- data/spec/html/proofer/fixtures/links/javascript_link.html +0 -9
- data/spec/html/proofer/fixtures/links/linkToFolder.html +0 -9
- data/spec/html/proofer/fixtures/links/linkTranslatedViaHrefSwap.html +0 -9
- data/spec/html/proofer/fixtures/links/linkWithHttps.html +0 -9
- data/spec/html/proofer/fixtures/links/linkWithRedirect.html +0 -12
- data/spec/html/proofer/fixtures/links/link_directory_without_slash.html +0 -1
- data/spec/html/proofer/fixtures/links/link_missing_protocol_invalid.html +0 -9
- data/spec/html/proofer/fixtures/links/link_missing_protocol_valid.html +0 -9
- data/spec/html/proofer/fixtures/links/links_in_pre.html +0 -13
- data/spec/html/proofer/fixtures/links/mailto_link.html +0 -9
- data/spec/html/proofer/fixtures/links/missingLinkHref.html +0 -9
- data/spec/html/proofer/fixtures/links/multipleProblems.html +0 -11
- data/spec/html/proofer/fixtures/links/notarealhash.html +0 -0
- data/spec/html/proofer/fixtures/links/relativeLinks.html +0 -4
- data/spec/html/proofer/fixtures/links/rootLink.html +0 -10
- data/spec/html/proofer/fixtures/links/tel_link.html +0 -9
- 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 +0 -5
- data/spec/html/proofer/fixtures/resources/gpl.png +0 -0
- data/spec/html/proofer/fixtures/scripts/script.js +0 -1
- data/spec/html/proofer/fixtures/scripts/script_broken_external.html +0 -9
- data/spec/html/proofer/fixtures/scripts/script_content.html +0 -9
- data/spec/html/proofer/fixtures/scripts/script_content_absent.html +0 -9
- data/spec/html/proofer/fixtures/scripts/script_in_pre.html +0 -5
- data/spec/html/proofer/fixtures/scripts/script_missing_internal.html +0 -9
- data/spec/html/proofer/fixtures/scripts/script_valid_internal.html +0 -9
- data/spec/html/proofer/images_spec.rb +0 -98
- data/spec/html/proofer/links_spec.rb +0 -192
- data/spec/html/proofer/scripts_spec.rb +0 -41
- data/spec/html/proofer_spec.rb +0 -12
- data/spec/spec_helper.rb +0 -30
data/Rakefile
DELETED
data/html-proofer.gemspec
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
# -*- encoding: utf-8 -*-
|
|
2
|
-
$:.push File.expand_path("../lib", __FILE__)
|
|
3
|
-
|
|
4
|
-
Gem::Specification.new do |gem|
|
|
5
|
-
gem.name = "html-proofer"
|
|
6
|
-
gem.version = "1.1.4"
|
|
7
|
-
gem.authors = ["Garen Torikian"]
|
|
8
|
-
gem.email = ["gjtorikian@gmail.com"]
|
|
9
|
-
gem.description = %q{Test your rendered HTML files to make sure they're accurate.}
|
|
10
|
-
gem.summary = %q{A set of tests to validate your HTML output. These tests check if your image references are legitimate, if they have alt tags, if your internal links are working, and so on. It's intended to be an all-in-one checker for your documentation output.}
|
|
11
|
-
gem.homepage = "https://github.com/gjtorikian/html-proofer"
|
|
12
|
-
gem.license = "MIT"
|
|
13
|
-
gem.executables = ["htmlproof"]
|
|
14
|
-
gem.files = `git ls-files`.split($/)
|
|
15
|
-
gem.test_files = gem.files.grep(%r{^(spec)/})
|
|
16
|
-
gem.require_paths = ["lib"]
|
|
17
|
-
|
|
18
|
-
gem.add_dependency "mercenary", "~> 0.3.2"
|
|
19
|
-
gem.add_dependency "nokogiri", "~> 1.6.0"
|
|
20
|
-
gem.add_dependency "colored", "~> 1.2"
|
|
21
|
-
gem.add_dependency "typhoeus", "~> 0.6.7"
|
|
22
|
-
gem.add_dependency "yell", "~> 2.0"
|
|
23
|
-
|
|
24
|
-
gem.add_development_dependency "html-pipeline", "~> 1.8"
|
|
25
|
-
gem.add_development_dependency "escape_utils", "~> 1.0" # Ruby 2.1 fix
|
|
26
|
-
gem.add_development_dependency "rspec", "~> 2.13.0"
|
|
27
|
-
gem.add_development_dependency "rake"
|
|
28
|
-
end
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
require "spec_helper"
|
|
2
|
-
|
|
3
|
-
describe "Favicons test" do
|
|
4
|
-
it "ignores for absent favicon by default" do
|
|
5
|
-
absent = "#{FIXTURES_DIR}/favicon/favicon_absent.html"
|
|
6
|
-
output = capture_stderr { HTML::Proofer.new(absent).run }
|
|
7
|
-
output.should == ""
|
|
8
|
-
end
|
|
9
|
-
|
|
10
|
-
it "fails for absent favicon" do
|
|
11
|
-
absent = "#{FIXTURES_DIR}/favicon/favicon_absent.html"
|
|
12
|
-
output = capture_stderr { HTML::Proofer.new(absent, {:favicon => true}).run }
|
|
13
|
-
output.should match /no favicon specified/
|
|
14
|
-
end
|
|
15
|
-
|
|
16
|
-
it "fails for absent favicon but present apple touch icon" do
|
|
17
|
-
absent = "#{FIXTURES_DIR}/favicon/favicon_absent_apple.html"
|
|
18
|
-
output = capture_stderr { HTML::Proofer.new(absent, {:favicon => true}).run }
|
|
19
|
-
output.should match /no favicon specified/
|
|
20
|
-
end
|
|
21
|
-
|
|
22
|
-
it "fails for broken favicon" do
|
|
23
|
-
broken = "#{FIXTURES_DIR}/favicon/favicon_broken.html"
|
|
24
|
-
output = capture_stderr { HTML::Proofer.new(broken, {:favicon => true}).run }
|
|
25
|
-
output.should match /internally linking to asdadaskdalsdk.png/
|
|
26
|
-
end
|
|
27
|
-
|
|
28
|
-
it "passes for present favicon" do
|
|
29
|
-
present = "#{FIXTURES_DIR}/favicon/favicon_present.html"
|
|
30
|
-
output = capture_stderr { HTML::Proofer.new(present, {:favicon => true}).run }
|
|
31
|
-
output.should == ""
|
|
32
|
-
end
|
|
33
|
-
|
|
34
|
-
it "passes for present favicon with shortcut notation" do
|
|
35
|
-
present = "#{FIXTURES_DIR}/favicon/favicon_present_shortcut.html"
|
|
36
|
-
output = capture_stderr { HTML::Proofer.new(present, {:favicon => true}).run }
|
|
37
|
-
output.should == ""
|
|
38
|
-
end
|
|
39
|
-
|
|
40
|
-
it "passes for broken favicon with data-proofer-ignore" do
|
|
41
|
-
broken_but_ignored = "#{FIXTURES_DIR}/favicon/favicon_broken_but_ignored.html"
|
|
42
|
-
output = capture_stderr { HTML::Proofer.new(broken_but_ignored, {:favicon => true}).run }
|
|
43
|
-
output.should == ""
|
|
44
|
-
end
|
|
45
|
-
|
|
46
|
-
end
|
|
Binary file
|
|
@@ -1,11 +0,0 @@
|
|
|
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>
|
|
@@ -1,14 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<a href="https://developers.google.com/university">Some link</a>
|
|
File without changes
|
|
Binary file
|
|
File without changes
|
|
Binary file
|