lib/travis/cli/command.rb in travis-1.2.7 vs lib/travis/cli/command.rb in travis-1.2.8
- old
+ new
@@ -145,9 +145,11 @@
def format(data, format = nil, style = nil)
style ||= :important
data = format % color(data, style) if format and interactive?
data = data.gsub(/<\[\[/, '<%=').gsub(/\]\]>/, '%>')
+ data.encode! 'utf-8' if data.respond_to? :encode!
+ data
end
def template(*args)
File.read(*args).split('__END__', 2)[1].strip
end