diff options
| author | Wes Morgan | 2013-01-26 14:10:53 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2013-01-26 17:15:16 -0800 |
| commit | aa4d97130b9da615f0da6ac9af73fbfb153e3964 (patch) | |
| tree | b843e487940523fd28ce02f30a3e7a62cdae4ada /Library | |
| parent | 048c45dfc3de8e19f87a17574b69501af71c5288 (diff) | |
| download | homebrew-aa4d97130b9da615f0da6ac9af73fbfb153e3964.tar.bz2 | |
rbenv-gem-rehash plugin 1.0.0
Closes #17329.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/rbenv-gem-rehash.rb | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Library/Formula/rbenv-gem-rehash.rb b/Library/Formula/rbenv-gem-rehash.rb new file mode 100644 index 000000000..69d9b029f --- /dev/null +++ b/Library/Formula/rbenv-gem-rehash.rb @@ -0,0 +1,25 @@ +require 'formula' + +class RbenvGemRehash < Formula + homepage 'https://github.com/sstephenson/rbenv-gem-rehash' + url 'https://github.com/sstephenson/rbenv-gem-rehash/archive/v1.0.0.tar.gz' + sha1 '40962ef5cda77ff46c0d0a3f262076b58088dd57' + + depends_on 'rbenv' + + def install + prefix.install Dir['*'] + + ln_sf opt_prefix, "#{HOMEBREW_PREFIX}/var/lib/rbenv/plugins/#{name}" + end + + def caveats; <<-EOS.undent + If the GEM_PATH environment variable is undefined, rbenv-gem-rehash must + first execute the gem env gempath command to retrieve RubyGems' default path + so that it can can append to the path rather than override it. This can take + a while--from a few hundred milliseconds on MRI to several seconds on + JRuby--so the default path for the current Ruby version is cached to the + filesystem the first time it is retrieved. + EOS + end +end |
