aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorViktor Szakáts2015-03-07 14:53:17 +0100
committerMike McQuaid2015-03-07 22:31:41 +0000
commit06c8a9945c6ab5b3cbb02579ec06f80d341ba1ab (patch)
tree9a103906788a183d0e5e4ef418a37fad7b83bdb1
parent336017cdc9f99ee3649bef48248cadbcb03d13cf (diff)
downloadhomebrew-06c8a9945c6ab5b3cbb02579ec06f80d341ba1ab.tar.bz2
passenger: use https, modernize, sha256
Closes #37482. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
-rw-r--r--Library/Formula/passenger.rb18
1 files changed, 8 insertions, 10 deletions
diff --git a/Library/Formula/passenger.rb b/Library/Formula/passenger.rb
index a0e0b8784..b6874434b 100644
--- a/Library/Formula/passenger.rb
+++ b/Library/Formula/passenger.rb
@@ -1,10 +1,8 @@
-require 'formula'
-
class Passenger < Formula
- homepage 'https://www.phusionpassenger.com/'
- url 'http://s3.amazonaws.com/phusion-passenger/releases/passenger-5.0.2.tar.gz'
- sha1 '4ed2c7f25b0bffe5a1c1ad43c4780a78d5038a09'
- head 'https://github.com/phusion/passenger.git'
+ homepage "https://www.phusionpassenger.com/"
+ url "https://s3.amazonaws.com/phusion-passenger/releases/passenger-5.0.2.tar.gz"
+ sha256 "93aa200fdc47597c0dcbe32ed6c55af0751114d2c268e4d30ff7f3d7afdbebe8"
+ head "https://github.com/phusion/passenger.git"
bottle do
sha256 "d61660ced7939883b714b34e25cbc559a5850fe904fcd4b06cc9a9c461ba8977" => :yosemite
@@ -12,11 +10,11 @@ class Passenger < Formula
sha256 "27bd9c1058d42d4eac80fdb2080e1b865fdf9b41a80f688c5199ecba0df7eeca" => :mountain_lion
end
- depends_on 'pcre'
+ depends_on "pcre"
depends_on "openssl"
depends_on :macos => :lion
- option 'without-apache2-module', 'Disable Apache2 module'
+ option "without-apache2-module", "Disable Apache2 module"
def install
rake "apache2" if build.with? "apache2-module"
@@ -50,7 +48,7 @@ class Passenger < Formula
system "/usr/bin/ruby", "./dev/install_scripts_bootstrap_code.rb",
"--nginx-module-config", libexec/"bin", libexec/"ext/nginx/config"
- mv libexec/'man', share
+ mv libexec/"man", share
end
def caveats
@@ -73,7 +71,7 @@ class Passenger < Formula
test do
ruby_libdir = `#{HOMEBREW_PREFIX}/bin/passenger-config --ruby-libdir`.strip
if ruby_libdir != (libexec/"lib").to_s
- raise "Invalid installation"
+ fail "Invalid installation"
end
end
end