This repository has been archived by the owner on Jul 17, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fixed bug caused Grunt-Notify to not work in 32-bit windows. * Fixed bug that prevented Snarl from working if the task ended quickly from an error. * Removed defaults for how many notifications and how long notifications say on the screen for Snarl. * Replaced Nodeunit tests with Mocha tests.
- Loading branch information
Showing
9 changed files
with
106 additions
and
113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,20 @@ | ||
'use strict'; | ||
|
||
var grunt = require('grunt'); | ||
var spawn = require('child_process').spawn; | ||
|
||
module.exports = function(cmd, args, cb){ | ||
|
||
var options = { | ||
detached: true | ||
detached: true, | ||
stdio: [ 'ignore','ignore', 'ignore' ] | ||
}; | ||
|
||
grunt.util.spawn({ | ||
cmd: cmd, | ||
args: args, | ||
options: options | ||
}, function(err, result, code){ | ||
if (cb) { | ||
cb(err); | ||
} | ||
}); | ||
var child = spawn(cmd, args, options); | ||
|
||
child.on('close', function (code) { | ||
cb(code); | ||
}); | ||
}; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
'use strict'; | ||
var expect = require('chai').expect; | ||
|
||
var grunt = require('grunt'); | ||
var notify = require('../tasks/lib/notify'); | ||
|
||
|
||
describe('grunt-notify', function () { | ||
describe('sanity checks', function () { | ||
it('notify', function (done) { | ||
notify({ title: 'title', message: 'message' }, function(err){ | ||
if (err) throw err; | ||
//expect(err).to.be.empty; | ||
done(); | ||
}); | ||
}); | ||
|
||
it('weird chars', function (done) { | ||
notify({ title: 'weird chars', message: 'bang! "quotes" [brackets] &and&' }, function(err){ | ||
if (err) throw err; | ||
//expect(err).to.be.; | ||
done(); | ||
}); | ||
}); | ||
|
||
it('notify', function (done) { | ||
notify({ title: 'title' }, function(err){ | ||
expect(err).to.equal('Message is required'); | ||
done(); | ||
}); | ||
}); | ||
|
||
}); | ||
}); |
This file was deleted.
Oops, something went wrong.