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
ruby -v
gem -v
gem install bundler
bundler -v
5
Initialize project (optional)
bundle init
bundle install
✅ Verification
ruby -v
gem -v
bundler -v
All commands should output versions.
💎 Managing Gems
1
Initialize
bundle init
2
Add to Gemfile
gem "httparty"
3
Install / update
bundle install
bundle update httparty
4
Run script with locked environment
bundle exec ruby app.rb
🔄 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
gem list
gem install <name>
gem uninstall <name>
bundle init
bundle install
bundle update
bundle exec ruby main.rb
Last updated