Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 13 additions & 4 deletions Formula/imgur-screenshot.rb
Original file line number Diff line number Diff line change
@@ -1,18 +1,27 @@
class ImgurScreenshot < Formula
desc "Take screenshot selection, upload to imgur. + more cool things"
homepage "https://github.com/jomo/imgur-screenshot"
url "https://github.com/jomo/imgur-screenshot/archive/v1.7.4.tar.gz"
sha256 "1f0f2d5e201f1fdc1472f201f04430d809bf442ad034c194e70d8921823e990e"
url "https://github.com/jomo/imgur-screenshot/archive/v2.0.0.tar.gz"
sha256 "1581b3d71e9d6c022362c461aa78ea123b60b519996ed068e25a4ccf5a3409f5"
license "MIT"
head "https://github.com/jomo/imgur-screenshot.git"

bottle :unneeded

depends_on "bash"
depends_on "jq"
depends_on "terminal-notifier"

uses_from_macos "curl"

def install
bin.install "imgur-screenshot.sh"
bin.install "imgur-screenshot"
bin.install_symlink "imgur-screenshot" => "imgur-screenshot.sh"
end

test do
system "#{bin}/imgur-screenshot.sh", "--check" # checks deps
# Check deps
system bin/"imgur-screenshot", test_fixtures("test.jpg")
system bin/"imgur-screenshot.sh", test_fixtures("test.png")
end
end