Skip to content

Commit

Permalink
Fixed documentation link.
Browse files Browse the repository at this point in the history
man zombie
  • Loading branch information
assaf committed Dec 22, 2010
1 parent c59ef32 commit 650947c
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 42 deletions.
44 changes: 23 additions & 21 deletions CHANGELOG
@@ -1,45 +1,47 @@
Version 0.6.3 2010-12-21

Fixed documentation link.
Fixed documentation link.

man zombie

Version 0.6.2 2010-12-21

First NPM release.

Started working on documentation site.

Added cake setup to get you up and running with development dependencies.
Added cake setup to get you up and running with development dependencies.

Remove Vows as runtime dependency. Use whichever framework you like. Moved
sizzle.js from dep to vendor. Moved scripts used during tests to
spec/.scripts.
Remove Vows as runtime dependency. Use whichever framework you like. Moved
sizzle.js from dep to vendor. Moved scripts used during tests to
spec/.scripts.

178 tests.
1.8 sec to complete.
178 tests.
1.8 sec to complete.


Version 0.6.1 2010-12-20

Changed browser.cookies from getter to function that accepts cookie domain
(host and port) and path, and returns wrapper to access specific cookie
context.
Changed browser.cookies from getter to function that accepts cookie domain
(host and port) and path, and returns wrapper to access specific cookie
context.

Fixed: browser now creates new window for each new document.
Fixed: browser now creates new window for each new document.

Added window.JSON.
Added window.JSON.

178 tests.
1.8 sec to complete.
178 tests.
1.8 sec to complete.


Version 0.6.0 2010-12-20
First release that I could use to test an existing project.
First release that I could use to test an existing project.

Supports for navigation, filling and submitting forms, and selecting document
content using Sizzle. Browser features include evaluating JavaScript (jQuery,
Sammy.js), timers, XHR, cookies, local and session storage.
Supports for navigation, filling and submitting forms, and selecting document
content using Sizzle. Browser features include evaluating JavaScript (jQuery,
Sammy.js), timers, XHR, cookies, local and session storage.

Still very rough around the edges.
Still very rough around the edges.

175 tests.
1.8 sec to complete.
175 tests.
1.8 sec to complete.
35 changes: 17 additions & 18 deletions Cakefile
Expand Up @@ -14,7 +14,7 @@ log = (message, color, explanation) ->
console.log color + message + reset + ' ' + (explanation or '')

task "clean", "Remove temporary files and such", ->
exec "rm -rf html clean"
exec "rm -rf html clean man1"


# Setup
Expand All @@ -38,9 +38,8 @@ task "setup", "Install development dependencies", ->
# -------------

# Markdown to HTML.
toHTML = (source, callback)->
toHTML = (source, title, callback)->
target = "html/#{path.basename(source, ".md").toLowerCase()}.html"
title = path.basename(source, ".md").replace("_", " ")
fs.mkdir "html", 0777, ->
fs.readFile "doc/_layout.html", "utf8", (err, layout)->
return callback(err) if err
Expand All @@ -49,42 +48,42 @@ toHTML = (source, callback)->
log "Creating #{target} ...", green
exec "ronn --html #{source}", (err, stdout, stderr)->
return callback(err) if err
title = stdout.match(/<h1>(.*)<\/h1>/)[1]
html = layout.replace("{{body}}", stdout).replace(/{{title}}/g, title).replace(/<h1>.*<\/h1>/, "")
title ||= stdout.match(/<h1>(.*)<\/h1>/)[1]
body = stdout.replace(/<h1>.*<\/h1>/, "")
html = layout.replace("{{body}}", body).replace(/{{title}}/g, title)
fs.writeFile target, html, "utf8", (err)->
callback err, target

documentPages = (callback)->
toHTML "README.md", (err)->
toHTML "README.md", "Zombie.js", (err)->
return callback(err) if err
exec "mv html/readme.html html/index.html", (err)->
return callback(err) if err
toHTML "TODO.md", (err)->
toHTML "TODO.md", null, (err)->
return callback(err) if err
exec "cp -f doc/*.css html/", (err)->
callback err
exec "cp -f doc/*.css html/", callback

documentSource = (callback)->
log "Documenting source files ...", green
exec "docco lib/**/*.coffee", (err)->
return callback(err) if err
log "Copying to html/source ...", green
exec "mkdir -p html && cp -rf docs/ html/source && rm -rf docs", (err)->
callback err
exec "mkdir -p html && cp -rf docs/ html/source && rm -rf docs", callback

generateMan = (callback)->
log "Generating man files ...", green
exec "ronn --man README.md", (err, stdout, stderr)->
log stdout, green
log stderr, red
callback err
log "Generating man file ...", green
fs.mkdir "man1", 0777, ->
exec "ronn --roff README.md", (err, stdout, stderr)->
return callback(err) if err
fs.writeFile "man1/zombie.1", stdout, "utf8", callback

generateDocs = (callback)->
log "Generating documentation ...", green
documentPages (err)->
return callback(err) if err
documentSource (err)->
callback err
return callback(err) if err
documentMan callback
task "doc:pages", -> documentPages (err)-> throw err if err
task "doc:source", -> documentSource (err)-> throw err if err
task "doc:man", -> generateMan (err)-> throw err if err
Expand Down Expand Up @@ -124,7 +123,7 @@ task "publish", "Publish new version (Git, NPM, site)", ->
exec "git push --tags origin master"

log "Publishing to NPM ...", green
exec "rm -rf clean && git checkout-index -a -f --prefix clean/", (err)->
exec "rm -rf clean && git checkout-index -a -f --prefix clean/ && cp -rf man1 clean/", (err)->
throw err if err
exec "npm publish clean", (err)->
throw err if err
Expand Down
7 changes: 5 additions & 2 deletions README.md
@@ -1,5 +1,8 @@
Zombie.js
=========
zombie.js(1) -- Superfast headless full stack testing framework using Node.js
==========================================================================

The Bite
--------

If you're going to write an insanely fast, headless test tool, how can you not
call it Zombie? Zombie it is.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -14,8 +14,8 @@
"directories": {
"doc": "./doc",
"lib": "./lib",
"man": "./man1"
},
"man": "./man1/zombie.1",
"scripts": {
"build": "cake",
"test": "vows"
Expand Down

0 comments on commit 650947c

Please sign in to comment.