jake-scripts 1.8.5 → 1.8.6
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.
- checksums.yaml +4 -4
- data/exe/netgeo +3 -3
- data/lib/jake/scripts/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5329c48339008231a8d862cabde34f6014b5a5b2
|
4
|
+
data.tar.gz: ea1c5e0b23f1af98a463ee9c467b9ea8db25fc5a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a2d14f1f4f2ad0bff964ece56af8bf7f75af647b74f7bb866b6f6865941ba0cfd26a09451b090e3f93fe17f4dabc5cae60a9ecc85a062039303f6314da6e0955
|
7
|
+
data.tar.gz: 020a2d784b365b9662be5748ac1039a4bdce78ea7165239799ced5dbcced0d77dafe2b870ac604b1a04618d551a88263c9499b0fbd8426bb370e05e54b49f56c
|
data/exe/netgeo
CHANGED
@@ -16,7 +16,7 @@ require 'socket'
|
|
16
16
|
|
17
17
|
def netutil
|
18
18
|
opts = Slop.parse do |o|
|
19
|
-
o.banner = 'Usage: netgeo [flag]
|
19
|
+
o.banner = 'Usage: netgeo [flag]'
|
20
20
|
|
21
21
|
# Gets WAN address
|
22
22
|
o.on '-w', '--wan', 'Returns WAN IP' do
|
@@ -26,7 +26,7 @@ def netutil
|
|
26
26
|
end
|
27
27
|
|
28
28
|
# Gets LAN(s)
|
29
|
-
o.on '-l', '--lan', 'Returns LAN
|
29
|
+
o.on '-l', '--lan', 'Returns LAN IP(s)' do
|
30
30
|
lans = Socket.ip_address_list.select{|intf| intf.ipv4_private?}.map { |intf| intf.ip_address }
|
31
31
|
puts lans.join(', ')
|
32
32
|
end
|
@@ -73,7 +73,7 @@ def netutil
|
|
73
73
|
o.separator '[all] [ip] [city] [region] [country] [zip] [isp]'
|
74
74
|
o.separator 'Example: netgeo -s ip,city,isp 8.8.8.8'
|
75
75
|
o.array '-s', '[options] [ip address]', 'Specific Geodata'
|
76
|
-
o.on '-h', '--help', 'version 1.0.
|
76
|
+
o.on '-h', '--help', 'version 1.0.2' do
|
77
77
|
puts o
|
78
78
|
exit
|
79
79
|
end
|
data/lib/jake/scripts/version.rb
CHANGED