Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Version bump to 0.3.1

Bump the version to cover the failure of onCompletes.

Signed-off-by: Nick Campbell <nicholas.j.campbell@gmail.com>
  • Loading branch information...
commit 378eb392fa520f08a119ceeefe95d0fcaa7867d5 1 parent eaaa91d
@ncb000gt authored
Showing with 1 addition and 36 deletions.
  1. +1 −1  package.json
  2. +0 −35 test.js
View
2  package.json
@@ -1,7 +1,7 @@
{
"name": "cron",
"description": "CronJob's for your node",
- "version": "0.3.0",
+ "version": "0.3.1",
"author": "Nick Campbell <nicholas.j.campbell@gmail.com> (http://github.com/ncb000gt)",
"bugs" : {
"url" : "http://github.com/ncb000gt/node-cron/issues"
View
35 test.js
@@ -1,35 +0,0 @@
-var cron = require('./lib/cron'),
-sys = require('sys');
-
-new cron.CronJob('00 * * * * *', function(){
- sys.puts(new Date() + ' You will see this message when the seconds are zero');
-});
-
-new cron.CronJob('*/5 * * * * *', function(){
- sys.puts(new Date() + ' You will see this message every five seconds ');
-});
-
-new cron.CronJob('10-20 * * * * *', function(){
- sys.puts(new Date() + ' You will see this message from seconds ten through twenty ');
-});
-
-try {
- new cron.CronJob('*/2 * * * j sun-sat', function(){
- sys.puts(new Date() + ' You will see this message every two seconds, and validates that the aliases work.');
- });
-} catch(ex) {
- sys.puts("cron pattern not valid: ", ex.message);
-}
-
-new cron.CronJob('*/2 * * * jan-dec sun-sat', function(){
- sys.puts(new Date() + ' You will see this message every two seconds, and validates that the aliases work.');
-});
-
-// How to check if a cron pattern is valid
-try {
- new cron.CronTime('invalid cron pattern', function() {
- sys.puts('this should not be printed');
- })
-} catch(ex) {
- sys.puts("cron pattern not valid: ", ex.message);
-}
Please sign in to comment.
Something went wrong with that request. Please try again.