diff options
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/rhino.rb | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/Library/Formula/rhino.rb b/Library/Formula/rhino.rb index 306136278..05ccb53fa 100644 --- a/Library/Formula/rhino.rb +++ b/Library/Formula/rhino.rb @@ -1,13 +1,17 @@ require 'formula' class Rhino < Formula - homepage 'http://www.mozilla.org/rhino/' - url 'https://github.com/downloads/mozilla/rhino/rhino1_7R4.zip' - sha1 '483e097cb575c724c745edd80c9512f073bd510a' - version '1.7R4' + homepage 'https://www.mozilla.org/rhino/' + url 'https://github.com/mozilla/rhino/releases/download/Rhino1_7R5_RELEASE/rhino1_7R5.zip' + sha1 '39ada4cca8c7f651a68eda3f307ff9b68808f0ce' + version '1.7R5' def install libexec.install 'js.jar' bin.write_jar_script libexec/'js.jar', 'rhino' end + + test do + system "#{bin}/rhino", '-e', 'print(42);' + end end |
