diff --git a/.travis.yml b/.travis.yml index 354e179..cb12551 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,9 @@ +sudo: false language: node_js node_js: - - 'iojs-2' + - '0.12' + - '4' + - '6' + - '7' script: "npm run test-travis" after_script: "npm install coveralls@2 && cat ./coverage/lcov.info | coveralls" diff --git a/lib/client.js b/lib/client.js index 60058c4..69c3818 100644 --- a/lib/client.js +++ b/lib/client.js @@ -1,19 +1,5 @@ -/**! - * restful-client - lib/client.js - * - * Copyright(c) node-modules and other contributors. - * MIT Licensed - * - * Authors: - * fengmk2 (http://fengmk2.com) - */ - 'use strict'; -/** - * Module dependencies. - */ - var debug = require('debug')('restful-client:client'); var urllib = require('urllib'); var RESTFulResource = require('./resource'); diff --git a/lib/resource.js b/lib/resource.js index 962f624..64d3797 100644 --- a/lib/resource.js +++ b/lib/resource.js @@ -1,19 +1,5 @@ -/**! - * restful-client - lib/resource.js - * - * Copyright(c) fengmk2 and other contributors. - * MIT Licensed - * - * Authors: - * fengmk2 (http://fengmk2.com) - */ - 'use strict'; -/** - * Module dependencies. - */ - module.exports = RESTFulResource; /** diff --git a/package.json b/package.json index 908f667..54daa9f 100644 --- a/package.json +++ b/package.json @@ -12,19 +12,18 @@ "test-cov": "node --harmony node_modules/.bin/istanbul cover node_modules/.bin/_mocha -- -t 20000 -r should-http test/*.test.js", "test-travis": "node --harmony node_modules/.bin/istanbul cover node_modules/.bin/_mocha --report lcovonly -- -t 20000 -r should-http test/*.test.js", "jshint": "jshint .", - "autod": "autod -w --prefix '~' && npm run cnpm", - "cnpm": "npm install --registry=https://registry.npm.taobao.org" + "autod": "autod -w --prefix '^'" }, "dependencies": { - "debug": "~2.2.0", - "urllib": "~2.3.8" + "debug": "^2.6.7", + "urllib": "^2.22.0" }, "devDependencies": { "autod": "*", - "istanbul-harmony": "*", - "mm": "*", + "istanbul": "*", + "mm": "^2.1.0", "mocha": "*", - "should": "6", + "should": "^11.2.1", "should-http": "*" }, "homepage": "https://github.com/node-modules/restful-client", @@ -36,7 +35,7 @@ "restful-client", "restful" ], "engines": { - "node": ">= 0.10.0" + "node": ">= 0.12.0" }, "author": "fengmk2 ", "license": "MIT" diff --git a/test/client.test.js b/test/client.test.js index 46950d1..71bba75 100644 --- a/test/client.test.js +++ b/test/client.test.js @@ -1,19 +1,5 @@ -/**! - * restful-client - test/client.test.js - * - * Copyright(c) node-modules and other contributors. - * MIT Licensed - * - * Authors: - * fengmk2 (http://fengmk2.com) - */ - 'use strict'; -/** - * Module dependencies. - */ - var should = require('should'); var mm = require('mm'); var Gitlab = require('./gitlab_client'); diff --git a/test/gitlab_client.js b/test/gitlab_client.js index ab2159a..d3acb56 100644 --- a/test/gitlab_client.js +++ b/test/gitlab_client.js @@ -1,19 +1,5 @@ -/**! - * restful-client - test/gitlab_client.js - * - * Copyright(c) node-modules and other contributors. - * MIT Licensed - * - * Authors: - * fengmk2 (http://fengmk2.github.com) - */ - 'use strict'; -/** - * Module dependencies. - */ - var util = require('util'); var restful = require('../');