Sam Stephenson
16aaf92455
ruby-build 20121120
2012-11-20 15:35:31 -06:00
Sam Stephenson
d924fceee5
Test package cache
2012-11-19 23:45:00 -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
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
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
Sam Stephenson
172b0680da
ruby-build 20120815
2012-08-15 15:11:45 -05:00
Sam Stephenson
681d6b59f2
Simplify shared library function loading
2012-08-15 14:43:44 -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
b53c445c20
ruby-build 20120524
2012-05-24 13:58:27 -05: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