From 3e5576889af492f3ef76a51cc874a66c4c2c8ab6 Mon Sep 17 00:00:00 2001 From: Igor Kapkov Date: Fri, 30 Nov 2018 10:43:44 +1100 Subject: [PATCH] pgweb 0.10.0 Closes #34617. Signed-off-by: FX Coudert --- Formula/pgweb.rb | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Formula/pgweb.rb b/Formula/pgweb.rb index b1a12ca1c8..9458becc8f 100644 --- a/Formula/pgweb.rb +++ b/Formula/pgweb.rb @@ -1,8 +1,8 @@ class Pgweb < Formula desc "Web-based PostgreSQL database browser" homepage "https://sosedoff.github.io/pgweb/" - url "https://github.com/sosedoff/pgweb/archive/v0.9.12.tar.gz" - sha256 "4c625bad8312dacf9bc9d64d40c2dea1e840175db9c60667a641c62289f9f174" + url "https://github.com/sosedoff/pgweb/archive/v0.10.0.tar.gz" + sha256 "5783f3f368556226018f1388a1e971075104bfdd2286aedf5a0ca257dbdf38ff" bottle do cellar :any_skip_relocation @@ -38,10 +38,12 @@ class Pgweb < Formula begin pid = fork do - exec bin/"pgweb", "--listen=#{port}", "--skip-open" + exec bin/"pgweb", "--listen=#{port}", + "--skip-open", + "--sessions" end sleep 2 - assert_match "pgweb", shell_output("curl http://localhost:#{port}") + assert_match "\"version\":\"#{version}\"", shell_output("curl http://localhost:#{port}/api/info") ensure Process.kill("TERM", pid) end