Skip to content
Browse files

Update src, deps, and tests for 0.8-0.10

  • Loading branch information...
1 parent a799426 commit 5efdb549483c39107e3e7533a0cc1fe4f8a8afea @rooftopsparrow rooftopsparrow committed Jun 25, 2013
Showing with 17 additions and 17 deletions.
  1. +2 −2 .travis.yml
  2. +3 −3 lib/nosqlite.js
  3. +5 −5 package.json
  4. +2 −2 src/nosqlite.coffee
  5. +5 −5 test/database-test.coffee
View
4 .travis.yml
@@ -1,7 +1,7 @@
language: node_js
node_js:
- - 0.4
- - 0.6
+ - 0.8
+ - 0.10
notifications:
email:
View
6 lib/nosqlite.js
@@ -1,4 +1,4 @@
-// Generated by CoffeeScript 1.3.3
+// Generated by CoffeeScript 1.6.3
(function() {
var fs, nosqlite, path, utile;
@@ -64,10 +64,10 @@
return fs.renameSync(this.file('.' + id), this.file(id));
},
exists: function(cb) {
- return path.exists(this.dir, cb);
+ return fs.exists(this.dir, cb);
},
existsSync: function() {
- return path.existsSync(this.dir);
+ return fs.existsSync(this.dir);
},
create: function(cb) {
return fs.mkdir(this.dir, this.mode, cb);
View
10 package.json
@@ -1,6 +1,6 @@
{
"name": "nosqlite",
- "version": "0.1.1",
+ "version": "0.2.0",
"author": "Pavan Kumar Sunkara <pavan.sss1991@gmail.com>",
"description": "human readable nosql type filesystem json store",
"main": "./lib/nosqlite",
@@ -27,14 +27,14 @@
}
],
"dependencies": {
- "utile": "*"
+ "utile": "0.2.x"
},
"devDependencies": {
- "coffee-script": "1.3.x",
- "vows": "0.6.x"
+ "coffee-script": "1.6.x",
+ "vows": "0.7.x"
},
"engines": {
- "node": ">= 0.6"
+ "node": ">= 0.8"
},
"bugs": {
"url": "https://github.com/pksunkara/nosqlite/issues"
View
4 src/nosqlite.coffee
@@ -58,10 +58,10 @@ nosqlite.Connection::database = (name, mode) ->
# Check if db exists
exists: (cb) ->
- path.exists @dir, cb
+ fs.exists @dir, cb
existsSync: ->
- path.existsSync @dir
+ fs.existsSync @dir
# Create db
create: (cb) ->
View
10 test/database-test.coffee
@@ -38,7 +38,7 @@ vows
db
'should throw error': (db) ->
- assert.throws db.create()
+ assert.throws db.create
.addBatch
'Database "dummy"':
@@ -76,7 +76,7 @@ vows
'should be successful': (ex) ->
assert.isUndefined ex
- assert.isTrue path.existsSync(path.resolve(__dirname, 'fixtures/dummy'))
+ assert.isTrue fs.existsSync(path.resolve(__dirname, 'fixtures/dummy'))
.addBatch
'Database "dummy"':
@@ -89,7 +89,7 @@ vows
'should be successful': (ex) ->
assert.isUndefined ex
- assert.isFalse path.existsSync(path.resolve(__dirname, 'fixtures/dummy'))
+ assert.isFalse fs.existsSync(path.resolve(__dirname, 'fixtures/dummy'))
.addBatch
'Database "dummy"':
@@ -102,7 +102,7 @@ vows
'should be successful': (db) ->
assert.isUndefined db.createSync()
- assert.isTrue path.existsSync(path.resolve(__dirname, 'fixtures/dummy'))
+ assert.isTrue fs.existsSync(path.resolve(__dirname, 'fixtures/dummy'))
.addBatch
'Database "dummy"':
@@ -115,7 +115,7 @@ vows
'should be successful': (db) ->
assert.isUndefined db.destroySync()
- assert.isFalse path.existsSync(path.resolve(__dirname, 'fixtures/dummy'))
+ assert.isFalse fs.existsSync(path.resolve(__dirname, 'fixtures/dummy'))
.addBatch
'Database "test"':

0 comments on commit 5efdb54

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