Skip to content
DaveEshopGuidePublic

About

A Ruby Version manager for windows

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

WinRVM - Ruby Version Manager for Windows

WinRVM is a fast, lightweight Ruby Version Manager specifically designed for Windows. It combines a high-performance Rust core with a native PowerShell integration to manage parallel Ruby installations effortlessly.

Features

  • Fast & Efficient: Core logic written in Rust.
  • Native PowerShell Integration: Seamlessly switches Ruby versions in your current session.
  • Portable: Downloads and manages portable RubyInstaller builds (no admin rights required for usage).
  • Zero Dependencies: Does not require an existing Ruby installation to bootstrap.

Installation

Prerequisites

  • Windows 10/11
  • PowerShell 5.0+ or PowerShell Core (pwsh)
  • Rust (for building from source)

Automated Installation (Recommended)

  1. Clone the repository:

    git clone https://github.com/DaveEshopGuide/winrvm.git
    cd winrvm
  2. Run the installer:

    .\install.ps1

    This script will:

    • Build the binary.
    • Install files to ~/.winrvm.
    • Add the module to your PowerShell profile.

    Note: You may need to restart your terminal or run . $PROFILE for changes to take effect.

Manual Build & Install

  1. Clone the repository:

    cd winrvm-core
    cargo build --release
    cd ..
  2. Install the binary: Create the directory and copy the binary:

    New-Item -ItemType Directory -Force -Path "$HOME\.winrvm\bin"
    Copy-Item "winrvm-core\target\release\winrvm-core.exe" -Destination "$HOME\.winrvm\bin\winrvm-core.exe"
  3. Enable the PowerShell Module: Add the module to your PowerShell profile to load it automatically:

    Add-Content $PROFILE "`nImport-Module 'C:\path\to\winrvm\winrvm.psm1'"

    Replace C:\path\to\winrvm\ with the actual path where you cloned the repo.

    Or just import it for the current session:

    Import-Module ./winrvm.psm1

Usage

List Available Versions

See what versions of Ruby can be installed (fetched from RubyInstaller releases):

winrvm list-remote

Install Ruby

Download and extract a specific version (includes DevKit UCRT builds):

winrvm install 3.3.9

Switch Version

Set the Ruby version for the current PowerShell session:

winrvm use 3.3.9
ruby -v

List Installed Versions

See what you have installed locally:

winrvm list

Uninstall

Remove a version:

winrvm uninstall 3.3.9

Architecture

WinRVM uses a split architecture:

  1. winrvm-core (Rust): Handles network requests, downloading 7-zip archives, extraction, and file management. It is installed to ~/.winrvm/bin/winrvm-core.exe.
  2. winrvm (PowerShell): A wrapper function that intercepts the use command. It captures the output from the Rust binary (which tells it where the bin path is) and modifies the $env:Path of the running PowerShell process.

License

MIT

About

A Ruby Version manager for windows

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages