Comparing version 1.0.2 to 1.0.3
@@ -0,8 +1,7 @@ | ||
// Generated by CoffeeScript 1.3.3 | ||
(function() { | ||
var Bang, fs, pad, path; | ||
var Bang, fs, pad; | ||
fs = require("fs"); | ||
path = require("path"); | ||
module.exports = Bang = (function() { | ||
@@ -17,3 +16,3 @@ | ||
Bang.prototype.loadData = function() { | ||
return this.data = path.existsSync(this.dataPath) ? JSON.parse(fs.readFileSync(this.dataPath)) : {}; | ||
return this.data = fs.existsSync(this.dataPath) ? JSON.parse(fs.readFileSync(this.dataPath)) : {}; | ||
}; | ||
@@ -44,3 +43,5 @@ | ||
for (key in this.data) { | ||
if (key.length > amount) amount = key.length; | ||
if (key.length > amount) { | ||
amount = key.length; | ||
} | ||
} | ||
@@ -47,0 +48,0 @@ for (key in this.data) { |
@@ -0,4 +1,5 @@ | ||
// Generated by CoffeeScript 1.3.3 | ||
(function() { | ||
var Bang, CLI, Command, exec, package; | ||
var __slice = Array.prototype.slice; | ||
var Bang, CLI, Command, exec, packageInfo, | ||
__slice = [].slice; | ||
@@ -19,3 +20,3 @@ if (process.versions.node < "0.6") { | ||
package = require("../package.json"); | ||
packageInfo = require("../package.json"); | ||
@@ -27,3 +28,3 @@ module.exports = CLI = (function() { | ||
this.program = new Command; | ||
this.program.version(package.version, "-v, --version").usage("[options] [key] [value]").option("-d, --delete", "delete the specified key").option("-h, --help", "get help").parse(args); | ||
this.program.version(packageInfo.version, "-v, --version").usage("[options] [key] [value]").option("-d, --delete", "delete the specified key").option("-h, --help", "get help").parse(args); | ||
} | ||
@@ -30,0 +31,0 @@ |
@@ -5,3 +5,3 @@ { | ||
"description": "Text snippets on the command line.", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"homepage": "https://github.com/jimmycuadra/bang", | ||
@@ -24,4 +24,6 @@ "repository": { | ||
"jasmine-node": "~1.0.26", | ||
"nodewatch": "~0.1.0" | ||
"nodewatch": "~0.1.0", | ||
"coffee-script": "~1.3.3", | ||
"docco": "~0.3.0" | ||
} | ||
} |
5714
121
4