Sha256: 7afa820a465b38dcbd999537446225fe9c86567ab9066d3deeedf87323286a01

Contents?: true

Size: 638 Bytes

Versions: 2

Compression:

Stored size: 638 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 default: :spec

desc 'Pry console'
task :console do
  require 'rasti-enum'
  require 'pry'
  ARGV.clear
  Pry.start
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rasti-enum-1.0.1 Rakefile
rasti-enum-1.0.0 Rakefile