Project

download

0.0
No commit activity in last 3 years
No release in over 3 years
Helps download files from the web, even if it has large file size
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.7
~> 10.0
 Project Readme

Download

Ruby Download helper that can handle even big file downloads too

Use case

auth less use case

  require 'download'
  Download.file(uri_path,target_local_file_path)

with basic auth

  Download.file(
    'http://www.example.com/something.zip',
    http_basic_authentication: ['username', '123abc']
  )

Behavior

if the target file path is a directory, the file name will be based on the uri-s file name. if no file path given, than the default location will be the current directory with the file uri name

The #file default return is a file path