From 9529b43fffd62874ad1d4236b531d696c7a7c3ee Mon Sep 17 00:00:00 2001 From: Max Riveiro Date: Wed, 13 Mar 2013 16:08:42 +0400 Subject: [PATCH] Update Grunt and it's depdendencies to the latest stable versions. Also update README.md to reflect proper Grunt tasks' names. --- README.md | 8 ++++---- package.json | 14 +++++++------- test/attributes.js | 2 +- test/event.js | 4 ++-- 4 files changed, 14 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 97a3fc12..3eec7a16 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # jquery-migrate: Migrate older jQuery code to jQuery 1.9+ This plugin can be used to detect and restore APIs or features that have been deprecated in jQuery and removed as of version 1.9. -See the [warnings page](https://github.com/jquery/jquery-migrate/blob/master/warnings.md) for more information regarding messages the plugin generates. +See the [warnings page](https://github.com/jquery/jquery-migrate/blob/master/warnings.md) for more information regarding messages the plugin generates. For more information about the changes made in jQuery 1.9, see the [upgrade guide](http://jquery.com/upgrade-guide/1.9/) and [blog post](http://blog.jquery.com/2013/01/15/jquery-1-9-final-jquery-2-0-beta-migrate-final-released/). In your web page, load this plugin *after* the script for jQuery: @@ -70,12 +70,12 @@ Clone this repo, install `grunt`: ```sh git clone git://github.com/jquery/jquery-migrate.git cd jquery-migrate -npm install -g grunt +npm install +npm install -g grunt-cli ``` -Run `grunt` to `lint`, `test` and `min` release. +Run `grunt` to `jshint`, `qunit` and `uglify` release. ```sh grunt ``` - diff --git a/package.json b/package.json index 8f8f50ba..baba0a10 100644 --- a/package.json +++ b/package.json @@ -25,13 +25,13 @@ "jquery": ">=1.6.4" }, "devDependencies": { - "grunt-git-authors": "~1.1.0", - "grunt-contrib-concat": "~0.1.1", - "grunt-contrib-watch": "~0.1.0", - "grunt-contrib-qunit": "~0.1.0", - "grunt-contrib-jshint": "git://github.com/gruntjs/grunt-contrib-jshint.git#7fd70e86c5a8d489095fa81589d95dccb8eb3a46", - "grunt-contrib-uglify": "git://github.com/gruntjs/grunt-contrib-uglify.git#f8da4ff90c7e8f74c81d8e5d3834e6011a90611c", - "grunt": "0.4.0rc4", + "grunt-git-authors": "~1.2.0", + "grunt-contrib-concat": "~0.1.2", + "grunt-contrib-watch": "~0.3.1", + "grunt-contrib-qunit": "~0.2.0", + "grunt-contrib-jshint": "~0.2.0", + "grunt-contrib-uglify": "~0.1.2", + "grunt": "0.4.0", "testswarm": "0.2.2" }, "keywords": [] diff --git a/test/attributes.js b/test/attributes.js index af85ac5a..6a778a34 100644 --- a/test/attributes.js +++ b/test/attributes.js @@ -3,7 +3,7 @@ module("attributes"); test( "attrFn test", function() { expect( 4 ); - + ( jQuery._definePropertyBroken ? expectNoWarning : expectWarning )( "attrFn", function() { ok( !!jQuery.attrFn, "attrFn present" ); equal( jQuery.attrFn.quack, undefined, "can read values from attrFn" ); diff --git a/test/event.js b/test/event.js index 414ba260..06935c0b 100644 --- a/test/event.js +++ b/test/event.js @@ -760,7 +760,7 @@ test( "hover pseudo-event", function() { test( "global events not on document", function() { expect( 16 ); - + expectWarning( "Global ajax events", 1, function() { var events = "ajaxStart ajaxStop ajaxSend ajaxComplete ajaxError ajaxSuccess"; @@ -815,4 +815,4 @@ if ( jQuery.event.dispatch ) { equal( matched, 1, "Event dispatched" ); }); -} \ No newline at end of file +}