From d748a08e6130a28dfeb7d428fa90a83b46358b2e Mon Sep 17 00:00:00 2001 From: David Larson Date: Mon, 7 Jul 2014 12:20:25 -0700 Subject: the_platinum_searcher 1.6.5 With v1.6.5, the_platinum_searcher now returns 0 on a positive search result and 1 on a negative search result (i.e. 0=match found, 1=no matches found). Closes #30714. Signed-off-by: Mike McQuaid --- Library/Formula/the_platinum_searcher.rb | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'Library/Formula') diff --git a/Library/Formula/the_platinum_searcher.rb b/Library/Formula/the_platinum_searcher.rb index efd9d5555..e9dfcae07 100644 --- a/Library/Formula/the_platinum_searcher.rb +++ b/Library/Formula/the_platinum_searcher.rb @@ -2,8 +2,8 @@ require "formula" class ThePlatinumSearcher < Formula homepage "https://github.com/monochromegane/the_platinum_searcher" - url "https://github.com/monochromegane/the_platinum_searcher/archive/v1.6.4.tar.gz" - sha1 "362df20068c9ea19dfb3126c267012356dc7958c" + url "https://github.com/monochromegane/the_platinum_searcher/archive/v1.6.5.tar.gz" + sha1 "51658e4825b5f719fb37072da1b5035b5fde5734" head "https://github.com/monochromegane/the_platinum_searcher.git" depends_on "go" => :build @@ -34,7 +34,6 @@ class ThePlatinumSearcher < Formula data = "Hello World!" path.open("wb") { |f| f.write data} - lines = `#{bin}/pt 'Hello World!' #{path}`.strip.split(":") - assert_equal "Hello World!", lines[2] + system "#{bin}/pt", "Hello World!", "#{path}" end end -- cgit v1.2.3