aboutsummaryrefslogtreecommitdiff
path: root/fixtures
diff options
context:
space:
mode:
authorcainus <[email protected]>2013-06-02 20:32:52 -0700
committercainus <[email protected]>2013-06-02 20:32:52 -0700
commit0f5612ec5c9783f640894f547ce339c1dfd8c7c7 (patch)
tree080bd9cc4f98ad2b6a56df4b7cff0d69333f1abd /fixtures
parent95d9f5faf5d503fe8f2705b084126efff7c421d8 (diff)
downloadnode-coveralls-0f5612ec5c9783f640894f547ce339c1dfd8c7c7.tar.xz
node-coveralls-0f5612ec5c9783f640894f547ce339c1dfd8c7c7.zip
use log-driver for logging levels.
Diffstat (limited to 'fixtures')
-rw-r--r--fixtures/lib/index.js52
1 files changed, 0 insertions, 52 deletions
diff --git a/fixtures/lib/index.js b/fixtures/lib/index.js
index 4a22c7a..052e296 100644
--- a/fixtures/lib/index.js
+++ b/fixtures/lib/index.js
@@ -155,58 +155,6 @@ UrlGrey.prototype.toString = function(){
return retval;
};
-/*
-UrlGrey.prototype.absolute = function(path){
- if (path[0] == '/'){
- path = path.substring(1);
- }
- var parsed = nodeUrl.parse(path);
- if (!!parsed.protocol){ // if it's already absolute, just return it
- return path;
- }
- return this._protocol + "://" + this._host + '/' + path;
-};
-
-// TODO make this interpolate vars into the url. both sinatra style and url-tempates
-// TODO name this:
-UrlGrey.prototype.get = function(nameOrPath, varDict){
- if (!!nameOrPath){
- if (!!varDict){
- return this.absolute(this._router.getUrl(nameOrPath, varDict));
- }
- return this.absolute(this._router.getUrl(nameOrPath));
- }
- return this.url;
-};*/
-
-/*
-// TODO needs to take a template as an input
-UrlGrey.prototype.param = function(key, defaultValue){
- var value = this.params()[key];
- if (!!value) {
- return value;
- }
- return defaultValue;
-};
-
-// TODO extract params, given a template?
-// TODO needs to take a template as an input
-UrlGrey.prototype.params = function(inUrl){
- if (!!inUrl){
- return this._router.pathVariables(inUrl);
- }
- if (!!this._params){
- return this._params;
- }
- return this._router.pathVariables(this.url);
-};
-*/
-
-// TODO relative() // takes an absolutepath and returns a relative one
-// TODO absolute() // takes a relative path and returns an absolute one.
-
-
-
module.exports = function(url){ return new UrlGrey(url); };
function addPropertyGetterSetter(propertyName, methodName){