-
Notifications
You must be signed in to change notification settings - Fork 3
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
Add 'verify' rake task to verify code quality before committing changes #29
Conversation
@@ -51,4 +51,6 @@ task 'hoe:spec' do | |||
File.open("#{hoe.name}.gemspec", "w") { |f| f.write hoe.spec.to_ruby} | |||
end | |||
|
|||
desc 'verify code quality before committing changes' | |||
task 'verify' => ['clean', 'test', 'rubocop', 'bundler:gemfile', 'git:manifest'] |
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.
git:manifest
would generate the Manifest.txt file. Do we need to have this file then in the repository at all? Could we generate it just before we do rake package
maybe?
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.
Hm...Good idea. But there are some hoe tasks except rake package
that may require manifest.txt, so I think it’s good to keep it all the time.
Hoe.plugin :bundler | ||
Hoe.plugin :gemspec |
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.
Why don't we need hoe-gemspec anymore? I thought, we would require this for creating a ruby gem...
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.
We create a gemspec file by hoe:spec task now.
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.
👍
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.
I'll update Manifest.txt before I push it, that should fix then "rake install_gem"
rake verify
is equivalent torake clean test rubocop git:manifest bundler:gemfile