Comparing version 0.1.0 to 0.1.1
@@ -10,5 +10,14 @@ /* vim: set expandtab tabstop=2 shiftwidth=2 foldmethod=marker: */ | ||
for (var i = 0; i < s.length; i++) { | ||
var t = s.substr(i, 1); | ||
if ((t !== "'" && t !== '"') || t !== s.substr(i - i, 1)) { | ||
break; | ||
} | ||
} | ||
if (i > 0) { | ||
s = s.substr(i, s.length - i - i); | ||
} | ||
var _me = []; | ||
s = s.replace(/^("|')+/, '').replace(/("|')+$/, ''); | ||
for (var i = 0; i < s.length; i++) { | ||
@@ -15,0 +24,0 @@ var the = s.slice(i, i + 1); |
{ | ||
"name": "configer", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"author": "Aleafs Zhang (zhangxc83@gmail.com)", | ||
"contributors": [], | ||
"homepage": "git@github.com:aleafs/configer.git", | ||
"homepage": "https://github.com/aleafs/configer", | ||
"repository": { | ||
"type": "git", | ||
"url": "git@github.com:aleafs/configer.git" | ||
}, | ||
"description": "Configer is a reader for local file configuration.", | ||
"keywords": [ "config", "reader" ], | ||
"dependencies": { | ||
"clone" : "=0.1.9", | ||
"clone" : "=0.1.18", | ||
"fasttrim" : "=0.1.0" | ||
@@ -18,8 +22,20 @@ }, | ||
"mocha" : ">=0.9.0", | ||
"should" : ">=0.4.2" | ||
"should" : ">=4.0.0", | ||
"blanket": "*", | ||
"coveralls" : "*", | ||
"travis-cov": "*", | ||
"mocha-lcov-reporter": "*" | ||
}, | ||
"main": "./index.js", | ||
"scripts": { | ||
"test": "make test" | ||
"main" : "index.js", | ||
"test" : "make test" | ||
}, | ||
"config" : { | ||
"blanket": { | ||
"pattern": "//^((?!(node_modules|test)).)*$/" | ||
}, | ||
"travis-cov": { | ||
"threshold": 90 | ||
} | ||
} | ||
} |
[![Build Status](https://secure.travis-ci.org/aleafs/configer.png?branch=master)](http://travis-ci.org/aleafs/configer) | ||
[![Dependency Status](https://gemnasium.com/aleafs/configer.png)](https://gemnasium.com/aleafs/configer) | ||
[![Coverage Status](https://coveralls.io/repos/aleafs/configer/badge.png)](https://coveralls.io/r/aleafs/configer) | ||
@@ -4,0 +5,0 @@ ## About |
@@ -15,3 +15,3 @@ /* vim: set expandtab tabstop=2 shiftwidth=2 foldmethod=marker: */ | ||
} catch (e) { | ||
e.toString().should.include('UndefinedConfigParser'); | ||
e.toString().should.containEql('UndefinedConfigParser'); | ||
} | ||
@@ -23,3 +23,3 @@ | ||
} catch (e) { | ||
e.toString().should.include('no such file or directory \'./i_am_not_found.ini\''); | ||
e.toString().should.containEql('no such file or directory \'./i_am_not_found.ini\''); | ||
} | ||
@@ -92,2 +92,9 @@ }); | ||
/** | ||
* XXX: this is a bug case | ||
*/ | ||
it('should_parse_ini_string_value_works_fine', function () { | ||
config.create(__dirname + '/ini/test_string_value.ini').get('key1').should.eql('abcd=\'aaa\''); | ||
}); | ||
}); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
10416
13
242
51
6
6
Updatedclone@=0.1.18