summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2018-10-23 18:56:01 -0700
committerTim Smith <tsmith@chef.io>2018-10-23 18:56:01 -0700
commitf0afc701e5640c7f364c7ae49b7db17214672a46 (patch)
treed22843045e192fed1d99bfa06d4e15e52a73eef5
parentd69ec8252be824d7ba14297d1af10f3a327a18d2 (diff)
downloadwmi-lite-f0afc701e5640c7f364c7ae49b7db17214672a46.tar.gz
Add standard rake tasks
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--Gemfile21
-rw-r--r--Rakefile14
2 files changed, 34 insertions, 1 deletions
diff --git a/Gemfile b/Gemfile
index 851fabc..3f0c104 100644
--- a/Gemfile
+++ b/Gemfile
@@ -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")
diff --git a/Rakefile b/Rakefile
index c702cfc..c71976d 100644
--- a/Rakefile
+++ b/Rakefile
@@ -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