Sha256: 2526c0f3519d7ba12a0893152e1f57782360af3692cb45eb46b254d6eae1166b

Contents?: true

Size: 330 Bytes

Versions: 2

Compression:

Stored size: 330 Bytes

Contents

##
# Run autotest with isolate support.

module Autotest::Isolate
  @@dir = "tmp/isolate/#{Gem.ruby_engine}-#{RbConfig::CONFIG['ruby_version']}"

  def self.dir= o
    @@dir = o
  end

  Autotest.add_hook :initialize do |at|
    ENV["GEM_PATH"] = dir
    ENV["PATH"]    += ":#{@@dir}/bin"

    Gem.clear_paths
    false
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ZenTest-4.4.2 lib/autotest/isolate.rb
ZenTest-4.4.1 lib/autotest/isolate.rb