diff --git a/.gitignore b/.gitignore index 99f755f..7628cc0 100644 --- a/.gitignore +++ b/.gitignore @@ -2,5 +2,6 @@ lib/* dist/* node_modules/* tools/upload-browser-build/config.yml +npm-debug.log *.sublime-project *.sublime-workspace \ No newline at end of file diff --git a/CHANGELOG b/CHANGELOG index 281775c..408a0ae 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,4 +1,4 @@ -0.5.9 (2014-01-22) +0.5.3 (2014-01-22) ------------------ * Add CLI interface diff --git a/README.md b/README.md index ef7573c..0551d59 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ Do not install the parser globally (using the `-g` option), otherwise you won’ ### Browser -Download the [latest browser version of the parser](https://apiary-public.s3.amazonaws.com/blueprint-parser/apiary-blueprint-parser-0.4.4.js). +Download the [latest browser version of the parser](https://apiary-public.s3.amazonaws.com/blueprint-parser/apiary-blueprint-parser-0.5.3.js). Usage ----- diff --git a/VERSION b/VERSION index 8f0916f..be14282 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.5.0 +0.5.3 diff --git a/bin/blueprint-parser b/bin/blueprint-parser index 0ece50e..cf9aea4 100755 --- a/bin/blueprint-parser +++ b/bin/blueprint-parser @@ -1,10 +1,7 @@ #!/usr/bin/env node - var cmd = require('commander'); var fs = require('fs'); - - cmd.version('0.0.1'); cmd.on('--help', function(){ @@ -20,8 +17,6 @@ if (!cmd.args.length) cmd.help(); var parser = require('../lib/apiary-blueprint-parser'); - - process.stdin.setEncoding('utf8'); parsed = fs.readFile(process.argv[2], 'utf8', function (err,string) { @@ -31,6 +26,5 @@ parsed = fs.readFile(process.argv[2], 'utf8', function (err,string) { } catch (e) { parsed = false; } - console.log(output); + console.log(JSON.stringify(output, "", 2)); }); - diff --git a/package.json b/package.json index 800676d..515c296 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "apiary-blueprint-parser", - "version": "0.5.0", + "version": "0.5.3", "description": "Apiary blueprint parser", "homepage": "https://github.com/apiaryio/blueprint-parser", "author": { @@ -15,7 +15,8 @@ "VERSION", "examples/example.apib", "lib/apiary-blueprint-parser.js", - "lib/ast.js" + "lib/ast.js", + "bin/blueprint-parser" ], "main": "lib/apiary-blueprint-parser", "scripts": {