Commit 47f1a288 by Sam Stephenson

Switch the default mirror from GitHub Downloads to Amazon CloudFront

parent c4b083e0
## Version History ## Version History
#### HEAD
* Moved the default ruby-build mirror from GitHub Downloads to Amazon
CloudFront.
* Added a definition for Ruby 1.8.7-p371
#### 20121204 #### 20121204
* Added a definition for JRuby 1.7.1 * Added a definition for JRuby 1.7.1
......
...@@ -148,9 +148,10 @@ each definition. (All bundled definitions include checksums.) ...@@ -148,9 +148,10 @@ each definition. (All bundled definitions include checksums.)
### Package download mirrors ### Package download mirrors
ruby-build will first attempt to download package files from a mirror ruby-build will first attempt to download package files from a mirror
hosted on Amazon S3. If a package is not available on the mirror, if hosted on Amazon CloudFront. If a package is not available on the
the mirror is down, or if the download is corrupt, ruby-build will mirror, if the mirror is down, or if the download is corrupt,
fall back to the official URL specified in the defintion file. ruby-build will fall back to the official URL specified in the
defintion file.
You can point ruby-build to another mirror by specifying the You can point ruby-build to another mirror by specifying the
`RUBY_BUILD_MIRROR_URL` environment variable--useful if you'd like to `RUBY_BUILD_MIRROR_URL` environment variable--useful if you'd like to
...@@ -163,6 +164,9 @@ download mirror and use official URLs instead. You can force ...@@ -163,6 +164,9 @@ download mirror and use official URLs instead. You can force
ruby-build to bypass the mirror by setting the ruby-build to bypass the mirror by setting the
`RUBY_BUILD_SKIP_MIRROR` environment variable. `RUBY_BUILD_SKIP_MIRROR` environment variable.
The official ruby-build download mirror is sponsored by
[37signals](http://37signals.com/).
### Package download caching ### Package download caching
You can instruct ruby-build to keep a local cache of downloaded You can instruct ruby-build to keep a local cache of downloaded
......
...@@ -583,7 +583,7 @@ else ...@@ -583,7 +583,7 @@ else
fi fi
if [ -z "$RUBY_BUILD_MIRROR_URL" ]; then if [ -z "$RUBY_BUILD_MIRROR_URL" ]; then
RUBY_BUILD_MIRROR_URL="http://cloud.github.com/downloads/sstephenson/ruby-build-download-mirror" RUBY_BUILD_MIRROR_URL="http://dqw8nmjcqpjn7.cloudfront.net"
else else
RUBY_BUILD_MIRROR_URL="${RUBY_BUILD_MIRROR_URL%/}" RUBY_BUILD_MIRROR_URL="${RUBY_BUILD_MIRROR_URL%/}"
fi fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment