aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorMike McQuaid2015-04-11 19:07:39 +0100
committerMike McQuaid2015-04-21 09:33:42 +0100
commitbd6736040508f10846971d83826b8a4c30412225 (patch)
tree7737197ea71b7b513390e9fe6168cc161462c961 /Library/Formula
parentec25128515e1191cd451a917b2ec9f66489732d9 (diff)
downloadhomebrew-bd6736040508f10846971d83826b8a4c30412225.tar.bz2
heroku-toolbelt: use RubyRequirement.
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/heroku-toolbelt.rb23
1 files changed, 1 insertions, 22 deletions
diff --git a/Library/Formula/heroku-toolbelt.rb b/Library/Formula/heroku-toolbelt.rb
index 16520a69a..a6e6c91d5 100644
--- a/Library/Formula/heroku-toolbelt.rb
+++ b/Library/Formula/heroku-toolbelt.rb
@@ -1,31 +1,10 @@
-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.31.2.tgz"
sha256 "8e859fc1f95508ddfb4684f752ced4c2876aa94839830619ec659f83d72050fd"
head "https://github.com/heroku/heroku.git"
- depends_on Ruby19
+ depends_on :ruby => "1.9"
def install
libexec.install Dir["*"]