Rakefile in lazylead-0.5.1 vs Rakefile in lazylead-0.5.2
- old
+ new
@@ -24,11 +24,11 @@
require "rubygems"
require "rake"
require "date"
require "rdoc"
-require "rainbow"
+require "colorize"
require "rake/clean"
# @todo #/DEV Investigate the possibility of using migrations from active_record
# - Rake tasks https://gist.github.com/schickling/6762581
# - Gem for rake tasks https://github.com/thuss/standalone-migrations
@@ -110,12 +110,13 @@
p [v.filename, v.line, v.column, "#{v.type} #{msg_lines.shift}"].join ":"
end
total += violations.count { |lint| lint.type == :error }
end
if total.positive?
- abort "#{Rainbow(total).red} SQL violations found."
+ abort "#{total.colorize(:red)} SQL violations found."
else
- puts "#{src.size} files inspected, #{Rainbow('no offenses').green} detected"
+ puts "#{src.size} files inspected, #{'no offenses'.colorize(:green)} " \
+ "detected"
end
end
task :clean do
Dir.glob("test/resources/**/*.db").each { |f| File.delete(f) }