()
| 38 | ]; |
| 39 | |
| 40 | function getLatestRubyVersion(): RubyVersion { |
| 41 | const selection = allOptions.find(isInstalled); |
| 42 | if (!selection) { |
| 43 | throw new NowBuildError({ |
| 44 | code: 'RUBY_INVALID_VERSION', |
| 45 | link: 'http://vercel.link/ruby-version', |
| 46 | message: `Unable to find any supported Ruby versions.`, |
| 47 | }); |
| 48 | } |
| 49 | return selection; |
| 50 | } |
| 51 | |
| 52 | function resolveSystemRuby(): { |
| 53 | rubyPath: string; |