asdf-vm/asdf-ruby là dự án mã nguồn mở trên GitHub với 733 sao, viết chủ yếu bằng Shell. Ruby plugin for asdf version manager
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
Please make sure you have the required system dependencies installed before trying to install Ruby. It is also recommended that you remove other ruby version managers before using asdf-ruby
Use
Check asdf readme for instructions on how to install & manage versions of Ruby.
When installing Ruby using asdf install, you can pass custom configure options with the env vars supported by ruby-build.
Under the hood, asdf-ruby uses ruby-build to build and install Ruby, check its README for more information about build options and the troubleshooting wiki section for any issues encountered during installation of ruby versions.
You may also apply custom patches before building with RUBY_APPLY_PATCHES, e.g.
[!NOTE]
This plugin does not automatically fetch new Ruby versions. Running asdf plugin update ruby will update asdf-ruby and ensure the latest versions of Ruby are available to install. If the desired ruby version is still not showing up see the below Troubleshooting section.
By default asdf-ruby uses a recent release of ruby-build, however instead you can choose your own branch/tag through the ASDF_RUBY_BUILD_VERSION variable:
asdf-ruby can automatically install a set of default gems right after
installing a Ruby version. To enable this feature, provide a
$HOME/.default-gems file that lists one gem per line, for example:
bundler
pry
gem-ctags
You can specify a non-default location of this file by setting a ASDF_GEM_DEFAULT_PACKAGES_FILE variable.
Migrating from another Ruby version manager
.ruby-version file
asdf uses the .tool-versions for auto-switching between software versions.
To ease migration, you can have it read an existing .ruby-version file to
find out what version of Ruby should be used. To do this, add the following to
$HOME/.asdfrc:
legacy_version_file = yes
If you are migrating from version manager that supported fuzzy matching in .ruby-version
like rvm or chruby,
note that you might have to change .ruby-version to include full version (e.g. change 2.6 to 2.6.1).
Troubleshooting
[!NOTE]
The most common issue reported for this plugin is a missing Ruby version. If you are not seeing a recent Ruby version in the list of available Ruby versions it's likely due to having an older version of this plugin. Run asdf plugin update ruby to get the most recent list of Ruby versions. If it is still not showing up then this plugin's RUBY_BUILD_VERSION in lib/utils.sh likely needs updated with the latest ruby-build release https://github.com/rbenv/ruby-build/releases. Please check for an existing PR before submitting a new one. If there is not one, please fork the repo and submit one. If this plugin's ruby-build needs updated, you can workaround it with ASDF_RUBY_BUILD_VERSION. A note in the above Use section describes how to do this.
If you are moving to asdf-ruby from another Ruby version manager, it is recommended to completely uninstall the old Ruby version manager before installing asdf-ruby.
If you install asdf and asdf-ruby and it doesn't make ruby and irb available in your shell double check that you have installed asdf correctly. Make sure you have system dependencies installed BEFORE running asdf install ruby <version>. After installing a Ruby with asdf, run type -a ruby to see what rubies are currently on your $PATH. The asdf ruby shim should be listed first, if it is not asdf is not installed correctly.
Correct output from type -a ruby (asdf shim is first in the list):
ruby is /Users/someone/.asdf/shims/ruby
ruby is /usr/bin/ruby
asdf-vm/asdf-ruby có 733 sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/asdf-vm/asdf-ruby. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
asdf-vm/asdf-ruby có phải mã nguồn mở không?
Có — asdf-vm/asdf-ruby phát hành theo license MIT, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/asdf-vm/asdf-ruby.
asdf-vm/asdf-ruby có trang demo không?
Dự án có trang chủ ở https://github.com/asdf-vm/asdf. Tab "Readme" ở trang này thường có ảnh chụp và hướng dẫn bắt đầu nhanh.
asdf-vm/asdf-ruby là gì?
asdf-vm/asdf-ruby (asdf-vm/asdf-ruby) là dự án Shell trên GitHub. Theo mô tả gốc: Ruby plugin for asdf version manager
Đọc thêm về asdf-vm/asdf-ruby ở đâu?
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/asdf-vm/asdf-ruby là nguồn chính thức.
Đọc đầy đủ README ở tab phía trên.
Chưa chắc asdf-ruby có hợp với bạn?
Để ChatGPT, Claude hoặc Perplexity tìm hiểu giúp — bấm bên dưới và xem AI nói gì về asdf-ruby.