lib/ProMotion/helpers/console.rb in ProMotion-0.5.0 vs lib/ProMotion/helpers/console.rb in ProMotion-0.5.2

- old
+ new

@@ -6,18 +6,21 @@ GREEN_COLOR = [ "\e[0;32m", "\e[0m" ] PURPLE_COLOR = [ "\e[0;35m", "\e[0m" ] class << self def log(log, with_color:color) + return if RUBYMOTION_ENV == "test" puts color[0] + NAME + log + color[1] end def log(log, withColor:color) + return if RUBYMOTION_ENV == "test" warn "[DEPRECATION] `log(log, withColor:color)` is deprecated. Use `log(log, with_color:color)`" self.log(log, with_color:color) end def log(log) + return if RUBYMOTION_ENV == "test" log(log, with_color: DEFAULT_COLOR) end end end end \ No newline at end of file