Sha256: e5bea9f610857e8f021fd400c2d876aeef82a3e731b677dff0f6edbadd7797f9

Contents?: true

Size: 353 Bytes

Versions: 9

Compression:

Stored size: 353 Bytes

Contents

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"
    begin
      require "pry"
    rescue LoadError
      require "irb"
    end
  else
    require "irb"
  end

  if defined? Pry
    Pry.start
  else
    ARGV.clear
    IRB.start
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
mtrack-1.1.0 tasks/console.rb
mtrack-1.0.2 tasks/console.rb
mtrack-1.0.1 tasks/console.rb
mtrack-1.0.0 tasks/console.rb
mtrack-0.0.6 tasks/console.rb
mtrack-0.0.5 tasks/console.rb
mtrack-0.0.4 tasks/console.rb
mtrack-0.0.3 tasks/console.rb
mtrack-0.0.2 tasks/console.rb