lib/valnzbn/lookup.rb in valnzbn-0.1.1 vs lib/valnzbn/lookup.rb in valnzbn-0.1.2

- old
+ new

@@ -32,10 +32,10 @@ def self.configure yield self end def self.validate(number, options = {}) - url = @@mode == :sandbox ? PRODUCTION_URL : SANDBOX_URL + url = @@mode == :sandbox ? SANDBOX_URL : PRODUCTION_URL number = number.to_s.gsub(/\W/, '') if Valnzbn::Utils.valid_format?(number) cache = if @@cache_port && @@cache_host redis_client = Redis.new(host: @@cache_host, port: @@cache_port, db: 15) \ No newline at end of file