Erik Michaels-Ober
9ef0e06c63
ruby-build 20130104
2013-01-05 10:48:48 -08:00
Sam Stephenson
aa4a0287f9
Point people to the readme
2012-12-30 15:29:52 -06:00
Sam Stephenson
b9474ae1db
Add summary lines for rbenv install and rbenv uninstall
2012-12-30 15:25:52 -06:00
Sam Stephenson
9e49bc5638
Fix rbenv-help invocation
2012-12-30 15:13:26 -06:00
Sam Stephenson
643ea84b3f
Delegate to rbenv-help for usage, if available
2012-12-30 15:10:57 -06:00
Erik Michaels-Ober
b97e53be60
ruby-build 20121227
2012-12-27 08:26:59 -08:00
Sam Stephenson
47f1a28810
Switch the default mirror from GitHub Downloads to Amazon CloudFront
2012-12-12 13:48:10 -06:00
Erik Michaels-Ober
a2895ad99d
ruby-build 20121204
2012-12-04 13:52:15 -08:00
Erik Michaels-Ober
e4788cc121
ruby-build 20121201
2012-12-01 10:00:20 -08:00
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
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