Changelog History
Page 1
-
v1.4.0 Changes
July 20, 2020๐ Handle aliases in lts dir for versions
โก๏ธ Update to add support for direct lts aliases
Presence of bin/ subdir determines versionness
Only recurses into lts/ subdir to find versions but now uses the
presence of a bin/ subdir to determine if a given directory should be
considered a node version and listed.This covers whether "lts" is itself a direct named version, alias, or
namespace for other versions/aliases. -
v1.3.2 Changes
March 31, 2020๐ workflow and metadata maintenance
-
v1.3.1 Changes
November 04, 2019Clarify the description of
rbenv versions
๐ Fixes #1148
rbenv 1.1.2
๐ Disallow path segments and directory traversal in
.ruby-version
files๐ A malicious
.ruby-version
file in the current directory could inject
../../../
into the version string and trigger execution of binaries
outside ofRBENV_ROOT/versions/
.๐ Fixes #977 OVE-20170303-0004
๐ Make --version more semver friendly
The current output of nodenv --version is essentially the direct output
of git-describe, which is TAG-COMMITS_SINCE_TAG-gSHA.๐ The commits-since, and sha segments would be considered build metadata
in semver parlance.This change tweaks the output of git-describe such that it is in a
semver compliant format; despite not strictly being semver compliant in
semantics. (Which isn't really possible with edge/HEAD anyway)It also eliminates the "g" prefix which is used to denote the sha
references the git SCM.rbenv help: fix 'type: write error: Broken pipe'
Sometimes the command fails with a 'type: write error: Broken pipe'.
This is because 'head -1' only reads the first line, then exits.
If 'type' writes the second line after 'head -1' has already exited,
then the aforementioned error is triggered.We fix this by buffering the entire output of 'type' before
invoking 'head -1'.Silence errors when piping
type | head -1
๐ Allow
/
in version names๐ rbenv removed support for directory traversal
..
as well as path
segments. However, nodenv has a valid use-case for path segments: the
lts alias names.This change keeps the
..
pattern blocked, while allowing forward
slashes in the version name.๐ see:
rbenv/rbenv#977 (comment) -
v1.3.0 Changes
May 04, 2019nodenv-version learns to describe aliases
๐จ When printing the current node version and its origin (how it was set),
nodenv-version now resolves any symlinks to determine the final
targeted version.๐จ It prints the version name as selected, an arrow and the aliased version
name, and finally the origin.
If the version is not an alias, the output is the same as before.This only affects the output of
nodenv version
;
nodenv-version-name
andnodenv-version-origin
are unaffected.โ Remove test-only abort messages
These messages are only printed if NODENV_NATIVE_EXT is set; and it is
โ only set for test runs. (It is not expected to be set by users.) Thus
these messages are only useful when running on travis, and I'd rather
โ there not be test-only code running for users.Ignore errors if nodenv-prefix fails
๐จ nodenv-prefix will print errors to STDERR if node isn't available in
๐ PATH. (As demonstrated on Travis, since the nvm's nodes are removed from
โ PATH by the test-helper.)We don't actually care if node is available in PATH or not for this
๐จ check, we only care to print the selected node and follow it if it's a
symlink. So if nodenv-prefix fails, the path would be empty, thus no
๐จ need to follow it and we just print the same message as before.๐จ Print versions in semantic order
๐ Take sort_versions function from node-build (which is broken).
๐ Use extended regular expression for simplicity
๐ Ignore semver-spec characters from sorting. (remove , ~, etc)
Ensure shorter version names sort first (.0 instead of .z)
Ensure node versions sort above others; iojs, chakra, etc (prefix a. if
leading digit)๐ Fix incorrect count of versions in
nodenv versions
-
v1.2.0 Changes
December 23, 2018๐ Fix fish subcommand completion
๐ This allows subcommand style plugins to properly autocomplete.
Existing commands are not affected.๐ Example, say you have support for
rbenv foo bar --flag
, then
this allows the last--flag
argument to be properly completed.๐ Fix pyenv -> rbenv typo
partly resolve #759
- some versions of bash (e.g. 4.3.11) complain about clobbering
/dev/null, use bash's explicit >| operator to ignore noclober - not sure if the original #759 report has the same cause
- rbenv/rbenv#759 (comment)
Enforce absolute RBENV_DIR
This prevents CDPATH from becoming an issue.
Closes #866.
Don't unset CDPATH
rbenv-version-file: ensure that the version file is a file
Forwarded from pyenv/pyenv#606.
rbenv 1.1.1
๐ Fixed
rbenv init -
output to work w/ no args and bash'sset -u
.Quote directory name in variable assignment
๐ Fix some issues reported by shellcheck
๐ Better error message for
rbenv shell
0๏ธโฃ Shell integration is not enabled by default. This means that, from all the
commands fromrbenv commands
, only "shell" won't work right away.Replace "no such command" with a more descriptive message that points to
rbenv init
instead.๐ Fix rbenv/rbenv#1065
๐ Command
rbenv version-name > .ruby-version
will create an empty.ruby-version
file
before runningrbenv-version-file
. This causesrbenv-version-file
to return empty
string which in turn causesrbenv-version-name
to returnsystem
.โช Ensure size of
.ruby-version
is non-zero as a workaround.โ Remove ableist language
rbenv-which: change PATH only for the "command -v" lookup
This is not really necessary, because rbenv-which is used in a subshell
currently, but makes a difference if rbenv-which would be sourced.rbenv-prefix: do not silence rbenv-which for system version
This suppressed any output when using RBENV_DEBUG=1 and does not really
hurt to have in the unlikely case that it should fail; you would get
two error messages now:๐ rbenv: ruby: command not found
rbenv: system version not found in PATH - some versions of bash (e.g. 4.3.11) complain about clobbering
-
v1.1.2 Changes
August 11, 2017๐ฆ Hard-code package version into nodenv
This helps with portability and eliminates the dependency on
๐ package.json file living with the deployed app.๐ fixes #70
streamline nodenv---version
-
v1.1.1
July 10, 2017 -
v1.1.0
February 16, 2017 -
v1.0.0
January 14, 2016 -
v0.4.0
October 17, 2015