day_planner 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 087bf6c25abf28aae91daf4a2cc5588124c39ec0
4
- data.tar.gz: ab0a8bd20205d887eed7284d2fb0525ec3f5acb6
3
+ metadata.gz: ff31def7cdc17c25def7b0076fdeddf8a8663512
4
+ data.tar.gz: 26e0dd03a52c87192c201dfce2b664c6284ea36d
5
5
  SHA512:
6
- metadata.gz: 146334ddc8585204defae81055d90a9887a85014551cde59ed15b10a80718e553cf4b676c559f99203fee1d9abbf5ceb172aa40c14a1abce43b3b8c0b45875a9
7
- data.tar.gz: f2a6f37630a0c7209903ca18d201ba23666bcde53d44c9978c4aa7434c9a1d2bb408eef3e7143e9bcbce411c0c31b7c8f53909ff7f89fbd6d2b95a7b1da540a9
6
+ metadata.gz: f5c111fccf653d215791109f48fbea0c1a826512a431e093e46769c417dde0529fe060e61a95e3e85f9319f7c4d5893b819e22271ee06b10aa92123d9aef8041
7
+ data.tar.gz: 3389df345dc78fb28458e2fc0dbf2afe44a72d5d13ed1cbd7488436d6e006dc1339a23af53b248e3834323a7b4363b8199fe776b996a8d6654d64cddc8ce5313
data/README.md CHANGED
@@ -24,7 +24,7 @@ If you're using Rails, it'll expect to find a file listing scheduled tasks in 'c
24
24
 
25
25
  ## Usage
26
26
 
27
- Here's an example of a scheduled task, living in (app)/config/day_planner_tasks.rb (this is the required/automatic location of the schedule file if you're using Rails):
27
+ Here's an example of a scheduled task, living in (app)/config/scheduled_tasks.rb (this is the required/automatic location of the schedule file if you're using Rails):
28
28
 
29
29
  DayPlanner.schedule(every: 2.minutes) do
30
30
  MyClass.my_class_method
@@ -34,7 +34,7 @@ Obviously you only get those cute little time methods in Rails; otherwise, pass
34
34
 
35
35
  The tasks in the schedule will each be performed on startup and then thereafter according to their stated intervals.
36
36
 
37
- I'm not doing a whole damn ton to protect you from tasks that throw errors, but there is a begin/rescue/end up in there at some point. I definitely am not protecting you from a process that just won't end or anything like that. Given that each task is run in its own thread, you have reasonable assurance that they are occuring at whatever interval you specify plus a very small amount of overhead.
37
+ I'm not doing a whole damn ton to protect you from tasks that throw errors, but there is a begin/rescue/end up in there at some point. I definitely am not protecting you from a process that just won't end or anything like that. Given that each task is run in its own thread, you have some faint assurance that they are occuring at whatever interval you specify plus a very small amount of overhead.
38
38
 
39
39
  By default, DayPlanner checks for tasks to be performed once per minute. You have the power to change this:
40
40
 
@@ -117,6 +117,6 @@ module DayPlanner
117
117
  end
118
118
  end
119
119
 
120
- DayPlanner.activate
120
+ require File.expand_path('config/scheduled_tasks') if defined?(Rails)
121
121
 
122
- require File.expand_path('config/day_planner_tasks') if defined?(Rails)
122
+ DayPlanner.activate
@@ -1,7 +1,7 @@
1
1
  module DayPlanner
2
2
  MAJOR = 0
3
3
  MINOR = 0
4
- TINY = 4
4
+ TINY = 5
5
5
  BUILD = nil
6
6
 
7
7
  VERSION = [MAJOR, MINOR, TINY, BUILD].compact.join(".")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: day_planner
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Damon Siefert