shoryuken-later 0.0.5 → 0.0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +14 -6
- data/lib/shoryuken/later/active_job_adapter.rb +2 -1
- data/lib/shoryuken/later/version.rb +1 -1
- data/shoryuken-later.gemspec +0 -0
- data/spec/spec_helper.rb +0 -0
- metadata +11 -11
checksums.yaml
CHANGED
@@ -1,7 +1,15 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
YWVkNjJiZGRhODQ5MzgzYjg1MzBlZjYyNjJiMDQ0MGNkZmMzOWM2NA==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
NTAzYjFmN2UzNzg1MDMyNmZiNzY0OWI5NjdmNDRhMWQyY2M5MGQ1MA==
|
7
|
+
!binary "U0hBNTEy":
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
MjFmNDMzMjE1NjIxYTAwMWNiOGUxYWIwOWRhNDQ3YjQ1YTYyM2M5ZjI5ODI5
|
10
|
+
Yzk2YTM4YTk3Y2JhZGUwNWE2NjExODY0YTBiOTI3NjE0YTIxYTUzNDNjNWU3
|
11
|
+
NjQ5ZTJmNTEyMTRiNzE1YmIxY2I5ZjJhODMzYmVlYTMwOWI0YTU=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
YWZjYzAzYzQzY2YyMmI4MTBiZTc5YzczYmRlMmIzMWFlODExMjNiNzhmZmIz
|
14
|
+
NjIwMGQ4OGEzMDBiMjQyZDk4NzYwNDhhNTQ4NmFhMThjOGU3ZDE2NmZkMDVm
|
15
|
+
ODM5YjFlZDhjOWUyZjE5OWE4YTFhMzE1OWI3MzAwN2U0Y2M5MDE=
|
@@ -6,6 +6,7 @@
|
|
6
6
|
# Example adapters ref: https://github.com/rails/rails/tree/master/activejob/lib/active_job/queue_adapters
|
7
7
|
|
8
8
|
require 'shoryuken-later'
|
9
|
+
require 'shoryuken/extensions/active_job_adapter'
|
9
10
|
|
10
11
|
module ActiveJob
|
11
12
|
module QueueAdapters
|
@@ -29,7 +30,7 @@ module ActiveJob
|
|
29
30
|
|
30
31
|
delay = (timestamp - Time.current.to_f).round
|
31
32
|
if delay > 15.minutes
|
32
|
-
Shoryuken::Later::Client.put_item(Shoryuken::Later.default_table, perform_at: delay.to_i,
|
33
|
+
Shoryuken::Later::Client.put_item(Shoryuken::Later.default_table, perform_at: Time.current.to_i + delay.to_i,
|
33
34
|
shoryuken_queue: job.queue_name, shoryuken_class: JobWrapper.to_s,
|
34
35
|
shoryuken_args: JSON.dump(body: job.serialize, options: {}))
|
35
36
|
else
|
data/shoryuken-later.gemspec
CHANGED
File without changes
|
data/spec/spec_helper.rb
CHANGED
File without changes
|
metadata
CHANGED
@@ -1,27 +1,27 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shoryuken-later
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.5
|
4
|
+
version: 0.0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joe Khoobyar
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-03-
|
11
|
+
date: 2015-03-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - '>='
|
17
|
+
- - ! '>='
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: 1.3.5
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - '>='
|
24
|
+
- - ! '>='
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 1.3.5
|
27
27
|
- !ruby/object:Gem::Dependency
|
@@ -62,14 +62,14 @@ dependencies:
|
|
62
62
|
name: aws-sdk-v1
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|
64
64
|
requirements:
|
65
|
-
- - '>='
|
65
|
+
- - ! '>='
|
66
66
|
- !ruby/object:Gem::Version
|
67
67
|
version: '0'
|
68
68
|
type: :runtime
|
69
69
|
prerelease: false
|
70
70
|
version_requirements: !ruby/object:Gem::Requirement
|
71
71
|
requirements:
|
72
|
-
- - '>='
|
72
|
+
- - ! '>='
|
73
73
|
- !ruby/object:Gem::Version
|
74
74
|
version: '0'
|
75
75
|
- !ruby/object:Gem::Dependency
|
@@ -100,8 +100,8 @@ dependencies:
|
|
100
100
|
- - ~>
|
101
101
|
- !ruby/object:Gem::Version
|
102
102
|
version: 0.0.5
|
103
|
-
description: "\n This gem provides a scheduling plugin (using Dynamo DB) for
|
104
|
-
as well as an ActiveJob adapter\n "
|
103
|
+
description: ! "\n This gem provides a scheduling plugin (using Dynamo DB) for
|
104
|
+
Shoryuken, as well as an ActiveJob adapter\n "
|
105
105
|
email:
|
106
106
|
- joe@khoobyar.name
|
107
107
|
executables:
|
@@ -140,17 +140,17 @@ require_paths:
|
|
140
140
|
- lib
|
141
141
|
required_ruby_version: !ruby/object:Gem::Requirement
|
142
142
|
requirements:
|
143
|
-
- - '>='
|
143
|
+
- - ! '>='
|
144
144
|
- !ruby/object:Gem::Version
|
145
145
|
version: 2.0.0
|
146
146
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
147
147
|
requirements:
|
148
|
-
- - '>='
|
148
|
+
- - ! '>='
|
149
149
|
- !ruby/object:Gem::Version
|
150
150
|
version: '0'
|
151
151
|
requirements: []
|
152
152
|
rubyforge_project:
|
153
|
-
rubygems_version: 2.
|
153
|
+
rubygems_version: 2.0.3
|
154
154
|
signing_key:
|
155
155
|
specification_version: 4
|
156
156
|
summary: A scheduling plugin (using Dynamo DB) for Shoryuken
|