2015-02-14 22:37:13 +00:00
|
|
|
class Curlish < Formula
|
2015-08-01 09:35:45 +00:00
|
|
|
desc "Curl wrapper that adds support for OAuth 2.0"
|
2015-02-14 22:37:13 +00:00
|
|
|
homepage "https://pythonhosted.org/curlish/"
|
|
|
|
url "https://github.com/fireteam/curlish/archive/1.22.tar.gz"
|
2015-06-14 22:03:08 +00:00
|
|
|
sha256 "6fdd406e6614b03b16be15b7b51568a7a041d2fb631be4e8caa223c0c3a28f00"
|
|
|
|
|
|
|
|
head "https://github.com/fireteam/curlish.git"
|
2015-02-14 22:37:13 +00:00
|
|
|
|
2015-06-14 22:11:45 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
|
|
|
sha256 "6cd32ca680c05b00761eb422a067316d4bb172c171f3e4015da66ed319cec3d2" => :yosemite
|
|
|
|
sha256 "f5a8b12596157c853a1f9179e4e47e9bc1259ab75e84efe61343e99bec6f62ab" => :mavericks
|
|
|
|
sha256 "b01c4e78526de36f3b4e0fcac7ec049e2a4dd9366c8d32eae5692a3e626f99a4" => :mountain_lion
|
|
|
|
end
|
|
|
|
|
2015-02-14 22:37:13 +00:00
|
|
|
# curlish needs argparse (2.7+)
|
|
|
|
depends_on :python if MacOS.version <= :snow_leopard
|
|
|
|
|
|
|
|
def install
|
|
|
|
bin.install "curlish.py" => "curlish"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
system "#{bin}/curlish", "http://brew.sh"
|
|
|
|
end
|
|
|
|
end
|