mirror of
https://github.com/j178/prek.git
synced 2026-04-03 17:34:03 +02:00
* Add Ruby support (no download support yet) Currently only pre-existing Rubies are used, although the code will search for and consider multiple versions. This allows a hook to require 3.4.7 when the default system Ruby is 3.4.6, but RVM (or a similar tool) has installed 3.4.7. If a suitable Ruby cannot be found, the user is prompted to install one manually and re-run. Hooks get an isolated GEM_HOME, based on the hook repository, any additional_dependencies, and the interpreter version/path. Any Ruby upgrade would therefore re-install the gems to ensure that stale versions aren't used. Repository gem dependencies are installed based on the included gemspec files, combined with the additional_dependencies field. * Add pins for CI 'install Ruby' action * Update setup-ruby pin * Tweak version parsing * Tweak env vars --------- Co-authored-by: Jo <10510431+j178@users.noreply.github.com>