rufus-scheduler 2.0.24 → 3.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (63) hide show
  1. data/CHANGELOG.txt +76 -0
  2. data/CREDITS.txt +23 -0
  3. data/LICENSE.txt +1 -1
  4. data/README.md +1439 -0
  5. data/Rakefile +1 -5
  6. data/TODO.txt +149 -55
  7. data/lib/rufus/{sc → scheduler}/cronline.rb +167 -53
  8. data/lib/rufus/scheduler/job_array.rb +92 -0
  9. data/lib/rufus/scheduler/jobs.rb +633 -0
  10. data/lib/rufus/scheduler/locks.rb +95 -0
  11. data/lib/rufus/scheduler/util.rb +306 -0
  12. data/lib/rufus/scheduler/zones.rb +174 -0
  13. data/lib/rufus/scheduler/zotime.rb +154 -0
  14. data/lib/rufus/scheduler.rb +608 -27
  15. data/rufus-scheduler.gemspec +6 -4
  16. data/spec/basics_spec.rb +54 -0
  17. data/spec/cronline_spec.rb +479 -152
  18. data/spec/error_spec.rb +139 -0
  19. data/spec/job_array_spec.rb +39 -0
  20. data/spec/job_at_spec.rb +58 -0
  21. data/spec/job_cron_spec.rb +128 -0
  22. data/spec/job_every_spec.rb +104 -0
  23. data/spec/job_in_spec.rb +20 -0
  24. data/spec/job_interval_spec.rb +68 -0
  25. data/spec/job_repeat_spec.rb +357 -0
  26. data/spec/job_spec.rb +498 -109
  27. data/spec/lock_custom_spec.rb +47 -0
  28. data/spec/lock_flock_spec.rb +47 -0
  29. data/spec/lock_lockfile_spec.rb +61 -0
  30. data/spec/lock_spec.rb +59 -0
  31. data/spec/parse_spec.rb +263 -0
  32. data/spec/schedule_at_spec.rb +158 -0
  33. data/spec/schedule_cron_spec.rb +66 -0
  34. data/spec/schedule_every_spec.rb +109 -0
  35. data/spec/schedule_in_spec.rb +80 -0
  36. data/spec/schedule_interval_spec.rb +128 -0
  37. data/spec/scheduler_spec.rb +928 -124
  38. data/spec/spec_helper.rb +126 -0
  39. data/spec/threads_spec.rb +96 -0
  40. data/spec/zotime_spec.rb +396 -0
  41. metadata +56 -33
  42. data/README.rdoc +0 -661
  43. data/lib/rufus/otime.rb +0 -3
  44. data/lib/rufus/sc/jobqueues.rb +0 -160
  45. data/lib/rufus/sc/jobs.rb +0 -471
  46. data/lib/rufus/sc/rtime.rb +0 -363
  47. data/lib/rufus/sc/scheduler.rb +0 -636
  48. data/lib/rufus/sc/version.rb +0 -32
  49. data/spec/at_in_spec.rb +0 -47
  50. data/spec/at_spec.rb +0 -125
  51. data/spec/blocking_spec.rb +0 -64
  52. data/spec/cron_spec.rb +0 -134
  53. data/spec/every_spec.rb +0 -304
  54. data/spec/exception_spec.rb +0 -113
  55. data/spec/in_spec.rb +0 -150
  56. data/spec/mutex_spec.rb +0 -159
  57. data/spec/rtime_spec.rb +0 -137
  58. data/spec/schedulable_spec.rb +0 -97
  59. data/spec/spec_base.rb +0 -87
  60. data/spec/stress_schedule_unschedule_spec.rb +0 -159
  61. data/spec/timeout_spec.rb +0 -148
  62. data/test/kjw.rb +0 -113
  63. data/test/t.rb +0 -20
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rufus-scheduler
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.24
4
+ version: 3.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,26 +9,42 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-09-02 00:00:00.000000000 Z
12
+ date: 2015-04-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
- name: tzinfo
15
+ name: rake
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
20
20
  - !ruby/object:Gem::Version
21
- version: 0.3.22
22
- type: :runtime
21
+ version: '0'
22
+ type: :development
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  none: false
26
26
  requirements:
27
27
  - - ! '>='
28
28
  - !ruby/object:Gem::Version
29
- version: 0.3.22
29
+ version: '0'
30
30
  - !ruby/object:Gem::Dependency
31
- name: rake
31
+ name: rspec
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: 2.13.0
38
+ type: :development
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: 2.13.0
46
+ - !ruby/object:Gem::Dependency
47
+ name: chronic
32
48
  requirement: !ruby/object:Gem::Requirement
33
49
  none: false
34
50
  requirements:
@@ -44,13 +60,13 @@ dependencies:
44
60
  - !ruby/object:Gem::Version
45
61
  version: '0'
46
62
  - !ruby/object:Gem::Dependency
47
- name: rspec
63
+ name: tzinfo
48
64
  requirement: !ruby/object:Gem::Requirement
49
65
  none: false
50
66
  requirements:
51
67
  - - ! '>='
52
68
  - !ruby/object:Gem::Version
53
- version: 2.7.0
69
+ version: '0'
54
70
  type: :development
55
71
  prerelease: false
56
72
  version_requirements: !ruby/object:Gem::Requirement
@@ -58,7 +74,7 @@ dependencies:
58
74
  requirements:
59
75
  - - ! '>='
60
76
  - !ruby/object:Gem::Version
61
- version: 2.7.0
77
+ version: '0'
62
78
  description: job scheduler for Ruby (at, cron, in and every jobs).
63
79
  email:
64
80
  - jmettraux@gmail.com
@@ -69,37 +85,44 @@ files:
69
85
  - Rakefile
70
86
  - lib/rufus-scheduler.rb
71
87
  - lib/rufus/scheduler.rb
72
- - lib/rufus/sc/scheduler.rb
73
- - lib/rufus/sc/rtime.rb
74
- - lib/rufus/sc/version.rb
75
- - lib/rufus/sc/cronline.rb
76
- - lib/rufus/sc/jobs.rb
77
- - lib/rufus/sc/jobqueues.rb
78
- - lib/rufus/otime.rb
88
+ - lib/rufus/scheduler/locks.rb
89
+ - lib/rufus/scheduler/zotime.rb
90
+ - lib/rufus/scheduler/cronline.rb
91
+ - lib/rufus/scheduler/util.rb
92
+ - lib/rufus/scheduler/jobs.rb
93
+ - lib/rufus/scheduler/zones.rb
94
+ - lib/rufus/scheduler/job_array.rb
79
95
  - spec/job_spec.rb
80
- - spec/stress_schedule_unschedule_spec.rb
81
- - spec/schedulable_spec.rb
82
- - spec/exception_spec.rb
83
- - spec/in_spec.rb
84
- - spec/timeout_spec.rb
85
- - spec/at_spec.rb
86
- - spec/at_in_spec.rb
87
- - spec/spec_base.rb
96
+ - spec/schedule_in_spec.rb
97
+ - spec/zotime_spec.rb
98
+ - spec/spec_helper.rb
99
+ - spec/job_array_spec.rb
100
+ - spec/schedule_interval_spec.rb
101
+ - spec/job_at_spec.rb
102
+ - spec/schedule_at_spec.rb
103
+ - spec/error_spec.rb
104
+ - spec/lock_spec.rb
105
+ - spec/schedule_cron_spec.rb
106
+ - spec/job_interval_spec.rb
107
+ - spec/job_repeat_spec.rb
108
+ - spec/schedule_every_spec.rb
109
+ - spec/threads_spec.rb
88
110
  - spec/cronline_spec.rb
89
- - spec/rtime_spec.rb
90
- - spec/mutex_spec.rb
111
+ - spec/lock_lockfile_spec.rb
112
+ - spec/job_in_spec.rb
113
+ - spec/parse_spec.rb
91
114
  - spec/scheduler_spec.rb
92
- - spec/blocking_spec.rb
93
- - spec/every_spec.rb
94
- - spec/cron_spec.rb
95
- - test/t.rb
96
- - test/kjw.rb
115
+ - spec/lock_custom_spec.rb
116
+ - spec/basics_spec.rb
117
+ - spec/job_cron_spec.rb
118
+ - spec/job_every_spec.rb
119
+ - spec/lock_flock_spec.rb
97
120
  - rufus-scheduler.gemspec
98
121
  - CHANGELOG.txt
99
122
  - TODO.txt
100
123
  - LICENSE.txt
101
124
  - CREDITS.txt
102
- - README.rdoc
125
+ - README.md
103
126
  homepage: http://github.com/jmettraux/rufus-scheduler
104
127
  licenses:
105
128
  - MIT