Permalink
Browse files

update express, connect and tests

  • Loading branch information...
1 parent 0a40bfe commit 6194ca7d22f736e45711b7f16963edd6ae34e2ae @Caged committed Dec 23, 2012
View
@@ -81,7 +81,7 @@
<body>
<header>
<h1><a href="http://github.com/caged/octo">Octo.js</a></h1>
- <h2>&mdash; JavaScript for GitHub API v3</h2>
+ <h2>&mdash; Easy Access to GitHub API v3</h2>
<p>Check your browsers console for output</p>
</header>
<section id="body">
View
@@ -21,10 +21,10 @@
"docco": "0.3.0",
"mocha": "1.7.4",
"should": "1.2.1",
- "connect": "2.1.2",
+ "connect": "2.7.1",
"coffee-script": "*",
"highlight": "0.2.2",
- "express": "2.5.9"
+ "express": "3.0.5"
},
"main": "index",
"scripts": {
@@ -1,6 +1,6 @@
octo = require '../../octo'
express = require 'express'
-app = express.createServer()
+app = express()
app.use(express.basicAuth('Clay', 'getdatmoney'))
app.get '/', (req, res) -> res.end 'sheeeit'
@@ -1,7 +1,7 @@
octo = require '../../octo'
express = require 'express'
should = require 'should'
-app = express.createServer()
+app = express()
app.listen(21202)
api = octo.api().host('http://localhost:21202')
@@ -1,6 +1,6 @@
octo = require '../../octo'
express = require 'express'
-app = express.createServer()
+app = express()
app.listen(21219)
api = octo.api().host('http://localhost:21219')
@@ -1,6 +1,6 @@
octo = require '../../octo'
express = require 'express'
-app = express.createServer()
+app = express()
app.listen(21217)
api = octo.api().host('http://localhost:21217')
@@ -1,6 +1,6 @@
octo = require '../../octo'
express = require 'express'
-app = express.createServer()
+app = express()
app.get '/', (req, res) ->
if req.header('authorization') == 'token farmerandthedale'

0 comments on commit 6194ca7

Please sign in to comment.