Sha256: 035b195249c1fbfd018e3430fba13021d1bab67d935ea0b0a603b4f836110a7b
Contents?: true
Size: 864 Bytes
Versions: 7
Compression:
Stored size: 864 Bytes
Contents
#!/usr/local/bin/ruby STDOUT.sync = true errors_filename = './log/err.out' err_out = File.new(errors_filename, 'a') ARGF.each_line do |l| error_section = false if error_section error_section = false if l =~ /^\s*$/ elsif l =~ /^\s*\d+\)\s*$/ error_section = true elsif l =~ /^\*{40,}$/ || l =~ /^be removed from a future version of RSpec\.$/ || l =~ /^\* simple_matcher is deprecated\.$/ || l =~ /^\* please use Matcher DSL \(http\:\/\/rspec\.rubyforge\.org\/rspec\/1\.3.0\/classes\/Spec\/Matchers\.html\) instead\.$/ err_out << l if err_out next elsif l =~ /^([\.\[\]F\*\s]*)((\/| \(called from create_or_update_thumbnail|DEPRECATION WARN|The \{\{key\}\} interpolation syntax in|from \/).*\n?$)/ STDOUT << Regexp.last_match(1) err_out << Regexp.last_match(2) if err_out next end STDOUT << l end
Version data entries
7 entries across 7 versions & 1 rubygems