From 36e7a43c1484aeb1e77bc90ca5e3896cb25fa412 Mon Sep 17 00:00:00 2001 From: Taylor Fausak Date: Mon, 23 Jan 2012 20:12:33 -0600 Subject: [PATCH 1/2] Fix typo in about.md ("easist" -> "easiest"). --- about.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/about.md b/about.md index 731657a..e95fe2e 100644 --- a/about.md +++ b/about.md @@ -4,7 +4,7 @@ Sharing code is a good thing, and it should be _really_ easy to do it. A lot of times, I want to show you something I'm seeing - and that's where we use pastebins. -Haste is the prettiest, easist to use pastebin ever made. +Haste is the prettiest, easiest to use pastebin ever made. ## Basic Usage From 8b7ac341e79e8724bc2f89d32f9be61bb58d176d Mon Sep 17 00:00:00 2001 From: John Crepezzi Date: Tue, 24 Jan 2012 00:01:38 -0500 Subject: [PATCH 2/2] FileDocumentStore fix Closes #20 --- lib/document_stores/file.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/document_stores/file.js b/lib/document_stores/file.js index d301db4..7fd5995 100644 --- a/lib/document_stores/file.js +++ b/lib/document_stores/file.js @@ -25,7 +25,7 @@ FileDocumentStore.prototype.set = function(key, data, callback, skipExpire) { try { var _this = this; fs.mkdir(this.basePath, '700', function() { - var fn = _this.basePath + '/' + _this.md5(key); + var fn = _this.basePath + '/' + FileDocumentStore.md5(key); fs.writeFile(fn, data, 'utf8', function(err) { if (err) { callback(false); @@ -46,7 +46,7 @@ FileDocumentStore.prototype.set = function(key, data, callback, skipExpire) { // Get data from a file from key FileDocumentStore.prototype.get = function(key, callback, skipExpire) { var _this = this; - var fn = this.basePath + '/' + this.md5(key); + var fn = this.basePath + '/' + FileDocumentStore.md5(key); fs.readFile(fn, 'utf8', function(err, data) { if (err) { callback(false);