node-gitlab
Advanced tools
Comparing version 0.0.5 to 0.0.6
0.0.6 / 2013-07-25 | ||
================== | ||
* added user(s) ressource (@Ondrej) | ||
* Create user.js | ||
* fixed test cases | ||
0.0.5 / 2013-05-06 | ||
@@ -3,0 +10,0 @@ ================== |
@@ -20,2 +20,3 @@ /*! | ||
var Issue = require('./issue'); | ||
var User = require('./user'); | ||
@@ -38,2 +39,3 @@ /** | ||
this.issues = new Issue(this); | ||
this.users = new User(this); | ||
} | ||
@@ -64,3 +66,6 @@ | ||
}, function (err, result, res) { | ||
debug('%s %s %j: result: %j, err: %j', method, url, data, result, err); | ||
if (Buffer.isBuffer(result)) { | ||
result = result.toString(); | ||
} | ||
debug('%s %s %j: status: %s, result: %j, err: %j', method, url, data, res.statusCode, result, err); | ||
if (err) { | ||
@@ -70,3 +75,3 @@ if (err.name === 'SyntaxError') { | ||
if (res) { | ||
err.message = res.headers.status; | ||
err.message = res.headers.status || 'Unknow Error ' + res.statusCode; | ||
} | ||
@@ -77,3 +82,3 @@ } else { | ||
err.headers = res && res.headers; | ||
err.data = { resBody: Buffer.isBuffer(result) ? result.toString() : result, requestData: data }; | ||
err.data = { resBody: result, requestData: data }; | ||
err.statusCode = res && res.statusCode; | ||
@@ -100,2 +105,2 @@ err.method = method; | ||
return new Client(options); | ||
}; | ||
}; |
{ | ||
"name": "node-gitlab", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "gitlab", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "make test" | ||
"test": "make test-all", | ||
"blanket": { "pattern": "gitlab/lib" }, | ||
"travis-cov": { "threshold": 98 } | ||
}, | ||
"dependencies": { | ||
"urllib": "0.3.4", | ||
"urllib": ">=0.3.4", | ||
"debug": "0.7.x" | ||
@@ -15,3 +17,6 @@ }, | ||
"should": "*", | ||
"jscover": "*", | ||
"blanket": "*", | ||
"travis-cov": "*", | ||
"coveralls": "*", | ||
"mocha-lcov-reporter": "*", | ||
"mocha": "*" | ||
@@ -18,0 +23,0 @@ }, |
@@ -1,2 +0,4 @@ | ||
gitlab [![Build Status](https://secure.travis-ci.org/fengmk2/gitlab.png)](http://travis-ci.org/fengmk2/gitlab) [![Dependencies](http://david-dm.org/fengmk2/gitlab.png)](http://david-dm.org/fengmk2/gitlab) | ||
gitlab [![Build Status](https://secure.travis-ci.org/fengmk2/gitlab.png)](http://travis-ci.org/fengmk2/gitlab) | ||
[![Dependencies](http://david-dm.org/fengmk2/gitlab.png)](http://david-dm.org/fengmk2/gitlab) | ||
[![Coverage Status](https://coveralls.io/repos/fengmk2/gitlab/badge.png)](https://coveralls.io/r/fengmk2/gitlab) | ||
======= | ||
@@ -9,3 +11,2 @@ | ||
* [Gitlab API document](https://github.com/gitlabhq/gitlabhq/tree/master/doc/api) | ||
* jscoverage: [98%](http://fengmk2.github.com/coverage/gitlab.html) | ||
@@ -86,2 +87,17 @@ ## Install | ||
## Authors | ||
```bash | ||
$ git summary | ||
project : gitlab | ||
repo age : 4 months | ||
active : 8 days | ||
commits : 17 | ||
files : 25 | ||
authors : | ||
15 fengmk2 88.2% | ||
2 Ondrej 11.8% | ||
``` | ||
## License | ||
@@ -110,2 +126,2 @@ | ||
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE | ||
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13627
14
273
125
6
+ Addedcall-bind@1.0.7(transitive)
+ Addeddefine-data-property@1.1.4(transitive)
+ Addeddestroy@1.2.0(transitive)
+ Addedes-define-property@1.0.0(transitive)
+ Addedes-errors@1.3.0(transitive)
+ Addedformstream@1.5.1(transitive)
+ Addedfunction-bind@1.1.2(transitive)
+ Addedget-intrinsic@1.2.4(transitive)
+ Addedgopd@1.0.1(transitive)
+ Addedhas-property-descriptors@1.0.2(transitive)
+ Addedhas-proto@1.0.3(transitive)
+ Addedhas-symbols@1.0.3(transitive)
+ Addedhasown@2.0.2(transitive)
+ Addedmime@2.6.0(transitive)
+ Addedmime-db@1.52.0(transitive)
+ Addedmime-types@2.1.35(transitive)
+ Addednode-hex@1.0.1(transitive)
+ Addedobject-inspect@1.13.3(transitive)
+ Addedpause-stream@0.0.11(transitive)
+ Addedqs@6.13.0(transitive)
+ Addedset-function-length@1.2.2(transitive)
+ Addedside-channel@1.0.6(transitive)
+ Addedthrough@2.3.8(transitive)
+ Addedtype-fest@4.27.0(transitive)
+ Addedundici@6.21.0(transitive)
+ Addedurllib@4.4.0(transitive)
+ Addedylru@2.0.0(transitive)
- Removedbuffer-concat@0.0.1(transitive)
- Removedurllib@0.3.4(transitive)
Updatedurllib@>=0.3.4