aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorStephen Touset2013-07-11 11:12:20 -0700
committerAdam Vandenberg2013-07-12 09:33:16 -0700
commit313b8f0e256853535f265b5e12830c5ef4ef8f17 (patch)
treeee8efd6f0a948741b82ed493a64617f2eb41b624 /Library
parenta532b2fb5a4bb94d4791d54fdf72739b6890b40d (diff)
downloadhomebrew-313b8f0e256853535f265b5e12830c5ef4ef8f17.tar.bz2
rbenv-use: fuzzy matching plugin for rbenv
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 #21152. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/rbenv-use.rb14
-rw-r--r--Library/Formula/rbenv-whatis.rb13
2 files changed, 27 insertions, 0 deletions
diff --git a/Library/Formula/rbenv-use.rb b/Library/Formula/rbenv-use.rb
new file mode 100644
index 000000000..867423b84
--- /dev/null
+++ b/Library/Formula/rbenv-use.rb
@@ -0,0 +1,14 @@
+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
diff --git a/Library/Formula/rbenv-whatis.rb b/Library/Formula/rbenv-whatis.rb
new file mode 100644
index 000000000..0b8a802ef
--- /dev/null
+++ b/Library/Formula/rbenv-whatis.rb
@@ -0,0 +1,13 @@
+require 'formula'
+
+class RbenvWhatis < Formula
+ homepage 'https://github.com/rkh/rbenv-whatis'
+ url 'https://github.com/rkh/rbenv-whatis/archive/9bf9f2.tar.gz'
+ sha1 'a78eb1ce44974d7080087f96d8b17f1334b9e03c'
+
+ depends_on 'rbenv'
+
+ def install
+ prefix.install Dir['*']
+ end
+end