Skip to content

Commit

Permalink
Merge pull request #27 from stillhart/fix-ruby-2.7.0-deprecation-warn…
Browse files Browse the repository at this point in the history
…ings

fix ruby 2.7.0 deprecation warning: deprecated Object#=~
  • Loading branch information
eitoball authored Mar 24, 2020
2 parents c82808c + 9048779 commit b8cca9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/net/ping/external.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def ping(host = @host, count = 1, interval = 1, timeout = @timeout)
bool = true # Success, at least one response.
end

if err & err =~ /warning/i
if err & (err =~ /warning/i)
@warning = err.chomp
end
when 2
Expand Down

0 comments on commit b8cca9e

Please sign in to comment.