update version task to update badge urls

This commit is contained in:
Spencer Alger
2015-03-26 17:19:24 -07:00
parent 724b474801
commit 9c5ca004eb
3 changed files with 11 additions and 3 deletions

View File

@ -2,8 +2,8 @@
The official low-level Elasticsearch client for Node.js and the browser.
[![Build Status](http://img.shields.io/travis/elastic/elasticsearch-js/2.4.svg?style=flat-square)](https://travis-ci.org/elastic/elasticsearch-js?branch=4.0)
[![Coverage Status](http://img.shields.io/coveralls/elastic/elasticsearch-js/2.4.svg?style=flat-square)](https://coveralls.io/r/elastic/elasticsearch-js?branch=4.0)
[![Build Status](http://img.shields.io/travis/elastic/elasticsearch-js/4.0.svg?style=flat-square)](https://travis-ci.org/elastic/elasticsearch-js?branch=4.0)
[![Coverage Status](http://img.shields.io/coveralls/elastic/elasticsearch-js/4.0.svg?style=flat-square)](https://coveralls.io/r/elastic/elasticsearch-js?branch=4.0)
[![Dependencies up to date](http://img.shields.io/david/elastic/elasticsearch-js.svg?style=flat-square)](https://david-dm.org/elastic/elasticsearch-js)
## Features

View File

@ -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),

View File

@ -98,4 +98,4 @@
"node": ">=0.8 <=0.12",
"iojs": ">=1.5"
}
}
}