X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/2519841efe7b89431b146554cc6fce698b4eb15b..88e24d7ff3dbec7500e5d829dd4fcb6b273b337c:/lib/osm.rb?ds=inline 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