diff options
| author | dickeyxxx | 2014-12-12 12:39:22 -0800 |
|---|---|---|
| committer | Mike McQuaid | 2014-12-12 22:23:36 +0000 |
| commit | 2375dd3dd939b4eac9b15997bcd0b49336f52d05 (patch) | |
| tree | 88a4a1b169c9032a249706edcf35364ee7063e12 /Library | |
| parent | 39087ebf600fb5292d14b515d7455e6b656792f7 (diff) | |
| download | homebrew-2375dd3dd939b4eac9b15997bcd0b49336f52d05.tar.bz2 | |
heroku-toolbelt 3.20.0
Also: no longer requires Ruby 1.9.
Closes #34930.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/heroku-toolbelt.rb | 36 |
1 files changed, 2 insertions, 34 deletions
diff --git a/Library/Formula/heroku-toolbelt.rb b/Library/Formula/heroku-toolbelt.rb index 0e32a163d..368686527 100644 --- a/Library/Formula/heroku-toolbelt.rb +++ b/Library/Formula/heroku-toolbelt.rb @@ -1,36 +1,9 @@ require 'formula' -class Ruby19 < Requirement - fatal true - default_formula 'ruby' - - satisfy :build_env => false do - next unless which 'ruby' - version = /\d\.\d/.match `ruby --version 2>&1` - - next unless version - Version.new(version.to_s) >= Version.new("1.9") - end - - def modify_build_environment - ruby = which "ruby" - return unless ruby - - ENV.prepend_path "PATH", ruby.dirname - end - - def message; <<-EOS.undent - The Heroku Toolbelt requires Ruby >= 1.9 - EOS - end -end - class HerokuToolbelt < Formula homepage 'https://toolbelt.heroku.com/other' - url 'http://assets.heroku.com.s3.amazonaws.com/heroku-client/heroku-client-3.15.0.tgz' - sha1 '262f25eeb1d31ea8940acb49fd81b77bd0bdd6d6' - - depends_on Ruby19 + url 'http://assets.heroku.com.s3.amazonaws.com/heroku-client/heroku-client-3.20.0.tgz' + sha1 'e3edb525fc25d4fbafc46768cc06353a5519db88' def install libexec.install Dir["*"] @@ -40,9 +13,4 @@ class HerokuToolbelt < Formula test do system "#{bin}/heroku", "version" end - - def caveats; <<-EOS.undent - heroku-toolbelt requires an installation of Ruby 1.9 or greater. - EOS - end end |
