ddis 1.2.2 → 1.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/ddis.rb +6 -2
  2. metadata +1 -1
@@ -34,8 +34,12 @@ class DDis
34
34
  hostname = nil
35
35
  end
36
36
 
37
- @ping.host = ip
38
- up = @ping.ping?
37
+ begin
38
+ @ping.host = ip
39
+ up = @ping.ping?
40
+ rescue
41
+ warn "Can't ping #{ip}" if @verbose
42
+ end
39
43
 
40
44
  if up and ( hostname =~ /#{@unass}/ or hostname.nil? )
41
45
  warn "#{ip} is up yet has an invalid hostname" if @verbose
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ddis
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.2
4
+ version: 1.2.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: