Created
June 2, 2015 18:01
-
-
Save gonzalo-bulnes/89449b059fc35b9491bb to your computer and use it in GitHub Desktop.
Add documentation improvement suggestions to a Ruby test suite (by defining a Rake task with Inch).
This file contains hidden or 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
# Rakefile | |
begin | |
require 'inch/rake' | |
Inch::Rake::Suggest.new(:inch) do |suggest| | |
suggest.args << "--private" | |
suggest.args << "--pedantic" | |
end | |
rescue LoadError | |
desc 'Inch rake task not available' | |
task :inch do | |
abort 'Inch rake task is not available. Be sure to install inch as a gem or plugin' | |
end | |
end | |
# ... | |
# task :default => [:spec, 'blueprint:verify', 'app_json:validate', :inch] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment