aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authordickeyxxx2015-04-08 17:24:18 -0700
committerMike McQuaid2015-04-09 19:34:34 +0100
commit4439024cdf4dba5fe0a6199a775e5ef67d47ea65 (patch)
treecc10f384b8e7a42a72147b2f204a4c776d3d0dc3 /Library
parent5142f5d222cc3f6b89303f2df78d988eb79b15b7 (diff)
downloadhomebrew-4439024cdf4dba5fe0a6199a775e5ef67d47ea65.tar.bz2
heroku 3.31.2
Closes #38469. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/heroku-toolbelt.rb27
1 files changed, 25 insertions, 2 deletions
diff --git a/Library/Formula/heroku-toolbelt.rb b/Library/Formula/heroku-toolbelt.rb
index 17c5cb46b..16520a69a 100644
--- a/Library/Formula/heroku-toolbelt.rb
+++ b/Library/Formula/heroku-toolbelt.rb
@@ -1,9 +1,32 @@
+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
+
+ env do
+ ENV.prepend_path "PATH", which("ruby").dirname
+ end
+
+ def message; <<-EOS.undent
+ The Heroku Toolbelt needs Ruby >=1.9
+ EOS
+ end
+end
+
class HerokuToolbelt < Formula
homepage "https://toolbelt.heroku.com/other"
- url "https://s3.amazonaws.com/assets.heroku.com/heroku-client/heroku-client-3.30.4.tgz"
- sha256 "51a92e85994c65d016823ad7b8fa74bf30ddeb59afb33751c1f93e8105c80e9e"
+ url "https://s3.amazonaws.com/assets.heroku.com/heroku-client/heroku-client-3.31.2.tgz"
+ sha256 "8e859fc1f95508ddfb4684f752ced4c2876aa94839830619ec659f83d72050fd"
head "https://github.com/heroku/heroku.git"
+ depends_on Ruby19
+
def install
libexec.install Dir["*"]
bin.write_exec_script libexec/"bin/heroku"