You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Introduction of a ruby version manager for windows #378
There is a simple ruby version switcher builtin into RubyInstaller: https://github.com/oneclick/rubyinstaller2/wiki/The-ridk-tool#ridk-use It doesn't do installation of ruby versions but switching between them only. Switching between versions simply works without any additional installs or configuration.
I also use pik for switching Ruby versions on Windows, though it does not support gemsets, etc. but works very well for day-to-day life of using Ruby and JRuby even if it's a bit basic.
I forgot to mention, that i not only wanted to have a version switcher, but also the same rvm command line interface for windows. As I'm working on windows and linux as well, i do not want to use different tools for the same job with its different CLI.
I will edit my initial post and add that info:
provides the basic features like RVM.io does for Linux/Mac/*nix
runs on windows on the classic command line
automatically switches ruby versions in directories with .ruby-version or Gemfile files
as I'm using rvm.io on linux, it would be nice to have the same CLI on windows
I plan to be feature complete with the basic features and to release the 1.0 release until this summer.
One special feature idea for the future is the command rvm kit which includes recipes for several rubies to get most used native gems to work out of the box. It is experimental at the moment. For example in ruby 2.4 and 2.5 it will install msys from 2.6 automatically, as the latter is still working, but the others don't anymore.
I'm open to integrate more recipies or compatibility scripts, that make older ruby versions work again. There could also be scripts, downloading sources for explicit compilation, etc... that would be my special gift to rubyinstaller. So we could patch older windows rubies this way and recommend just using rvm-windows. No more googling and repairing manually.
Activity
larskanis commentedon Apr 8, 2024
There is a simple ruby version switcher builtin into RubyInstaller: https://github.com/oneclick/rubyinstaller2/wiki/The-ridk-tool#ridk-use It doesn't do installation of ruby versions but switching between them only. Switching between versions simply works without any additional installs or configuration.
There's also uru https://bitbucket.org/jonforums/uru and pik https://github.com/vertiginous/pik which some of my co-workers are using to switch between versions. Both don't do install. And I guess they are no longer maintained.
I did not try your rvm for Windows, but from reading the README it looks promising!
mohits commentedon Apr 8, 2024
I also use pik for switching Ruby versions on Windows, though it does not support gemsets, etc. but works very well for day-to-day life of using Ruby and JRuby even if it's a bit basic.
More: https://notepad.onghu.com/2021/ruby3-windows-pik-multiple-installations/
I love any effort to make #RubyonWindows better, so I will try your solution later. Thanks for sharing.
johnnyshields commentedon May 2, 2024
I've used
urufor years and it's working fine.magynhard commentedon May 12, 2024
Thank you for your responds.
I forgot to mention, that i not only wanted to have a version switcher, but also the same rvm command line interface for windows. As I'm working on windows and linux as well, i do not want to use different tools for the same job with its different CLI.
I will edit my initial post and add that info:
I plan to be feature complete with the basic features and to release the 1.0 release until this summer.
magynhard commentedon May 17, 2024
@larskanis @mohits @johnnyshields
It's done! I've just made
rvm-windowsfeature complete and released version0.9.9.Would be nice to get some feedback!
https://github.com/magynhard/rvm-windows
One special feature idea for the future is the command
rvm kitwhich includes recipes for several rubies to get most used native gems to work out of the box. It is experimental at the moment. For example in ruby 2.4 and 2.5 it will install msys from 2.6 automatically, as the latter is still working, but the others don't anymore.I'm open to integrate more recipies or compatibility scripts, that make older ruby versions work again. There could also be scripts, downloading sources for explicit compilation, etc... that would be my special gift to rubyinstaller. So we could patch older windows rubies this way and recommend just using rvm-windows. No more googling and repairing manually.
johnnyshields commentedon Aug 6, 2024
@magynhard just saw this, GREAT!! I will check it out soon.
magynhard commentedon Dec 11, 2024
The 1.0.0 release is live for a few minutes. Time to have fun with multiple Ruby versions on Windows (x64)!