Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

* Compatibility with Node 0.6

  • Loading branch information...
commit be131ac5b107b8316dd00f8f0336a62fed281366 1 parent 0c353eb
@joehewitt authored
View
8 lib/Blog.js
@@ -12,7 +12,7 @@ var markdom = require('markdom');
var watch = require('watch');
var bcrypt = require('bcrypt');
var datetime = require('datetime');
-var cacheware = require('express-cache');
+var cacheware = require('express-store');
var abind = require('dandy/errors').abind;
var ibind = require('dandy/errors').ibind;
var NerveAPI = require('./NerveAPI').NerveAPI;
@@ -180,7 +180,7 @@ subclass(Blog, events.EventEmitter, {
},
monitor: function(contentPath, cb) {
- watch.createMonitor(contentPath, {interval: 1000}, _.bind(function(monitor) {
+ watch.createMonitor(contentPath, {interval: 100}, _.bind(function(monitor) {
monitor.on("created", _.bind(function(f, stat) {
D&&D('Created', f);
this.invalidate();
@@ -374,7 +374,7 @@ subclass(Blog, events.EventEmitter, {
async.waterfall([
function(next) {
- glob.glob(contentPattern, next);
+ glob(contentPattern, next);
},
function(matches, next) {
paths = matches;
@@ -688,7 +688,7 @@ subclass(Blog, events.EventEmitter, {
var directoryMap = {};
var contentPaths = [];
- glob.glob(this.contentPattern, 0, abind(function(err, matches) {
+ glob(this.contentPattern, 0, abind(function(err, matches) {
async.map(matches, fs.lstat, abind(function(err, stats) {
_.each(stats, ibind(function(stat, i) {
if (stat.isDirectory() && !directoryMap[matches[i]]) {
View
2  lib/NerveTransformer.js
@@ -12,7 +12,7 @@ var markdom = require('markdom'),
var reMetadata = /^((.|\n)*?)\s*\((([\.@][A-Za-z0-9\.\/_-]+\s*)+)\)\s*$/;
var reFigure = /@[A-Za-z0-9\.\/_-]+/;
-var reStyle = /(\.[A-Za-z0-9_-]+)+/;
+var reStyle = /^(\.[A-Za-z0-9_-]+)+/;
// *************************************************************************************************
View
2  lib/syndicate.js
@@ -1,7 +1,7 @@
var _ = require('underscore');
var dandy = require('dandy/errors');
-var cacheware = require('express-cache');
+var cacheware = require('express-store');
// *************************************************************************************************
View
4 package.json
@@ -20,9 +20,9 @@
"dandy": "",
"datetime": "",
"diskcache": "",
- "express-cache": "",
+ "express-store": "",
"flickr-reflection": "",
- "glob": "2.0.7",
+ "glob": "",
"imagemagick": "",
"jsdom": "",
"markdom": "",
Please sign in to comment.
Something went wrong with that request. Please try again.