Commit 47f1a288 authored by Sam Stephenson's avatar Sam Stephenson
Browse files

Switch the default mirror from GitHub Downloads to Amazon CloudFront

parent c4b083e0
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
## 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
* Added a definition for JRuby 1.7.1

+7 −3
Original line number Diff line number Diff line
@@ -148,9 +148,10 @@ each definition. (All bundled definitions include checksums.)
### Package download mirrors

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
the mirror is down, or if the download is corrupt, ruby-build will
fall back to the official URL specified in the defintion file.
hosted on Amazon CloudFront. If a package is not available on the
mirror, if the mirror is down, or if the download is corrupt,
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
`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
ruby-build to bypass the mirror by setting the
`RUBY_BUILD_SKIP_MIRROR` environment variable.

The official ruby-build download mirror is sponsored by
[37signals](http://37signals.com/).

### Package download caching

You can instruct ruby-build to keep a local cache of downloaded
+1 −1
Original line number Diff line number Diff line
@@ -583,7 +583,7 @@ else
fi

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
  RUBY_BUILD_MIRROR_URL="${RUBY_BUILD_MIRROR_URL%/}"
fi