bushpig 0.1.13 → 0.1.14

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
  SHA256:
3
- metadata.gz: 3734548409aa83fc79488340605bfaa5e0392256d824582f4ccda55373ee583a
4
- data.tar.gz: 255742a44f9c90708e4b43c220b8b4e59473a7acbb394ea3429def0048967422
3
+ metadata.gz: 50478f11ab72c719f2b8ef316866f3822370b9680bbf926b66ee6e981688057e
4
+ data.tar.gz: 7a5e2e7b548556b6484a8d2b5998cc5eb59b167023a972628c44a23646fe6cbd
5
5
  SHA512:
6
- metadata.gz: 463def79cc73a657c34e3175e01f46c7d69707863039e915e785cf19c5ecdfbbd5fe1568ab9b2af447bc5cd336ea6439876de088632f9114bbe832a5bc838b33
7
- data.tar.gz: 5441f75ed689e920a833e455d20da4c6aa4dec1367779ed2a457e078f4af055ae02bdb1169a858d438b49025677ae4cbfa8c386714c39087a056655f88812aed
6
+ metadata.gz: a2f3d17d804d1de3e378274408c8109c9dd26895249624ed175ea3f2fcbb0ac52410931f5c0d09378306595c44060abe3bc2875737d95d84f04192d4dfe06b29
7
+ data.tar.gz: 588e4f398d33a51e15264b15709a45523f75a954f283d73317551e5f089a609bfdbd489f0c604eacd5c12136ca00edd6cf8a2a0cc44e35a72b1d25b214e19330
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bushpig (0.1.13)
4
+ bushpig (0.1.14)
5
5
  connection_pool (~> 2.2)
6
6
  json (>= 1.8)
7
7
  redis (~> 3.3)
data/gemset.nix CHANGED
@@ -186,7 +186,7 @@
186
186
  path = ./.;
187
187
  type = "path";
188
188
  };
189
- version = "0.1.13";
189
+ version = "0.1.14";
190
190
  };
191
191
  coderay = {
192
192
  groups = ["default" "development"];
@@ -19,15 +19,16 @@ module Bushpig
19
19
  end
20
20
 
21
21
  def submit(queue, job, score: default_score, ttl: default_ttl)
22
- if Bushpig.testing
23
- job.handle
24
- return true
25
- end
26
- modified = @callback.call(job)
27
- redis_pool.with do |conn|
28
- conn.set(Bushpig.job_key(modified.job_key), modified.job_payload, ex: ttl)
29
- conn.zadd(Bushpig.queue_key(queue), score, modified.job_key)
30
- end
22
+ new = if Bushpig.testing
23
+ job.handle
24
+ true
25
+ else
26
+ redis_pool.with do |conn|
27
+ conn.set(Bushpig.job_key(job.job_key), job.job_payload, ex: ttl)
28
+ conn.zadd(Bushpig.queue_key(queue), score, job.job_key)
29
+ end
30
+ end
31
+ @callback.call(job, new)
31
32
  end
32
33
  end
33
34
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Bushpig
4
- VERSION = '0.1.13'
4
+ VERSION = '0.1.14'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bushpig
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.13
4
+ version: 0.1.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shaun Sharples