Comparar commits

..

18 Commits

Autor SHA1 Mensagem Data
visionmedia d0a8bb550e Release 0.7.2 2010-03-16 08:08:17 -07:00
visionmedia f96f1423e1 Fixed GIT submodules (HAH!) 2010-03-16 08:06:26 -07:00
visionmedia 7bf17f2f61 Removed old support dir 2010-03-16 08:03:57 -07:00
visionmedia 670b6cfc15 Merge branch 'remove-kiwi' 2010-03-16 08:03:33 -07:00
visionmedia b6d2c8479c Release 0.7.1 2010-03-16 08:03:06 -07:00
visionmedia 5aaa114271 Docs 2010-03-16 08:01:51 -07:00
visionmedia e99c2791bb Docs 2010-03-16 07:58:06 -07:00
visionmedia 656d7754cd Express now using submodules again until a PM is adopted 2010-03-16 07:54:20 -07:00
visionmedia 4aaf10fbfc Moved support 2010-03-16 07:39:56 -07:00
visionmedia 85e77b77aa Added submodules 2010-03-16 07:02:49 -07:00
visionmedia f23ef09247 Chat example using millisecond conversions from ext 2010-03-15 16:00:39 -07:00
visionmedia 440d956438 Refactored Session#startReaper() with ext millisecond conversions 2010-03-15 15:59:37 -07:00
visionmedia acd2852cf3 ext >= 0.2.4 2010-03-15 15:58:02 -07:00
visionmedia 4246f43bdf ext >= 0.2.3 2010-03-15 09:57:38 -07:00
visionmedia 7d33769cd2 Revert "Removed sass / haml "dependencies""
This reverts commit 31fdba80d4.
2010-03-15 09:43:29 -07:00
visionmedia 31fdba80d4 Removed sass / haml "dependencies" 2010-03-15 09:42:15 -07:00
visionmedia 77f8e460d0 Better example app 2010-03-15 09:31:11 -07:00
visionmedia 51e51db9f7 Docs 2010-03-15 09:16:13 -07:00
12 arquivos alterados com 58 adições e 25 exclusões
+12
Ver Arquivo
@@ -0,0 +1,12 @@
[submodule "lib/support/oo"]
path = lib/support/oo
url = git://github.com/visionmedia/js-oo.git
[submodule "lib/support/ext"]
path = lib/support/ext
url = git://github.com/visionmedia/ext.js.git
[submodule "lib/support/sass"]
path = lib/support/sass
url = git://github.com/visionmedia/sass.js.git
[submodule "lib/support/haml"]
path = lib/support/haml
url = git://github.com/creationix/haml-js.git
+11
Ver Arquivo
@@ -1,4 +1,15 @@
0.7.2 / 2010-03-16
==================
* Fixed GIT submodules (HAH!)
0.7.1 / 2010-03-16
==================
* Changed; Express now using submodules again until a PM is adopted
* Changed; chat example using millisecond conversions from ext
0.7.0 / 2010-03-15
==================
+20 -6
Ver Arquivo
@@ -28,6 +28,12 @@
and run:
$ kiwi -v install express
or
Install via git clone:
$ git://github.com/visionmedia/express.git && cd express && git submodule update --init
## Performance
@@ -40,12 +46,20 @@
Below is a tiny Express application. View the [Wiki](http://wiki.github.com/visionmedia/express/) for detailed information.
var kiwi = require('kiwi'),
express = kiwi.require('express')
get('/hello-world', function(){
this.contentType('html')
return '<h1>Hello World</h1>'
require.paths.unshift('express/lib')
require('express')
get('/user', function(){
this.redirect('/user/' + this.currentUser.id)
})
get('/user/:id', function(id){
this.render('user.haml.html', {
locals: {
user: this.currentUser,
usersOnline: Session.store.length()
}
})
})
run()
+2 -4
Ver Arquivo
@@ -8,15 +8,13 @@ var messages = [],
kiwi = require('kiwi')
configure(function(){
var fiveMinutes = 300000,
oneMinute = 60000
kiwi.seed('haml')
kiwi.seed('sass')
use(MethodOverride)
use(ContentLength)
use(Cookie)
use(Cache, { lifetime: fiveMinutes, reapInterval: oneMinute })
use(Session, { lifetime: fiveMinutes, reapInterval: oneMinute })
use(Cache, { lifetime: (5).minutes, reapInterval: (1).minute })
use(Session, { lifetime: (15).minutes, reapInterval: (1).minute })
use(Logger)
set('root', __dirname)
})
+5 -3
Ver Arquivo
@@ -1,5 +1,7 @@
var kiwi = require('kiwi')
kiwi.require('oo', '>= 1.2.0')
kiwi.require('ext', '>= 0.2.2')
require.paths.unshift(__dirname + '/support/ext/lib')
require('ext')
require('support/oo/lib/oo')
require('support/haml/lib/haml')
require('support/sass/lib/sass')
require('express/core')
+1 -1
Ver Arquivo
@@ -314,7 +314,7 @@ Server = Class({
// --- Express
Express = {
version: '0.7.0',
version: '0.7.2',
config: [],
routes: [],
plugins: [],
+2 -5
Ver Arquivo
@@ -168,12 +168,9 @@ exports.Session = Plugin.extend({
*/
startReaper: function() {
var self = this,
oneDay = 86400000,
oneHour = 3600000
setInterval(function(){
self.store.reap(self.lifetime || oneDay)
}, self.reapInterval || self.reapEvery || oneHour)
this.store.reap(this.lifetime || (1).day)
}, this.reapInterval || this.reapEvery || (1).hour, this)
}
},
+1
Submodule lib/support/ext added at 967039b7d6
+1
Submodule lib/support/haml added at 389c33c6e4
Submódulo
+1
Submodule lib/support/oo added at 1f94bd8979
+1
Submodule lib/support/sass added at 2a648b3766
+1 -6
Ver Arquivo
@@ -1,9 +1,4 @@
---
name: Express
description: Sinatra inspired web development framework
version: 0.7.0
dependencies:
- ext >= 0.2.2
- oo >= 1.2.0
- sass >= 0.3.0
- haml >= 0.1.2
version: 0.7.2