mirror of
https://github.com/cmur2/dyndnsd.git
synced 2024-12-22 00:54:22 +01:00
gems: update rubocop to version 0.89.0
Update rubocop to version 0.89.0 (#59) Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>
This commit is contained in:
parent
a89a263250
commit
708cd13237
@ -39,6 +39,6 @@ Gem::Specification.new do |s|
|
|||||||
s.add_development_dependency 'rack-test'
|
s.add_development_dependency 'rack-test'
|
||||||
s.add_development_dependency 'rake'
|
s.add_development_dependency 'rake'
|
||||||
s.add_development_dependency 'rspec'
|
s.add_development_dependency 'rspec'
|
||||||
s.add_development_dependency 'rubocop', '~> 0.88.0'
|
s.add_development_dependency 'rubocop', '~> 0.89.0'
|
||||||
s.add_development_dependency 'solargraph'
|
s.add_development_dependency 'solargraph'
|
||||||
end
|
end
|
||||||
|
@ -245,7 +245,7 @@ module Dyndnsd
|
|||||||
if config['logfile']
|
if config['logfile']
|
||||||
Dyndnsd.logger = Logger.new(config['logfile'])
|
Dyndnsd.logger = Logger.new(config['logfile'])
|
||||||
else
|
else
|
||||||
Dyndnsd.logger = Logger.new(STDOUT)
|
Dyndnsd.logger = Logger.new($stdout)
|
||||||
end
|
end
|
||||||
|
|
||||||
Dyndnsd.logger.progname = 'dyndnsd'
|
Dyndnsd.logger.progname = 'dyndnsd'
|
||||||
|
@ -27,7 +27,7 @@ module Dyndnsd
|
|||||||
ips.each do |ip|
|
ips.each do |ip|
|
||||||
ip = IPAddr.new(ip).native
|
ip = IPAddr.new(ip).native
|
||||||
type = ip.ipv6? ? 'AAAA' : 'A'
|
type = ip.ipv6? ? 'AAAA' : 'A'
|
||||||
name = hostname.chomp('.' + @domain)
|
name = hostname.chomp(".#{@domain}")
|
||||||
out << "#{name} IN #{type} #{ip}"
|
out << "#{name} IN #{type} #{ip}"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -6,7 +6,7 @@ describe Dyndnsd::Daemon do
|
|||||||
include Rack::Test::Methods
|
include Rack::Test::Methods
|
||||||
|
|
||||||
def app
|
def app
|
||||||
Dyndnsd.logger = Logger.new(STDOUT)
|
Dyndnsd.logger = Logger.new($stdout)
|
||||||
Dyndnsd.logger.level = Logger::UNKNOWN
|
Dyndnsd.logger.level = Logger::UNKNOWN
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
|
Loading…
Reference in New Issue
Block a user