For the complete documentation index, see llms.txt. This page is also available as Markdown.

Ruby

Install and manage Ruby locally (Windows, macOS, Linux) using installers or version managers; use Bundler for dependencies.

๐Ÿงพ Overview

Ruby is used for bots, APIs (Sinatra), and full frameworks (Rails). Local installation lets you manage gems and test before deploying.


๐Ÿ“ฅ Installation (choose one)

1

Download the latest Ruby+Devkit (x64) from https://rubyinstaller.org/downloads/

2

Run installer (enable MSYS2 when prompted).

3

Let post-install script finish (toolchain setup).

4

Verify & install bundler

5

Initialize project (optional)

Dependencies (Debian example):

Install rbenv + ruby-build:

On Intel Macs, the path is /usr/local/opt/ruby/bin.


โœ… Verification

All commands should output versions.


๐Ÿ’Ž Managing Gems

1

Initialize

2

Add to Gemfile

3

Install / update

4

Run script with locked environment


๐Ÿ”„ Updating

Target
Command

Ruby (rbenv)

rbenv install <version> && rbenv global <version>

All gems

bundle update

One gem

bundle update <name>

Bundler

gem install bundler


๐Ÿ—ƒ Common Commands

Last updated