mirror of
https://github.com/onyx-and-iris/obsws-ruby.git
synced 2024-11-15 18:50:47 +00:00
use conditional assignment
patch bump
This commit is contained in:
parent
46bfb53db8
commit
515fa565d4
@ -1,7 +1,7 @@
|
|||||||
PATH
|
PATH
|
||||||
remote: .
|
remote: .
|
||||||
specs:
|
specs:
|
||||||
obsws (0.4.0)
|
obsws (0.4.1)
|
||||||
waitutil (~> 0.2.1)
|
waitutil (~> 0.2.1)
|
||||||
websocket-driver (~> 0.7.5)
|
websocket-driver (~> 0.7.5)
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@ require "logger"
|
|||||||
module OBSWS
|
module OBSWS
|
||||||
module Logging
|
module Logging
|
||||||
def logger
|
def logger
|
||||||
@logger = Logger.new($stdout, level: ENV.fetch("OBSWS_LOG_LEVEL", "WARN"))
|
@logger ||= Logger.new($stdout, level: ENV.fetch("OBSWS_LOG_LEVEL", "WARN"))
|
||||||
@logger.progname = instance_of?(::Module) ? name : self.class.name
|
@logger.progname = instance_of?(::Module) ? name : self.class.name
|
||||||
@logger
|
@logger
|
||||||
end
|
end
|
||||||
|
@ -11,7 +11,7 @@ module OBSWS
|
|||||||
end
|
end
|
||||||
|
|
||||||
def patch
|
def patch
|
||||||
1
|
2
|
||||||
end
|
end
|
||||||
|
|
||||||
def to_a
|
def to_a
|
||||||
|
Loading…
Reference in New Issue
Block a user