From 2375dd3dd939b4eac9b15997bcd0b49336f52d05 Mon Sep 17 00:00:00 2001 From: dickeyxxx Date: Fri, 12 Dec 2014 12:39:22 -0800 Subject: heroku-toolbelt 3.20.0 Also: no longer requires Ruby 1.9. Closes #34930. Signed-off-by: Mike McQuaid --- Library/Formula/heroku-toolbelt.rb | 36 ++---------------------------------- 1 file changed, 2 insertions(+), 34 deletions(-) (limited to 'Library') 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 -- cgit v1.2.3