diff options
| author | Mike McQuaid | 2015-04-11 19:07:26 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2015-04-21 09:33:42 +0100 |
| commit | ec25128515e1191cd451a917b2ec9f66489732d9 (patch) | |
| tree | 116dd1c60792430a539cbc34fc78443439f71fd4 /Library/Formula | |
| parent | 2f026d3f485a72ec5e3900095684cfcaeb8d3f2b (diff) | |
| download | homebrew-ec25128515e1191cd451a917b2ec9f66489732d9.tar.bz2 | |
betty: use RubyRequirement.
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/betty.rb | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/Library/Formula/betty.rb b/Library/Formula/betty.rb index 1144e8e09..9758b4a28 100644 --- a/Library/Formula/betty.rb +++ b/Library/Formula/betty.rb @@ -1,25 +1,9 @@ -require "formula" - -class Ruby19Dependency < Requirement - fatal true - default_formula "ruby" - - satisfy do - `ruby --version` =~ /ruby (\d\.\d).\d/ - $1.to_f >= 1.9 - end - - def message - "Betty requires Ruby 1.9 or better." - end -end - class Betty < Formula homepage "https://github.com/pickhardt/betty" url "https://github.com/pickhardt/betty/archive/v0.1.7.tar.gz" sha1 "ec21ec5541289a9902874c7897f8d521044daf27" - depends_on Ruby19Dependency + depends_on :ruby => "1.9" def install libexec.install "lib", "main.rb" => "betty" |
