Ruby Version Manager
{{Short description|Software tool to manage Ruby programming language versions}}
{{Refimprove|date=February 2012}}
{{Infobox software
| name = Ruby Version Manager
| logo =
| screenshot =
| caption =
| developer = Wayne E. Seguin, Michal Papis
| latest release version = 1.29.12
| latest release date = {{Start date and age|2021|01|15}}
| programming language = Bash, Ruby {{cite web | url = https://rvm.io/blog/2016/03/rvm-1-27-0 | title = rvm / RubyGems.org | access-date = 2016-05-30}}
| operating system = Unix-like
| license = Apache License 2.0
| website = {{URL|https://rvm.io/}}
}}
Ruby Version Manager, often abbreviated as RVM, is a software platform for Unix-like operating systems designed to manage multiple installations of Ruby on the same device.{{cite book|last=Thomas|first=Dave|title=Programming Ruby 1.9|edition=Version 4.1|publisher=The Pragmatic Programmer|year=2011}}
The entire Ruby environment including the Ruby interpreter, installed RubyGems (gems), and documentation is partitioned. A developer can then switch between the different versions to work on several projects with different version requirements. In addition to MRI, the standard Ruby interpreter, RVM functions as an installer for various other implementations of Ruby. These include JRuby, mruby, MacRuby, IronRuby, Maglev, Rubinius, Ruby Enterprise Edition, Topaz, and GoRuby (an interpreter optimized for code golf). In addition, RVM supports the installation of patched versions of MRI.{{cn|date=December 2024}}
RVM provides features for organization of Ruby gems through "gemsets", collections of gems separated by a namespace and associated Ruby installation. Gemsets can be associated with directories/projects through the use of the RVM-exclusive .rvmrc
file. An alternative to using the .rvmrc
file (and the general purpose although user-specific .jrubyrc
) and its format is use of the .ruby-version
and .ruby-gemset
files, which are compatible with other ruby version managers, such as RBenv and chruby. Additionally, using .rvmrc
requires trusting to prevent execution of unauthorized code, while .ruby-version
does not.{{cite web | url=https://rvm.io/workflow/projects | title=RVM: Ruby Version Manager - Typical RVM Project Workflow }}
References
{{Reflist}}
External links
- {{Official website|http://rvm.io}}
- {{GitHub|wayneeseguin/rvm}}
{{Ruby programming language}}
Category:Ruby (programming language)
{{Unix-stub}}