From 207f5fe60895e5e075fe7f90eef6d58e28023b33 Mon Sep 17 00:00:00 2001 From: isteven Date: Fri, 7 Nov 2014 16:29:40 +0800 Subject: [PATCH] increase version number to v2.0.0 --- CHANGELOG.md | 4 ++++ README.md | 2 +- bower.json | 5 +++-- isteven-route-rage.js | 6 +++--- 4 files changed, 11 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 006c912..6cbec9f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,2 +1,6 @@ ### v1.0.0 First release + +### v2.0.0 +##### Added / Updated: +- Replaced [[...]] with [[rr:...]] (Warning: breaks backward compatibility! Those who upgraded from v1.0.0 must update their views!) diff --git a/README.md b/README.md index 98cdbb6..9071c59 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ Use $routeParams directly in your view Go to http://isteven.github.io/angular-route-rage ### Current Version -1.0.0 +2.0.0 ### Change Log See CHANGELOG.md diff --git a/bower.json b/bower.json index 1d294a2..1b918e3 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name" : "isteven-angular-route-rage", - "version" : "v1.0.0", + "version" : "v2.0.0", "main" : [ "angular-route-rage.js" ], @@ -8,6 +8,7 @@ ".git", ".gitignore", "bower.json", - "README.md" + "CHANGELOG.md" + "README.md", ] } diff --git a/isteven-route-rage.js b/isteven-route-rage.js index 852cc78..baa513f 100644 --- a/isteven-route-rage.js +++ b/isteven-route-rage.js @@ -4,7 +4,7 @@ * Use $routeParams variables directly in your view * * Project started on: Thu, 25 Sep 2014 - 09:21:54 - * Current version: 1.0.0 + * Current version: 2.0.0 * * Released under the MIT License * -------------------------------------------------------------------------------- @@ -62,7 +62,7 @@ angular.module( 'isteven-rr', ['ng'] ).directive( 'istevenRr' , [ var arrRouteParams = Object.keys( $routeParams ); // Find the "route tokens"( those [[...]] ) from this domString - var scopePars = domString.match( /\[\[[^\]\]]+\]\]/g ); + var scopePars = domString.match( /\[\[rr:[^\]\]]+\]\]/g ); angular.forEach( scopePars, function( value, key ) { @@ -73,7 +73,7 @@ angular.module( 'isteven-rr', ['ng'] ).directive( 'istevenRr' , [ var isExpression = true; // Some clean ups - var tempVal = value.replace( /\[\[/, '' ); + var tempVal = value.replace( /\[\[rr:/, '' ); tempVal = tempVal.replace( /\]\]/, '' ); // Find matches in route params