Update dependencies to latest versions

This commit is contained in:
Timothy Warren 2016-03-14 16:07:39 -04:00
parent 8f0a392505
commit 2b80fcfc62
4 changed files with 19 additions and 19 deletions

View File

@ -12,7 +12,6 @@ node_js:
before_script: before_script:
- npm install -g gulp codeclimate-test-reporter - npm install -g gulp codeclimate-test-reporter
- npm install -g codeclimate-test-reporter
- psql -c 'DROP DATABASE IF EXISTS test;' -U postgres - psql -c 'DROP DATABASE IF EXISTS test;' -U postgres
- psql -c 'create database test;' -U postgres - psql -c 'create database test;' -U postgres
- mysql -e 'create database IF NOT EXISTS test;' - mysql -e 'create database IF NOT EXISTS test;'

View File

@ -1,6 +1,6 @@
{ {
"name": "ci-node-query", "name": "ci-node-query",
"version": "3.2.0", "version": "4.0.0-pre",
"description": "A query builder for node based on the one in CodeIgniter", "description": "A query builder for node based on the one in CodeIgniter",
"author": "Timothy J Warren <tim@timshomepage.net>", "author": "Timothy J Warren <tim@timshomepage.net>",
"engines": { "engines": {
@ -22,14 +22,12 @@
"keywords": [ "keywords": [
"codeigniter", "codeigniter",
"mysql2", "mysql2",
"mysql",
"query builder", "query builder",
"pg", "pg",
"postgres", "postgres",
"sqlite3",
"sqlite", "sqlite",
"dblite", "dblite"
"firebird",
"node-firebird"
], ],
"bugs": { "bugs": {
"url": "https://git.timshomepage.net/timw4mail/node-query/issues" "url": "https://git.timshomepage.net/timw4mail/node-query/issues"
@ -38,29 +36,28 @@
"dependencies": { "dependencies": {
"dblite": "~0.7.6", "dblite": "~0.7.6",
"getargs": "~0.0.8", "getargs": "~0.0.8",
"mysql": "~2.10.2", "glob": "^7.0.3",
"mysql2": "~0.15.8", "mysql2": "^1.0.0-rc.1",
"node-firebird": "~0.7.2", "pg": "^4.5.1",
"pg": "~4.4.3",
"require-reload": "~0.2.2", "require-reload": "~0.2.2",
"xregexp": "^3.0.0" "xregexp": "^3.0.0"
}, },
"devDependencies": { "devDependencies": {
"chai": "~3.4.1", "chai": "^3.5.0",
"chai-as-promised": "^5.2.0", "chai-as-promised": "^5.2.0",
"documentation": "", "documentation": "",
"eslint": "~1.10.3", "eslint": "^2.4.0",
"glob": "~6.0.4", "glob": "~6.0.4",
"gulp": "~3.9.0", "gulp": "~3.9.0",
"gulp-documentation": "~2.1.0", "gulp-documentation": "^2.2.0",
"gulp-eslint": "~1.1.1", "gulp-eslint": "^2.0.0",
"gulp-istanbul": "^0.10.3", "gulp-istanbul": "^0.10.3",
"gulp-jscs": "^3.0.2", "gulp-jscs": "^3.0.2",
"gulp-mocha": "^2.2.0", "gulp-mocha": "^2.2.0",
"gulp-pipe": "^1.0.4", "gulp-pipe": "^1.0.4",
"gulp-sloc": "~1.0.4", "gulp-sloc": "~1.0.4",
"istanbul": "~0.4.2", "istanbul": "~0.4.2",
"mocha": "" "mocha": "^2.4.5"
}, },
"license": "MIT", "license": "MIT",
"scripts": { "scripts": {

View File

@ -3,6 +3,7 @@
// Load the test base // Load the test base
const reload = require('require-reload')(require); const reload = require('require-reload')(require);
reload.emptyCache(); reload.emptyCache();
const fs = require('fs');
const testBase = reload('../base'); const testBase = reload('../base');
const expect = testBase.expect; const expect = testBase.expect;
const promiseTestRunner = testBase.promiseTestRunner; const promiseTestRunner = testBase.promiseTestRunner;
@ -20,10 +21,13 @@ let qb = nodeQuery.getQuery();
suite('Dblite adapter tests -', () => { suite('Dblite adapter tests -', () => {
suiteSetup(done => { suiteSetup(done => {
// Set up the sqlite database // Set up the sqlite database
let sql = `CREATE TABLE IF NOT EXISTS "create_test" ("id" INTEGER PRIMARY KEY, "key" TEXT, "val" TEXT); fs.readFile(`${__dirname}/../sql/sqlite.sql`, 'utf8', (err, data) => {
CREATE TABLE IF NOT EXISTS "create_join" ("id" INTEGER PRIMARY KEY, "key" TEXT, "val" TEXT);`; if (err) {
return done(err);
}
qb.query(sql, () => done()); qb.query(data, () => done());
});
}); });
/*--------------------------------------------------------------------------- /*---------------------------------------------------------------------------

View File

@ -1,3 +1,3 @@
-- sample data to test SQLite -- sample data to test SQLite
CREATE TABLE IF NOT EXISTS "create_test" ("id" INTEGER PRIMARY KEY, "key" TEXT, "val" TEXT); CREATE TABLE IF NOT EXISTS "create_test" ("id" INTEGER PRIMARY KEY, "key" TEXT, "val" TEXT);
CREATE TABLE IF NOT EXISTS "create_join" ("id" INTEGER PRIMARY KEY, "key" TEXT, "val" TEXT); CREATE TABLE IF NOT EXISTS "create_join" ("id" INTEGER PRIMARY KEY, "key" TEXT, "val" TEXT);