Sha256: fdba86e294ece1488d0f877d9325db567c5d35bb0195f00d8fe384d03cc519fe

Contents?: true

Size: 1.2 KB

Versions: 26

Compression:

Stored size: 1.2 KB

Contents

#!/bin/ruby
#require 'redgreen'
require 'autotest/timestamp'
 
#module Autotest::GnomeNotify
#  def self.notify title, msg, img
#    system "notify-send '#{title}' '#{msg}' -i #{img} -t 3000"
#  end
# 
#  Autotest.add_hook :ran_command do |at|
#    image_root = "~/.autotest_images"
#    results = [at.results].flatten.join("\n")
#    results.gsub!(/\\e\[\d+m/,'')
#    output = results.slice(/(\d+)\sexamples?,\s(\d+)\sfailures?/)
#    puts output.inspect
#    if output
#      if $~[2].to_i > 0
#        notify "FAIL", "#{output}", "#{image_root}/fail.png"
#      else
#        notify "Pass", "#{output}", "#{image_root}/pass.png"
#      end
#    end
#  end
 

  Autotest.add_hook :initialize do |autotest|
    autotest.add_mapping(%r%^spec/(app|lib)/.*rb$%) do|filename, _|
      filename
    end

    #autotest.add_mapping(%r%^.*rb$%) do|filename, _|
    #  filename
    #end
    
    autotest.add_exception(%r%spec/dummy/app%)
    autotest.add_exception(%r%spec/dummy/db%)
    autotest.add_exception(%r%spec/dummy/lib%)
    autotest.add_exception(%r%spec/dummy/config%)
    autotest.add_exception(%r%spec/dummy/log%)
    autotest.add_exception(%r%spec/dummy/public%)
    autotest.add_exception(%r%\.git%)
  end 

#end


Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
phocoder-rails-0.0.38 .autotest
phocoder-rails-0.0.37 .autotest
phocoder-rails-0.0.36 .autotest
phocoder-rails-0.0.35 .autotest
phocoder-rails-0.0.34 .autotest
phocoder-rails-0.0.33 .autotest