Sha256: 7802584eac511e77eb6ae42d88d4220457ea5530ffa91f51d16cb23af87db601

Contents?: true

Size: 549 Bytes

Versions: 7

Compression:

Stored size: 549 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-nav'
  require 'asynchronic'
  ARGV.clear
  Pry.start
end

task default: :spec

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
asynchronic-1.4.0 Rakefile
asynchronic-1.3.1 Rakefile
asynchronic-1.3.0 Rakefile
asynchronic-1.2.2 Rakefile
asynchronic-1.2.1 Rakefile
asynchronic-1.2.0 Rakefile
asynchronic-1.1.1 Rakefile