Commit graph

279 commits

Author SHA1 Message Date
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 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
Erik Michaels-Ober
e595bda2ae Convert to one-liner to avoid polluting the shell 2012-11-05 08:21:47 -08:00
Erik Michaels-Ober
7389c8f840 Add instructions for installing Ruby 2 on Mac OS X with homebrew 2012-11-05 08:12:22 -08:00
Erik Michaels-Ober
37dace69da Remove dollar signs so commands can be copied and pasted without modification 2012-11-05 08:10:53 -08:00
Erik Michaels-Ober
3fed3b492f ruby-build 20121104 2012-11-04 15:03:35 -08:00
Erik Michaels-Ober
b90a170de0 Merge pull request #231 from guilleiguaran/patch-1
README: use last stable version of MRI in examples
2012-11-04 10:20:23 -08:00
Guillermo Iguaran
bb60a1e868 README: use last stable version of MRI in examples 2012-11-04 13:19:46 -05:00
Erik Michaels-Ober
f5b3aec795 Merge pull request #229 from guilleiguaran/rbx-2.0.0-rc1
Add formula for rbx-2.0.0-rc1
2012-11-03 12:16:00 -07:00
Guillermo Iguaran
a1593f933a Add formula for rbx-2.0.0-rc1 2012-11-02 22:35:58 -05:00
Jeremy Kemper
71b9468a40 Merge pull request #228 from guilleiguaran/ruby-2.0-preview1
Definition for Ruby 2.0.0-preview1
2012-11-01 20:11:46 -07:00
Guillermo Iguaran
b4cf41099b Formula for Ruby 2.0.0-preview1 2012-11-01 20:06:52 -05:00
Erik Michaels-Ober
14dc5d60b2 ruby-build 20121022 2012-10-22 13:40:51 -07:00
Erik Michaels-Ober
13b6aa19a0 Merge pull request #206 from baer/patch-2
Git clone should one 1 liner
2012-10-22 13:37:33 -07:00
Erik Michaels-Ober
6c60f67773 Merge pull request #226 from hpoydar/master
Added support for JRuby 1.7.0, released on 22 October 2012
2012-10-22 13:36:45 -07:00
Henry Poydar
c86f57adb7 Added support for JRuby 1.7.0 2012-10-22 15:24:07 -04:00
Erik Michaels-Ober
e0797e65ec Merge pull request #225 from manuelmeurer/patch-1
Updated README
2012-10-21 07:37:57 -07:00
Manuel Meurer
0d785ca3bb Updated README
Seems like you have to run `rbenv install --list`, not `rbenv install`, to see the available versions.
2012-10-21 17:22:18 +03:00
Erik Michaels-Ober
ce236dcfa6 ruby-build 20121020 2012-10-19 11:58:53 -07:00
Jeremy Kemper
d7f661ba89 Merge pull request #221 from mdemare/master
Added ruby 1.9.3-p286
2012-10-12 05:28:00 -07:00
Michiel de Mare
afae9d2131 added 1.9.3-p286 2012-10-12 07:57:13 -04:00
Jeremy Kemper
cc14d03471 Merge pull request #218 from doxavore/add_jruby_170rc2
Add support for JRuby 1.7.0 RC2
2012-10-09 15:40:50 -07:00
Doug Mayer
e1a9e82846 Add support for JRuby 1.7.0 RC2. 2012-10-09 17:15:52 -05:00
Jeremy Kemper
16e81d2c3c Merge pull request #217 from hsbt/add-install_svn
Support install & build from Subversion repositories. Switch 1.9.3-dev and 2.0.0-dev to svn since the git mirror is no longer maintained.
2012-10-06 16:50:41 -07:00
SHIBATA Hiroshi
28b81a026f reviewed 2012-10-07 08:07:35 +09:00
SHIBATA Hiroshi
75f9827091 switch svn 2012-10-06 20:09:41 +09:00
SHIBATA Hiroshi
70751283b0 switch svn in ruby-head build 2012-10-06 09:17:36 +09:00
SHIBATA Hiroshi
88aaff54e4 added build function using svn 2012-10-06 09:17:08 +09:00
Jeremy Kemper
8b6697c8ca Merge pull request #216 from queso/jruby-156
Add jruby-1.5.6, because yes, I need it.
2012-10-01 15:12:25 -07:00
Josh Owens
c5b3d1b60d Add jruby-1.5.6, becuase yes, I need it. Somewhere, happy pandas are becoming sad. 2012-10-01 15:05:35 -07:00
Jeremy Kemper
1c719877d2 Merge pull request #215 from habermann24/master
Added definition for jruby-1.7.0-rc1
2012-09-25 17:13:02 -07:00