tenderlove / nokogiri

Nokogiri (鋸) is an HTML, XML, SAX, and Reader parser with XPath and CSS selector support.

tenderlove (author)
Mon Jun 22 23:47:53 -0700 2009
commit  30d4db78125f3eba78015a20072a3629223ed2c7
tree    675c35bcc35d6ed800571edace79cada781a19c8
parent  f7fe487f3f12d0e1ca2f6a3c8b98916dc2634a6c
nokogiri / .autotest
100644 28 lines (23 sloc) 0.418 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# -*- ruby -*-
 
begin
  require 'autotest/fsevent'
rescue LoadError
end
 
Autotest.add_hook :run_command do |at|
  at.unit_diff = 'cat'
  if ENV['ONENINE']
    system "rake1.9 compile"
  else
    system "rake compile"
  end
end
 
Autotest.add_hook :ran_command do |at|
  File.open('/tmp/autotest.txt', 'wb') { |f|
    f.write(at.results.join)
  }
end
 
class Autotest
  def ruby
    'ruby1.9'
  end
end if ENV['ONENINE']