allora 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/allora/backend/redis.rb +3 -3
- data/lib/allora/version.rb +1 -1
- metadata +21 -21
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: ff281f838230fe1451b49f7abfc6777bf7d5b81d
|
4
|
+
data.tar.gz: 9ae0d34c81ad01051b15b9ccd50e669e717aeb64
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 4ed7af5cd33bcf5e15fc60b209dd8c63078d22962bac70e4f2361d8a7ee8430e8a07171d319b805825539655e2d6c50306401e65c6f819175257eee4cde85078
|
7
|
+
data.tar.gz: 38df2e96d42d0c31ad62d5dd18d56be61de404a377ece63d8124f18e3e3a0ae352922707fe371f0e6c68c75e6b1c37358d894cd29f4e19ea5b87568c8e427972
|
data/lib/allora/backend/redis.rb
CHANGED
@@ -85,9 +85,9 @@ module Allora
|
|
85
85
|
run_at = int_to_time(redis.get(job_info_key(name)))
|
86
86
|
|
87
87
|
if run_at <= time
|
88
|
-
redis.multi
|
89
|
-
|
90
|
-
|
88
|
+
redis.multi do
|
89
|
+
redis.set(job_info_key(name), time_to_int(job.next_at(time)))
|
90
|
+
end
|
91
91
|
else
|
92
92
|
redis.unwatch && false
|
93
93
|
end
|
data/lib/allora/version.rb
CHANGED
metadata
CHANGED
@@ -1,34 +1,36 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: allora
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.0.7
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- d11wtq
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2013-07-02 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: redis
|
16
|
-
requirement:
|
17
|
-
none: false
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - '>='
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: '0'
|
22
20
|
type: :development
|
23
21
|
prerelease: false
|
24
|
-
version_requirements:
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - '>='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
description: |-
|
28
|
+
Allora (Italian for "at that time") provides a replacement for the classic UNIX
|
29
|
+
cron, using nothing but ruby. It is very small, easy to follow and relatively
|
30
|
+
feature-light. It does support a locking mechanism, backed by Redis, or any
|
31
|
+
other custom implementation, which makes it possible to run the scheduler on
|
32
|
+
more than one server, without worrying about jobs executing more than once per
|
33
|
+
scheduled time.
|
32
34
|
email:
|
33
35
|
- chris@w3style.co.uk
|
34
36
|
executables: []
|
@@ -53,27 +55,25 @@ files:
|
|
53
55
|
- lib/allora/version.rb
|
54
56
|
homepage: https://github.com/flippa/allora
|
55
57
|
licenses: []
|
58
|
+
metadata: {}
|
56
59
|
post_install_message:
|
57
60
|
rdoc_options: []
|
58
61
|
require_paths:
|
59
62
|
- lib
|
60
63
|
required_ruby_version: !ruby/object:Gem::Requirement
|
61
|
-
none: false
|
62
64
|
requirements:
|
63
|
-
- -
|
65
|
+
- - '>='
|
64
66
|
- !ruby/object:Gem::Version
|
65
67
|
version: '0'
|
66
68
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
67
|
-
none: false
|
68
69
|
requirements:
|
69
|
-
- -
|
70
|
+
- - '>='
|
70
71
|
- !ruby/object:Gem::Version
|
71
72
|
version: '0'
|
72
73
|
requirements: []
|
73
74
|
rubyforge_project: allora
|
74
|
-
rubygems_version:
|
75
|
+
rubygems_version: 2.0.3
|
75
76
|
signing_key:
|
76
|
-
specification_version:
|
77
|
+
specification_version: 4
|
77
78
|
summary: A ruby scheduler that keeps it simple, with support for distributed schedules
|
78
79
|
test_files: []
|
79
|
-
has_rdoc:
|