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)
Download the latest Ruby+Devkit (x64) from https://rubyinstaller.org/downloads/
Run installer (enable MSYS2 when prompted).
Let post-install script finish (toolchain setup).
Verify & install bundler
Initialize project (optional)
Dependencies (Debian example):
Install rbenv + ruby-build:
β
Verification
All commands should output versions.
π Managing Gems
Initialize
Add to Gemfile
Install / update
Run script with locked environment
π Updating
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