update version task to update badge urls
This commit is contained in:
@ -2,8 +2,8 @@
|
||||
|
||||
The official low-level Elasticsearch client for Node.js and the browser.
|
||||
|
||||
[](https://travis-ci.org/elastic/elasticsearch-js?branch=4.0)
|
||||
[](https://coveralls.io/r/elastic/elasticsearch-js?branch=4.0)
|
||||
[](https://travis-ci.org/elastic/elasticsearch-js?branch=4.0)
|
||||
[](https://coveralls.io/r/elastic/elasticsearch-js?branch=4.0)
|
||||
[](https://david-dm.org/elastic/elasticsearch-js)
|
||||
|
||||
## Features
|
||||
|
||||
@ -59,7 +59,15 @@ module.exports = function (grunt) {
|
||||
|
||||
pkg.version = next;
|
||||
browserBuilds = utils.replaceAll(browserBuilds, current, next);
|
||||
|
||||
readme = utils.replaceAll(readme, current, next);
|
||||
|
||||
readme = utils.replaceAll(
|
||||
readme,
|
||||
'/' + utils.minorVersion(current) + '.svg',
|
||||
'/' + utils.minorVersion(next) + '.svg'
|
||||
);
|
||||
|
||||
readme = utils.replaceAll(
|
||||
readme,
|
||||
'branch=' + utils.minorVersion(current),
|
||||
|
||||
@ -98,4 +98,4 @@
|
||||
"node": ">=0.8 <=0.12",
|
||||
"iojs": ">=1.5"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user