Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug fixes #63

Merged
merged 3 commits into from
Feb 9, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/activityManager.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
anvil.js - an extensible build system
version: 0.9.1
version: 0.9.2
author: Alex Robson <[email protected]> (http://sharplearningcurve.com)
copyright: 2011 - 2012
license: Dual licensed
Expand Down
5 changes: 4 additions & 1 deletion lib/anvil.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
anvil.js - an extensible build system
version: 0.9.1
version: 0.9.2
author: Alex Robson <[email protected]> (http://sharplearningcurve.com)
copyright: 2011 - 2012
license: Dual licensed
Expand Down Expand Up @@ -104,6 +104,9 @@ var anvilFactory = function( _, scheduler, fs, Monologue, bus ) {
if( this.commander.host || this.config.host ) {
this.config.host = true;
try {
if( !this.httpPaths[ "/" ] ) {
this.httpPaths[ "/" ] = this.config.output;
}
this.http.init();
} catch ( err ) {
console.log( err.stack );
Expand Down
2 changes: 1 addition & 1 deletion lib/api.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
anvil.js - an extensible build system
version: 0.9.1
version: 0.9.2
author: Alex Robson <[email protected]> (http://sharplearningcurve.com)
copyright: 2011 - 2012
license: Dual licensed
Expand Down
2 changes: 1 addition & 1 deletion lib/bus.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
anvil.js - an extensible build system
version: 0.9.1
version: 0.9.2
author: Alex Robson <[email protected]> (http://sharplearningcurve.com)
copyright: 2011 - 2012
license: Dual licensed
Expand Down
2 changes: 1 addition & 1 deletion lib/cli.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
anvil.js - an extensible build system
version: 0.9.1
version: 0.9.2
author: Alex Robson <[email protected]> (http://sharplearningcurve.com)
copyright: 2011 - 2012
license: Dual licensed
Expand Down
2 changes: 1 addition & 1 deletion lib/command.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
anvil.js - an extensible build system
version: 0.9.1
version: 0.9.2
author: Alex Robson <[email protected]> (http://sharplearningcurve.com)
copyright: 2011 - 2012
license: Dual licensed
Expand Down
4 changes: 2 additions & 2 deletions lib/config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
anvil.js - an extensible build system
version: 0.9.1
version: 0.9.2
author: Alex Robson <[email protected]> (http://sharplearningcurve.com)
copyright: 2011 - 2012
license: Dual licensed
Expand Down Expand Up @@ -62,7 +62,7 @@ var configFactory = function( _, commander, path, anvil ) {
};

Config.prototype.createCommand = function() {
commander.version("0.9.1", "-v, --version" );
commander.version("0.9.2", "-v, --version" );
if( this.args[ 2 ] && this.args[ 2 ].match( /^([-]v$|[-]{2}version)$/ ) ) {
commander.parse( this.args );
} else {
Expand Down
2 changes: 1 addition & 1 deletion lib/consoleLogger.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
anvil.js - an extensible build system
version: 0.9.1
version: 0.9.2
author: Alex Robson <[email protected]> (http://sharplearningcurve.com)
copyright: 2011 - 2012
license: Dual licensed
Expand Down
4 changes: 2 additions & 2 deletions lib/extensionContainer.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
anvil.js - an extensible build system
version: 0.9.1
version: 0.9.2
author: Alex Robson <[email protected]> (http://sharplearningcurve.com)
copyright: 2011 - 2012
license: Dual licensed
Expand All @@ -15,7 +15,7 @@ var extensionContainerFactory = function( _, extManager, anvil ) {
this.commandOptions = [
[ "-b, --build [build file]", "Use a custom build file", "./build.json" ],
[ "-q, --quiet", "Only print completion and error messages" ],
[ "-h, --host", "Activate anvil's HTTP and process hosting" ],
[ "--host", "Activate anvil's HTTP and process hosting" ],
[ "--browser", "opens tab in your default browser" ],
[ "--verbose", "Include debug and warning messages in log" ],
[ "--write [build file]", "Create a new build file based on default config" ]
Expand Down
2 changes: 1 addition & 1 deletion lib/extensionManager.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
anvil.js - an extensible build system
version: 0.9.1
version: 0.9.2
author: Alex Robson <[email protected]> (http://sharplearningcurve.com)
copyright: 2011 - 2012
license: Dual licensed
Expand Down
2 changes: 1 addition & 1 deletion lib/fileCrawler.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
anvil.js - an extensible build system
version: 0.9.1
version: 0.9.2
author: Alex Robson <[email protected]> (http://sharplearningcurve.com)
copyright: 2011 - 2012
license: Dual licensed
Expand Down
2 changes: 1 addition & 1 deletion lib/fileSystem.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
anvil.js - an extensible build system
version: 0.9.1
version: 0.9.2
author: Alex Robson <[email protected]> (http://sharplearningcurve.com)
copyright: 2011 - 2012
license: Dual licensed
Expand Down
2 changes: 1 addition & 1 deletion lib/fs.mock.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
anvil.js - an extensible build system
version: 0.9.1
version: 0.9.2
author: Alex Robson <[email protected]> (http://sharplearningcurve.com)
copyright: 2011 - 2012
license: Dual licensed
Expand Down
2 changes: 1 addition & 1 deletion lib/host.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
anvil.js - an extensible build system
version: 0.9.1
version: 0.9.2
author: Alex Robson <[email protected]> (http://sharplearningcurve.com)
copyright: 2011 - 2012
license: Dual licensed
Expand Down
2 changes: 1 addition & 1 deletion lib/log.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
anvil.js - an extensible build system
version: 0.9.1
version: 0.9.2
author: Alex Robson <[email protected]> (http://sharplearningcurve.com)
copyright: 2011 - 2012
license: Dual licensed
Expand Down
2 changes: 1 addition & 1 deletion lib/plugin.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
anvil.js - an extensible build system
version: 0.9.1
version: 0.9.2
author: Alex Robson <[email protected]> (http://sharplearningcurve.com)
copyright: 2011 - 2012
license: Dual licensed
Expand Down
2 changes: 1 addition & 1 deletion lib/pluginHarness.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
anvil.js - an extensible build system
version: 0.9.1
version: 0.9.2
author: Alex Robson <[email protected]> (http://sharplearningcurve.com)
copyright: 2011 - 2012
license: Dual licensed
Expand Down
2 changes: 1 addition & 1 deletion lib/processHost.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
anvil.js - an extensible build system
version: 0.9.1
version: 0.9.2
author: Alex Robson <[email protected]> (http://sharplearningcurve.com)
copyright: 2011 - 2012
license: Dual licensed
Expand Down
2 changes: 1 addition & 1 deletion lib/scaffold.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
anvil.js - an extensible build system
version: 0.9.1
version: 0.9.2
author: Alex Robson <[email protected]> (http://sharplearningcurve.com)
copyright: 2011 - 2012
license: Dual licensed
Expand Down
2 changes: 1 addition & 1 deletion lib/scheduler.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
anvil.js - an extensible build system
version: 0.9.1
version: 0.9.2
author: Alex Robson <[email protected]> (http://sharplearningcurve.com)
copyright: 2011 - 2012
license: Dual licensed
Expand Down
2 changes: 1 addition & 1 deletion lib/task.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
anvil.js - an extensible build system
version: 0.9.1
version: 0.9.2
author: Alex Robson <[email protected]> (http://sharplearningcurve.com)
copyright: 2011 - 2012
license: Dual licensed
Expand Down
2 changes: 1 addition & 1 deletion lib/utility.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
anvil.js - an extensible build system
version: 0.9.1
version: 0.9.2
author: Alex Robson <[email protected]> (http://sharplearningcurve.com)
copyright: 2011 - 2012
license: Dual licensed
Expand Down
2 changes: 1 addition & 1 deletion lib/widget.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
anvil.js - an extensible build system
version: 0.9.1
version: 0.9.2
author: Alex Robson <[email protected]> (http://sharplearningcurve.com)
copyright: 2011 - 2012
license: Dual licensed
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"author": "Alex Robson <[email protected]> (http://sharplearningcurve.com)",
"name": "anvil.js",
"description": "an extensible build system",
"version": "0.9.1",
"version": "0.9.2",
"repository": {
"type": "git",
"url": "git://github.com/appendto/anvil.js.git"
Expand Down
3 changes: 3 additions & 0 deletions src/anvil.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@ var anvilFactory = function( _, scheduler, fs, Monologue, bus ) {
if( this.commander.host || this.config.host ) {
this.config.host = true;
try {
if( !this.httpPaths[ "/" ] ) {
this.httpPaths[ "/" ] = this.config.output;
}
this.http.init();
} catch ( err ) {
console.log( err.stack );
Expand Down
2 changes: 1 addition & 1 deletion src/extensionContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ var extensionContainerFactory = function( _, extManager, anvil ) {
this.commandOptions = [
[ "-b, --build [build file]", "Use a custom build file", "./build.json" ],
[ "-q, --quiet", "Only print completion and error messages" ],
[ "-h, --host", "Activate anvil's HTTP and process hosting" ],
[ "--host", "Activate anvil's HTTP and process hosting" ],
[ "--browser", "opens tab in your default browser" ],
[ "--verbose", "Include debug and warning messages in log" ],
[ "--write [build file]", "Create a new build file based on default config" ]
Expand Down