Sha256: e091af8d5d74e1e902865f82720fb5c0a3e3fed08c8601de1fa4c86fa812455b

Contents?: true

Size: 598 Bytes

Versions: 4

Compression:

Stored size: 598 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 >= "2"
    begin
      require "byebug"
    rescue LoadError # rubocop:disable Lint/HandleExceptions
    end
  else
    begin
      require "debugger"
    rescue LoadError # rubocop:disable Lint/HandleExceptions
    end
  end

  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

4 entries across 4 versions & 2 rubygems

Version Path
mtrack-1.1.1 tasks/console.rb
mabbre-0.0.3 tasks/console.rb
mabbre-0.0.2 tasks/console.rb
mabbre-0.0.1 tasks/console.rb