-
-
Notifications
You must be signed in to change notification settings - Fork 200
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor html-proofer #147
Merged
Merged
Changes from 12 commits
Commits
Show all changes
40 commits
Select commit
Hold shift + click to select a range
1c08ed4
Generic Rubocop fixups
gjtorikian 995b2fb
%r{ appears to fail for Travis
gjtorikian d7e0606
Clean up the main entry class
gjtorikian 286e2da
Move logging into its own class
gjtorikian a0a2a65
Improve some documentation
gjtorikian 7b71cd7
Move UrlValidation out into its own class
gjtorikian efbb964
Obsolete
gjtorikian 904811d
Include Utils here, too
gjtorikian b0b4102
Refactor all the check logic
gjtorikian c0deedf
Suffix all classes with check
gjtorikian fa6a998
Mention `typhoeus` and `hydra`
gjtorikian 0c1a911
begone
gjtorikian a27f423
Rename favicon option
gjtorikian 590ed99
You don't like empty values? Me either.
gjtorikian 7006132
Add tests for Utils
7408a1b
Single quote style
41558f4
Wording
b04ae08
Simplify the Parallel example
ea18ff0
Fix Typhoeus link example
gjtorikian a42d479
Properly set ivar for data-proofer-ignore
gjtorikian b4bfe13
Proper pass of `followlocation`
gjtorikian 6c49e6b
Rename ignore check
gjtorikian abb4e25
Proper check for `followlocation`
gjtorikian 5e82ae6
I am somewhat certain this test is wrong
gjtorikian e7c5ca7
Emit the correct colors
gjtorikian 778820f
Pretty sure `stdout` is rubbish here?
gjtorikian 347d2fc
Update HTML tests
gjtorikian 972fe5a
Update syntax
gjtorikian cb5ca18
Proper grammar!
gjtorikian 146d650
Revamp and test command binary
gjtorikian 13a3768
Try unblocking Travis?
gjtorikian c1fdc03
Wrap this cmd in quotes
gjtorikian 7ff2ebf
Simplify this test, since it fails only on Travis
gjtorikian f8dd45d
Try to improve on sorting logic
gjtorikian 05439f7
Use `module_function`
gjtorikian d93234b
Pull sorting and reporting out
gjtorikian 2929aaf
Be green
gjtorikian bab216f
No nakey
gjtorikian 731dc20
Rename `get_checks` to just `checks`
gjtorikian ff40de1
More aesthetics
gjtorikian File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
source "http://rubygems.org" | ||
source 'http://rubygems.org' | ||
|
||
gemspec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,31 @@ | ||
# -*- encoding: utf-8 -*- | ||
$:.push File.expand_path("../lib", __FILE__) | ||
$LOAD_PATH.push File.expand_path('../lib', __FILE__) | ||
require 'html/proofer/version' | ||
|
||
Gem::Specification.new do |gem| | ||
gem.name = "html-proofer" | ||
gem.name = 'html-proofer' | ||
gem.version = HTML::Proofer::VERSION | ||
gem.authors = ["Garen Torikian"] | ||
gem.email = ["gjtorikian@gmail.com"] | ||
gem.description = %q{Test your rendered HTML files to make sure they're accurate.} | ||
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.} | ||
gem.homepage = "https://github.com/gjtorikian/html-proofer" | ||
gem.license = "MIT" | ||
gem.executables = ["htmlproof"] | ||
gem.authors = ['Garen Torikian'] | ||
gem.email = ['gjtorikian@gmail.com'] | ||
gem.description = %(Test your rendered HTML files to make sure they're accurate.) | ||
gem.summary = %(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.) | ||
gem.homepage = 'https://github.com/gjtorikian/html-proofer' | ||
gem.license = 'MIT' | ||
gem.executables = ['htmlproof'] | ||
gem.files = `git ls-files`.split($/) | ||
gem.test_files = gem.files.grep(%r{^(spec)/}) | ||
gem.require_paths = ["lib"] | ||
gem.require_paths = ['lib'] | ||
|
||
gem.add_dependency "mercenary", "~> 0.3.2" | ||
gem.add_dependency "nokogiri", "~> 1.5" | ||
gem.add_dependency "colored", "~> 1.2" | ||
gem.add_dependency "typhoeus", "~> 0.6.7" | ||
gem.add_dependency "yell", "~> 2.0" | ||
gem.add_dependency "parallel", "~> 1.3" | ||
gem.add_dependency "addressable", "~> 2.3" | ||
gem.add_dependency 'mercenary', '~> 0.3.2' | ||
gem.add_dependency 'nokogiri', '~> 1.5' | ||
gem.add_dependency 'colored', '~> 1.2' | ||
gem.add_dependency 'typhoeus', '~> 0.6.7' | ||
gem.add_dependency 'yell', '~> 2.0' | ||
gem.add_dependency 'parallel', '~> 1.3' | ||
gem.add_dependency 'addressable', '~> 2.3' | ||
|
||
gem.add_development_dependency "redcarpet" | ||
gem.add_development_dependency "rspec", "~> 3.1.0" | ||
gem.add_development_dependency "rake" | ||
gem.add_development_dependency "awesome_print" | ||
gem.add_development_dependency 'redcarpet' | ||
gem.add_development_dependency 'rspec', '~> 3.1' | ||
gem.add_development_dependency 'rake' | ||
gem.add_development_dependency 'awesome_print' | ||
end |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can this be DRY'd?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ugh probably. I was thinking about removing the bin entirely but I guess that's Not The Right Thing To Do ™️.