disquo 0.3.2 → 0.3.3

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
  SHA1:
3
- metadata.gz: 478f669678db9f4b49df090cb601c6d2d4fad7f1
4
- data.tar.gz: 62c78605fb663c5a4aea50c07911990e3ac1fac9
3
+ metadata.gz: 3509b03272fb2cddddbad48ad4b3015f8725b11d
4
+ data.tar.gz: 358107fc63bf97811090883bb68c6ada3c9c6957
5
5
  SHA512:
6
- metadata.gz: ded5fc8a2aa03764d1c3cafdf6640d88462ed856515ef30a6c2f8e042889a92890c173873ea98dfc921f28f9909e4822a6262fa4bcdc3d8484257d765f678e14
7
- data.tar.gz: 72f521a2a23ebcf6fe226e6fb49c8631d05c983ccabbca92e158280274329e8e7698cd80847a567c8d60e975ada140f9f2448d2ff92803c33a0fb0451d42bf32
6
+ metadata.gz: 9ec226472c802d747aa318a26618456dfa51873a3c89c64bc68430ab0d535520e7d793f8c688aebe677d1ef78f2a7dfe0bacd9be56c54268d9929019e5ccab62
7
+ data.tar.gz: 3e9a90c8d1438803375fbf8da8bc054760c3df3ab2efa09442a9d7bb4f96715f0ff379c0f54fb4ae1a89c40d6ee69aeeed891f57d97a759d1422ecd820500e8a
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- disquo (0.3.2)
4
+ disquo (0.3.3)
5
5
  concurrent-ruby
6
6
  connection_pool
7
7
  disque
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "disquo"
5
- s.version = "0.3.2"
5
+ s.version = "0.3.3"
6
6
  s.platform = Gem::Platform::RUBY
7
7
 
8
8
  s.licenses = ["Apache-2.0"]
@@ -17,7 +17,6 @@ module Disquo
17
17
  pool_timeout: 1,
18
18
  logfile: nil, # STDOUT
19
19
  wait_time: 1,
20
- wait_count: 100,
21
20
  }
22
21
 
23
22
  attr_reader :opts
@@ -68,8 +67,7 @@ module Disquo
68
67
  @worker = Disquo::Worker.new disque,
69
68
  queues: opts[:queues],
70
69
  concurrency: opts[:concurrency],
71
- wait_time: opts[:wait_time],
72
- wait_count: opts[:wait_count]
70
+ wait_time: opts[:wait_time]
73
71
  @worker.run
74
72
  @worker.wait
75
73
  end
@@ -3,7 +3,7 @@ require 'concurrent/executor/fixed_thread_pool'
3
3
  require 'concurrent/atomic/atomic_fixnum'
4
4
 
5
5
  class Disquo::Worker
6
- attr_reader :disque, :queues, :wait_time, :wait_count
6
+ attr_reader :disque, :queues, :wait_time
7
7
 
8
8
  # Init a new worker instance
9
9
  # @param [ConnectionPool] disque client connection pool
@@ -17,7 +17,7 @@ RSpec.describe ActiveJob::QueueAdapters::DisquoAdapter do
17
17
  "state" => "active",
18
18
  )
19
19
  expect(job_data["delay"]).to be_within(5).of(60)
20
- expect(job_data["retry"]).to be_within(5).of(360)
20
+ expect(job_data["retry"]).to be_within(5).of(300)
21
21
  expect(job_data["ttl"]).to be_within(5).of(3600)
22
22
  expect(Disquo.load_job(job_data["body"])).to eq([
23
23
  "ActiveJob::QueueAdapters::DisquoAdapter::JobWrapper",
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: disquo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dimitrij Denissenko
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-11-28 00:00:00.000000000 Z
11
+ date: 2017-11-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: disque