Sha256: 4467a28b404ef21f8f3886f262e2d21770c659451c7fa9e01c2a245f5a80a6a5

Contents?: true

Size: 548 Bytes

Versions: 9

Compression:

Stored size: 548 Bytes

Contents

require "bundler/gem_tasks"
require 'rspec/core/rake_task'

RSpec::Core::RakeTask.new(:spec)

task default: :spec

namespace :parallel do
  task :spec do
    sh "parallel_rspec spec/"
  end
end

task :watch do
  folders_to_watch = 'bin lib spec'
  action_on_change = 'bundle exec rake'
  begin 
    gem 'filewatcher'
    sh "filewatcher '#{folders_to_watch}' '#{action_on_change}'"
  rescue Gem::LoadError
    puts 'You need to have the filewatcher gem installed to perform this task.'
    puts 'Install with \'gem install filewatcher\''
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
where_to-1.1.0 Rakefile
where_to-1.0.7 Rakefile
where_to-1.0.6 Rakefile
where_to-1.0.5 Rakefile
where_to-1.0.4 Rakefile
where_to-1.0.3 Rakefile
where_to-1.0.2 Rakefile
where_to-1.0.1 Rakefile
where_to-1.0.0 Rakefile