lib/dnn/datasets/downloader.rb in ruby-dnn-0.16.2 vs lib/dnn/datasets/downloader.rb in ruby-dnn-1.0.0

- old
+ new

@@ -1,10 +1,10 @@ require "net/http" module DNN DOWNLOADS_PATH = ENV["RUBY_DNN_DOWNLOADS_PATH"] || __dir__ - class DNN_DownloadError < DNN_Error; end + class DNN_DownloadError < DNNError; end class Downloader def self.download(url, dir_path = nil) unless dir_path Dir.mkdir("#{DOWNLOADS_PATH}/downloads") unless Dir.exist?("#{DOWNLOADS_PATH}/downloads")