summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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