clockwork 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -134,6 +134,8 @@ Inspired by [rufus-scheduler](http://rufus.rubyforge.org/rufus-scheduler/) and [
134
134
 
135
135
  Design assistance from Peter van Hardenberg and Matthew Soldo
136
136
 
137
+ Patches contributed by Mark McGranaghan
138
+
137
139
  Released under the MIT License: http://www.opensource.org/licenses/mit-license.php
138
140
 
139
141
  http://github.com/adamwiggins/clockwork
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.0
1
+ 0.2.1
data/lib/clockwork.rb CHANGED
@@ -1,4 +1,6 @@
1
1
  module Clockwork
2
+ class FailedToParse < StandardError; end;
3
+
2
4
  class Event
3
5
  attr_accessor :job, :last
4
6
 
@@ -62,6 +62,12 @@ class ClockworkTest < Test::Unit::TestCase
62
62
  end
63
63
  end
64
64
 
65
+ test "aborts when fails to parse" do
66
+ assert_raise(Clockwork::FailedToParse) do
67
+ Clockwork.every(1.day, "myjob", :at => "a:bc")
68
+ end
69
+ end
70
+
65
71
  test "general handler" do
66
72
  $set_me = 0
67
73
  Clockwork.handler { $set_me = 1 }
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: clockwork
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 21
4
5
  prerelease: false
5
6
  segments:
6
7
  - 0
7
8
  - 2
8
- - 0
9
- version: 0.2.0
9
+ - 1
10
+ version: 0.2.1
10
11
  platform: ruby
11
12
  authors:
12
13
  - Adam Wiggins
@@ -14,7 +15,7 @@ autorequire:
14
15
  bindir: bin
15
16
  cert_chain: []
16
17
 
17
- date: 2010-05-26 00:00:00 -07:00
18
+ date: 2010-08-04 00:00:00 -07:00
18
19
  default_executable: clockwork
19
20
  dependencies: []
20
21
 
@@ -32,6 +33,7 @@ files:
32
33
  - VERSION
33
34
  - bin/clockwork
34
35
  - lib/clockwork.rb
36
+ - test/clockwork_test.rb
35
37
  has_rdoc: true
36
38
  homepage: http://github.com/adamwiggins/clockwork
37
39
  licenses: []
@@ -42,23 +44,27 @@ rdoc_options:
42
44
  require_paths:
43
45
  - lib
44
46
  required_ruby_version: !ruby/object:Gem::Requirement
47
+ none: false
45
48
  requirements:
46
49
  - - ">="
47
50
  - !ruby/object:Gem::Version
51
+ hash: 3
48
52
  segments:
49
53
  - 0
50
54
  version: "0"
51
55
  required_rubygems_version: !ruby/object:Gem::Requirement
56
+ none: false
52
57
  requirements:
53
58
  - - ">="
54
59
  - !ruby/object:Gem::Version
60
+ hash: 3
55
61
  segments:
56
62
  - 0
57
63
  version: "0"
58
64
  requirements: []
59
65
 
60
66
  rubyforge_project: clockwork
61
- rubygems_version: 1.3.6
67
+ rubygems_version: 1.3.7
62
68
  signing_key:
63
69
  specification_version: 3
64
70
  summary: A scheduler process to replace cron.