Sha256: 720a38763d6f702dac92559e60b5c3abe6143c9376777e3af483b1b9fe313db1

Contents?: true

Size: 513 Bytes

Versions: 73

Compression:

Stored size: 513 Bytes

Contents

# -*- ruby -*-

# require 'autotest/restart'

ENV['GEM_PATH'] = "tmp/isolate/ruby-1.8"

module Autotest::Restart
  Autotest.add_hook :updated do |at, *args|
    if args.flatten.include? ".autotest" then
      warn "Detected change to .autotest, restarting"
      cmd = %w(autotest)
      cmd << " -v" if $v
      cmd += ARGV

      exec(*cmd)
    end
  end
end

Autotest.add_hook :initialize do |at|
  at.add_exception 'tmp'
  at.testlib = "minitest/autorun"

  at.find_directories = ARGV unless ARGV.empty?
end

Version data entries

73 entries across 73 versions & 7 rubygems

Version Path
square-arel-2.0.9.20110222133018 .autotest
arel-2.1.0 .autotest
arel-2.0.9 .autotest
arel-2.0.9.rc1 .autotest
arel-2.0.8 .autotest
arel-2.0.8.beta.20110131120940 .autotest
arel-2.0.7 .autotest
arel-2.0.7.beta.20110110114925 .autotest
arel-2.0.6 .autotest
arel-2.0.5 .autotest
arel-2.0.4 .autotest
arel-2.0.3 .autotest
arel-2.0.2 .autotest