diff options
| author | Mike McQuaid | 2015-04-11 19:08:20 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2015-04-21 09:33:43 +0100 |
| commit | 18f7e1dca6b14a01a94dcc931385c31bb258acc2 (patch) | |
| tree | 8eed23c105950715e49289dec359661bb9408a6b /Library | |
| parent | d336ff57fbcb31bce5b168bd0594a97d8270330c (diff) | |
| download | homebrew-18f7e1dca6b14a01a94dcc931385c31bb258acc2.tar.bz2 | |
selecta: use RubyRequirement.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/selecta.rb | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/Library/Formula/selecta.rb b/Library/Formula/selecta.rb index 00b146ec0..1c7f96ac2 100644 --- a/Library/Formula/selecta.rb +++ b/Library/Formula/selecta.rb @@ -1,23 +1,9 @@ -class Ruby19Dependency < Requirement - fatal true - - satisfy do - ruby = which("ruby") - `#{ruby} --version` =~ /ruby (\d\.\d).\d/ - $1.to_f >= 1.9 - end - - def message - "Selecta requires Ruby 1.9 or greater." - end -end - class Selecta < Formula homepage "https://github.com/garybernhardt/selecta" url "https://github.com/garybernhardt/selecta/archive/v0.0.6.tar.gz" sha1 "bf8881b2d545847921b1a05d23b88e2037c358e4" - depends_on Ruby19Dependency + depends_on :ruby => "1.9" def install bin.install "selecta" |
