quebert 3.2.0 → 3.2.1

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: baaa9b7110f75a9e262655df715e382e9ed077ef
4
- data.tar.gz: e7a853977371a583075d20f49b4ff3d60d8a3b46
3
+ metadata.gz: b4e96fc6fb9bf3251e14d949b0fff1c41773627f
4
+ data.tar.gz: df6e6597d8cd3f13a40a271a2f64d2c29c307b53
5
5
  SHA512:
6
- metadata.gz: 4c1f3b987b48dcdd55440807402135e07c29f918a2912fbc5996121c81508b083db251d558d40491ea3a09452c63b6e799f04cff1879afd7bc2404dacaed0587
7
- data.tar.gz: 38afc9cb326c59c5da71fb1d96396c3aac0eb4cc889d2e5288b8673792f7150b33a705bf7dea45cc0828246b54b669516f8dcefae78d2d30e35329d62b45c58b
6
+ metadata.gz: 5e96e7f2092bfca4006c11fd07e20976ced92eaf998fa2e251c33e880d41da06adefcb1e0f6151a5e2f165388fdf03bc288ad30a45cc1cbbf709fd04333a5d41
7
+ data.tar.gz: d6c793aad2d0b20f51bf38eb32bd40ba67f6536eb19956caa5ef6bcae8f53dc123941c35f885bffbfe2d3fe82edf6ba48fbe3b2081a1adc6ae897c6b28cd4a8c
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 3.2.1
2
+
3
+ * Fix bug with low priority constant value
4
+
1
5
  ## 3.2.0
2
6
 
3
7
  * Add support for Beanstalk event hooks (#22)
data/README.md CHANGED
@@ -6,15 +6,15 @@ Quebert is a ruby background worker library that works with the very fast and si
6
6
 
7
7
  ## Why Quebert?
8
8
 
9
- Because it has really low latency. Other Ruby queuing frameworks, like [DJ](https://github.com/collectiveidea/delayed_job) or [Resque](https://github.com/resque/resque), have to poll their queue servers periodicly. You could think of it as a "pull" queue. Quebert is a "push" queue. It maintains a persistent connection with beanstalkd and when is enqueud, its instantly pushed to the workers and executed.
9
+ Because it has really low latency. Other Ruby queuing frameworks, like [DJ](https://github.com/collectiveidea/delayed_job) or [Resque](https://github.com/resque/resque), have to poll their queue servers periodicly. You could think of it as a "pull" queue. Quebert is a "push" queue. It maintains a persistent connection with beanstalkd and when is enqueued, it's instantly pushed to the workers and executed.
10
10
 
11
11
  [Sidekiq](http://sidekiq.org) uses Redis's "push" primitives so it has low latency, but it doesn't support class reloading in a development environment. Sidekiq is also threaded, which means there are no guarantees of reliability when running non-threadsafe code.
12
12
 
13
- [Backburner](https://github.com/nesquena/backburner) is very similar to Quebert. It offers more options for concurrency (threading, forking, etc.) than queubert but lacks pluggable back-ends, which means you'll be stubbing and mocking async calls.
13
+ [Backburner](https://github.com/nesquena/backburner) is very similar to Quebert. It offers more options for concurrency (threading, forking, etc.) than Quebert but lacks pluggable back-ends, which means you'll be stubbing and mocking async calls.
14
14
 
15
15
  ## Who uses it?
16
16
 
17
- Quebert is a serious project. Its used in a production environment at [Poll Everywhere](https://www.polleverywhere.com/) to handle everything from SMS message processing to account downgrades.
17
+ Quebert is a serious project. It's used in a production environment at [Poll Everywhere](https://www.polleverywhere.com/) to handle everything from SMS message processing to account downgrades.
18
18
 
19
19
  ## Features
20
20
 
data/lib/quebert/job.rb CHANGED
@@ -10,7 +10,7 @@ module Quebert
10
10
 
11
11
  # Prioritize Quebert jobs as specified in https://github.com/kr/beanstalkd/blob/master/doc/protocol.txt.
12
12
  class Priority
13
- LOW = 2**32
13
+ LOW = 2**32 - 1
14
14
  MEDIUM = LOW / 2
15
15
  HIGH = 0
16
16
  end
@@ -1,3 +1,3 @@
1
1
  module Quebert
2
- VERSION = "3.2.0"
2
+ VERSION = "3.2.1"
3
3
  end
data/quebert.gemspec CHANGED
@@ -8,8 +8,9 @@ Gem::Specification.new do |s|
8
8
  s.authors = ["Brad Gessler", "Steel Fu", "Jeff Vyduna"]
9
9
  s.email = ["brad@bradgessler.com"]
10
10
  s.homepage = "http://github.com/polleverywhere/quebert"
11
- s.summary = %q{A worker queue framework built around beanstalkd}
12
- s.description = %q{A worker queue framework built around beanstalkd}
11
+ s.summary = %q{A worker queue framework built around beanstalkd.}
12
+ s.description = %q{Quebert is a worker queue framework built around beanstalkd. Use it in your Rails apps for job processing.}
13
+ s.license = "MIT"
13
14
 
14
15
  s.rubyforge_project = "quebert"
15
16
 
data/spec/job_spec.rb CHANGED
@@ -42,11 +42,11 @@ describe Quebert::Job do
42
42
  end
43
43
 
44
44
  describe "Quebert::Job::Priority" do
45
- it "should have LOW priority of 4294967296" do
46
- expect(Quebert::Job::Priority::LOW).to eql(4294967296)
45
+ it "should have LOW priority of 4294967295" do
46
+ expect(Quebert::Job::Priority::LOW).to eql(4294967295)
47
47
  end
48
48
  it "should have MEDIUM priority of 2147483648" do
49
- expect(Quebert::Job::Priority::MEDIUM).to eql(2147483648)
49
+ expect(Quebert::Job::Priority::MEDIUM).to eql(2147483647)
50
50
  end
51
51
  it "should have HIGH priority of 0" do
52
52
  expect(Quebert::Job::Priority::HIGH).to eql(0)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: quebert
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.0
4
+ version: 3.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brad Gessler
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2017-04-17 00:00:00.000000000 Z
13
+ date: 2019-04-09 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: json
@@ -54,7 +54,8 @@ dependencies:
54
54
  - - '='
55
55
  - !ruby/object:Gem::Version
56
56
  version: 2.7.0
57
- description: A worker queue framework built around beanstalkd
57
+ description: Quebert is a worker queue framework built around beanstalkd. Use it in
58
+ your Rails apps for job processing.
58
59
  email:
59
60
  - brad@bradgessler.com
60
61
  executables:
@@ -114,7 +115,8 @@ files:
114
115
  - spec/support_spec.rb
115
116
  - spec/worker_spec.rb
116
117
  homepage: http://github.com/polleverywhere/quebert
117
- licenses: []
118
+ licenses:
119
+ - MIT
118
120
  metadata: {}
119
121
  post_install_message:
120
122
  rdoc_options: []
@@ -135,7 +137,7 @@ rubyforge_project: quebert
135
137
  rubygems_version: 2.6.11
136
138
  signing_key:
137
139
  specification_version: 4
138
- summary: A worker queue framework built around beanstalkd
140
+ summary: A worker queue framework built around beanstalkd.
139
141
  test_files:
140
142
  - spec/async_sender_spec.rb
141
143
  - spec/backend_spec.rb