Commit graph

103 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
0ef9259058 ruby-build 20121110 2012-11-10 13:38:48 -08: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
3fed3b492f ruby-build 20121104 2012-11-04 15:03:35 -08:00
Erik Michaels-Ober
14dc5d60b2 ruby-build 20121022 2012-10-22 13:40:51 -07:00
Erik Michaels-Ober
ce236dcfa6 ruby-build 20121020 2012-10-19 11:58:53 -07:00
SHIBATA Hiroshi
28b81a026f reviewed 2012-10-07 08:07:35 +09:00
SHIBATA Hiroshi
88aaff54e4 added build function using svn 2012-10-06 09:17:08 +09:00
Fabio Rehm
cb2a79f111 Allow hooks to be defined for rbenv-install 2012-08-15 23:49:13 -03:00
Sam Stephenson
172b0680da ruby-build 20120815 2012-08-15 15:11:45 -05:00
Sam Stephenson
b4d3ed74a0 "Available" -> "Installed" 2012-08-15 15:08:53 -05:00
Sam Stephenson
681d6b59f2 Simplify shared library function loading 2012-08-15 14:43:44 -05:00
Sam Stephenson
db359ec844 Better option parsing for rbenv-install 2012-08-15 14:02:23 -05:00
Sam Stephenson
8446df21c1 Parse options so they can be combined (e.g. -kv) and occur anywhere on the command line 2012-08-15 13:37:20 -05:00
Sam Stephenson
aee4782095 rbenv-uninstall prompts before removal unless invoked with -f 2012-08-14 23:08:31 -05:00
Andreas Loupasakis
6d4af03042 Implement rbenv-uninstall command 2012-08-14 18:51:53 -05:00
Sam Stephenson
b53c445c20 ruby-build 20120524 2012-05-24 13:58:27 -05:00
Sam Stephenson
2d489e7742 Avoid += for compatibility with older bash versions 2012-05-24 13:51:30 -05:00
Sam Stephenson
997c1d3328 Use ~/.rbenv/sources instead of ~/.rbenv/srcs 2012-05-24 13:29:36 -05:00
James Tucker
8b89e24411 If $RBENV_BUILD_ROOT is set, then always ask ruby-build to build $VERSION under that path. 2012-04-28 15:27:24 -07:00
James Tucker
daa4f246e6 rbenv-install supports a -k/--keep flag that by default builds under $RBENV_ROOT/srcs/$VERSION_NAME. 2012-04-28 15:27:19 -07:00
James Tucker
852778e84b Add a -k/--keep option to ruby-build to keep the build path around after builds 2012-04-28 15:26:45 -07:00
James Tucker
f6c2bfe8da ruby-build now supports $RUBY_BUILD_BUILD_PATH to specify the location of the BUILD_PATH instead of a seeded directory under TMP 2012-04-28 15:26:05 -07:00
Sam Stephenson
e69f559c7e ruby-build 20120423 2012-04-23 16:37:03 -05:00
Sam Stephenson
83b9ed07d6 Swallow all type output 2012-04-23 16:24:20 -05:00
Sam Stephenson
5e2ff56996 fetch_git shows an error if git is not installed 2012-04-23 16:19:41 -05:00
Sam Stephenson
48590792b2 Clean up fetch_url 2012-04-23 16:19:20 -05:00
Sam Stephenson
aa651b774c Clearer call to action (thanks @trevorturk) 2012-04-23 15:45:08 -05:00
Sam Stephenson
a4cf3ac14a Improve the OS X llvm-gcc error 2012-04-23 15:18:57 -05:00
Sam Stephenson
16a01222d0 Merge pull request #140 from jayferd/use-wget
use `wget` if it's available and curl isn't
2012-04-23 10:00:55 -07:00
Erich Kist
a353131e74 Update changelog for next release. Closes #158 2012-04-20 16:46:54 -07:00
Jay Adkisson
772e175a63 rename get -> fetch_url 2012-04-19 21:25:10 -07:00
Eric Saxby
415c9c1437 Set MAKE_OPTS only if MAKEOPTS is present [GH issue #149] 2012-03-30 13:06:50 -07:00
Jay Adkisson
46d7a6d7f9 use wget if it's available and curl isn't 2012-03-12 10:07:06 -07:00
Sam Stephenson
8304d38dd4 ruby-build 20120216 2012-02-16 15:04:47 -06:00
Sam Stephenson
c248f3f374 ruby-build 20111230 2011-12-30 13:58:29 -06:00
Sam Stephenson
272edbbcae Quote the argument to resolve_link 2011-12-30 13:58:12 -06:00
Sam Stephenson
c0a2d90cfb Look for gcc-* anywhere in $PATH. Fixes #109 2011-12-30 13:35:18 -06:00
Sam Stephenson
8e6e2372b8 Support MAKEOPTS in addition to MAKE_OPTS (#89) 2011-12-30 13:00:47 -06:00
Sam Stephenson
3b9d275f1d Merge remote-tracking branch 'theaboutbox/20111107-make-opts' 2011-12-30 12:53:43 -06:00
Sam Stephenson
27052985f8 Add a before_install_package hook for e.g. patching the source tree 2011-12-01 17:09:27 -06:00
Cameron Pope
b248025bbe Look for MAKE_OPTS to override options sent to make to address build failures on some systems 2011-11-07 18:40:18 -07:00
jc00ke
433f56cd00 Remove log info for rake & create symlinks 2011-11-01 14:17:06 -07:00