From b917ed41305b19f3e3df1b3a46ddb4bff2308c60 Mon Sep 17 00:00:00 2001 From: FX Coudert Date: Sat, 10 Mar 2018 17:58:01 +0100 Subject: [PATCH] cassandra: update resources Closes #25093. Signed-off-by: FX Coudert --- Formula/cassandra.rb | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/Formula/cassandra.rb b/Formula/cassandra.rb index ebb4d9bbe3..175d8150e4 100644 --- a/Formula/cassandra.rb +++ b/Formula/cassandra.rb @@ -3,6 +3,7 @@ class Cassandra < Formula homepage "https://cassandra.apache.org" url "https://www.apache.org/dyn/closer.cgi?path=cassandra/3.11.2/apache-cassandra-3.11.2-bin.tar.gz" sha256 "e922770ad95d5288d42442c3cfa1475938597b38418b7be5c4234a9de388c720" + revision 1 bottle do cellar :any_skip_relocation @@ -16,13 +17,13 @@ class Cassandra < Formula # Only >=Yosemite has new enough setuptools for successful compile of the below deps. resource "setuptools" do - url "https://files.pythonhosted.org/packages/a4/c8/9a7a47f683d54d83f648d37c3e180317f80dc126a304c45dc6663246233a/setuptools-36.5.0.zip" - sha256 "ce2007c1cea3359870b80657d634253a0765b0c7dc5a988d77ba803fc86f2c64" + url "https://files.pythonhosted.org/packages/e0/02/2b14188e06ddf61e5b462e216b15d893e8472fca28b1b0c5d9272ad7e87c/setuptools-38.5.2.zip" + sha256 "8246123e984cadf687163bdcd1bb58eb325e2891b066e1f0224728a41c8d9064" end resource "futures" do - url "https://files.pythonhosted.org/packages/cc/26/b61e3a4eb50653e8a7339d84eeaa46d1e93b92951978873c220ae64d0733/futures-3.1.1.tar.gz" - sha256 "51ecb45f0add83c806c68e4b06106f90db260585b25ef2abfcda0bd95c0132fd" + url "https://files.pythonhosted.org/packages/1f/9e/7b2ff7e965fc654592269f2906ade1c7d705f1bf25b7d469fa153f7d19eb/futures-3.2.0.tar.gz" + sha256 "9ec02aa7d674acb8618afb127e27fde7fc68994c0437ad759fa094a574adb265" end resource "six" do @@ -31,8 +32,8 @@ class Cassandra < Formula end resource "thrift" do - url "https://files.pythonhosted.org/packages/a3/ea/84a41e03f1ab14fb314c8bcf1c451090efa14c5cdfb9797d1079f502b54e/thrift-0.10.0.zip" - sha256 "b7f6c09155321169af03f9fb20dc15a4a0c7481e7c334a5ba8f7f0d864633209" + url "https://files.pythonhosted.org/packages/c6/b4/510617906f8e0c5660e7d96fbc5585113f83ad547a3989b80297ac72a74c/thrift-0.11.0.tar.gz" + sha256 "7d59ac4fdcb2c58037ebd4a9da5f9a49e3e034bf75b3f26d9fe48ba3d8806e6b" end resource "cql" do @@ -41,8 +42,8 @@ class Cassandra < Formula end resource "cassandra-driver" do - url "https://files.pythonhosted.org/packages/5a/96/a5b2458a0483d3cefdf13064d40119754c1552ea34b7f0e8c6e03e66eb0a/cassandra-driver-3.11.0.tar.gz" - sha256 "643bed0fac08ee91630f0f35556bb62c3b4b007c20d4e6e8d349f769ea648150" + url "https://files.pythonhosted.org/packages/2d/77/2e344b58ffe8b11271735c1ee88fa668c897c5b72ed1913067dd86e1a966/cassandra-driver-3.13.0.tar.gz" + sha256 "61b670fb2ba95d51d91fa7b589aae3666df494713f5d1ed78bb5c510778d77f0" end def install @@ -149,7 +150,8 @@ class Cassandra < Formula test do assert_match version.to_s, shell_output("#{bin}/cassandra -v") - # This is enough to error out if env script is broken/insufficient. - system bin/"cqlsh", "--version" + + output = shell_output("#{bin}/cqlsh localhost 2>&1", 1) + assert_match "Connection error", output end end