rufus-scheduler 3.1.2 → 3.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/CHANGELOG.txt CHANGED
@@ -2,6 +2,12 @@
2
2
  = rufus-scheduler CHANGELOG.txt
3
3
 
4
4
 
5
+ == rufus-scheduler - 3.1.3 released 2015/06/20
6
+
7
+ - prevent Thread[:rufus_scheduler_time] -> nil, gh-156
8
+ - fix inconsistency in Job#start_work_thread
9
+
10
+
5
11
  == rufus-scheduler - 3.1.2 released 2015/05/23
6
12
 
7
13
  - avoid cron/:first_at infinite loop, thanks https://github.com/pouellet
data/CREDITS.txt CHANGED
@@ -37,6 +37,8 @@
37
37
 
38
38
  == Feedback
39
39
 
40
+ - Patrik Ragnarsson - https://github.com/dentarg - timeout vs nil, gh-156
41
+ - twitter @adefilaedward1 - typo in readme
40
42
  - Michael Guymon - https://github.com/mguymon - #next_time vs :first_at
41
43
  - junhanamaki - https://github.com/junhanamaki - #next_time and dst ambiguities
42
44
  - kreynolds (tossrock) - inspiration for #occurrences
data/README.md CHANGED
@@ -78,7 +78,7 @@ There is no EventMachine-based scheduler anymore.
78
78
  Sir, I'll drive you right to the [tracks](#so-rails).
79
79
 
80
80
 
81
- ## Notables changes:
81
+ ## Notable changes:
82
82
 
83
83
  * As said, no more EventMachine-based scheduler
84
84
  * ```scheduler.every('100') {``` will schedule every 100 seconds (previously, it would have been 0.1s). This aligns rufus-scheduler on Ruby's ```sleep(100)```
@@ -39,7 +39,7 @@ module Rufus
39
39
  require 'rufus/scheduler/job_array'
40
40
  require 'rufus/scheduler/locks'
41
41
 
42
- VERSION = '3.1.2'
42
+ VERSION = '3.1.3'
43
43
 
44
44
  #
45
45
  # A common error class for rufus-scheduler
@@ -592,11 +592,11 @@ module Rufus
592
592
 
593
593
  job = t[:rufus_scheduler_job]
594
594
  to = t[:rufus_scheduler_timeout]
595
+ ts = t[:rufus_scheduler_time]
595
596
 
596
- next unless job && to
597
+ next unless job && to && ts
597
598
  # thread might just have become inactive (job -> nil)
598
599
 
599
- ts = t[:rufus_scheduler_time]
600
600
  to = to.is_a?(Time) ? to : ts + to
601
601
 
602
602
  next if to > Time.now
@@ -284,7 +284,7 @@ module Rufus
284
284
  Thread.new do
285
285
 
286
286
  Thread.current[@scheduler.thread_key] = true
287
- Thread.current[:rufus_scheduler_job_thread] = true
287
+ Thread.current[:rufus_scheduler_work_thread] = true
288
288
 
289
289
  loop do
290
290
 
@@ -66,6 +66,8 @@ describe Rufus::Scheduler::CronLine do
66
66
 
67
67
  to_a '0 0 1 1 *', [ [0], [0], [0], [1], [1], nil, nil, nil ]
68
68
 
69
+ to_a '52 0 * * *', [ [0], [52], [0], nil, nil, nil, nil, nil ]
70
+
69
71
  if ruby18?
70
72
  to_a '0 23-24 * * *', [ [0], [0], [0, 23], nil, nil, nil, nil, nil ]
71
73
  else
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: 3.1.2
4
+ version: 3.1.3
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: 2015-05-23 00:00:00.000000000 Z
12
+ date: 2015-06-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake