1
0
mirror of https://github.com/cmur2/dyndnsd.git synced 2024-12-21 14:54:22 +01:00

gems: update rubocop to version 1.24.0

This commit is contained in:
depfu[bot] 2021-12-24 12:20:11 +00:00 committed by Christian Nicolai
parent 6642d9a7a2
commit 367a542f74
3 changed files with 3 additions and 3 deletions

View File

@ -40,7 +40,7 @@ Gem::Specification.new do |s|
s.add_development_dependency 'rack-test'
s.add_development_dependency 'rake'
s.add_development_dependency 'rspec'
s.add_development_dependency 'rubocop', '~> 1.23.0'
s.add_development_dependency 'rubocop', '~> 1.24.0'
s.add_development_dependency 'rubocop-rake', '~> 0.6.0'
s.add_development_dependency 'rubocop-rspec', '~> 2.6.0'
s.add_development_dependency 'solargraph', '~> 0.44.0'

View File

@ -106,7 +106,7 @@ module Dyndnsd
puts "DynDNSd version #{Dyndnsd::VERSION}"
puts "Using config file #{config_file}"
config = YAML.safe_load(File.open(config_file, 'r', &:read))
config = YAML.safe_load(File.read(config_file))
setup_logger(config)

View File

@ -21,7 +21,7 @@ module Dyndnsd
span.set_attribute('dyndnsd.updater.name', self.class.name&.split('::')&.last || 'None')
# write zone file in bind syntax
File.open(@zone_file, 'w') { |f| f.write(@generator.generate(db)) }
File.write(@zone_file, @generator.generate(db))
# call user-defined command
pid = fork do
exec @command