mmtop 1.0.0.rc2 → 1.0.0.rc3

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.
@@ -72,7 +72,12 @@ module MMTop
72
72
  return nil if hostname.nil?
73
73
  return hostname if hostname =~ /\d+\.\d+\.\d+\.\d+\./
74
74
 
75
- arr = Socket::gethostbyname(hostname)
75
+ begin
76
+ arr = Socket::gethostbyname(hostname)
77
+ rescue
78
+ return nil
79
+ end
80
+
76
81
  arr && arr.last.unpack("CCCC").join(".")
77
82
  end
78
83
 
@@ -1,3 +1,5 @@
1
+ require 'yaml'
2
+
1
3
  module MMTop
2
4
  class Config
3
5
  def initialize(cmdline)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mmtop
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.rc2
4
+ version: 1.0.0.rc3
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-19 00:00:00.000000000 Z
12
+ date: 2013-03-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: mysql2
@@ -116,7 +116,8 @@ files:
116
116
  - lib/mmtop/term_input.rb
117
117
  - lib/mmtop/term_printer.rb
118
118
  - lib/mmtop.rb
119
- - bin/mmtop
119
+ - !binary |-
120
+ YmluL21tdG9w
120
121
  homepage: http://github.com/osheroff/mmtop
121
122
  licenses: []
122
123
  post_install_message: