X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/2519841efe7b89431b146554cc6fce698b4eb15b..7d46f5db6004f1e0555150c3f97c82185d76b837:/lib/osm.rb diff --git a/lib/osm.rb b/lib/osm.rb index daa15fe8b..005d3ebb8 100644 --- a/lib/osm.rb +++ b/lib/osm.rb @@ -5,13 +5,6 @@ module OSM require "rexml/text" require "xml/libxml" - if defined?(SystemTimer) - Timer = SystemTimer - else - require "timeout" - Timer = Timeout - end - # The base class for API Errors. class APIError < RuntimeError def initialize(message = "Generic API Error") @@ -481,7 +474,7 @@ module OSM # Construct a random token of a given length def self.make_token(length = 30) - chars = "abcdefghijklmnopqrtuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789" + chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789" token = "" length.times do