8f5949afd6
These formulae allow an rbenv user to use fuzzy version matching when switching Ruby versions. $ rbenv whatis 1.8.7 1.8.7-p374 $ rbenv whatis 2 2.0.0-p247 $ rbenv use 1.8.7 $ rbenv version 1.8.7-p374 (set by RBENV_VERSION environment variable) Closes Homebrew/homebrew#21152. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
14 lines
306 B
Ruby
14 lines
306 B
Ruby
require 'formula'
|
|
|
|
class RbenvUse < Formula
|
|
homepage 'https://github.com/rkh/rbenv-use'
|
|
url 'https://github.com/rkh/rbenv-use/archive/bb3294.tar.gz'
|
|
sha1 'b8396084fa810e7754aea9a3c01ae288420e5932'
|
|
|
|
depends_on 'rbenv'
|
|
depends_on 'rbenv-whatis'
|
|
|
|
def install
|
|
prefix.install Dir['*']
|
|
end
|
|
end
|