CronR 0.1.0 → 0.1.1
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.
- checksums.yaml +4 -4
- data/lib/CronR/Cron.rb +10 -2
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a2c08d34d7cbefa8c56813ea163f099851267022
|
4
|
+
data.tar.gz: 8f9c9f566195cc730b7627ed8d27ca31846d777a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ad00d09826d37e9e7f7103f20d0f2ac261a079fbaf7349afb56f5ea385a17a95b86c600d01bd14531f7ba28c477aa22753cd1c7797611b41d8b76702bc3c384d
|
7
|
+
data.tar.gz: b07fe655a44517573c65ebe89c293c7a6245aba26b4130caa423e550a5b256730d8c8f73e3097f73e572a06da1e5c8d5bd9a3b9e60910f49f7ac07fef9666f5d
|
data/lib/CronR/Cron.rb
CHANGED
@@ -65,9 +65,17 @@ module CronR
|
|
65
65
|
#
|
66
66
|
# If a runnable item carries a proc, we don't run it - the thread
|
67
67
|
# used in Cron is just for doing cron.
|
68
|
-
# So runnable items are basically enqueued to @
|
69
|
-
# @schedule is just a queue.
|
68
|
+
# So runnable items are basically enqueued to @queue.
|
70
69
|
# You can create an thread and have it dequeue this queue.
|
70
|
+
#
|
71
|
+
# Thread.new {
|
72
|
+
# loop {
|
73
|
+
# job = cron.queue.deq
|
74
|
+
# job.run # Using CronJob#run .
|
75
|
+
# ...
|
76
|
+
# }
|
77
|
+
# }
|
78
|
+
#
|
71
79
|
# You can also replace queue with something. It should respond
|
72
80
|
# to #enq and #deq and be thread-safe. One example might be
|
73
81
|
# to have #enq insert a record into a table.
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: CronR
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Bush
|
@@ -9,7 +9,21 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
date: 2014-04-19 00:00:00.000000000 Z
|
12
|
-
dependencies:
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: activesupport
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - '>='
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 3.0.0
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - '>='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 3.0.0
|
13
27
|
description: Simple, thread-based, light-weight cron implementation.
|
14
28
|
email: dlb.id.au@gmail.com
|
15
29
|
executables: []
|