From 9c5ca004eb84ca68e6b24240880a0a6c17a21e06 Mon Sep 17 00:00:00 2001 From: Spencer Alger Date: Thu, 26 Mar 2015 17:19:24 -0700 Subject: [PATCH] update version task to update badge urls --- README.md | 4 ++-- grunt/tasks.js | 8 ++++++++ package.json | 2 +- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 412b56592..2af9f9397 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/grunt/tasks.js b/grunt/tasks.js index 54e903097..5886fdd45 100644 --- a/grunt/tasks.js +++ b/grunt/tasks.js @@ -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), diff --git a/package.json b/package.json index be9f3709d..e6b890c49 100644 --- a/package.json +++ b/package.json @@ -98,4 +98,4 @@ "node": ">=0.8 <=0.12", "iojs": ">=1.5" } -} +} \ No newline at end of file