Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixing some dependencies, adding a license, and wrapping up npm package

  • Loading branch information...
commit 5ecf361446d69341753eb0b80d791c2bf80cb4bc 1 parent 20a3a57
@malkomalko malkomalko authored
View
19 LICENSE
@@ -0,0 +1,19 @@
+Copyright (c) 2011 Didit
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
View
11 Makefile
@@ -0,0 +1,11 @@
+SHELL := /bin/bash
+
+node-command := xargs -n 1 -I file expresso file
+
+test: test-unit test-integration
+
+test-unit:
+ @find test/unit -name "*_test.js" | $(node-command)
+
+test-integration:
+ @find test/integration -name "*_test.js" | $(node-command)
View
2  lib/fast_legs/base.js
@@ -1,5 +1,5 @@
var Statements = require("./statements")
- , async = require("../../support/async");
+ , async = require("async@0.1.7");
function Base(client) {
this.client = client;
View
2  lib/fast_legs/client.js
@@ -1,4 +1,4 @@
-var pg = require(__dirname + "/../../support/node-postgres/lib")
+var pg = require("pg@0.2.7")
, EventEmitter = require('events').EventEmitter;
function Client(connParams) {
View
3  lib/fast_legs/index.js
@@ -1,6 +1,7 @@
exports.version = '0.0.1';
-var Base = require('./base')
+var _ = global._ = require('underscore')
+ , Base = require('./base')
, Client = require('./client');
var FastLegS = function() {
View
27 package.json
@@ -2,20 +2,19 @@
"name": "FastLegS",
"version": "0.0.1",
"description": "PostgreSQL ORM on top of node-postgres",
+ "tags" : ["orm", "pg", "postgres"],
+ "author": "Didit Tech <development@didit.com>",
"homepage": "https://github.com/didit-tech/FastLegS",
- "repository" : {
- "type" : "git",
- "url" : "git://github.com/didit-tech/FastLegS.git"
+ "dependencies": {
+ "pg": "= 0.2.7",
+ "async": "= 0.1.7",
+ "underscore": "= 1.1.4"
},
- "author": "Rob Malko <rmalko@didit.com>",
- "main": "./index",
- "directories": {
- "lib": "./lib"
- },
- "scripts": {
- "test": "make test"
- },
- "engines": {
- "node": ">= 0.2.2"
- }
+ "main": "index",
+ "scripts": { "test": "make test" },
+ "engines": { "node": ">= 0.2.2" },
+ "licenses" : [{
+ "type" : "MIT"
+ , "url" : "http://github.com/didit-tech/FastLegS/raw/master/LICENSE"
+ }]
}
View
10 test/integration/integration_test.js
@@ -1,9 +1,8 @@
-var helper = require('../test_helper.js');
+var helper = require('../test_helper.js')
+ , logging = false;
module.exports = {
'integrates': function() {
- var logging = false;
-
var connParams = {
user: 'basic_user'
, password: ''
@@ -220,11 +219,10 @@ module.exports = {
},
function(err, result) {
if (logging) {
- if (err) {
+ if (err)
console.log(err);
- } else {
+ else
console.log(result);
- }
}
FastLegS.client.disconnect();
});
View
4 test/test_helper.js
@@ -2,5 +2,5 @@ require.paths.unshift(__dirname + '/../..', __dirname + '/../support');
var assert = global.assert = require('assert')
, FastLegS = global.FastLegS = require('FastLegS')
- , _ = global._ = require('underscore')
- , async = global.async = require('async');
+ , _ = global._ = require('underscore@1.1.4')
+ , async = global.async = require('async@0.1.7');
Please sign in to comment.
Something went wrong with that request. Please try again.