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:
On Intel Macs, the path is /usr/local/opt/ruby/bin.
โ 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