Comparing version 0.2.6 to 0.2.8
@@ -44,2 +44,3 @@ // Generated by CoffeeScript 1.6.3 | ||
this.debug("ApiBase::init()"); | ||
this.groups = require('./Models/Groups')(this.client); | ||
this.projects = require('./Models/Projects')(this.client); | ||
@@ -46,0 +47,0 @@ return this.users = require('./Models/Users')(this.client); |
@@ -60,3 +60,8 @@ // Generated by CoffeeScript 1.6.3 | ||
this.debug("Projects::show()"); | ||
return this.get("projects/" + (parseInt(projectId)), function(data) { | ||
if (projectId.indexOf("/") !== -1) { | ||
projectId = encodeURIComponent(projectId); | ||
} else { | ||
projectId = parseInt(projectId); | ||
} | ||
return this.get("projects/" + projectId, function(data) { | ||
if (fn) { | ||
@@ -63,0 +68,0 @@ return fn(data); |
{ | ||
"name": "gitlab", | ||
"version": "0.2.6", | ||
"version": "0.2.8", | ||
"description": "gitlab api nodejs library", | ||
@@ -31,4 +31,10 @@ "main": "index.js", | ||
"author": "Manfred Touron <m@42.am>", | ||
"contributors": [ | ||
{ | ||
"name": "Dave Irvine", | ||
"url": "https://github.com/dave-irvine" | ||
} | ||
], | ||
"license": "MIT", | ||
"readmeFilename": "README.md" | ||
} |
@@ -18,2 +18,7 @@ node-gitlab | ||
CONTRIBUTORS | ||
------------ | ||
- [Dave Irvine](https://github.com/dave-irvine) | ||
LICENSE | ||
@@ -20,0 +25,0 @@ ------- |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
54381
42
1104
27