Maxim Belkin 50f47e88ec utils/ruby.sh: reoganize code
Moved OS-specific logic to functions:
 - `find_ruby`: returns (via echo) Ruby that can be used
 - `usable_ruby`: checks whether Ruby satisfies Homebrew

Pre-create OS-specific error messages:
 - `upgrade_fail`: message that is printed when Homebrew fails to upgrade
   vendor Ruby
 - `install_fail`: message that is printed when Homebrew fails to install
   vendor Ruby

Unconditionally set `TERMINFO_DIRS` when installing/upgrading vendor Ruby
**but** export it on Linux only.

Motivation: move OS-specific logic to functions so that it's easier to
understand the main steps.
2020-08-13 23:57:23 +00:00
..
2020-05-23 19:39:11 +01:00
2020-08-06 16:13:14 +02:00
2020-08-10 08:22:03 +01:00
2019-02-26 14:19:12 +08:00
2020-07-22 14:21:06 +02:00
2020-08-13 23:57:23 +00:00
2020-03-27 13:04:39 +00:00
2020-04-07 09:58:26 +01:00
2020-07-11 01:04:22 +05:30