Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix RUBY_VERSION to be set to current version used #93

Open
bkuhlmann opened this issue Aug 7, 2021 · 2 comments
Open

Fix RUBY_VERSION to be set to current version used #93

bkuhlmann opened this issue Aug 7, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@bkuhlmann
Copy link

bkuhlmann commented Aug 7, 2021

Overview

When using Frum, I'm not seeing RUBY_VERSION set within the environment.

Screencast

ruby_version.mp4

Steps to Recreate

  1. Install Frum.
  2. Configure Frum for your shell (in my case, I'm using Bash).
  3. Run ENV | grep RUBY, notice that RUBY_VERSION doesn't display in the list.

Desired Behavior

As one switches between different Ruby versions, it'd be nice to see RUBY_VERSION reflect the current version being used. This would match behavior of similar Ruby version managers.

Environment

  • macOS: macOS 11.5.1
  • Frum: 0.1.1
  • Ruby: 3.0.2p107 (2021-07-07 revision 0db68f0233) [arm64-darwin20.5.0]
@bkuhlmann bkuhlmann changed the title Fix RUBY_VERSION as nil Fix RUBY_VERSION to be set to current version used Aug 7, 2021
@TaKO8Ki TaKO8Ki added the enhancement New feature or request label Aug 8, 2021
@CodeMeister
Copy link

Can we bump this up the priority list a bit?

When testing code against multiple version of ruby on a regular basis, being able to display the current ruby version in the shell prompt would be great.

If an environmental variable is too tricky, perhaps a shell command similar to RVM's approach might be simper.

@DcsMarionDickten
Copy link

Using 11.6 and frum 0.1.2, the RUBY_VERSION variable is displayed (on my machine) but contains the wrong value.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants