aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorDavid Larson2014-07-07 12:20:25 -0700
committerMike McQuaid2014-07-07 13:03:44 -0700
commitd748a08e6130a28dfeb7d428fa90a83b46358b2e (patch)
tree51a8125ecfcbdff8162af1260496225bb89ea32a /Library
parent3e1c8c7f5f3b3eeb57b88e6315a67153f3dde0a7 (diff)
downloadhomebrew-d748a08e6130a28dfeb7d428fa90a83b46358b2e.tar.bz2
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 <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/the_platinum_searcher.rb7
1 files changed, 3 insertions, 4 deletions
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