resqued 0.7.11 → 0.7.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGES.md +6 -0
- data/README.md +8 -0
- data/lib/resqued/master.rb +1 -1
- data/lib/resqued/version.rb +1 -1
- metadata +3 -5
- data/spec/resqued/test_case_spec.rb.orig +0 -39
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 217c9c390f76d08b6a1aa2e16f926681a0e6bb75
|
4
|
+
data.tar.gz: 947f5a477ae6533808679d9bc43596415fe84131
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a327fea71345130cb1db0c66ddb3f385061323e6c1261fd25a3f785bee413f998523ce4aa4e1addf8339f58de4b7255b9b35b676225ee5290bbe9d31d4a0968f
|
7
|
+
data.tar.gz: 5fda5a050c55ac5e7dbc911aceae8ba78a288f63fae042b57b88e13b9dcafe2ccec00ff4f87f2541f4bcba46ea2875a348630c85c55775c418b15f68915a2700
|
data/CHANGES.md
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
Starting with version 0.6.1, resqued uses semantic versioning to indicate incompatibilities between the master process, listener process, and configuration.
|
2
2
|
|
3
|
+
v0.7.12
|
4
|
+
-------
|
5
|
+
|
6
|
+
* Fix EXIT trap. (#34)
|
7
|
+
* Document resque compatibility. (#20)
|
8
|
+
|
3
9
|
v0.7.11
|
4
10
|
-------
|
5
11
|
|
data/README.md
CHANGED
@@ -55,6 +55,14 @@ This time, you'd end up with something similar to this:
|
|
55
55
|
|
56
56
|
* `:interval` - The interval to pass to `Resque::Worker#run`.
|
57
57
|
|
58
|
+
## Compatibility with Resque
|
59
|
+
|
60
|
+
Resqued does not automatically split comma-separated lists of queues in
|
61
|
+
environment variables like Resque does. To continue using comma-separated
|
62
|
+
lists, split them in your resqued config file:
|
63
|
+
|
64
|
+
queue (ENV["QUEUE"] || "*").split(',')
|
65
|
+
|
58
66
|
## Loading your application
|
59
67
|
|
60
68
|
An advantage of using resqued (over `rake resque:work`) is that you can load your application just once, before forking all the workers.
|
data/lib/resqued/master.rb
CHANGED
data/lib/resqued/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: resqued
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Burke
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-02-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: kgio
|
@@ -124,7 +124,6 @@ files:
|
|
124
124
|
- spec/resqued/config_spec.rb
|
125
125
|
- spec/resqued/sleepy_spec.rb
|
126
126
|
- spec/resqued/test_case_spec.rb
|
127
|
-
- spec/resqued/test_case_spec.rb.orig
|
128
127
|
- spec/spec_helper.rb
|
129
128
|
- spec/support/custom_matchers.rb
|
130
129
|
- exe/resqued
|
@@ -149,7 +148,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
149
148
|
version: '0'
|
150
149
|
requirements: []
|
151
150
|
rubyforge_project:
|
152
|
-
rubygems_version: 2.0.
|
151
|
+
rubygems_version: 2.0.14
|
153
152
|
signing_key:
|
154
153
|
specification_version: 4
|
155
154
|
summary: Daemon of resque workers
|
@@ -165,6 +164,5 @@ test_files:
|
|
165
164
|
- spec/resqued/config_spec.rb
|
166
165
|
- spec/resqued/sleepy_spec.rb
|
167
166
|
- spec/resqued/test_case_spec.rb
|
168
|
-
- spec/resqued/test_case_spec.rb.orig
|
169
167
|
- spec/spec_helper.rb
|
170
168
|
- spec/support/custom_matchers.rb
|
@@ -1,39 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
require 'resqued/test_case'
|
3
|
-
|
4
|
-
describe Resqued::TestCase do
|
5
|
-
let(:test_case) { Object.new.extend(the_module) }
|
6
|
-
|
7
|
-
context 'LoadConfig' do
|
8
|
-
let(:the_module) { described_class::LoadConfig }
|
9
|
-
it { expect { test_case.assert_resqued 'spec/fixtures/test_case_environment.rb', 'spec/fixtures/test_case_clean.rb' }.not_to raise_error }
|
10
|
-
it { expect { test_case.assert_resqued 'spec/fixtures/test_case_environment.rb', 'spec/fixtures/test_case_before_fork_raises.rb' }.to raise_error }
|
11
|
-
it { expect { test_case.assert_resqued 'spec/fixtures/test_case_environment.rb', 'spec/fixtures/test_case_after_fork_raises.rb' }.to raise_error }
|
12
|
-
it { expect { test_case.assert_resqued 'spec/fixtures/test_case_environment.rb', 'spec/fixtures/test_case_no_workers.rb' }.not_to raise_error }
|
13
|
-
<<<<<<< HEAD
|
14
|
-
=======
|
15
|
-
it { expect { test_case.assert_resqued 'spec/fixtures/test_case_environment.rb', 'spec/fixtures/test_case_clean.rb', :expect_workers => true }.not_to raise_error }
|
16
|
-
it { expect { test_case.assert_resqued 'spec/fixtures/test_case_environment.rb', 'spec/fixtures/test_case_after_fork_raises.rb', :expect_workers => true }.to raise_error }
|
17
|
-
it { expect { test_case.assert_resqued 'spec/fixtures/test_case_environment.rb', 'spec/fixtures/test_case_no_workers.rb', :expect_workers => true }.to raise_error }
|
18
|
-
end
|
19
|
-
end if false
|
20
|
-
|
21
|
-
class MockRedisServer
|
22
|
-
def start
|
23
|
-
return if @server
|
24
|
-
require 'socket'
|
25
|
-
@server = TCPServer.new(0)
|
26
|
-
end
|
27
|
-
|
28
|
-
def stop
|
29
|
-
return unless @server
|
30
|
-
@server.close
|
31
|
-
ensure
|
32
|
-
@server = nil
|
33
|
-
end
|
34
|
-
|
35
|
-
def port
|
36
|
-
@server && @server.addr[1]
|
37
|
-
>>>>>>> origin/master
|
38
|
-
end
|
39
|
-
end
|