Skip to content

Commit

Permalink
Rubocop upgrade and cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
eheydrick committed May 11, 2016
1 parent bcd4a28 commit f2e0497
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions bin/check-whois-domain-expiration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,9 @@ class WhoisDomainExpirationCheck < Sensu::Plugin::Check::CLI
def check_days(num_days,
warning_days = config[:warning].to_i,
critical_days = config[:critical].to_i)
case
when num_days <= critical_days
if num_days <= critical_days
critical
when num_days <= warning_days
elsif num_days <= warning_days
warning
else
ok
Expand Down
5 changes: 2 additions & 3 deletions sensu-plugins-network-checks.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ Gem::Specification.new do |s|
'development_status' => 'active',
'production_status' => 'unstable - testing recommended',
'release_draft' => 'false',
'release_prerelease' => 'false'
}
'release_prerelease' => 'false' }
s.name = 'sensu-plugins-network-checks'
s.platform = Gem::Platform::RUBY
s.post_install_message = 'You can use the embedded Ruby by setting EMBEDDED_RUBY=true in /etc/default/sensu'
Expand All @@ -49,6 +48,6 @@ Gem::Specification.new do |s|
s.add_development_dependency 'rdoc', '~> 4.2.1'
s.add_development_dependency 'redcarpet', '~> 3.2'
s.add_development_dependency 'rspec', '~> 3.1'
s.add_development_dependency 'rubocop', '~> 0.37'
s.add_development_dependency 'rubocop', '~> 0.40.0'
s.add_development_dependency 'yard', '~> 0.8'
end

0 comments on commit f2e0497

Please sign in to comment.