Skip to content

Commit

Permalink
update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
dgf committed Oct 23, 2013
1 parent 46e2938 commit 166f2ec
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 22 deletions.
2 changes: 1 addition & 1 deletion Cakefile
Expand Up @@ -17,7 +17,7 @@ call = (name, options, callback) ->

build = (callback) -> call 'coffee', ['-c', '-o', 'lib', 'src'], callback

spec = (callback) -> call jasmineBinary, ['spec', '--coffee'], callback
spec = (callback) -> call jasmineBinary, ['spec', '--verbose', '--coffee'], callback

logSuccess = (status) -> log ":)", green if status is 0

Expand Down
19 changes: 10 additions & 9 deletions package.json
@@ -1,6 +1,6 @@
{
"name": "c3store"
, "version": "0.0.4"
, "version": "0.1.0"
, "author": "Danny Gräf <github@dagnu.de>"

, "keywords": ["session", "store", "SQL"]
Expand All @@ -17,19 +17,20 @@
}

, "dependencies": {
"coffee-script": "~1.3.3"
, "underscore": "~1.3.3"
, "sequelize": "~1.4.1"
, "crudl-model": "~0.1.1"
"coffee-script": "1.6.x"
, "underscore": "1.5.x"
, "sequelize": "1.5.x"
, "crudl-model": "0.1.*"
}
, "devDependencies": {
"connect": "~2.3.9"
, "jasmine-node": "~1.0.26"
, "sqlite3": "~2.1.5"
"ajsh": "0.1.x"
, "connect": "2.10.x"
, "jasmine-node": "1.11.x"
, "sqlite3": "2.1.x"
}

, "engines": {
"node": "~0.8.2"
"node": ">=0.8.2"
}

, "scripts": {
Expand Down
14 changes: 7 additions & 7 deletions spec/c3store.spec.coffee
@@ -1,24 +1,24 @@
connect = require('connect')
Sequelize = require 'sequelize'

aCheck = require './checker'
{aCheck} = require 'ajsh'
C3Store = require('../src/c3store') connect
spec = require './store.spec.template'


sqlSpec = (db) ->
#
describe 'Sequelize session store implementation', ->
#
spec (sessions) ->
store = new C3Store db, optional:
type: Sequelize.STRING
sync = (done) -> store.SequelizeSession.sync(force: true).success(done)
aCheck 'sync model', sync, 50
it 'syncs the model and session data', ->
sync = (done) -> store.SequelizeSession.sync(force: true).success done
aCheck 'sync model', sync, 50

for own sid of sessions
do (sid) -> aCheck 'save session', (done) ->
store.set sid, sessions[sid], done
for own sid of sessions
do (sid) -> aCheck 'save session', (done) ->
store.set sid, sessions[sid], done

store

Expand Down
4 changes: 0 additions & 4 deletions spec/checker.coffee

This file was deleted.

2 changes: 1 addition & 1 deletion spec/store.spec.template.coffee
@@ -1,6 +1,6 @@
# connect middleware session store interface specification
_ = require 'underscore'
aCheck = require './checker'
{aCheck} = require 'ajsh'

# attention: stateful test spec, beware of right order
module.exports = (createStore) ->
Expand Down

0 comments on commit 166f2ec

Please sign in to comment.