Skip to content

Commit

Permalink
prefer \e over \x1b or \33
Browse files Browse the repository at this point in the history
  • Loading branch information
godfat committed Oct 2, 2011
1 parent e7509d1 commit afdcb9b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions gemgem.rb
Expand Up @@ -199,14 +199,14 @@ def gitignore
ver = Gemgem.spec.version.to_s

if ENV['VERSION'].nil?
puts("\x1b[35mExpected " \
"\x1b[33mVERSION\x1b[35m=\x1b[33m#{ver}\x1b[m")
puts("\e[35mExpected " \
"\e[33mVERSION\e[35m=\e[33m#{ver}\e[m")
exit(1)

elsif ENV['VERSION'] != ver
puts("\x1b[35mExpected \x1b[33mVERSION\x1b[35m=\x1b[33m#{ver} " \
"\x1b[35mbut got\n " \
"\x1b[33mVERSION\x1b[35m=\x1b[33m#{ENV['VERSION']}\x1b[m")
puts("\e[35mExpected \e[33mVERSION\e[35m=\e[33m#{ver} " \
"\e[35mbut got\n " \
"\e[33mVERSION\e[35m=\e[33m#{ENV['VERSION']}\e[m")
exit(2)
end
end
Expand Down

0 comments on commit afdcb9b

Please sign in to comment.