aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorStefan Schüßler2014-03-07 23:49:36 +0100
committerAdam Vandenberg2014-03-09 12:14:09 -0700
commitb1da51b6b84a57d88a565843e4d16f3da28edc59 (patch)
tree10134e7ead549e3d295d20aac851627c6a09dbae /Library
parenta7fd6229ef73573ada781c412bd2a0ccc051e820 (diff)
downloadhomebrew-b1da51b6b84a57d88a565843e4d16f3da28edc59.tar.bz2
selecta 0.0.3
Closes #27313. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/selecta.rb30
1 files changed, 30 insertions, 0 deletions
diff --git a/Library/Formula/selecta.rb b/Library/Formula/selecta.rb
new file mode 100644
index 000000000..50b7c1ac8
--- /dev/null
+++ b/Library/Formula/selecta.rb
@@ -0,0 +1,30 @@
+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