From 472d9aaa98d8c458aaf651a7c31f8dc701c98baf Mon Sep 17 00:00:00 2001 From: cn Date: Mon, 26 Mar 2018 20:56:53 +0200 Subject: [PATCH] gem: update dependencies --- .rubocop.yml | 3 +++ dyndnsd.gemspec | 4 ++-- lib/dyndnsd/helper.rb | 4 ++-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index e1113b9..77526f6 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -34,6 +34,9 @@ Metrics/MethodLength: Metrics/PerceivedComplexity: Enabled: false +Naming/UncommunicativeMethodParamName: + Enabled: false + Style/ConditionalAssignment: Enabled: false diff --git a/dyndnsd.gemspec b/dyndnsd.gemspec index 0b74b75..0355302 100644 --- a/dyndnsd.gemspec +++ b/dyndnsd.gemspec @@ -1,5 +1,5 @@ -$LOAD_PATH.push File.expand_path('../lib', __FILE__) +$LOAD_PATH.push File.expand_path('lib', __dir__) require 'dyndnsd/version' @@ -32,5 +32,5 @@ Gem::Specification.new do |s| s.add_development_dependency 'rake' s.add_development_dependency 'rspec' s.add_development_dependency 'rack-test' - s.add_development_dependency 'rubocop', '~> 0.52.1' + s.add_development_dependency 'rubocop', '~> 0.54.0' end diff --git a/lib/dyndnsd/helper.rb b/lib/dyndnsd/helper.rb index c9ba0a0..e2cc70e 100644 --- a/lib/dyndnsd/helper.rb +++ b/lib/dyndnsd/helper.rb @@ -13,9 +13,9 @@ module Dyndnsd def self.ip_valid?(ip) IPAddr.new(ip) - return true + true rescue ArgumentError - return false + false end def self.user_allowed?(username, password, users)