diff options
author | Tim Smith <tsmith@chef.io> | 2018-10-23 18:56:01 -0700 |
---|---|---|
committer | Tim Smith <tsmith@chef.io> | 2018-10-23 18:56:01 -0700 |
commit | f0afc701e5640c7f364c7ae49b7db17214672a46 (patch) | |
tree | d22843045e192fed1d99bfa06d4e15e52a73eef5 | |
parent | d69ec8252be824d7ba14297d1af10f3a327a18d2 (diff) | |
download | wmi-lite-f0afc701e5640c7f364c7ae49b7db17214672a46.tar.gz |
Add standard rake tasks
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r-- | Gemfile | 21 | ||||
-rw-r--r-- | Rakefile | 14 |
2 files changed, 34 insertions, 1 deletions
@@ -1,2 +1,21 @@ -source 'https://rubygems.org' +source "https://rubygems.org" + gemspec + +group :docs do + gem "yard" + gem "redcarpet" + gem "github-markup" +end + +group :debug do + gem "pry" + gem "pry-byebug" + gem "pry-stack_explorer" +end + +instance_eval(ENV["GEMFILE_MOD"]) if ENV["GEMFILE_MOD"] + +# If you want to load debugging tools into the bundle exec sandbox, +# add these additional dependencies into Gemfile.local +eval_gemfile(__FILE__ + ".local") if File.exist?(__FILE__ + ".local") @@ -1 +1,15 @@ require 'bundler/gem_tasks' + +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" + ARGV.clear + IRB.start +end |