Sha256: eea9924c11d7b4370e7c66eaa1b9df99f1f51fc293b43481368d4623a697d1ec

Contents?: true

Size: 408 Bytes

Versions: 28

Compression:

Stored size: 408 Bytes

Contents

module Autotest::Restart
  Autotest.add_hook :initialize do |at|
    configs = [File.expand_path('~/.autotest'), './.autotest'].select { |f|
      File.exist? f
    }
    at.extra_files.concat configs
    false
  end

  Autotest.add_hook :updated do |at, found|
    unless found.flatten.grep(/\.autotest$/).empty? then
      warn "Detected change to .autotest, restarting"
      at.restart
    end
  end
end

Version data entries

28 entries across 28 versions & 6 rubygems

Version Path
cloudsmith-api-0.44.4 vendor/bundle/ruby/2.3.0/gems/ZenTest-4.11.2/lib/autotest/restart.rb
dadapush_client-1.0.1 vendor/bundle/ruby/2.3.0/gems/ZenTest-4.11.2/lib/autotest/restart.rb
minitest-autotest-1.1.1 lib/autotest/restart.rb
minitest-autotest-1.1.0 lib/autotest/restart.rb
ZenTest-4.11.2 lib/autotest/restart.rb
cloudsmith-api-0.30.7 vendor/bundle/ruby/2.3.0/gems/ZenTest-4.11.1/lib/autotest/restart.rb
color_me_shop-1.0.0 vendor/bundle/ruby/2.5.0/gems/ZenTest-4.11.1/lib/autotest/restart.rb
cloudsmith-api-0.21.4 vendor/bundle/ruby/2.3.0/gems/ZenTest-4.11.1/lib/autotest/restart.rb
ZenTest-4.11.1 lib/autotest/restart.rb
minitest-autotest-1.0.3 lib/autotest/restart.rb
dwolla_swagger-1.0.6 vendor/bundle/ruby/2.2.0/gems/ZenTest-4.11.0/lib/autotest/restart.rb
minitest-autotest-1.0.2 lib/autotest/restart.rb
minitest-autotest-1.0.1 lib/autotest/restart.rb
minitest-autotest-1.0.0 lib/autotest/restart.rb
ZenTest-4.11.0 lib/autotest/restart.rb
minitest-autotest-1.0.0.b.1 lib/autotest/restart.rb
ZenTest-4.10.1 lib/autotest/restart.rb
ZenTest-4.10.0 lib/autotest/restart.rb
ZenTest-4.9.5 lib/autotest/restart.rb
ZenTest-4.9.4 lib/autotest/restart.rb