mirror of
https://github.com/zhigang1992/ProMotion.git
synced 2026-06-02 06:49:45 +08:00
Merge branch 'version-0.7' into feature/delegate_improvements
This commit is contained in:
@@ -8,19 +8,19 @@ module ProMotion
|
||||
|
||||
class << self
|
||||
def log(log, with_color:color)
|
||||
return if RUBYMOTION_ENV == "test"
|
||||
return if defined?(RUBYMOTION_ENV) && RUBYMOTION_ENV == "test"
|
||||
PM.logger.deprecated "ProMotion::Console.log is deprecated. Use PM.logger (see README)"
|
||||
puts color[0] + NAME + log + color[1]
|
||||
end
|
||||
|
||||
def log(log, withColor:color)
|
||||
return if RUBYMOTION_ENV == "test"
|
||||
return if defined?(RUBYMOTION_ENV) && RUBYMOTION_ENV == "test"
|
||||
PM.logger.deprecated "ProMotion::Console.log is deprecated. Use PM.logger (see README)"
|
||||
self.log(log, with_color:color)
|
||||
end
|
||||
|
||||
def log(log)
|
||||
return if RUBYMOTION_ENV == "test"
|
||||
return if defined?(RUBYMOTION_ENV) && RUBYMOTION_ENV == "test"
|
||||
PM.logger.deprecated "ProMotion::Console.log is deprecated. Use PM.logger (see README)"
|
||||
log(log, with_color: DEFAULT_COLOR)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user