X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/00a605a2a877528ec3d4eabc6562e262c427b839..917d7324a6f1d3f6256b1a541a912ccee84097d1:/lib/osm.rb?ds=sidebyside diff --git a/lib/osm.rb b/lib/osm.rb index a85a7dfec..c85abc0f3 100644 --- a/lib/osm.rb +++ b/lib/osm.rb @@ -6,7 +6,6 @@ module OSM require 'rexml/text' require 'xml/libxml' require 'digest/md5' - require 'RMagick' require 'nokogiri' if defined?(SystemTimer) @@ -455,7 +454,7 @@ module OSM 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 @@ -517,7 +516,7 @@ module OSM 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|