Maxim Belkin 15dbb0be58 utils/ruby.sh: simplify and fix Ruby-related logic
General:
- Rename `unusable_ruby` to `need_vendored_ruby` (due to code changes).

**`setup-ruby-path`** function:
- Move `-z "$HOMEBREW_RUBY_PATH"` and `-n "$HOMEBREW_FORCE_VENDOR_RUBY"` checks to `need_vendored_ruby`.

**`need_vendored_ruby`** function:
- Check `HOMEBREW_FORCE_VENDOR_RUBY` first so that it's respected even
  on Macs that are "new enough" (`HOMEBREW_MACOS_SYSTEM_RUBY_NEW_ENOUGH` is set).
- Don't check `-n $HOMEBREW_RUBY_PATH` because it is implicitly tested
  by `test_ruby`.
- Remove (now-) redundant `-z $HOMEBREW_FORCE_VENDOR_RUBY` check as it is
  tested earlier in the conditional.
2020-12-08 18:05:28 -06:00
..
2020-11-13 12:26:36 +01:00
2020-12-02 10:43:04 +00:00
2020-12-02 10:43:04 +00:00
2020-10-10 14:59:39 +02:00
2020-11-13 12:26:36 +01:00
2020-12-07 23:03:47 +01:00
2020-11-23 02:06:37 +01:00
2020-10-10 14:59:39 +02:00
2020-10-10 14:59:39 +02:00
2020-12-02 10:43:04 +00:00
2020-11-13 12:26:36 +01:00
2020-11-30 00:00:02 +01:00