rufus-scheduler 2.0.21 → 2.0.22

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.txt CHANGED
@@ -2,6 +2,11 @@
2
2
  = rufus-scheduler CHANGELOG.txt
3
3
 
4
4
 
5
+ == rufus-scheduler - 2.0.22 released 2013/07/16
6
+
7
+ - parse "/10 * * * *" again (like <= 2.0.19 did), thanks @skrd
8
+
9
+
5
10
  == rufus-scheduler - 2.0.21 released 2013/07/15
6
11
 
7
12
  - add license (MIT) to gemspec file
data/CREDITS.txt CHANGED
@@ -25,6 +25,7 @@
25
25
 
26
26
  == Feedback
27
27
 
28
+ - skrd - https://github.com/skrd - "/10 * * * *" cron issue
28
29
  - Hongli Lai - Scheduler#stop(:terminate => true) request
29
30
  - Tero Tilus - raises on unsupported/unknown options
30
31
  - Louis Coilliot - Scheduler#running_jobs
@@ -261,6 +261,8 @@ module Rufus
261
261
 
262
262
  return %w[ L ] if item == 'L'
263
263
 
264
+ item = '*' + item if item.match(/^\//)
265
+
264
266
  m = item.match(RANGE_REGEX)
265
267
 
266
268
  raise ArgumentError.new(
@@ -26,7 +26,7 @@
26
26
  module Rufus
27
27
  module Scheduler
28
28
 
29
- VERSION = '2.0.21'
29
+ VERSION = '2.0.22'
30
30
  end
31
31
  end
32
32
 
@@ -91,6 +91,21 @@ describe Rufus::CronLine do
91
91
  to_a(
92
92
  '*/10 * * * *',
93
93
  [ [0], [0, 10, 20, 30, 40, 50], nil, nil, nil, nil, nil, nil ])
94
+
95
+ # fighting https://github.com/jmettraux/rufus-scheduler/issues/65
96
+ #
97
+ to_a(
98
+ '*/10 * * * * Europe/Berlin',
99
+ [ [0], [ 0, 10, 20, 30, 40, 50], nil, nil, nil, nil, nil, 'Europe/Berlin' ])
100
+ end
101
+
102
+ it 'accepts lonely / (slashes) (like <= 2.0.19 did)' do
103
+
104
+ # fighting https://github.com/jmettraux/rufus-scheduler/issues/65
105
+
106
+ to_a(
107
+ '/10 * * * *',
108
+ [ [0], [ 0, 10, 20, 30, 40, 50], nil, nil, nil, nil, nil, nil ])
94
109
  end
95
110
 
96
111
  it 'does not support ranges for monthdays (sun#1-sun#2)' do
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.21
4
+ version: 2.0.22
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-07-15 00:00:00.000000000 Z
12
+ date: 2013-07-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: tzinfo