lib/u3d/downloader.rb in u3d-1.3.3 vs lib/u3d/downloader.rb in u3d-1.3.4

- old
+ new

@@ -29,10 +29,10 @@ # Take care of downloading files and packages module Downloader # Name of the directory for the package downloading DOWNLOAD_DIRECTORY = 'Unity_Packages' # Path to the directory for the package downloading - DOWNLOAD_PATH = "#{ENV['HOME']}/Downloads" + DOWNLOAD_PATH = "#{Dir.home}/Downloads" # Regex to get the name of a localization asset UNITY_LANGUAGE_FILE_REGEX = %r{/\d+/[0-9.]+/([\w-]+)$}.freeze # Regex to get the name of a package out of its file name UNITY_MODULE_FILE_REGEX = %r{/([\w\-_.+]+\.(?:pkg|dmg|exe|zip|sh|deb|msi|xz))[^/]*$}.freeze