This commit is contained in:
Vlad Filippov 2016-04-07 12:11:25 -04:00
parent f1550b9204
commit 70694babbe
4 changed files with 13 additions and 6 deletions

View File

@ -1,3 +1,7 @@
v1.0.2:
date: 2016-04-07
changes:
- Fix sprintf issues in error calls.
v1.0.1:
date: 2016-04-07
changes:

View File

@ -1,4 +1,4 @@
# grunt-contrib-jasmine v1.0.1 [![Build Status: Linux](https://travis-ci.org/gruntjs/grunt-contrib-jasmine.svg?branch=master)](https://travis-ci.org/gruntjs/grunt-contrib-jasmine) [![Build Status: Windows](https://ci.appveyor.com/api/projects/status/5985958by5rhnh31/branch/master?svg=true)](https://ci.appveyor.com/project/gruntjs/grunt-contrib-jasmine/branch/master)
# grunt-contrib-jasmine v1.0.2 [![Build Status: Linux](https://travis-ci.org/gruntjs/grunt-contrib-jasmine.svg?branch=master)](https://travis-ci.org/gruntjs/grunt-contrib-jasmine) [![Build Status: Windows](https://ci.appveyor.com/api/projects/status/5985958by5rhnh31/branch/master?svg=true)](https://ci.appveyor.com/project/gruntjs/grunt-contrib-jasmine/branch/master)
> Run jasmine specs headlessly through PhantomJS
@ -295,6 +295,7 @@ for more information on the RequireJS template.
## Release History
* 2016-04-07v1.0.2Fix sprintf issues in error calls.
* 2016-04-07v1.0.1Allow to use custom bootfile. Doc updates. Fix and use lodash directly.
* 2016-01-26v1.0.0Bump grunt-lib-phantomjs to 1.0.0. Bump jasmine to 2.2.0.
* 2015-09-24v0.9.2Fixes npm@3 issues.
@ -327,4 +328,4 @@ for more information on the RequireJS template.
Task submitted by [Jarrod Overson](http://jarrodoverson.com)
*This file was generated on Thu Apr 07 2016 03:18:14.*
*This file was generated on Thu Apr 07 2016 12:11:03.*

View File

@ -1,7 +1,7 @@
{
"name": "grunt-contrib-jasmine",
"description": "Run jasmine specs headlessly through PhantomJS",
"version": "1.0.1",
"version": "1.0.2",
"author": {
"name": "Grunt Team",
"url": "http://gruntjs.com/"
@ -21,7 +21,8 @@
"grunt-lib-phantomjs": "^1.0.0",
"jasmine-core": "^2.2.0",
"lodash": "~2.4.1",
"rimraf": "^2.1.4"
"rimraf": "^2.1.4",
"underscore.string": "~3.3.4"
},
"devDependencies": {
"grunt": "^0.4.5",

View File

@ -12,7 +12,8 @@ module.exports = function(grunt) {
// node api
var fs = require('fs'),
path = require('path');
path = require('path'),
sprintf = require('underscore.string/sprintf');
// npm lib
var phantomjs = require('grunt-lib-phantomjs').init(grunt),
@ -203,7 +204,7 @@ module.exports = function(grunt) {
grunt.log.error(chalk.red(string) + ' at ');
trace.forEach(function(line) {
var file = line.file.replace(/^file:/, '');
var message = _.sprintf('%s:%d %s', path.relative('.', file), line.line, line.function);
var message = sprintf('%s:%d %s', path.relative('.', file), line.line, line.function);
grunt.log.error(chalk.red(message));
});
} else {