setup-ruby
An action to download a prebuilt Ruby and add it to the PATH in 5 seconds
File Explorer
- bug_report.yml
- config.yml
- other-issue--not-a-bug-.md
- check-new-windows-versions.yml
- release.yml
- test.yml
- update-v1-branch.yml
- dependabot.yml
- FUNDING.yml
- index.js
- bundler-dev.gemfile
- bundler-dev.gemfile.lock
- bundler1.gemfile
- gem_from_github.gemfile
- rails7.gemfile
- rails8.gemfile
- .gitattributes
- .gitignore
- action.yml
- bundler.js
- common.js
- CONTRIBUTING.md
- Gemfile
- generate-test-matrix.rb
- generate-windows-versions.rb
- index.js
- LICENSE
- new-versions.rb
- package.json
- pre-commit
- Rakefile
- README.md
- release.rb
- ruby-builder-versions.json
- ruby-builder.js
- rubygems.js
- test_subprocess.rb
- versions-strings-for-builder.rb
- windows-toolchain-versions.json
- windows-versions.json
- windows.js
- yarn.lock
# Use via CDN
jsDelivrjsDelivr serves any public GitHub repository as a CDN with zero setup. Pick a version and a file to get a ready-to-paste link and snippet.
Command Glossary
Commands referenced in this DOCs, explained below.
bundle
View Details ▼
bundle
Dependency manager for the Ruby programming language.
bundle install
Install all gems defined in the `Gemfile` expected in the working directory:
bundle exec {{command}} {{arguments}}
Execute a command in the context of the current bundle:
bundle update
Update all gems by the rules defined in the `Gemfile` and regenerate `Gemfile.lock`:
bundler
View Details ▼
bundler
This command is an alias of `bundle`.
tldr bundle
View documentation for the original command:
gem
View Details ▼
gem
A package manager for the Ruby programming language.
gem search {{regex}} {{[-a|--all]}}
Search for remote gem(s) and show all available versions:
gem install {{gem_name}}
Install the latest version of a gem:
gem install {{gem_name}} {{[-v|--version]}} {{1.0.0}}
Install a specific version of a gem:
ruby
View Details ▼
ruby
Ruby programming language interpreter.
See also: `gem`, `bundler`, `rake`, `irb`, `ri`.
ruby {{path/to/script.rb}}
Execute a Ruby script:
ruby -e "{{command}}"
Execute a single Ruby command in the command-line:
ruby -c {{path/to/script.rb}}
Check for syntax errors on a given Ruby script:
pacman
View Details ▼
pacman
Arch Linux package manager utility.
See also: `pacman-sync`, `pacman-remove`, `pacman-query`, `pacman-upgrade`, `pacman-files`, `pacman-database`, `pacman-deptest`, `pacman-key`, `pacman-mirrors`.
For equivalent commands in other package managers, see <https://wiki.archlinux.org/title/Pacman/Rosetta>.
sudo pacman -Syu
[S]ynchronize and update all packages:
sudo pacman -S {{package}}
Install a new package:
sudo pacman -Rs {{package}}
[R]emove a package and its dependencies:
