lib/whatweb/plugins/country.rb in simple_whatweb-0.1.0 vs lib/whatweb/plugins/country.rb in simple_whatweb-0.2.0
- old
+ new
@@ -41,10 +41,10 @@
last_end = nil
last_country = nil
File.open(whatweb_folder + "/country-ips.dat", "wb") do |wfile|
IO.foreach(whatweb_folder + "/IpToCountry.csv") do |line|
next if line !~ /^"/
- s, e, d1, d2, co = line.delete!("\"").split(",")
+ s, e, _d1, _d2, co = line.delete!("\"").split(",")
s, e = s.to_i, e.to_i
if !last_start
# initialize with first entry
last_start, last_end, last_country = s, e, co
else