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.58 .autotest
phocoder-rails-0.0.57 .autotest
phocoder-rails-0.0.56 .autotest
phocoder-rails-0.0.55 .autotest
phocoder-rails-0.0.54 .autotest
phocoder-rails-0.0.53 .autotest
phocoder-rails-0.0.52 .autotest
phocoder-rails-0.0.51 .autotest
phocoder-rails-0.0.50 .autotest
phocoder-rails-0.0.49 .autotest
phocoder-rails-0.0.48 .autotest
phocoder-rails-0.0.47 .autotest
phocoder-rails-0.0.46 .autotest
phocoder-rails-0.0.45 .autotest
phocoder-rails-0.0.44 .autotest
phocoder-rails-0.0.43 .autotest
phocoder-rails-0.0.42 .autotest
phocoder-rails-0.0.41 .autotest
phocoder-rails-0.0.40 .autotest
phocoder-rails-0.0.39 .autotest