Sha256: 288c009a6dea43e548bc92cfde91a054945a1acd5f7d4f98b3bb3d5fe976fc7b

Contents?: true

Size: 502 Bytes

Versions: 5

Compression:

Stored size: 502 Bytes

Contents

#!/usr/bin/env ruby
 
require File.dirname(__FILE__) + '/../lib/focus'
#require 'rubygems'
#require 'attack-focus'
 
if ARGV.size == 0
  puts 'Focus [Powered by hostip.info]'
  puts 'USAGE: focus [ip_address]'
  puts 'EXAMPLES:'
  puts ' focus 209.85.171.100'
  exit
end
 
focus = Focus.new(ARGV[0])

puts "location -- name: #{focus.location.name}, latitude: #{focus.location.latitude}, longitude: #{focus.location.longitude}"
puts "country  -- name: #{focus.country.name}, code: #{focus.country.code}"

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
attack-focus-0.1.0 bin/focus
attack-focus-0.2.0 bin/focus
focus-0.1.0 bin/focus
focus-0.2.0 bin/focus
focus-0.2.1 bin/focus