chore-core 4.0.0 → 4.1.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9c18dd2782818f483d141ed7fff2daac3b9dacab
4
- data.tar.gz: 78b658a9ad9b2e79126f194a56090e8e9da16d8f
3
+ metadata.gz: 14cf933fa097e21cefd68a8fb47970cb5e9eb889
4
+ data.tar.gz: 9c62d3f54e42359ac069d1d8903a2078b2f59ee9
5
5
  SHA512:
6
- metadata.gz: 24ef03d8f8a42f2632073c2bfa4df9e466aa9fea90350f8df496dc117cae946aff83fcc1f4d458c00f1b8149067c85d3f990ebddac7b85d8d443901cf94062e9
7
- data.tar.gz: 0925bbf1e586472db8a894116b2b9b6f4fe13c54941e250ae1006f400baf6fe35261314c63934c40d2f1b683dea2dd33c684d134f2edb07fecf7c1ae88001c48
6
+ metadata.gz: 42be728df52adca79da1abad05f98259efba767c0100fbd46ad2a83bd2ca777e1c2cc2aa9aafc0c6dbfaff159f622c63b6c55d01bc148bca4a7b9b930833de9c
7
+ data.tar.gz: acced3995b2916e36eb4ca5ba0735d57e6e987f80d792de64311576210757d900c58349c0f5d8e56a9619284139437b98f776ece5c985cf06a58ffc509a0ddc4
@@ -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'
@@ -1,7 +1,7 @@
1
1
  module Chore
2
2
  module Version #:nodoc:
3
3
  MAJOR = 4
4
- MINOR = 0
4
+ MINOR = 1
5
5
  PATCH = 0
6
6
 
7
7
  STRING = [ MAJOR, MINOR, PATCH ].join('.')
@@ -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=prefixey'])
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=prefixy', '--queues=test2']}
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.0.0
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-14 00:00:00.000000000 Z
11
+ date: 2020-09-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json