travis ci, cleanup

This commit is contained in:
Dmitry Shirokov 2013-05-07 23:27:05 +10:00
parent 7f82a455b6
commit 0a1b9ae42e
4 changed files with 39 additions and 28 deletions

4
.travis.yml Normal file
View File

@ -0,0 +1,4 @@
language: node_js
node_js:
- "0.8"
- "0.10"

View File

@ -33,8 +33,6 @@ ISO_2022.prototype.match = function(det) {
var quality; var quality;
// TODO: refactor me // TODO: refactor me
// int match(byte [] text, int textLen, byte [][] escapeSequences) {
// det.fInputBytes, det.fInputLen
var text = det.fInputBytes; var text = det.fInputBytes;
var textLen = det.fInputLen; var textLen = det.fInputLen;

View File

@ -82,9 +82,7 @@ function mbcs() {};
* @param det The CharsetDetector, which contains the input text * @param det The CharsetDetector, which contains the input text
* to be checked for being in this charset. * to be checked for being in this charset.
* @return Two values packed into one int (Damn java, anyhow) * @return Two values packed into one int (Damn java, anyhow)
* <br/>
* bits 0-7: the match confidence, ranging from 0-100 * bits 0-7: the match confidence, ranging from 0-100
* <br/>
* bits 8-15: The match reason, an enum-like value. * bits 8-15: The match reason, an enum-like value.
*/ */
mbcs.prototype.match = function(det) { mbcs.prototype.match = function(det) {
@ -218,7 +216,6 @@ module.exports.sjis = function() {
var firstByte; var firstByte;
firstByte = iter.charValue = iter.nextByte(det); firstByte = iter.charValue = iter.nextByte(det);
// console.log('fb', firstByte)
if (firstByte < 0) { if (firstByte < 0) {
return false; return false;
} }
@ -438,8 +435,8 @@ module.exports.gb_18030 = function() {
this.language = function() { this.language = function() {
return "zh"; return "zh";
}; };
/* /*
* (non-Javadoc)
* Get the next character value for EUC based encodings. * Get the next character value for EUC based encodings.
* Character "value" is simply the raw bytes that make up the character * Character "value" is simply the raw bytes that make up the character
* packed into an int. * packed into an int.

View File

@ -1,24 +1,36 @@
{ {
"name": "chardet", "name": "chardet",
"version": "0.0.6", "version": "0.0.6",
"homepage": "https://github.com/runk/node-chardet", "homepage": "https://github.com/runk/node-chardet",
"description": "Character detector", "description": "Character detector",
"keywords": ["encoding", "character", "utf8", "detector", "chardet", "icu"], "keywords": [
"author": "Dmitry Shirokov <deadrunk@gmail.com>", "encoding",
"dependencies": {}, "character",
"repository": { "utf8",
"type":"git", "detector",
"url":"git@github.com:runk/node-chardet.git" "chardet",
}, "icu"
"bugs": { ],
"mail":"deadrunk@gmail.com", "author": "Dmitry Shirokov <deadrunk@gmail.com>",
"url":"http://github.com/runk/node-chardet/issues" "dependencies": {},
}, "repository": {
"scripts": { "type": "git",
"test": "mocha -R spec --recursive" "url": "git@github.com:runk/node-chardet.git"
}, },
"main": "index.js", "bugs": {
"engine": { "mail": "deadrunk@gmail.com",
"node": ">=0.8.0", "npm": "1" "url": "http://github.com/runk/node-chardet/issues"
} },
"scripts": {
"test": "mocha -R spec --recursive"
},
"main": "index.js",
"engine": {
"node": ">=0.8.0",
"npm": "1"
},
"readmeFilename": "README.md",
"directories": {
"test": "test"
}
} }