diff options
| author | Baptiste Fontaine | 2015-01-14 09:03:27 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2015-01-14 12:32:52 +0000 |
| commit | 9756feed22bd8f178b260de2e146c96e02453b01 (patch) | |
| tree | 3332454d0344c3cb347f98621434d6fbf748060a /Library | |
| parent | 266967faa2e91c47bda2d7a79521273aab29ab7a (diff) | |
| download | homebrew-9756feed22bd8f178b260de2e146c96e02453b01.tar.bz2 | |
jsdoc3: devel, test added
Closes #35860.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/jsdoc3.rb | 36 |
1 files changed, 27 insertions, 9 deletions
diff --git a/Library/Formula/jsdoc3.rb b/Library/Formula/jsdoc3.rb index c561365df..0cb3f3446 100644 --- a/Library/Formula/jsdoc3.rb +++ b/Library/Formula/jsdoc3.rb @@ -1,15 +1,33 @@ -require 'formula' - class Jsdoc3 < Formula - homepage 'http://usejsdoc.org/' - head 'https://github.com/jsdoc3/jsdoc.git' - url 'https://github.com/jsdoc3/jsdoc/archive/v3.2.2.tar.gz' - sha1 '69d284a65a9b2b06c6e6454acb30976b41dea7b6' + homepage "http://usejsdoc.org/" + head "https://github.com/jsdoc3/jsdoc.git" + url "https://github.com/jsdoc3/jsdoc/archive/v3.2.2.tar.gz" + sha1 "69d284a65a9b2b06c6e6454acb30976b41dea7b6" + + devel do + url "https://github.com/jsdoc3/jsdoc/archive/v3.3.0-alpha13.tar.gz" + sha1 "7f0d094c8e61bbc0fbbf965209e8fe1d903352d4" + version "3.3.0-alpha13" + end - conflicts_with 'jsdoc-toolkit', :because => 'both install jsdoc' + conflicts_with "jsdoc-toolkit", :because => "both install jsdoc" def install - libexec.install Dir['*'] - bin.install_symlink libexec/'jsdoc' + libexec.install Dir["*"] + bin.install_symlink libexec/"jsdoc" + end + + test do + (testpath/"test.js").write <<-EOS.undent + /** + * Represents a formula. + * @constructor + * @param {string} name - the name of the formula. + * @param {string} version - the version of the formula. + **/ + function Formula(name, version) {} + EOS + + system "#{bin}/jsdoc", "--verbose", "test.js" end end |
