Sha256: a27d1d139af925ca597b5dc83f1c35d06fe3f8aa1025addfe8f03a8c584c66bd
Contents?: true
Size: 638 Bytes
Versions: 3
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 'Console' task :console do require 'pry' require 'simple_profiler' ARGV.clear Pry.start end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
simple_profiler-0.2.0 | Rakefile |
simple_profiler-0.1.2 | Rakefile |
simple_profiler-0.1.1 | Rakefile |