Skip to content

Latest commit

 

History

History
62 lines (44 loc) · 2.75 KB

README.md

File metadata and controls

62 lines (44 loc) · 2.75 KB

vfox-ruby

Ruby language plugin for vfox.

Requirement

Distribution Dependencies
Ruby none
JRuby JRE v8 or higher
TruffleRuby bash, make, gcc, g++, openssl-dev, yaml-dev and zlib-dev
Ruby-build See ruby-build's instructions
mRuby-build Ruby or TruffleRuby

Install

After installing vfox, install the plugin by running:

vfox add ruby

Next, search and select the version to install. By default, vfox keeps cache for available versions, use --no-cache flag to search without cache and rebuild the cache.

vfox search ruby
vfox search ruby --no-cache

Install the latest stable version with latest tag.

vfox install ruby@latest
vfox install [email protected]    # JRuby
vfox install [email protected]     # TruffleRuby
vfox install [email protected] # TruffleRuby-jvm
vfox install [email protected]   # Ruby-build
vfox install [email protected]  # mRuby-build

Compiling installation with ruby-build only works on Unix-like systems. All versions of Ruby and mRuby supported by ruby-build (except for the development versions like 3.4-dev) are available.

Some environment variables are served as following:

Environment variables Default value Description
Conda_Forge conda-forge conda-forge channel
GITHUB_URL https://github.com/ GitHub mirror URL

Note: Conda_Forge has no effect for Windows.

Usage:

export Conda_Forge=https://prefix.dev/conda-forge
export GITHUB_URL=https://mirror.ghproxy.com/https://github.com/

FAQ

  • Why is there a lack of updated versions?
    Currently, vfox-ruby uses precompiled packages from conda-forge and Homebrew on Linux and macOS. You could open an issue in the ruby-feedstock repository to remind the maintainers to provide the latest build. Once the latest version is available, the plugin will be updated soon.