diff options
author | Tim Smith <tsmith@chef.io> | 2018-07-25 14:58:37 -0700 |
---|---|---|
committer | Tim Smith <tsmith@chef.io> | 2018-07-25 15:18:36 -0700 |
commit | e44e79b1ae91b553e9697f3246254e1273488d28 (patch) | |
tree | 5e4b5bf555ca97bf1507c9a7d060bab124eab892 /Rakefile | |
parent | e0c0385b230e59e9745f222dadb72df72f1ed716 (diff) | |
download | mixlib-log-e44e79b1ae91b553e9697f3246254e1273488d28.tar.gz |
Get chefstyle green
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'Rakefile')
-rw-r--r-- | Rakefile | 33 |
1 files changed, 20 insertions, 13 deletions
@@ -1,22 +1,14 @@ require "bundler/gem_tasks" -require "rdoc/task" require "rspec/core/rake_task" require "cucumber/rake/task" -RSpec::Core::RakeTask.new(:spec) do |spec| - spec.pattern = "spec/**/*_spec.rb" -end - task default: [:style, :spec, :features] -# For rubygems-test -task test: :spec +Bundler::GemHelper.install_tasks -RDoc::Task.new do |rdoc| - rdoc.rdoc_dir = "rdoc" - rdoc.title = "mixlib-log #{Mixlib::Log::VERSION}" - rdoc.rdoc_files.include("README*") - rdoc.rdoc_files.include("lib/**/*.rb") +desc "Run specs" +RSpec::Core::RakeTask.new(:spec) do |spec| + spec.pattern = "spec/**/*_spec.rb" end Cucumber::Rake::Task.new(:features) do |t| @@ -30,5 +22,20 @@ begin task.options += ["--display-cop-names", "--no-color"] end rescue LoadError - puts "chefstyle/rubocop is not available. gem install chefstyle to do style checking." + puts "chefstyle/rubocop is not available. bundle install first to make sure all dependencies are installed." +end + +begin + require "yard" + YARD::Rake::YardocTask.new(:docs) +rescue LoadError + puts "yard is not available. bundle install first to make sure all dependencies are installed." +end + +task :console do + require "irb" + require "irb/completion" + require "mixlib/log" + ARGV.clear + IRB.start end |