lib/logger.rb in narou-1.6.0 vs lib/logger.rb in narou-1.6.1
- old
+ new
@@ -10,10 +10,10 @@
class String
def escape
TermColor.escape(self)
end
- if RUBY_ENGINE == "jruby"
+ if RUBY_VERSION < "2.0.0"
def termcolor
TermColor.parse(self.dup.force_encoding(Encoding::ASCII_8BIT))
end
end
end