Sha256: d953374e3a0838e145db9c3fbd5356c1746d6a91302589ff0e7a16b4e51a436d

Contents?: true

Size: 561 Bytes

Versions: 7

Compression:

Stored size: 561 Bytes

Contents

require 'bundler/gem_tasks'
require 'rake/testtask'

Rake::TestTask.new(:spec) do |t|
  t.libs << 'spec'
  t.pattern = 'spec/**/*_spec.rb'
  t.verbose = false
  t.warning = false
  t.loader = nil if ENV['TEST']
  ENV['TEST'], ENV['LINE'] = ENV['TEST'].split(':') if ENV['TEST'] && !ENV['LINE']
  t.options = ''
  t.options << "--name=/#{ENV['NAME']}/ " if ENV['NAME']
  t.options << "-l #{ENV['LINE']} " if ENV['LINE'] && ENV['TEST']
end

task :console do
  require 'pry'
  require 'eternity'
  include Eternity
  ARGV.clear
  Pry.start
end

task default: :spec

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
eternity-4.0.0 Rakefile
eternity-3.0.1 Rakefile
eternity-3.0.0 Rakefile
eternity-2.0.1 Rakefile
eternity-2.0.0 Rakefile
eternity-1.1.1 Rakefile
eternity-1.1.0 Rakefile