Skip to content
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

Fix errors at rake docs and whitespace. #183

Merged
merged 1 commit into from
Jun 2, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ task :default => :spec
desc "Generate RDoc"
task :docs do
FileUtils.rm_rf("doc")
require "rack/test"
system "hanna --title 'Rack::Test #{Rack::Test::VERSION} API Documentation'"
require "rack/test/version"
sh "rdoc --title 'Rack::Test #{Rack::Test::VERSION} API Documentation'"
end

desc 'Removes trailing whitespace'
task :whitespace do
sh %{find . -name '*.rb' -exec sed -i '' 's/ *$//g' {} \\;}
sh %{find . -name '*.rb' -exec sed -i 's/ *$//g' {} \\;}
end
1 change: 1 addition & 0 deletions rack-test.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ request helpers feature.
s.add_development_dependency 'rake', '~> 12.0'
s.add_development_dependency 'rspec', '~> 3.6'
s.add_development_dependency 'sinatra', '>= 1.0', '< 3'
s.add_development_dependency 'rdoc', '~> 5.1'
# Keep version < 1 to supress deprecated warning temporary.
s.add_development_dependency 'codeclimate-test-reporter', '~> 0.6'
# For Thorfile. Run "bundle exec thor help" to see the help.
Expand Down