This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Fix audit issues and code cleanup

Closes #2808.

Signed-off-by: Andy Blyler <andy@blyler.cc>
  • Loading branch information...
Jan Viljanen authored and ablyler committed Jan 23, 2016
1 parent 7f67915 commit b4e27ef336a6584f35072745a53bcb355a81a032
Showing with 8 additions and 4 deletions.
  1. +8 −4 Formula/adminer.rb
View
@@ -1,8 +1,7 @@
class Adminer < Formula
desc "Adminer is a full-featured database management tool written in PHP."
desc "Full-featured database management tool written in PHP."
homepage "http://www.adminer.org/"
version "4.2.3"
url "https://www.adminer.org/static/download/" + version + "/adminer-" + version + ".php"
url "https://www.adminer.org/static/download/4.2.3/adminer-4.2.3.php"
sha256 "40e72c917aa4f5f19d39b7322322989fd3b752131821b9f13459ca765796957c"
bottle do
@@ -13,7 +12,7 @@ class Adminer < Formula
end
def install
(share+"adminer").install "adminer-"+version+".php" => "index.php"
pkgshare.install "adminer-"+version+".php" => "index.php"
end
def caveats; <<-EOS.undent
@@ -40,4 +39,9 @@ def caveats; <<-EOS.undent
Then, open http://localhost/adminer
EOS
end
test do
system "php", "-l", "#{pkgshare}/index.php"
end
end

0 comments on commit b4e27ef

Please sign in to comment.