tasks/console.rb in mtrack-0.0.1 vs tasks/console.rb in mtrack-0.0.2

- old
+ new

@@ -1,13 +1,21 @@ desc "Open a console with the #{Bundler::GemHelper.gemspec.name} gem loaded" task :console do require Bundler::GemHelper.gemspec.name if RUBY_VERSION >= "1.9" - require "pry" - Pry.start + begin + require "pry" + rescue LoadError + require "irb" + end else require "irb" + end + + if defined? Pry + Pry.start + else ARGV.clear IRB.start end end