Skip to content

Commit

Permalink
heroku 3.31.2
Browse files Browse the repository at this point in the history
Closes Homebrew#38469.

Signed-off-by: Mike McQuaid <[email protected]>
  • Loading branch information
dickeyxxx authored and MikeMcQuaid committed Apr 9, 2015
1 parent 5142f5d commit 4439024
Showing 1 changed file with 25 additions and 2 deletions.
27 changes: 25 additions & 2 deletions Library/Formula/heroku-toolbelt.rb
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit 4439024

Please sign in to comment.