Sha256: 9aa9aea7b3e491d0fb6af450779f813e55982c8fd7e6992d59a1502f23dfff28
Contents?: true
Size: 635 Bytes
Versions: 9
Compression:
Stored size: 635 Bytes
Contents
#!/usr/bin/env ruby # TODO: Ensure compile first (but only if needed) # system "task/make" # Run unit tests live = ARGV.include?('--live') pure = ARGV.include?('--pure') # pure won't work if live. unless live $LOAD_PATH.unshift(File.expand_path('lib')) $LOAD_PATH.unshift(File.expand_path('ext/tmailscanner')) unless pure end $LOAD_PATH.unshift('test') # NEEDED? unless glob = ARGV.select{ |a| a !~ /^[-]/ }[0] glob = 'test/test_*.rb' end Dir[glob].each do |file| next if File.directory?(file) begin puts "Loading: #{file}" if $DEBUG load(file) rescue LoadError puts "Error loading: #{file}" end end
Version data entries
9 entries across 9 versions & 6 rubygems