setup-ruby

(★ 987)

An action to download a prebuilt Ruby and add it to the PATH in 5 seconds

File Explorer

  • .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

jsDelivr

jsDelivr 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 ▼

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 ▼

This command is an alias of `bundle`.

tldr bundle

View documentation for the original command:

🔍

gem

View Details ▼

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 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 ▼

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:

// repository documentation