html-proofer 2.3.0 → 3.0.0
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/bin/htmlproofer +85 -0
- data/lib/html-proofer/cache.rb +153 -0
- data/lib/html-proofer/check/favicon.rb +15 -0
- data/lib/html-proofer/check/html.rb +21 -0
- data/lib/html-proofer/check/images.rb +47 -0
- data/lib/html-proofer/check/links.rb +120 -0
- data/lib/html-proofer/check/scripts.rb +28 -0
- data/lib/html-proofer/check.rb +63 -0
- data/lib/html-proofer/configuration.rb +56 -0
- data/lib/html-proofer/element.rb +165 -0
- data/lib/{html/proofer/check_runner → html-proofer}/issue.rb +8 -10
- data/lib/html-proofer/log.rb +49 -0
- data/lib/html-proofer/runner.rb +160 -0
- data/lib/html-proofer/url_validator.rb +218 -0
- data/lib/html-proofer/utils.rb +40 -0
- data/lib/html-proofer/version.rb +3 -0
- data/lib/html-proofer.rb +47 -0
- metadata +64 -289
- data/.gitignore +0 -26
- data/.travis.yml +0 -12
- data/Gemfile +0 -3
- data/LICENSE.txt +0 -22
- data/README.md +0 -265
- data/Rakefile +0 -21
- data/bin/htmlproof +0 -71
- data/html-proofer.gemspec +0 -31
- data/lib/html/proofer/check_runner.rb +0 -62
- data/lib/html/proofer/checkable.rb +0 -164
- data/lib/html/proofer/checks/favicon.rb +0 -21
- data/lib/html/proofer/checks/html.rb +0 -40
- data/lib/html/proofer/checks/images.rb +0 -57
- data/lib/html/proofer/checks/links.rb +0 -107
- data/lib/html/proofer/checks/scripts.rb +0 -39
- data/lib/html/proofer/log.rb +0 -38
- data/lib/html/proofer/url_validator.rb +0 -135
- data/lib/html/proofer/utils.rb +0 -24
- data/lib/html/proofer/version.rb +0 -6
- data/lib/html/proofer.rb +0 -189
- data/script/bootstrap +0 -5
- data/spec/html/proofer/checkable_spec.rb +0 -47
- data/spec/html/proofer/command_spec.rb +0 -88
- data/spec/html/proofer/favicon_spec.rb +0 -47
- 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/html/div_inside_head.html +0 -6
- data/spec/html/proofer/fixtures/html/html5_tags.html +0 -9
- data/spec/html/proofer/fixtures/html/invalid_tag.html +0 -3
- data/spec/html/proofer/fixtures/html/missing_closing_quotes.html +0 -5
- data/spec/html/proofer/fixtures/html/opening_and_ending_tag_mismatch.html +0 -7
- data/spec/html/proofer/fixtures/html/svg_elements.html +0 -729
- data/spec/html/proofer/fixtures/html/unescaped_ampersand_in_attribute.html +0 -4
- data/spec/html/proofer/fixtures/html/unmatched_end_tag.html +0 -5
- data/spec/html/proofer/fixtures/images/emptyImageAltText.html +0 -10
- 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/srcSetCheck.html +0 -7
- data/spec/html/proofer/fixtures/images/srcSetIgnorable.html +0 -13
- data/spec/html/proofer/fixtures/images/srcSetMissingAlt.html +0 -7
- data/spec/html/proofer/fixtures/images/srcSetMissingImage.html +0 -7
- 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/_site/folder.html/index.html +0 -1
- data/spec/html/proofer/fixtures/links/anchors_in_pre.html +0 -12
- data/spec/html/proofer/fixtures/links/attributeWithDash.html +0 -8
- 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/brokenHashOnTheWeb.html +0 -2
- 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/brokenUnixLinks.html +0 -5
- data/spec/html/proofer/fixtures/links/broken_hash_with_query.html +0 -9
- data/spec/html/proofer/fixtures/links/checkSSLLinks.html +0 -1
- data/spec/html/proofer/fixtures/links/ensure_typhoeus_options.html +0 -1
- data/spec/html/proofer/fixtures/links/erstiebegr%C3%BC%C3%9Fung.html +0 -0
- data/spec/html/proofer/fixtures/links/erstiebegr/303/274/303/237ung.html +0 -0
- data/spec/html/proofer/fixtures/links/escape_pipes.html +0 -9
- data/spec/html/proofer/fixtures/links/file.foo +0 -11
- 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/multiples/catalog/file.html +0 -8
- data/spec/html/proofer/fixtures/links/folder/multiples/javadoc/file.html +0 -8
- data/spec/html/proofer/fixtures/links/folder/relativeImage.html +0 -2
- data/spec/html/proofer/fixtures/links/folder-php/index.php +0 -2
- data/spec/html/proofer/fixtures/links/githubHash.html +0 -1
- data/spec/html/proofer/fixtures/links/gpl.png +0 -0
- data/spec/html/proofer/fixtures/links/hashReferringToSelf.html +0 -44
- 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/invalid_mailto_link.html +0 -9
- 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/link_pointing_to_directory.html +0 -1
- 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/nodupe.html +0 -1
- data/spec/html/proofer/fixtures/links/non_standard_characters.html +0 -10
- data/spec/html/proofer/fixtures/links/notarealhash.html +0 -0
- data/spec/html/proofer/fixtures/links/other_protocols.html +0 -4
- data/spec/html/proofer/fixtures/links/placeholder_with_empty_id.html +0 -1
- data/spec/html/proofer/fixtures/links/placeholder_with_id.html +0 -1
- data/spec/html/proofer/fixtures/links/placeholder_with_name.html +0 -1
- data/spec/html/proofer/fixtures/links/redirected_error.html +0 -1
- data/spec/html/proofer/fixtures/links/relativeLinks.html +0 -4
- data/spec/html/proofer/fixtures/links/rootLink/folder/index.html +0 -1
- data/spec/html/proofer/fixtures/links/rootLink/index.html +0 -1
- data/spec/html/proofer/fixtures/links/rootLink/rootLink.html +0 -9
- data/spec/html/proofer/fixtures/links/tel_link.html +0 -9
- data/spec/html/proofer/fixtures/links/urlencoded-href.html +0 -2
- data/spec/html/proofer/fixtures/links/utf8Link.html +0 -2
- 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/ignorableLinksViaOptions.html +0 -4
- 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/fixtures/sorting/issue/broken_image_one.html +0 -1
- data/spec/html/proofer/fixtures/sorting/issue/broken_image_two.html +0 -4
- data/spec/html/proofer/fixtures/sorting/path/multiple_issues.html +0 -11
- data/spec/html/proofer/fixtures/sorting/path/single_issue.html +0 -1
- data/spec/html/proofer/fixtures/sorting/status/a_404.html +0 -1
- data/spec/html/proofer/fixtures/sorting/status/broken_link.html +0 -3
- data/spec/html/proofer/fixtures/sorting/status/missing_redirect.html +0 -1
- data/spec/html/proofer/fixtures/utils/lang-jp.html +0 -1
- data/spec/html/proofer/html_spec.rb +0 -57
- data/spec/html/proofer/images_spec.rb +0 -147
- data/spec/html/proofer/links_spec.rb +0 -364
- data/spec/html/proofer/scripts_spec.rb +0 -47
- data/spec/html/proofer/utils_spec.rb +0 -14
- data/spec/html/proofer_spec.rb +0 -122
- data/spec/spec_helper.rb +0 -52
data/lib/html-proofer.rb
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
def require_all(path)
|
|
2
|
+
glob = File.join(File.dirname(__FILE__), path, '*.rb')
|
|
3
|
+
Dir[glob].each do |f|
|
|
4
|
+
require f
|
|
5
|
+
end
|
|
6
|
+
end
|
|
7
|
+
|
|
8
|
+
require_all 'html-proofer'
|
|
9
|
+
require_all 'html-proofer/check'
|
|
10
|
+
|
|
11
|
+
require 'parallel'
|
|
12
|
+
require 'fileutils'
|
|
13
|
+
|
|
14
|
+
begin
|
|
15
|
+
require 'awesome_print'
|
|
16
|
+
rescue LoadError; end
|
|
17
|
+
|
|
18
|
+
module HTMLProofer
|
|
19
|
+
|
|
20
|
+
def check_file(file, options = {})
|
|
21
|
+
fail ArgumentError unless file.is_a?(String)
|
|
22
|
+
options[:type] = :file
|
|
23
|
+
HTMLProofer::Runner.new(file, options)
|
|
24
|
+
end
|
|
25
|
+
module_function :check_file
|
|
26
|
+
|
|
27
|
+
def check_directory(directory, options = {})
|
|
28
|
+
fail ArgumentError unless directory.is_a?(String)
|
|
29
|
+
options[:type] = :directory
|
|
30
|
+
HTMLProofer::Runner.new([directory], options)
|
|
31
|
+
end
|
|
32
|
+
module_function :check_directory
|
|
33
|
+
|
|
34
|
+
def check_directories(directories, options = {})
|
|
35
|
+
fail ArgumentError unless directories.is_a?(Array)
|
|
36
|
+
options[:type] = :directory
|
|
37
|
+
HTMLProofer::Runner.new(directories, options)
|
|
38
|
+
end
|
|
39
|
+
module_function :check_directories
|
|
40
|
+
|
|
41
|
+
def check_links(links, options = {})
|
|
42
|
+
fail ArgumentError unless links.is_a?(Array)
|
|
43
|
+
options[:type] = :links
|
|
44
|
+
HTMLProofer::Runner.new(links, options)
|
|
45
|
+
end
|
|
46
|
+
module_function :check_links
|
|
47
|
+
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: html-proofer
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 3.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Garen Torikian
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2016-03-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: mercenary
|
|
@@ -108,6 +108,20 @@ dependencies:
|
|
|
108
108
|
- - "~>"
|
|
109
109
|
- !ruby/object:Gem::Version
|
|
110
110
|
version: '2.3'
|
|
111
|
+
- !ruby/object:Gem::Dependency
|
|
112
|
+
name: activesupport
|
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
|
114
|
+
requirements:
|
|
115
|
+
- - "~>"
|
|
116
|
+
- !ruby/object:Gem::Version
|
|
117
|
+
version: '4.2'
|
|
118
|
+
type: :runtime
|
|
119
|
+
prerelease: false
|
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
121
|
+
requirements:
|
|
122
|
+
- - "~>"
|
|
123
|
+
- !ruby/object:Gem::Version
|
|
124
|
+
version: '4.2'
|
|
111
125
|
- !ruby/object:Gem::Dependency
|
|
112
126
|
name: redcarpet
|
|
113
127
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -164,167 +178,59 @@ dependencies:
|
|
|
164
178
|
- - ">="
|
|
165
179
|
- !ruby/object:Gem::Version
|
|
166
180
|
version: '0'
|
|
181
|
+
- !ruby/object:Gem::Dependency
|
|
182
|
+
name: vcr
|
|
183
|
+
requirement: !ruby/object:Gem::Requirement
|
|
184
|
+
requirements:
|
|
185
|
+
- - "~>"
|
|
186
|
+
- !ruby/object:Gem::Version
|
|
187
|
+
version: '2.9'
|
|
188
|
+
type: :development
|
|
189
|
+
prerelease: false
|
|
190
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
191
|
+
requirements:
|
|
192
|
+
- - "~>"
|
|
193
|
+
- !ruby/object:Gem::Version
|
|
194
|
+
version: '2.9'
|
|
195
|
+
- !ruby/object:Gem::Dependency
|
|
196
|
+
name: timecop
|
|
197
|
+
requirement: !ruby/object:Gem::Requirement
|
|
198
|
+
requirements:
|
|
199
|
+
- - "~>"
|
|
200
|
+
- !ruby/object:Gem::Version
|
|
201
|
+
version: '0.8'
|
|
202
|
+
type: :development
|
|
203
|
+
prerelease: false
|
|
204
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
205
|
+
requirements:
|
|
206
|
+
- - "~>"
|
|
207
|
+
- !ruby/object:Gem::Version
|
|
208
|
+
version: '0.8'
|
|
167
209
|
description: Test your rendered HTML files to make sure they're accurate.
|
|
168
210
|
email:
|
|
169
211
|
- gjtorikian@gmail.com
|
|
170
212
|
executables:
|
|
171
|
-
-
|
|
213
|
+
- htmlproofer
|
|
172
214
|
extensions: []
|
|
173
215
|
extra_rdoc_files: []
|
|
174
216
|
files:
|
|
175
|
-
-
|
|
176
|
-
-
|
|
177
|
-
-
|
|
178
|
-
-
|
|
179
|
-
-
|
|
180
|
-
-
|
|
181
|
-
-
|
|
182
|
-
- html-proofer.
|
|
183
|
-
- lib/html/
|
|
184
|
-
- lib/html
|
|
185
|
-
- lib/html
|
|
186
|
-
- lib/html
|
|
187
|
-
- lib/html
|
|
188
|
-
- lib/html
|
|
189
|
-
- lib/html
|
|
190
|
-
- lib/html
|
|
191
|
-
- lib/html
|
|
192
|
-
- lib/html/proofer/log.rb
|
|
193
|
-
- lib/html/proofer/url_validator.rb
|
|
194
|
-
- lib/html/proofer/utils.rb
|
|
195
|
-
- lib/html/proofer/version.rb
|
|
196
|
-
- script/bootstrap
|
|
197
|
-
- spec/html/proofer/checkable_spec.rb
|
|
198
|
-
- spec/html/proofer/command_spec.rb
|
|
199
|
-
- spec/html/proofer/favicon_spec.rb
|
|
200
|
-
- spec/html/proofer/fixtures/favicon/favicon_absent.html
|
|
201
|
-
- spec/html/proofer/fixtures/favicon/favicon_absent_apple.html
|
|
202
|
-
- spec/html/proofer/fixtures/favicon/favicon_broken.html
|
|
203
|
-
- spec/html/proofer/fixtures/favicon/favicon_broken_but_ignored.html
|
|
204
|
-
- spec/html/proofer/fixtures/favicon/favicon_present.html
|
|
205
|
-
- spec/html/proofer/fixtures/favicon/favicon_present_shortcut.html
|
|
206
|
-
- spec/html/proofer/fixtures/html/div_inside_head.html
|
|
207
|
-
- spec/html/proofer/fixtures/html/html5_tags.html
|
|
208
|
-
- spec/html/proofer/fixtures/html/invalid_tag.html
|
|
209
|
-
- spec/html/proofer/fixtures/html/missing_closing_quotes.html
|
|
210
|
-
- spec/html/proofer/fixtures/html/opening_and_ending_tag_mismatch.html
|
|
211
|
-
- spec/html/proofer/fixtures/html/svg_elements.html
|
|
212
|
-
- spec/html/proofer/fixtures/html/unescaped_ampersand_in_attribute.html
|
|
213
|
-
- spec/html/proofer/fixtures/html/unmatched_end_tag.html
|
|
214
|
-
- spec/html/proofer/fixtures/images/emptyImageAltText.html
|
|
215
|
-
- spec/html/proofer/fixtures/images/existingImageExternal.html
|
|
216
|
-
- spec/html/proofer/fixtures/images/gpl.png
|
|
217
|
-
- spec/html/proofer/fixtures/images/ignorableAltViaOptions.html
|
|
218
|
-
- spec/html/proofer/fixtures/images/ignorableImages.html
|
|
219
|
-
- spec/html/proofer/fixtures/images/ignoreAltButNotLink.html
|
|
220
|
-
- spec/html/proofer/fixtures/images/image_missing_protocol_invalid.html
|
|
221
|
-
- spec/html/proofer/fixtures/images/image_missing_protocol_valid.html
|
|
222
|
-
- spec/html/proofer/fixtures/images/missingImageAlt.html
|
|
223
|
-
- spec/html/proofer/fixtures/images/missingImageAltText.html
|
|
224
|
-
- spec/html/proofer/fixtures/images/missingImageExternal.html
|
|
225
|
-
- spec/html/proofer/fixtures/images/missingImageInternal.html
|
|
226
|
-
- spec/html/proofer/fixtures/images/missingImageSrc.html
|
|
227
|
-
- spec/html/proofer/fixtures/images/relativeToSelf.html
|
|
228
|
-
- spec/html/proofer/fixtures/images/rootRelativeImages.html
|
|
229
|
-
- spec/html/proofer/fixtures/images/srcSetCheck.html
|
|
230
|
-
- spec/html/proofer/fixtures/images/srcSetIgnorable.html
|
|
231
|
-
- spec/html/proofer/fixtures/images/srcSetMissingAlt.html
|
|
232
|
-
- spec/html/proofer/fixtures/images/srcSetMissingImage.html
|
|
233
|
-
- spec/html/proofer/fixtures/images/terribleImageName.html
|
|
234
|
-
- spec/html/proofer/fixtures/images/workingDataURIImage.html
|
|
235
|
-
- spec/html/proofer/fixtures/links/_site/folder.html/index.html
|
|
236
|
-
- spec/html/proofer/fixtures/links/anchors_in_pre.html
|
|
237
|
-
- spec/html/proofer/fixtures/links/attributeWithDash.html
|
|
238
|
-
- spec/html/proofer/fixtures/links/blank_mailto_link.html
|
|
239
|
-
- spec/html/proofer/fixtures/links/blank_tel_link.html
|
|
240
|
-
- spec/html/proofer/fixtures/links/brokenHashExternal.html
|
|
241
|
-
- spec/html/proofer/fixtures/links/brokenHashInternal.html
|
|
242
|
-
- spec/html/proofer/fixtures/links/brokenHashOnTheWeb.html
|
|
243
|
-
- spec/html/proofer/fixtures/links/brokenInternalLink.html
|
|
244
|
-
- spec/html/proofer/fixtures/links/brokenLinkExternal.html
|
|
245
|
-
- spec/html/proofer/fixtures/links/brokenLinkInternal.html
|
|
246
|
-
- spec/html/proofer/fixtures/links/brokenLinkWithNumber.html
|
|
247
|
-
- spec/html/proofer/fixtures/links/brokenUnixLinks.html
|
|
248
|
-
- spec/html/proofer/fixtures/links/broken_hash_with_query.html
|
|
249
|
-
- spec/html/proofer/fixtures/links/checkSSLLinks.html
|
|
250
|
-
- spec/html/proofer/fixtures/links/ensure_typhoeus_options.html
|
|
251
|
-
- spec/html/proofer/fixtures/links/erstiebegr%C3%BC%C3%9Fung.html
|
|
252
|
-
- spec/html/proofer/fixtures/links/erstiebegrüßung.html
|
|
253
|
-
- spec/html/proofer/fixtures/links/escape_pipes.html
|
|
254
|
-
- spec/html/proofer/fixtures/links/file.foo
|
|
255
|
-
- spec/html/proofer/fixtures/links/folder-php/index.php
|
|
256
|
-
- spec/html/proofer/fixtures/links/folder/anchorLink.html
|
|
257
|
-
- spec/html/proofer/fixtures/links/folder/assets/barrel.png
|
|
258
|
-
- spec/html/proofer/fixtures/links/folder/index.html
|
|
259
|
-
- spec/html/proofer/fixtures/links/folder/multiples/catalog/file.html
|
|
260
|
-
- spec/html/proofer/fixtures/links/folder/multiples/javadoc/file.html
|
|
261
|
-
- spec/html/proofer/fixtures/links/folder/relativeImage.html
|
|
262
|
-
- spec/html/proofer/fixtures/links/githubHash.html
|
|
263
|
-
- spec/html/proofer/fixtures/links/gpl.png
|
|
264
|
-
- spec/html/proofer/fixtures/links/hashReferringToSelf.html
|
|
265
|
-
- spec/html/proofer/fixtures/links/head_link_href.html
|
|
266
|
-
- spec/html/proofer/fixtures/links/head_link_href_absent.html
|
|
267
|
-
- spec/html/proofer/fixtures/links/head_link_href_empty.html
|
|
268
|
-
- spec/html/proofer/fixtures/links/ignorableLinks.html
|
|
269
|
-
- spec/html/proofer/fixtures/links/ignorableLinksViaOptions.html
|
|
270
|
-
- spec/html/proofer/fixtures/links/invalid_mailto_link.html
|
|
271
|
-
- spec/html/proofer/fixtures/links/javascript_link.html
|
|
272
|
-
- spec/html/proofer/fixtures/links/linkToFolder.html
|
|
273
|
-
- spec/html/proofer/fixtures/links/linkTranslatedViaHrefSwap.html
|
|
274
|
-
- spec/html/proofer/fixtures/links/linkWithHttps.html
|
|
275
|
-
- spec/html/proofer/fixtures/links/linkWithRedirect.html
|
|
276
|
-
- spec/html/proofer/fixtures/links/link_directory_without_slash.html
|
|
277
|
-
- spec/html/proofer/fixtures/links/link_missing_protocol_invalid.html
|
|
278
|
-
- spec/html/proofer/fixtures/links/link_missing_protocol_valid.html
|
|
279
|
-
- spec/html/proofer/fixtures/links/link_pointing_to_directory.html
|
|
280
|
-
- spec/html/proofer/fixtures/links/links_in_pre.html
|
|
281
|
-
- spec/html/proofer/fixtures/links/mailto_link.html
|
|
282
|
-
- spec/html/proofer/fixtures/links/missingLinkHref.html
|
|
283
|
-
- spec/html/proofer/fixtures/links/multipleProblems.html
|
|
284
|
-
- spec/html/proofer/fixtures/links/nodupe.html
|
|
285
|
-
- spec/html/proofer/fixtures/links/non_standard_characters.html
|
|
286
|
-
- spec/html/proofer/fixtures/links/notarealhash.html
|
|
287
|
-
- spec/html/proofer/fixtures/links/other_protocols.html
|
|
288
|
-
- spec/html/proofer/fixtures/links/placeholder_with_empty_id.html
|
|
289
|
-
- spec/html/proofer/fixtures/links/placeholder_with_id.html
|
|
290
|
-
- spec/html/proofer/fixtures/links/placeholder_with_name.html
|
|
291
|
-
- spec/html/proofer/fixtures/links/redirected_error.html
|
|
292
|
-
- spec/html/proofer/fixtures/links/relativeLinks.html
|
|
293
|
-
- spec/html/proofer/fixtures/links/rootLink/folder/index.html
|
|
294
|
-
- spec/html/proofer/fixtures/links/rootLink/index.html
|
|
295
|
-
- spec/html/proofer/fixtures/links/rootLink/rootLink.html
|
|
296
|
-
- spec/html/proofer/fixtures/links/tel_link.html
|
|
297
|
-
- spec/html/proofer/fixtures/links/urlencoded-href.html
|
|
298
|
-
- spec/html/proofer/fixtures/links/utf8Link.html
|
|
299
|
-
- spec/html/proofer/fixtures/resources/Screen Shot 2012-08-09 at 7.51.18 AM.png
|
|
300
|
-
- spec/html/proofer/fixtures/resources/books/assets/getting-good-with-git.jpg
|
|
301
|
-
- spec/html/proofer/fixtures/resources/books/assets/pro-git.jpg
|
|
302
|
-
- spec/html/proofer/fixtures/resources/books/assets/version-control-with-git.jpg
|
|
303
|
-
- spec/html/proofer/fixtures/resources/books/nestedRelativeImages.html
|
|
304
|
-
- spec/html/proofer/fixtures/resources/gpl.png
|
|
305
|
-
- spec/html/proofer/fixtures/scripts/ignorableLinksViaOptions.html
|
|
306
|
-
- spec/html/proofer/fixtures/scripts/script.js
|
|
307
|
-
- spec/html/proofer/fixtures/scripts/script_broken_external.html
|
|
308
|
-
- spec/html/proofer/fixtures/scripts/script_content.html
|
|
309
|
-
- spec/html/proofer/fixtures/scripts/script_content_absent.html
|
|
310
|
-
- spec/html/proofer/fixtures/scripts/script_in_pre.html
|
|
311
|
-
- spec/html/proofer/fixtures/scripts/script_missing_internal.html
|
|
312
|
-
- spec/html/proofer/fixtures/scripts/script_valid_internal.html
|
|
313
|
-
- spec/html/proofer/fixtures/sorting/issue/broken_image_one.html
|
|
314
|
-
- spec/html/proofer/fixtures/sorting/issue/broken_image_two.html
|
|
315
|
-
- spec/html/proofer/fixtures/sorting/path/multiple_issues.html
|
|
316
|
-
- spec/html/proofer/fixtures/sorting/path/single_issue.html
|
|
317
|
-
- spec/html/proofer/fixtures/sorting/status/a_404.html
|
|
318
|
-
- spec/html/proofer/fixtures/sorting/status/broken_link.html
|
|
319
|
-
- spec/html/proofer/fixtures/sorting/status/missing_redirect.html
|
|
320
|
-
- spec/html/proofer/fixtures/utils/lang-jp.html
|
|
321
|
-
- spec/html/proofer/html_spec.rb
|
|
322
|
-
- spec/html/proofer/images_spec.rb
|
|
323
|
-
- spec/html/proofer/links_spec.rb
|
|
324
|
-
- spec/html/proofer/scripts_spec.rb
|
|
325
|
-
- spec/html/proofer/utils_spec.rb
|
|
326
|
-
- spec/html/proofer_spec.rb
|
|
327
|
-
- spec/spec_helper.rb
|
|
217
|
+
- bin/htmlproofer
|
|
218
|
+
- lib/html-proofer.rb
|
|
219
|
+
- lib/html-proofer/cache.rb
|
|
220
|
+
- lib/html-proofer/check.rb
|
|
221
|
+
- lib/html-proofer/check/favicon.rb
|
|
222
|
+
- lib/html-proofer/check/html.rb
|
|
223
|
+
- lib/html-proofer/check/images.rb
|
|
224
|
+
- lib/html-proofer/check/links.rb
|
|
225
|
+
- lib/html-proofer/check/scripts.rb
|
|
226
|
+
- lib/html-proofer/configuration.rb
|
|
227
|
+
- lib/html-proofer/element.rb
|
|
228
|
+
- lib/html-proofer/issue.rb
|
|
229
|
+
- lib/html-proofer/log.rb
|
|
230
|
+
- lib/html-proofer/runner.rb
|
|
231
|
+
- lib/html-proofer/url_validator.rb
|
|
232
|
+
- lib/html-proofer/utils.rb
|
|
233
|
+
- lib/html-proofer/version.rb
|
|
328
234
|
homepage: https://github.com/gjtorikian/html-proofer
|
|
329
235
|
licenses:
|
|
330
236
|
- MIT
|
|
@@ -345,141 +251,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
345
251
|
version: '0'
|
|
346
252
|
requirements: []
|
|
347
253
|
rubyforge_project:
|
|
348
|
-
rubygems_version: 2.
|
|
254
|
+
rubygems_version: 2.4.5.1
|
|
349
255
|
signing_key:
|
|
350
256
|
specification_version: 4
|
|
351
257
|
summary: A set of tests to validate your HTML output. These tests check if your image
|
|
352
258
|
references are legitimate, if they have alt tags, if your internal links are working,
|
|
353
259
|
and so on. It's intended to be an all-in-one checker for your documentation output.
|
|
354
|
-
test_files:
|
|
355
|
-
- spec/html/proofer/checkable_spec.rb
|
|
356
|
-
- spec/html/proofer/command_spec.rb
|
|
357
|
-
- spec/html/proofer/favicon_spec.rb
|
|
358
|
-
- spec/html/proofer/fixtures/favicon/favicon_absent.html
|
|
359
|
-
- spec/html/proofer/fixtures/favicon/favicon_absent_apple.html
|
|
360
|
-
- spec/html/proofer/fixtures/favicon/favicon_broken.html
|
|
361
|
-
- spec/html/proofer/fixtures/favicon/favicon_broken_but_ignored.html
|
|
362
|
-
- spec/html/proofer/fixtures/favicon/favicon_present.html
|
|
363
|
-
- spec/html/proofer/fixtures/favicon/favicon_present_shortcut.html
|
|
364
|
-
- spec/html/proofer/fixtures/html/div_inside_head.html
|
|
365
|
-
- spec/html/proofer/fixtures/html/html5_tags.html
|
|
366
|
-
- spec/html/proofer/fixtures/html/invalid_tag.html
|
|
367
|
-
- spec/html/proofer/fixtures/html/missing_closing_quotes.html
|
|
368
|
-
- spec/html/proofer/fixtures/html/opening_and_ending_tag_mismatch.html
|
|
369
|
-
- spec/html/proofer/fixtures/html/svg_elements.html
|
|
370
|
-
- spec/html/proofer/fixtures/html/unescaped_ampersand_in_attribute.html
|
|
371
|
-
- spec/html/proofer/fixtures/html/unmatched_end_tag.html
|
|
372
|
-
- spec/html/proofer/fixtures/images/emptyImageAltText.html
|
|
373
|
-
- spec/html/proofer/fixtures/images/existingImageExternal.html
|
|
374
|
-
- spec/html/proofer/fixtures/images/gpl.png
|
|
375
|
-
- spec/html/proofer/fixtures/images/ignorableAltViaOptions.html
|
|
376
|
-
- spec/html/proofer/fixtures/images/ignorableImages.html
|
|
377
|
-
- spec/html/proofer/fixtures/images/ignoreAltButNotLink.html
|
|
378
|
-
- spec/html/proofer/fixtures/images/image_missing_protocol_invalid.html
|
|
379
|
-
- spec/html/proofer/fixtures/images/image_missing_protocol_valid.html
|
|
380
|
-
- spec/html/proofer/fixtures/images/missingImageAlt.html
|
|
381
|
-
- spec/html/proofer/fixtures/images/missingImageAltText.html
|
|
382
|
-
- spec/html/proofer/fixtures/images/missingImageExternal.html
|
|
383
|
-
- spec/html/proofer/fixtures/images/missingImageInternal.html
|
|
384
|
-
- spec/html/proofer/fixtures/images/missingImageSrc.html
|
|
385
|
-
- spec/html/proofer/fixtures/images/relativeToSelf.html
|
|
386
|
-
- spec/html/proofer/fixtures/images/rootRelativeImages.html
|
|
387
|
-
- spec/html/proofer/fixtures/images/srcSetCheck.html
|
|
388
|
-
- spec/html/proofer/fixtures/images/srcSetIgnorable.html
|
|
389
|
-
- spec/html/proofer/fixtures/images/srcSetMissingAlt.html
|
|
390
|
-
- spec/html/proofer/fixtures/images/srcSetMissingImage.html
|
|
391
|
-
- spec/html/proofer/fixtures/images/terribleImageName.html
|
|
392
|
-
- spec/html/proofer/fixtures/images/workingDataURIImage.html
|
|
393
|
-
- spec/html/proofer/fixtures/links/_site/folder.html/index.html
|
|
394
|
-
- spec/html/proofer/fixtures/links/anchors_in_pre.html
|
|
395
|
-
- spec/html/proofer/fixtures/links/attributeWithDash.html
|
|
396
|
-
- spec/html/proofer/fixtures/links/blank_mailto_link.html
|
|
397
|
-
- spec/html/proofer/fixtures/links/blank_tel_link.html
|
|
398
|
-
- spec/html/proofer/fixtures/links/brokenHashExternal.html
|
|
399
|
-
- spec/html/proofer/fixtures/links/brokenHashInternal.html
|
|
400
|
-
- spec/html/proofer/fixtures/links/brokenHashOnTheWeb.html
|
|
401
|
-
- spec/html/proofer/fixtures/links/brokenInternalLink.html
|
|
402
|
-
- spec/html/proofer/fixtures/links/brokenLinkExternal.html
|
|
403
|
-
- spec/html/proofer/fixtures/links/brokenLinkInternal.html
|
|
404
|
-
- spec/html/proofer/fixtures/links/brokenLinkWithNumber.html
|
|
405
|
-
- spec/html/proofer/fixtures/links/brokenUnixLinks.html
|
|
406
|
-
- spec/html/proofer/fixtures/links/broken_hash_with_query.html
|
|
407
|
-
- spec/html/proofer/fixtures/links/checkSSLLinks.html
|
|
408
|
-
- spec/html/proofer/fixtures/links/ensure_typhoeus_options.html
|
|
409
|
-
- spec/html/proofer/fixtures/links/erstiebegr%C3%BC%C3%9Fung.html
|
|
410
|
-
- spec/html/proofer/fixtures/links/erstiebegrüßung.html
|
|
411
|
-
- spec/html/proofer/fixtures/links/escape_pipes.html
|
|
412
|
-
- spec/html/proofer/fixtures/links/file.foo
|
|
413
|
-
- spec/html/proofer/fixtures/links/folder-php/index.php
|
|
414
|
-
- spec/html/proofer/fixtures/links/folder/anchorLink.html
|
|
415
|
-
- spec/html/proofer/fixtures/links/folder/assets/barrel.png
|
|
416
|
-
- spec/html/proofer/fixtures/links/folder/index.html
|
|
417
|
-
- spec/html/proofer/fixtures/links/folder/multiples/catalog/file.html
|
|
418
|
-
- spec/html/proofer/fixtures/links/folder/multiples/javadoc/file.html
|
|
419
|
-
- spec/html/proofer/fixtures/links/folder/relativeImage.html
|
|
420
|
-
- spec/html/proofer/fixtures/links/githubHash.html
|
|
421
|
-
- spec/html/proofer/fixtures/links/gpl.png
|
|
422
|
-
- spec/html/proofer/fixtures/links/hashReferringToSelf.html
|
|
423
|
-
- spec/html/proofer/fixtures/links/head_link_href.html
|
|
424
|
-
- spec/html/proofer/fixtures/links/head_link_href_absent.html
|
|
425
|
-
- spec/html/proofer/fixtures/links/head_link_href_empty.html
|
|
426
|
-
- spec/html/proofer/fixtures/links/ignorableLinks.html
|
|
427
|
-
- spec/html/proofer/fixtures/links/ignorableLinksViaOptions.html
|
|
428
|
-
- spec/html/proofer/fixtures/links/invalid_mailto_link.html
|
|
429
|
-
- spec/html/proofer/fixtures/links/javascript_link.html
|
|
430
|
-
- spec/html/proofer/fixtures/links/linkToFolder.html
|
|
431
|
-
- spec/html/proofer/fixtures/links/linkTranslatedViaHrefSwap.html
|
|
432
|
-
- spec/html/proofer/fixtures/links/linkWithHttps.html
|
|
433
|
-
- spec/html/proofer/fixtures/links/linkWithRedirect.html
|
|
434
|
-
- spec/html/proofer/fixtures/links/link_directory_without_slash.html
|
|
435
|
-
- spec/html/proofer/fixtures/links/link_missing_protocol_invalid.html
|
|
436
|
-
- spec/html/proofer/fixtures/links/link_missing_protocol_valid.html
|
|
437
|
-
- spec/html/proofer/fixtures/links/link_pointing_to_directory.html
|
|
438
|
-
- spec/html/proofer/fixtures/links/links_in_pre.html
|
|
439
|
-
- spec/html/proofer/fixtures/links/mailto_link.html
|
|
440
|
-
- spec/html/proofer/fixtures/links/missingLinkHref.html
|
|
441
|
-
- spec/html/proofer/fixtures/links/multipleProblems.html
|
|
442
|
-
- spec/html/proofer/fixtures/links/nodupe.html
|
|
443
|
-
- spec/html/proofer/fixtures/links/non_standard_characters.html
|
|
444
|
-
- spec/html/proofer/fixtures/links/notarealhash.html
|
|
445
|
-
- spec/html/proofer/fixtures/links/other_protocols.html
|
|
446
|
-
- spec/html/proofer/fixtures/links/placeholder_with_empty_id.html
|
|
447
|
-
- spec/html/proofer/fixtures/links/placeholder_with_id.html
|
|
448
|
-
- spec/html/proofer/fixtures/links/placeholder_with_name.html
|
|
449
|
-
- spec/html/proofer/fixtures/links/redirected_error.html
|
|
450
|
-
- spec/html/proofer/fixtures/links/relativeLinks.html
|
|
451
|
-
- spec/html/proofer/fixtures/links/rootLink/folder/index.html
|
|
452
|
-
- spec/html/proofer/fixtures/links/rootLink/index.html
|
|
453
|
-
- spec/html/proofer/fixtures/links/rootLink/rootLink.html
|
|
454
|
-
- spec/html/proofer/fixtures/links/tel_link.html
|
|
455
|
-
- spec/html/proofer/fixtures/links/urlencoded-href.html
|
|
456
|
-
- spec/html/proofer/fixtures/links/utf8Link.html
|
|
457
|
-
- spec/html/proofer/fixtures/resources/Screen Shot 2012-08-09 at 7.51.18 AM.png
|
|
458
|
-
- spec/html/proofer/fixtures/resources/books/assets/getting-good-with-git.jpg
|
|
459
|
-
- spec/html/proofer/fixtures/resources/books/assets/pro-git.jpg
|
|
460
|
-
- spec/html/proofer/fixtures/resources/books/assets/version-control-with-git.jpg
|
|
461
|
-
- spec/html/proofer/fixtures/resources/books/nestedRelativeImages.html
|
|
462
|
-
- spec/html/proofer/fixtures/resources/gpl.png
|
|
463
|
-
- spec/html/proofer/fixtures/scripts/ignorableLinksViaOptions.html
|
|
464
|
-
- spec/html/proofer/fixtures/scripts/script.js
|
|
465
|
-
- spec/html/proofer/fixtures/scripts/script_broken_external.html
|
|
466
|
-
- spec/html/proofer/fixtures/scripts/script_content.html
|
|
467
|
-
- spec/html/proofer/fixtures/scripts/script_content_absent.html
|
|
468
|
-
- spec/html/proofer/fixtures/scripts/script_in_pre.html
|
|
469
|
-
- spec/html/proofer/fixtures/scripts/script_missing_internal.html
|
|
470
|
-
- spec/html/proofer/fixtures/scripts/script_valid_internal.html
|
|
471
|
-
- spec/html/proofer/fixtures/sorting/issue/broken_image_one.html
|
|
472
|
-
- spec/html/proofer/fixtures/sorting/issue/broken_image_two.html
|
|
473
|
-
- spec/html/proofer/fixtures/sorting/path/multiple_issues.html
|
|
474
|
-
- spec/html/proofer/fixtures/sorting/path/single_issue.html
|
|
475
|
-
- spec/html/proofer/fixtures/sorting/status/a_404.html
|
|
476
|
-
- spec/html/proofer/fixtures/sorting/status/broken_link.html
|
|
477
|
-
- spec/html/proofer/fixtures/sorting/status/missing_redirect.html
|
|
478
|
-
- spec/html/proofer/fixtures/utils/lang-jp.html
|
|
479
|
-
- spec/html/proofer/html_spec.rb
|
|
480
|
-
- spec/html/proofer/images_spec.rb
|
|
481
|
-
- spec/html/proofer/links_spec.rb
|
|
482
|
-
- spec/html/proofer/scripts_spec.rb
|
|
483
|
-
- spec/html/proofer/utils_spec.rb
|
|
484
|
-
- spec/html/proofer_spec.rb
|
|
485
|
-
- spec/spec_helper.rb
|
|
260
|
+
test_files: []
|
data/.gitignore
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
*.gem
|
|
2
|
-
*.rbc
|
|
3
|
-
.bundle
|
|
4
|
-
.config
|
|
5
|
-
coverage
|
|
6
|
-
InstalledFiles
|
|
7
|
-
lib/bundler/man
|
|
8
|
-
pkg
|
|
9
|
-
rdoc
|
|
10
|
-
spec/reports
|
|
11
|
-
test/tmp
|
|
12
|
-
test/version_tmp
|
|
13
|
-
tmp
|
|
14
|
-
|
|
15
|
-
Gemfile.lock
|
|
16
|
-
out/
|
|
17
|
-
sample.rb
|
|
18
|
-
run_sample.rb
|
|
19
|
-
src/
|
|
20
|
-
docs/
|
|
21
|
-
|
|
22
|
-
# YARD artifacts
|
|
23
|
-
.yardoc
|
|
24
|
-
_yardoc
|
|
25
|
-
doc/
|
|
26
|
-
.DS_Store
|
data/.travis.yml
DELETED
data/Gemfile
DELETED
data/LICENSE.txt
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
Copyright (c) 2013 Garen Torikian
|
|
2
|
-
|
|
3
|
-
MIT License
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
|
6
|
-
a copy of this software and associated documentation files (the
|
|
7
|
-
"Software"), to deal in the Software without restriction, including
|
|
8
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
|
9
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
|
10
|
-
permit persons to whom the Software is furnished to do so, subject to
|
|
11
|
-
the following conditions:
|
|
12
|
-
|
|
13
|
-
The above copyright notice and this permission notice shall be
|
|
14
|
-
included in all copies or substantial portions of the Software.
|
|
15
|
-
|
|
16
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
17
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
18
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
19
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
20
|
-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
21
|
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
22
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|