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

gem: update dependencies

This commit is contained in:
cn 2018-03-26 20:56:53 +02:00
parent 6604b98a84
commit 472d9aaa98
3 changed files with 7 additions and 4 deletions

View File

@ -34,6 +34,9 @@ Metrics/MethodLength:
Metrics/PerceivedComplexity: Metrics/PerceivedComplexity:
Enabled: false Enabled: false
Naming/UncommunicativeMethodParamName:
Enabled: false
Style/ConditionalAssignment: Style/ConditionalAssignment:
Enabled: false Enabled: false

View File

@ -1,5 +1,5 @@
$LOAD_PATH.push File.expand_path('../lib', __FILE__) $LOAD_PATH.push File.expand_path('lib', __dir__)
require 'dyndnsd/version' require 'dyndnsd/version'
@ -32,5 +32,5 @@ Gem::Specification.new do |s|
s.add_development_dependency 'rake' s.add_development_dependency 'rake'
s.add_development_dependency 'rspec' s.add_development_dependency 'rspec'
s.add_development_dependency 'rack-test' s.add_development_dependency 'rack-test'
s.add_development_dependency 'rubocop', '~> 0.52.1' s.add_development_dependency 'rubocop', '~> 0.54.0'
end end

View File

@ -13,9 +13,9 @@ module Dyndnsd
def self.ip_valid?(ip) def self.ip_valid?(ip)
IPAddr.new(ip) IPAddr.new(ip)
return true true
rescue ArgumentError rescue ArgumentError
return false false
end end
def self.user_allowed?(username, password, users) def self.user_allowed?(username, password, users)