chore-core 4.0.0 → 4.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/chore/cli.rb +1 -1
- data/lib/chore/version.rb +1 -1
- data/spec/chore/cli_spec.rb +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 14cf933fa097e21cefd68a8fb47970cb5e9eb889
|
4
|
+
data.tar.gz: 9c62d3f54e42359ac069d1d8903a2078b2f59ee9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 42be728df52adca79da1abad05f98259efba767c0100fbd46ad2a83bd2ca777e1c2cc2aa9aafc0c6dbfaff159f622c63b6c55d01bc148bca4a7b9b930833de9c
|
7
|
+
data.tar.gz: acced3995b2916e36eb4ca5ba0735d57e6e987f80d792de64311576210757d900c58349c0f5d8e56a9619284139437b98f776ece5c985cf06a58ffc509a0ddc4
|
data/lib/chore/cli.rb
CHANGED
@@ -118,7 +118,7 @@ module Chore #:nodoc:
|
|
118
118
|
register_option 'num_workers', '--concurrency NUM', Integer, 'Number of workers to run concurrently'
|
119
119
|
|
120
120
|
register_option 'queue_prefix', '--queue-prefix PREFIX', "Prefix to use on Queue names to prevent non-determinism in testing environments" do |arg|
|
121
|
-
options[:queue_prefix] = arg.downcase
|
121
|
+
options[:queue_prefix] = arg.downcase
|
122
122
|
end
|
123
123
|
|
124
124
|
register_option 'max_attempts', '--max-attempts NUM', Integer, 'Number of times to attempt failed jobs'
|
data/lib/chore/version.rb
CHANGED
data/spec/chore/cli_spec.rb
CHANGED
@@ -64,13 +64,13 @@ describe Chore::CLI do
|
|
64
64
|
end
|
65
65
|
|
66
66
|
it 'should honor --queue-prefix when processing all queues' do
|
67
|
-
cli.parse(['--queue-prefix=
|
67
|
+
cli.parse(['--queue-prefix=prefixey_'])
|
68
68
|
Chore.config.queues.should include('prefixey_test2')
|
69
69
|
end
|
70
70
|
|
71
71
|
context 'when provided duplicate queues' do
|
72
72
|
let(:queue_options) {['--queues=test2,test2']}
|
73
|
-
before :each do
|
73
|
+
before :each do
|
74
74
|
cli.parse(queue_options)
|
75
75
|
end
|
76
76
|
|
@@ -88,7 +88,7 @@ describe Chore::CLI do
|
|
88
88
|
end
|
89
89
|
|
90
90
|
context 'when both --queue_prefix and --queues have been provided' do
|
91
|
-
let(:queue_options) {['--queue-prefix=
|
91
|
+
let(:queue_options) {['--queue-prefix=prefixy_', '--queues=test2']}
|
92
92
|
before :each do
|
93
93
|
cli.parse(queue_options)
|
94
94
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chore-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tapjoy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-09-
|
11
|
+
date: 2020-09-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|