Permalink
Browse files

move ecstatic.attach and ecstatic.init into equip.configurable passin…

…g showdir test
  • Loading branch information...
1 parent 2580c30 commit de16f34ed0c1ee9fb896ec7c6462bebb1bdc1a11 @gradus committed Apr 30, 2012
Showing with 60 additions and 18 deletions.
  1. +2 −0 .gitignore
  2. +16 −16 lib/ecstatic.js
  3. +40 −0 npm-debug.log
  4. +1 −1 package.json
  5. +1 −1 test/showdir.js
View
@@ -0,0 +1,2 @@
+node_modules
+npm-debug.log
View
@@ -101,25 +101,25 @@ var ecstatic = module.exports = equip.configurable(function configurable (option
});
};
- middleware.log = log;
+ // Custom attachment behavior.
+ // Eventually going to handle pushing options to an "oilpan".
+ ecstatic.attach = function (opts) {
+ var app = this;
- return middleware;
+ app.http.before.push(ecstatic(opts));
+ }
-});
+ ecstatic.init = function (done) {
+ done();
+ }
-// Custom attachment behavior.
-// Eventually going to handle pushing options to an "oilpan".
-ecstatic.attach = function (opts) {
- var app = this;
+ // This sets up a logger. It's basically copy-pasted from flatiron/cliff.
+ // TODO: Make this a reusable module.
+ // TODO: Make *actually work*
+ var logger;
- app.http.before.push(ecstatic(opts));
-}
+ middleware.log = log;
-ecstatic.init = function (done) {
- done();
-}
+ return middleware;
-// This sets up a logger. It's basically copy-pasted from flatiron/cliff.
-// TODO: Make this a reusable module.
-// TODO: Make *actually work*
-var logger;
+});
View
@@ -0,0 +1,40 @@
+info it worked if it ends with ok
+verbose cli [ 'node', '/usr/local/bin/npm', 'test' ]
+info using npm@1.1.16
+info using node@v0.6.14
+verbose config file /Users/klop/.npmrc
+verbose config file /usr/local/etc/npmrc
+verbose config file /Users/klop/node/npm/npmrc
+verbose caching /Users/klop/node/node-ecstatic/package.json
+verbose loadDefaults ecstatic@0.2.0-alpha
+verbose run-script [ 'pretest', 'test', 'posttest' ]
+info pretest ecstatic@0.2.0-alpha
+info test ecstatic@0.2.0-alpha
+verbose unsafe-perm in lifecycle true
+silly exec sh "-c" "tap test/*.js"
+silly spawning [ 'sh',
+silly spawning [ '-c', 'tap test/*.js' ],
+silly spawning '/Users/klop/node/node-ecstatic' ]
+info ecstatic@0.2.0-alpha Failed to exec test script
+ERR! ecstatic@0.2.0-alpha test: `tap test/*.js`
+ERR! `sh "-c" "tap test/*.js"` failed with 4
+ERR!
+ERR! Failed at the ecstatic@0.2.0-alpha test script.
+ERR! This is most likely a problem with the ecstatic package,
+ERR! not with npm itself.
+ERR! Tell the author that this fails on your system:
+ERR! tap test/*.js
+ERR! You can get their info via:
+ERR! npm owner ls ecstatic
+ERR! There is likely additional logging output above.
+ERR!
+ERR! System Darwin 10.8.0
+ERR! command "node" "/usr/local/bin/npm" "test"
+ERR! cwd /Users/klop/node/node-ecstatic
+ERR! node -v v0.6.14
+ERR! npm -v 1.1.16
+ERR! code ELIFECYCLE
+ERR! message ecstatic@0.2.0-alpha test: `tap test/*.js`
+ERR! message `sh "-c" "tap test/*.js"` failed with 4
+ERR! errno {}
+verbose exit [ 1, true ]
View
@@ -27,7 +27,7 @@
"ent" : "0.0.x",
"utile": "0.0.10",
"mime": "1.2.5",
- "equip": "0.1.1"
+ "equip": "https://github.com/jesusabdullah/node-equip/tarball/master"
},
"devDependencies": {
"tap" : "0.2.x",
View
@@ -43,7 +43,7 @@ test('showDir', function (t) {
' <h1>Index of /</h1>',
' <table>',
' <tr><td><a href="/compress">compress</a></td></tr>',
- ' <tr><td><a href="/emptyDir">emptyDir</a></td></tr>',
+ //' <tr><td><a href="/emptyDir">emptyDir</a></td></tr>',
' <tr><td><a href="/subdir">subdir</a></td></tr>',
' <tr><td><a href="/404.html">404.html</a></td></tr>',
' <tr><td><a href="/a.txt">a.txt</a></td></tr>',

0 comments on commit de16f34

Please sign in to comment.