2012-08-08 21:51:16 +00:00
|
|
|
class Jsdoc3 < Formula
|
2015-08-01 09:35:45 +00:00
|
|
|
desc "Inline API documentation processor for JavaScript"
|
2015-01-14 08:03:27 +00:00
|
|
|
homepage "http://usejsdoc.org/"
|
|
|
|
url "https://github.com/jsdoc3/jsdoc/archive/v3.2.2.tar.gz"
|
2015-04-01 07:50:35 +00:00
|
|
|
sha256 "c101896d2cf08be636332a5eaaf38fe318ae7f639c37735abd1643b1b973254b"
|
2015-10-22 13:48:35 +00:00
|
|
|
head "https://github.com/jsdoc3/jsdoc.git"
|
2015-01-14 08:03:27 +00:00
|
|
|
|
|
|
|
devel do
|
2015-04-01 07:50:35 +00:00
|
|
|
url "https://github.com/jsdoc3/jsdoc/archive/3.3.0-beta3.tar.gz"
|
|
|
|
sha256 "de32d538a5eb1835fdafbb686cdab7ea80ad64b3651a0b85904766c2f5e94b44"
|
2015-01-14 08:03:27 +00:00
|
|
|
version "3.3.0-alpha13"
|
|
|
|
end
|
2013-11-06 06:07:54 +00:00
|
|
|
|
2015-10-22 13:48:35 +00:00
|
|
|
bottle :unneeded
|
|
|
|
|
2015-01-14 08:03:27 +00:00
|
|
|
conflicts_with "jsdoc-toolkit", :because => "both install jsdoc"
|
2013-09-19 15:43:09 +00:00
|
|
|
|
2012-08-08 21:51:16 +00:00
|
|
|
def install
|
2015-01-14 08:03:27 +00:00
|
|
|
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"
|
2012-08-08 21:51:16 +00:00
|
|
|
end
|
|
|
|
end
|