require 'rexml/text'
require 'xml/libxml'
require 'digest/md5'
- require 'RMagick'
require 'nokogiri'
if defined?(SystemTimer)
end
def self.IPToCountry(ip_address)
- Timeout::timeout(4) do
+ Timer.timeout(4) do
ipinfo = Quova::IpInfo.new(ip_address)
if ipinfo.status == Quova::Success then
link_count = 0
link_size = 0
- doc = Nokogiri::HTML(text)
+ doc = Nokogiri::HTML(Rinku.auto_link(text, :urls))
if doc.content.length > 0
doc.xpath("//a").each do |link|