homebrew-core/Formula/selecta.rb
Stefan Schüßler 455499bfdf selecta 0.0.3
Closes Homebrew/homebrew#27313.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2014-03-09 12:14:09 -07:00

30 lines
559 B
Ruby

require "formula"
class Ruby19Dependency < Requirement
fatal true
satisfy do
`ruby --version` =~ /ruby (\d\.\d).\d/
$1.to_f >= 1.9
end
def message
"Selecta requires Ruby 1.9 or better."
end
end
class Selecta < Formula
homepage "https://github.com/garybernhardt/selecta"
url "https://github.com/garybernhardt/selecta/archive/v0.0.3.tar.gz"
sha1 "0530f2145d5eb018ba9cf7108bd78d3e5bb03434"
depends_on Ruby19Dependency
def install
bin.install "selecta"
end
test do
system "#{bin}/selecta", "--version"
end
end