Permalink
Browse files

latest modules and node 0.7 :O

  • Loading branch information...
1 parent f0aff8e commit 3bcc98385f734e8826d0ccaa42926a83945acaa8 Visnu Pitiyanuvath committed Jun 21, 2012
Showing with 301 additions and 72 deletions.
  1. +4 −7 config/app.js
  2. +1 −1 config/env.js
  3. +2 −2 controllers/websocket.coffee
  4. +2 −2 models/invite.coffee
  5. +2 −2 models/team.coffee
  6. +235 −0 npm-shrinkwrap.json
  7. +24 −27 package.json
  8. +31 −31 views/layout.jade
View
@@ -17,13 +17,11 @@ app.paths = {
};
// error handling
-var Hoptoad = require('hoptoad-notifier').Hoptoad;
-Hoptoad.key = 'b76b10945d476da44a0eac6bfe1aeabd';
-Hoptoad.environment = env.node_env;
+var airbrake = require('airbrake').createClient('b76b10945d476da44a0eac6bfe1aeabd');
process.on('uncaughtException', function(e) {
util.debug(e.stack.red);
if (env.node_env === 'production')
- Hoptoad.notify(e);
+ airbrake.notify(e);
});
// utilities & hacks
@@ -144,7 +142,7 @@ app.configure(function() {
// hacky solution for post commit hooks not to check csrf
// app.use(commits(app));
- app.use(express.csrf());
+ //app.use(express.csrf());
app.use(function(req, res, next) { if (req.body) delete req.body._csrf; next(); });
app.use(express.logger());
app.use(auth.middleware());
@@ -157,9 +155,8 @@ app.configure(function() {
e = Error(e);
if (env.node_env === 'production')
- Hoptoad.notify(e);
+ airbrake.notify(e);
- util.debug(e.stack);
res.render2('errors/500', { error: e });
});
View
@@ -1,6 +1,6 @@
var env = module.exports = {
node_env: process.env.NODE_ENV || 'development',
- port: parseInt(process.env.PORT) || 8000,
+ port: parseInt(process.env.PORT) || 8002,
mongo_url: process.env.MONGOHQ_URL || 'mongodb://localhost/nko_development'
};
@@ -1,7 +1,7 @@
util = require 'util'
app = require '../config/app'
-dashboard = require './dashboard'
-dashboard app
+#dashboard = require './dashboard'
+#dashboard app
app.ws?.sockets.on 'connection', (client) ->
client.on 'message', (data) ->
View
@@ -1,5 +1,5 @@
mongoose = require 'mongoose'
-rbytes = require 'rbytes'
+crypto = require 'crypto'
util = require 'util'
env = require '../config/env'
postageapp = require('postageapp')(env.secrets.postageapp)
@@ -12,7 +12,7 @@ InviteSchema = module.exports = new mongoose.Schema
default: no
code:
type: String
- default: -> rbytes.randomBytes(12).toString('base64')
+ default: -> crypto.randomBytes(12).toString('base64')
InviteSchema.method 'send', (force) ->
if not @sent or force
View
@@ -1,6 +1,6 @@
_ = require 'underscore'
mongoose = require 'mongoose'
-rbytes = require 'rbytes'
+crypto = require 'crypto'
querystring = require 'querystring'
request = require 'request'
@@ -36,7 +36,7 @@ TeamSchema = module.exports = new mongoose.Schema
lastDeploy: {}
code:
type: String
- default: -> rbytes.randomBytes(12).toString('base64')
+ default: -> crypto.randomBytes(12).toString('base64')
linode: {}
search: String
scores:
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -1,7 +1,7 @@
{
"name": "nko-website",
"description": "node.js knockout: 48-hour node.js hackathon",
- "version": "2011.6.26",
+ "version": "2012.6.21",
"homepage": "http://nodeknockout.com",
"repository": {
"type": "git",
@@ -10,40 +10,37 @@
"author": "NKO Team <all@nodeknockout.com>",
"main": "./server.js",
"scripts": {
- "start": "./node_modules/.bin/nodemon --debug"
+ "start": "./node_modules/.bin/nodemon"
},
"directories": {
"lib": "."
},
"engines": {
- "node": "~0.4.10"
+ "node": "~0.7.11"
},
"dependencies": {
- "coffee-script": "1.1.2",
- "colors": "0.5.0",
- "connect-assetmanager": "0.0.21",
- "connect-redis": "1.0.7",
- "discount": "0.2.0",
- "express": "2.4.4",
- "jade": "0.11.0",
- "hoptoad-notifier": "0.1.3",
- "mongoose": "1.8.1",
- "mongoose-auth": "0.0.11",
- "mongoose-types": "1.0.3",
- "postageapp": "0.0.2",
- "rbytes": "0.0.2",
- "relative-date": "1.1.0",
- "request": "2.1.1",
- "socket.io": "0.8.2",
- "stylus": "0.14.0",
- "uglify-js": "1.0.6",
- "underscore": "1.1.7",
- "irc": "0.2.0",
- "twitter-node": "0.0.2",
- "redis": "0.6.7"
+ "airbrake": "*",
+ "coffee-script": "*",
+ "colors": "*",
+ "connect-assetmanager": "*",
+ "connect-redis": "*",
+ "discount": "*",
+ "express": "*",
+ "jade": "*",
+ "mongoose": "*",
+ "mongoose-auth": "*",
+ "mongoose-types": "*",
+ "postageapp": "*",
+ "relative-date": "*",
+ "request": "*",
+ "socket.io": "*",
+ "stylus": "*",
+ "uglify-js": "*",
+ "underscore": "*",
+ "irc": "*",
+ "redis": "*"
},
"devDependencies": {
- "nodemon": "0.6.20",
- "node-inspector": "0.1.8"
+ "nodemon": "*"
}
}
Oops, something went wrong.

0 comments on commit 3bcc983

Please sign in to comment.