Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

update dependecies and use in-memory spec

sequelize JSON serialisation bug is fixed
spec now runs in-memory on sqlite
  • Loading branch information...
commit 46e2938401f323abe5717e78da2f4296a5234df5 1 parent a6bac5d
Danny Gräf authored July 19, 2012
8  Cakefile
... ...
@@ -1,13 +1,11 @@
1  
-fs = require 'fs'
2 1
 {print} = require 'util'
3 2
 {spawn} = require 'child_process'
4 3
 jasmineBinary = './node_modules/jasmine-node/bin/jasmine-node'
5 4
 
6 5
 # ANSI Terminal Colors
7  
-bold = '\033[0;1m'
8  
-green = '\033[0;32m'
9  
-reset = '\033[0m'
10  
-red = '\033[0;31m'
  6
+green = '\x1b[32m'
  7
+reset = '\x1b[0m'
  8
+red = '\x1b[31m'
11 9
 
12 10
 log = (message, color) -> console.log color + message + reset
13 11
 
1  lib/c3store.js
... ...
@@ -1,3 +1,4 @@
  1
+// Generated by CoffeeScript 1.3.3
1 2
 (function() {
2 3
   var C3Store, Sequelize, SessionModel, crudl, _;
3 4
 
18  package.json
... ...
@@ -1,6 +1,6 @@
1 1
 {
2 2
     "name": "c3store"
3  
-  , "version": "0.0.3"
  3
+  , "version": "0.0.4"
4 4
   , "author": "Danny Gräf <github@dagnu.de>"
5 5
 
6 6
   , "keywords": ["session", "store", "SQL"]
@@ -17,19 +17,19 @@
17 17
   }
18 18
 
19 19
   , "dependencies": {
20  
-      "coffee-script": "1.2.x"
21  
-    , "underscore": "1.3.x"
22  
-    , "sequelize": "1.3.x"
23  
-    , "crudl-model": "0.1.x"
  20
+      "coffee-script": "~1.3.3"
  21
+    , "underscore": "~1.3.3"
  22
+    , "sequelize": "~1.4.1"
  23
+    , "crudl-model": "~0.1.1"
24 24
   }
25 25
   , "devDependencies": {
26  
-      "connect": "1.8.x"
27  
-    , "jasmine-node": "1.0.x"
28  
-    , "sqlite3": "2.1.x"
  26
+      "connect": "~2.3.9"
  27
+    , "jasmine-node": "~1.0.26"
  28
+    , "sqlite3": "~2.1.5"
29 29
   }
30 30
 
31 31
   , "engines": {
32  
-      "node": "~0.6.7"
  32
+      "node": "~0.8.2"
33 33
   }
34 34
 
35 35
   , "scripts": {
17  spec/c3store.spec.coffee
@@ -7,11 +7,12 @@ spec = require './store.spec.template'
7 7
 
8 8
 
9 9
 sqlSpec = (db) ->
10  
-#
11  
-  describe 'Sequelize session store implementation', ->
12 10
   #
  11
+  describe 'Sequelize session store implementation', ->
  12
+    #
13 13
     spec (sessions) ->
14  
-      store = new C3Store db, optional: type: Sequelize.STRING
  14
+      store = new C3Store db, optional:
  15
+        type: Sequelize.STRING
15 16
       sync = (done) -> store.SequelizeSession.sync(force: true).success(done)
16 17
       aCheck 'sync model', sync, 50
17 18
 
@@ -21,11 +22,7 @@ sqlSpec = (db) ->
21 22
 
22 23
       store
23 24
 
24  
-describe 'MySQL', -> sqlSpec new Sequelize 'checkfoo', 'root', '', logging: false
25  
-xdescribe 'sqlite3', -> sqlSpec new Sequelize 'session-store', 'sa', 'secret',
26  
-  #logging: false
  25
+xdescribe 'MySQL', -> sqlSpec new Sequelize 'session', 'root', '', logging: false
  26
+describe 'sqlite3', -> sqlSpec new Sequelize 'session', 'sa', 'secret',
  27
+  logging: false
27 28
   dialect: 'sqlite'
28  
-  storage: 'foo.db'
29  
-#  storage: ':memory:'
30  
-# in Database#all('SELECT * FROM `Sessions` WHERE `sid`=\'sid1\' LIMIT 1;', [Function])
31  
-# => SyntaxError: Unexpected token \

0 notes on commit 46e2938

Please sign in to comment.
Something went wrong with that request. Please try again.