shoryuken-later 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MzYxOWE4MDhiZmVkMjc5YjBjNTE4ZjJiY2VmOTY1OGI1MDhkYWU3NA==
4
+ MzBhOTRiYmE3MTc2MWU5NzE4OTg3YjUzNjg4N2I2OGJjYWE1ZWEyNQ==
5
5
  data.tar.gz: !binary |-
6
- ODMzY2ZkNGExNzlmNjYwZWI3NjcxMWI4MWE3YWQ0NDE4MmZkZDBiYw==
6
+ MDUxYzI1OWIyYjBmYTZhYmVmZDNhYzEwZTFhYzhkMjI1YmJlZmVlMw==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- Yjg1OGYxNzRiOWUxNDg5NTVkZGQxNGRmNzM5Njc5YzQzNTcxZTUxM2U3MTRj
10
- NDU1YmRiYzQxYTgzMDQ2MWNlNDcyZGU1MDMyOGMzZTFiMTg2MjA0ZTQzNmIz
11
- MzlkZGZmYmM2N2EyMTI1MzI1MGYwNTg1ZjUwOTk0ZTRhNThkOGY=
9
+ ZjBiOTEwMGEwMGIxMmI2NDRkOTAyNmIzODU4MzNlNDAzMzZmZDRhNWE5ODM0
10
+ MDkzZWYxMzY4MDcwMzEwZDdlNmI5ODY1ZjU5NmJmYTc4NTljMTgwMDRjZGY1
11
+ NWM3NTljMTExNzA1MmY3NjdlMDE2OGJlYzFjMzg1YmYxYTc4OWU=
12
12
  data.tar.gz: !binary |-
13
- MjJjY2Q5MWViNTBlMDFjNjc4Y2RiNWYwZDE0MTYwNThiZTMyMzI2ZWMyNjdi
14
- MjhkMzA0ZjAzNGMxMWE0OTU5NzAzNzE1NGY2NTdkMDUyOTVjYjAwNDdmY2Y3
15
- ZDRlNTlmNjI2ZGQ5MDJlOWIwZjIxMTJlMWI5ZWUxNjZiYzVmZTc=
13
+ YmU4ZDFlMjJjYWY4ZThiNzdiNjJlMGFlNzY3Y2EwMGNmY2NlNTc4YTIyYjUy
14
+ ZmY5ZTIxYWU0NDViYjI2NzhlMDNhOGEwYzMyZDVjM2ZhNTk1NzE4ZGJjZDkx
15
+ MGQ3ZjA2YTYzZGUwY2I3ZGFhOWM4N2QzODg4YzAyMzlkZmJjZWI=
@@ -33,7 +33,7 @@ module ActiveJob
33
33
 
34
34
  delay = (timestamp - Time.current.to_f).round
35
35
  if delay > 15.minutes
36
- Shoryuken::Later::Client.put_item(Shoryuken::Later.default_table, perform_at: delay.to_i,
36
+ Shoryuken::Later::Client.put_item(Shoryuken::Later.default_table, perform_at: Time.current.to_i + delay.to_i,
37
37
  shoryuken_queue: job.queue_name, shoryuken_class: JobWrapper.to_s,
38
38
  shoryuken_args: JSON.dump(body: job.serialize, options: {}))
39
39
  else
@@ -1,5 +1,5 @@
1
1
  module Shoryuken
2
2
  module Later
3
- VERSION = '0.0.1'
3
+ VERSION = '0.0.2'
4
4
  end
5
5
  end
File without changes
data/spec/spec_helper.rb CHANGED
File without changes
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shoryuken-later
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
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-06 00:00:00.000000000 Z
11
+ date: 2015-03-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler