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
dirty_history-0.7.3 dirty_history/ruby/1.9.1/gems/arel-2.2.1/.autotest
dirty_history-0.7.2 dirty_history/ruby/1.9.1/gems/arel-2.2.1/.autotest
dirty_history-0.7.1 dirty_history/ruby/1.9.1/gems/arel-2.2.1/.autotest
dirty_history-0.7.0 dirty_history/ruby/1.9.1/gems/arel-2.2.1/.autotest
dirty_history-0.6.7 dirty_history/ruby/1.9.1/gems/arel-2.2.1/.autotest
dirty_history-0.6.6 dirty_history/ruby/1.9.1/gems/arel-2.2.1/.autotest
dirty_history-0.6.5 dirty_history/ruby/1.9.1/gems/arel-2.2.1/.autotest
dirty_history-0.6.4 dirty_history/ruby/1.9.1/gems/arel-2.2.1/.autotest
dirty_history-0.6.3 dirty_history/ruby/1.9.1/gems/arel-2.2.1/.autotest
dirty_history-0.6.2 dirty_history/ruby/1.9.1/gems/arel-2.2.1/.autotest
dirty_history-0.6.1 dirty_history/ruby/1.9.1/gems/arel-2.2.1/.autotest
dirty_history-0.6.0 dirty_history/ruby/1.9.1/gems/arel-2.2.1/.autotest
dirty_history-0.5.4 dirty_history/ruby/1.9.1/gems/arel-2.2.1/.autotest
dirty_history-0.5.3 dirty_history/ruby/1.9.1/gems/arel-2.2.1/.autotest
dirty_history-0.5.2 dirty_history/ruby/1.9.1/gems/arel-2.2.1/.autotest
arel-3.0.2 .autotest
arel-2.2.3 .autotest
arel-3.0.1 .autotest
arel-2.2.2 .autotest
dirty_history-0.5.1 dirty_history/ruby/1.9.1/gems/arel-2.2.1/.autotest