Skip to content

Commit

Permalink
blockhash 0.3
Browse files Browse the repository at this point in the history
Closes #21080.

Signed-off-by: ilovezfs <ilovezfs@icloud.com>
  • Loading branch information
ilovezfs committed Nov 27, 2017
1 parent 6b3b0d3 commit 8f9d46e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Formula/blockhash.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
class Blockhash < Formula
desc "Perceptual image hash calculation tool"
homepage "https://github.com/commonsmachinery/blockhash"
url "https://github.com/commonsmachinery/blockhash/archive/0.2.1.tar.gz"
sha256 "549e0f52e7a7545bae7eca801c64c79b95cbe9417975718e262fddaf78b00cca"
revision 3
url "https://github.com/commonsmachinery/blockhash/archive/v0.3.tar.gz"
sha256 "a4fbe16dc8d1e9b82de860d97222ce6259495f7832c7dfe3de9e0bb42f85995e"
head "https://github.com/commonsmachinery/blockhash.git"

bottle do
Expand All @@ -30,7 +29,7 @@ def install

test do
resource("testdata").stage testpath
hash = "00007ff07fe07fe07fe67ff07520600077fe601e7f5e000079fd40410001fffe"
hash = "00007ff07ff07fe07fe67ff07560600077fe701e7f5e000079fd40410001ffff"
result = shell_output("#{bin}/blockhash #{testpath}/clipper_ship.jpg")
assert_match hash, result
end
Expand Down

0 comments on commit 8f9d46e

Please sign in to comment.