lib/geonames_api.rb in geonames_api-0.1.1 vs lib/geonames_api.rb in geonames_api-0.1.2
- old
+ new
@@ -1,10 +1,10 @@
require 'open-uri'
require 'json'
require 'csv'
require 'active_support/all'
-require 'zipruby'
+require 'zip'
module GeoNamesAPI
mattr_accessor :url
self.url = 'http://api.geonames.org/'
@@ -23,13 +23,13 @@
mattr_accessor :logger
self.logger = nil
mattr_accessor :retries
- self.retries = 3
+ self.retries = 5
mattr_accessor :max_sleep_time_between_retries
- self.max_sleep_time_between_retries = 5
+ self.max_sleep_time_between_retries = 10
def self.params
{
lang: lang,
username: username,