ruby-version-manager

Detect Ruby version managers and generate activation commands from project files.

11|Updated Jun 19, 2013
One-click install
npx skills add https://github.com/MadBomber/experiments --skill ruby-version-manager
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ruby-version-manager
Source: https://github.com/MadBomber/experiments/tree/main/ai_misc/skills/ruby-version-manager
Command: npx skills add https://github.com/MadBomber/experiments --skill ruby-version-manager

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

Ensures your Ruby projects use the correct Ruby version by automatically detecting and configuring version managers, preventing environment setup errors.

Core Features & Use Cases

  • Automatic Detection: Identifies installed Ruby version managers (rbenv, rvm, asdf, etc.) and project-specific Ruby versions.
  • Environment Activation: Generates the correct activation commands to set up the Ruby environment for your session.
  • Use Case: When you open a new terminal session in a project directory containing a Gemfile or .ruby-version, this skill automatically detects your Ruby version manager and prepares the environment so your bundle install or ruby commands work without manual setup.

Quick Start

Run detect.sh to set up your Ruby environment for the current project.

Frequently Asked Questions about ruby-version-manager

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automatically detect and switch Ruby versions in my project?

You can automatically detect and switch Ruby versions by running a script that reads your project's Gemfile, .ruby-version, or .tool-versions files. It then identifies your installed version manager and generates the correct activation commands to configure the environment.

Does rbenv, rvm, and asdf support automatic environment activation from a .ruby-version file?

Yes, rbenv, rvm, and asdf are fully supported for automatic environment activation. The tool detects these version managers alongside chruby, mise, rv, and shadowenv, generating activation commands based on your .ruby-version or .tool-versions file.

What happens if multiple Ruby version managers are installed on my system?

When multiple Ruby version managers are detected on your system, the tool prompts you to select your preferred manager. It then uses your selection to generate the specific activation commands needed to set up your Ruby environment correctly.

How do I set up my Ruby environment for bundle install without manual configuration?

To set up your Ruby environment for bundle install, execute the detection script in your project directory. It reads your Gemfile or version files and outputs the necessary shell commands to activate your Ruby version manager automatically.

Can I use mise or shadowenv to manage Ruby versions for my Gemfile project?

Yes, you can use mise or shadowenv to manage Ruby versions. The tool supports these version managers alongside chruby, rbenv, rvm, asdf, and rv, detecting your project's required Ruby version and preparing the environment seamlessly.