mirror of
https://github.com/zhigang1992/ProMotion.git
synced 2026-06-01 02:10:22 +08:00
Merge pull request #117 from eskatos/master
Fix if RUBYMOTION_ENV not defined again
This commit is contained in:
@@ -33,7 +33,7 @@ module ProMotion
|
||||
|
||||
# Usage: PM.logger.log("ERROR", "message here", :red)
|
||||
def log(label, message_text, color)
|
||||
return if RUBYMOTION_ENV == "test"
|
||||
return if defined?(RUBYMOTION_ENV) && RUBYMOTION_ENV == "test"
|
||||
color = COLORS[color] || COLORS[:default]
|
||||
puts color[0] + NAME + "[#{label}] #{message_text}" + color[1]
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user