Skip to content

yanecc/vfox-ruby

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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. The --ruby-build flag is used to list all the versions that can be built and installed by ruby-build. By default, vfox keeps cache for available versions, use the --no-cache flag to delete the cache file.

vfox search ruby
vfox search ruby --ruby-build
vfox search ruby --no-cache && vfox search ruby

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.