Markus Reiter
072127197a
Check for range support instead of rescuing error.
2018-09-06 16:25:22 +02:00
Mike McQuaid
bcb1ec5499
Improve Homebrew/brew line length.
...
Use 124 max line length everywhere. Also, reduce tap max line length to
189 as Homebrew/homebrew-core has that as a maximum now. In future
Homebrew/homebrew-core will also be reduced to 124 maximum line length.
2018-09-02 16:15:09 +01:00
Markus Reiter
fbcaa8c85a
Resolve URL to get real file extension.
2018-08-31 16:51:23 +02:00
Markus Reiter
ad150e7595
Merge pull request #4611 from retokromer/patch-1
...
use `https://` rather than `http://`
2018-08-06 20:30:35 +02:00
Reto Kromer
2936a60950
use https://
rather than http://
2018-08-06 13:18:00 +02:00
Markus Reiter
837f56c73b
Use system_command
for all download strategies.
2018-08-06 12:32:34 +02:00
Markus Reiter
ac9cd39a4c
Merge download strategy specs.
2018-08-06 00:19:54 +02:00
Markus Reiter
1003d722bd
Use --
to separate download name and version.
2018-08-05 15:57:28 +02:00
Markus Reiter
51fa194966
Move cached_location
to #initialize
.
2018-08-03 10:51:01 +02:00
Markus Reiter
3a99e64646
Merge pull request #4593 from reitermarkus/curl-options
...
Merge `curl` options used by casks into download strategies.
2018-08-02 15:58:22 +02:00
Markus Reiter
7f4ea02047
Merge curl
options used by casks into download strategies.
2018-08-02 11:18:46 +02:00
Markus Reiter
7c496f7a7e
Explicitly pass specs to download strategy.
2018-08-02 10:33:14 +02:00
Markus Reiter
e367e7eea8
Explicitly pass url and mirrors to download strategy.
2018-08-02 10:09:35 +02:00
Markus Reiter
3d27b2aa8d
Explicitly pass version to download strategy.
2018-08-01 05:40:15 +02:00
Mike McQuaid
0a76c9f02e
mktemp: move to Formula and compat.
...
Move this method away from FileUtils as it doesn't need to be on that
class.
2018-07-13 14:42:49 +01:00
Markus Reiter
5b3bbb76c9
Separate staging from download.
2018-07-12 10:39:27 +02:00
Ryan Greenberg
fe8939ddd0
brew: Add ScpDownloadStrategy
2018-04-05 18:57:34 -07:00
Mike McQuaid
5e1806e796
test: rubocop-rspec style auto-corrects.
...
There’s too many warnings to start enabling `rubocop-rspec` by default
but let’s at least apply the cleanups it does automatically.
2018-03-25 13:30:37 +01:00
Mike McQuaid
46e6b33d1b
Merge pull request #3967 from amancevice/s3-scheme
...
DownloadStrategyDetector recognizes s3 URL scheme
2018-03-25 10:01:31 +01:00
Alexander Mancevice
a096284d03
DownloadStrategyDetector recognizes s3 URL scheme
...
DownloadStrategyDetector now detects URLs with the s3:// prefix, e.g.:
s3://my-bucket/path/to/key/tarball.tar.gz
2018-03-24 17:34:51 -04:00
Ethan Edwards
06f7d7d696
Allow bottles to use any DownloadStrategy
2018-03-24 10:53:49 +00:00
Alexander Mancevice
9b457ec51e
Upgraded use of AWS Ruby SDK for S3
...
When S3DownloadStrategy is detected in DownloadStrategyDetector an attempt
is made to install & require the aws-sdk-s3 gem.
The AWS S3 SDK is used to sign the URL and handed off to curl_download.
2018-03-22 11:22:07 -04:00
Mike McQuaid
83cca40fc9
RuboCop 0.53.0 manual fixes.
2018-03-08 14:10:02 +00:00
Kevin Abel
06f2b50ee4
Fix cached download file extension for certain URL
...
PHP URLs have the downloadable file in the middle of the pathname. If no
extension is detected, continue up the pathname.
2018-01-09 19:56:54 -06:00
Camden Narzt
c9f4d1c35d
style
2017-08-21 19:25:37 -06:00
Camden Narzt
ab8a6f31e8
Add test
2017-08-21 19:22:17 -06:00
Markus Reiter
2ad3a87045
Silence all specs by default.
2017-07-29 20:25:37 +02:00
Markus Reiter
92710c50c6
Convert Download Strategies test to spec.
2017-02-19 18:35:44 +01:00