Sha256: 77f6d63037e8dbd7b020361a0d6926885bf63a7b82a9c4e1ccb3873221de09c6

Contents?: true

Size: 623 Bytes

Versions: 17

Compression:

Stored size: 623 Bytes

Contents

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

Rake::TestTask.new(:spec) do |t|
  t.libs << 'spec'
  t.libs << 'lib'
  t.pattern = ENV['DIR'] ? File.join(ENV['DIR'], '**', '*_spec.rb') : '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

17 entries across 17 versions & 1 rubygems

Version Path
asynchronic-4.0.3 Rakefile
asynchronic-4.0.2 Rakefile
asynchronic-4.0.1 Rakefile
asynchronic-4.0.0 Rakefile
asynchronic-3.0.3 Rakefile
asynchronic-3.0.2 Rakefile
asynchronic-3.0.1 Rakefile
asynchronic-3.0.0 Rakefile
asynchronic-2.0.1 Rakefile
asynchronic-2.0.0 Rakefile
asynchronic-1.6.3 Rakefile
asynchronic-1.6.2 Rakefile
asynchronic-1.6.1 Rakefile
asynchronic-1.6.0 Rakefile
asynchronic-1.5.2 Rakefile
asynchronic-1.5.1 Rakefile
asynchronic-1.5.0 Rakefile