Sha256: 77838f34de8abc5820c986a0776aa8b51f03d03239936fafde8401830a14bb14
Contents?: true
Size: 485 Bytes
Versions: 1
Compression:
Stored size: 485 Bytes
Contents
require 'ip_locator_cn/version' require 'ip_locator_cn/qqwry' module IpLocatorCn # embeded qqwry.dat def self.data_path File.expand_path('../../data/qqwry.dat', __FILE__) end # download url for qqwry.rar (uncracked) def self.live_data_url 'http://update.cz88.net/ip/qqwry.rar' end def self.copywrite_url 'http://update.cz88.net/ip/copywrite.rar' end def self.resolve(ip, options={ dat_path: data_path }) QQWry.new(**options).resolve(ip) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ip_locator_cn-0.3.0 | lib/ip_locator_cn.rb |