Jason Karns 258e4413b1 create hook: version-name
Expose a `version-name` hook.

It is invoked *after* the traditional `RBENV_VERSION` lookup. Which means hook scripts can interrogate `$RBENV_VERSION_FILE` and/or `$RBENV_VERSION` (or use the executables).

The hooks are then run, giving plugins a chance to alter `RBENV_VERSION`. Once the hooks have run, we now have (in `$RBENV_VERSION`) the actual version we want to use (or it's empty which defaults to `system` per normal). Lastly, the same logic remains for checking if the version exists, or trimming the `ruby-` prefix.

Prime example: the ruby-bundler-ruby-version plugin can select a ruby by using the `ruby` directive from the `Gemfile` if a local `.ruby-version` doesn't exist.
2015-12-23 17:22:30 +01:00
..
2013-03-07 15:07:32 -05:00
2013-04-08 23:16:35 +02:00
2012-12-29 22:05:04 -06:00
2013-10-31 20:18:14 +02:00
2013-03-07 15:07:32 -05:00
2012-12-29 22:05:04 -06:00
2012-12-29 22:05:04 -06:00
2015-12-23 17:22:30 +01:00
2012-12-29 22:05:04 -06:00