Commit graph

2,408 commits

Author SHA1 Message Date
Jesse Dearing
7833d63094 Upgrades rubygems for 1.9.1: 1.3.5 -> 1.3.7 2012-12-05 15:41:38 -08:00
Sam Stephenson
321d9f0cb4 Merge pull request #251 from sstephenson/changelog
Move Version History into discrete CHANGELOG file
2012-12-05 10:02:05 -08:00
Erik Michaels-Ober
a2dd4fa9a5 Move Version History into discrete CHANGELOG file 2012-12-05 08:57:19 -08:00
Erik Michaels-Ober
a2895ad99d ruby-build 20121204 v20121204 2012-12-04 13:52:15 -08:00
Erik Michaels-Ober
830f736b80 Added a definition for JRuby 1.7.1 2012-12-04 13:47:32 -08:00
Erik Michaels-Ober
e4788cc121 ruby-build 20121201 v20121201 2012-12-01 10:00:20 -08:00
Jeremy Kemper
34c34d7a20 Chop libyaml from 2.0.0-preview2 definition since it's bundled with Ruby now 2012-12-01 09:54:49 -07:00
Jeremy Kemper
f0aaee79fd Merge pull request #249 from beanieboi/ruby-2.0-preview2
Adding Formula for Ruby 2.0 preview 2
2012-12-01 08:53:46 -08:00
beanieboi
fb5267d8a6 Adding Formula for Ruby 2.0 preview 2 2012-12-01 17:47:45 +01:00
Jeremy Kemper
a4b0337f93 Ruby 2.0 trunk now bundles libyaml and falls back to it if not available on your OS 2012-11-28 13:10:20 -07:00
Sam Stephenson
16aaf92455 ruby-build 20121120 v20121120 2012-11-20 15:35:31 -06:00
Sam Stephenson
d924fceee5 Test package cache 2012-11-19 23:45:00 -06:00
Sam Stephenson
d999db787e Ensure test/tmp directory exists 2012-11-19 19:25:52 -06:00
Sam Stephenson
cfe0ffe7ef Test mirror support 2012-11-19 19:21:06 -06:00
Sam Stephenson
275b2f5919 Test checksumming 2012-11-19 18:14:26 -06:00
Sam Stephenson
86f9cb7d60 URLs without anchors do not have checksums 2012-11-16 10:30:49 -06:00
Sam Stephenson
7182bde310 Account for prefixed output in recent versions of openssl md5 2012-11-16 00:48:17 -06:00
Sam Stephenson
c48c6f361d Tweak the Ruby 2.0 note 2012-11-15 17:50:15 -06:00
Sam Stephenson
e71a460768 Merge pull request #240 from sstephenson/mirrors
Faster package downloads via S3
2012-11-15 15:47:34 -08:00
Sam Stephenson
57fb50cb22 Document checksum verification, mirrors, and caching 2012-11-15 17:45:52 -06:00
Sam Stephenson
ceb5e6e2b3 Clarify verify_checksum guards 2012-11-15 16:05:05 -06:00
Sam Stephenson
fdc1a00cb9 Degrade gracefully (no checksumming or mirrors) if MD5 is unavailable 2012-11-15 16:03:39 -06:00
Sam Stephenson
1043ab606c Set the RUBY_BUILD_SKIP_MIRROR environment variable to bypass mirror downloads 2012-11-15 15:29:50 -06:00
Sam Stephenson
9456402ffb Compute MD5 using OpenSSL if installed 2012-11-15 15:24:44 -06:00
Sam Stephenson
645933fab9 Remove wget debug remnant 2012-11-15 15:03:22 -06:00
Sam Stephenson
3c1e4b421a Improved the download message to hide mirror URLs if they're 404s 2012-11-15 14:58:57 -06:00
Sam Stephenson
302a822da2 Try to download files from RUBY_BUILD_MIRROR_URL first 2012-11-14 20:33:48 -06:00
Sam Stephenson
5d2e43600d Tell curl to follow redirects 2012-11-14 20:33:00 -06:00
Sam Stephenson
894abadb50 Fix double checksum 2012-11-14 20:32:43 -06:00
Sam Stephenson
ebed6000e8 Verify MD5 checksums of tarballs downloaded with install_package
Checksums are optional and specified as anchors on package URLs.
2012-11-14 19:53:57 -06:00
Sam Stephenson
a2e94128c3 Fail on curl download errors 2012-11-14 19:22:47 -06:00
Sam Stephenson
093e3903ca Proper quoting 2012-11-13 17:44:07 -06:00
Sam Stephenson
057d1314d5 Only print "Downloading..." message when actually downloading a file 2012-11-13 17:39:48 -06:00
Sam Stephenson
db1344728a Extract cached tarball filename into a local variable 2012-11-13 17:38:37 -06:00
Sam Stephenson
8e736c78f9 Unset RUBY_BUILD_CACHE_PATH if it's not a directory 2012-11-13 17:36:39 -06:00
Sam Stephenson
4f72a1591b CACHE_PATH -> RUBY_BUILD_CACHE_PATH 2012-11-13 17:34:08 -06:00
Sam Stephenson
f8e55e3996 Merge remote-tracking branch 'lloeki/tarball_cache_support' 2012-11-12 10:43:19 -06:00
Erik Michaels-Ober
87c87cfa49 Merge pull request #238 from jtdowney/readme-update
Minor README update
2012-11-12 05:00:45 -08:00
John Downey
0670f41876 Minor README update 2012-11-12 06:17:35 -06:00
Erik Michaels-Ober
0ef9259058 ruby-build 20121110 v20121110 2012-11-10 13:38:48 -08:00
Jeremy Kemper
473bb45ec0 Merge pull request #236 from hsbt/switch-svn-to-git
Switch 2.0.0-dev and 1.9.3-dev to git since the svn->git mirror is back up.
2012-11-10 12:03:25 -08:00
SHIBATA Hiroshi
786adaff79 fix conflicts. reverted to 70751283b0. 2012-11-10 17:20:50 +09:00
SHIBATA Hiroshi
42febdecfa Revert "switch svn"
This reverts commit 75f9827091.
2012-11-10 17:19:36 +09:00
Erik Michaels-Ober
0886e3991f Merge pull request #235 from frodsan/update_readme
update README examples in order to use MRI last stable version
2012-11-09 12:58:02 -08:00
Francesco Rodriguez
7e42eb2f02 update README examples in order to use MRI last stable version 2012-11-09 15:48:11 -05:00
Erik Michaels-Ober
1b5406efb5 Merge pull request #234 from frodsan/fix_definition
fix 1.9.3-p327 definition
2012-11-09 12:36:56 -08:00
Francesco Rodriguez
5c90a96fae fix 1.9.3-p327 definition 2012-11-09 15:35:42 -05:00
Erik Michaels-Ober
d648417675 Merge pull request #233 from frodsan/add_327
added 1.9.3-p327
2012-11-09 12:31:40 -08:00
Francesco Rodriguez
d867a197a5 added 1.9.3-p327 2012-11-09 15:28:30 -05:00
Loic Nageleisen
776c6e1d0e Simple, optional tarball cache support
Rationale:

Both in development and in production, some usage patterns of ruby-build
are slowed down by the download phase. In scenarios such as
troubleshooting failing builds or with provisioning situations (chef,
vagrant...) the repeated download is unnerving, bandwidth wasting and
simply against etiquette towards tarball hosters.

It also happens that some source sites happen to be down and in such
cases it is helpful to be able to sideload sources to rbenv.

Behavior:

By default nothing changes.

If the variable CACHE_PATH is set, then ruby-build will use that
directory to store a successful download, and will check before
downloading if the tarball is already there, in which case downloading
is skipped.

The file is first downloaded as before in the tmp subdirectory and only
moved afterwards, thus ensuring consistency.

There is no default cache path and the optional variable is to be set by
hand, ensuring people know what they're doing when using ruby-build.

Additionnally, rbenv-install will helpfully set CACHE_PATH if and only
if a RBENV_ROOT/cache directory exists. Again, the directory has to be
created manually.

The CACHE_PATH variable internally ends with a slash to mutualize
non-cached cases. Still, consistency is ensured whether or not a slash
is provided externally.

Notes:

I'm not quite sure CACHE_PATH is a good name, maybe
RUBY_BUILD_CACHE_PATH is better and less conflicting.
2012-11-07 16:43:15 +01:00