mmtop 1.0.0.rc2 → 1.0.0.rc3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/mmtop/filters/map_topology.rb +6 -1
- data/lib/mmtop/mmconfig.rb +2 -0
- metadata +4 -3
@@ -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
|
-
|
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
|
|
data/lib/mmtop/mmconfig.rb
CHANGED
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.
|
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-
|
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
|
-
-
|
119
|
+
- !binary |-
|
120
|
+
YmluL21tdG9w
|
120
121
|
homepage: http://github.com/osheroff/mmtop
|
121
122
|
licenses: []
|
122
123
|
post_install_message:
|