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 Homebrew/homebrew#30714.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
master
David Larson 2014-07-07 12:20:25 -07:00 committed by Mike McQuaid
parent 5cd68ce9e8
commit 0755c54d6a
1 changed files with 3 additions and 4 deletions

View File

@ -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