Skip to content

chruby does not automatically see new Ruby installs #212

@FooBarWidget

Description

@FooBarWidget

I'm considering using chruby in a prebuilt machine image that is going to be publicly available for Ruby developers. However I ran into an unpleasant usability surprise.

I installed chruby, then I ran:

ruby-install ruby 1.8.7

Then I ran:

chruby

The output is empty. This was confusing. Why did it not see my new Ruby? I logged out and logged in again, and this time it saw my new Ruby. I shouldn't have to do this.

Reading the source code, it seems that chruby only queries the list of Rubies during evaluation of source.sh. You should query it more often. Or, at the very least, you should provide a command for reloading the list of Rubies, and updating ruby-install to tell the user about the need to relogin/running the reload command.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions