sidekiq 5.2.4 → 5.2.5

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of sidekiq might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 196f3dd99544e452ff05bef91694c5fad03709698b2f8db7003d68c06f052331
4
- data.tar.gz: d99781e4c97a42b38c0cb9f46632190b941d8a332d763aeb4b92755848f94142
3
+ metadata.gz: e05ebe69a6d3d12f50f741e147e413b78dbc24038f8a22bf5bbdff8cd4a1f1a0
4
+ data.tar.gz: 45b1a5cdc5bc79fbe35599d6e5942c21590fea0b88d9b5adc8ae3ddc767f65eb
5
5
  SHA512:
6
- metadata.gz: 8cc76b2d418c6d9025aeede974085a8beb6e24d960a7dc01890ab8233081c99b3bf929411f7605f47f8adeaac034760f74bdb7d10e186dd2ba9b6200e3e5e24e
7
- data.tar.gz: e0b6469801595ed80c059a73af86e6fc8d5092666af399d64cec4fc0e7bc0b4fd1a6f0547767540e680050a56c10afbe36388a01a44bb81745e1c57ef6a99954
6
+ metadata.gz: f582228b5f93aae8c5ba2cc9297f235d420e15fa04cfcffafd60852274e685a1a75809e6f8b24ab00f0ce375faa718fc68d37cb866bd21f291ca11319c895dfe
7
+ data.tar.gz: fd5790b633e36125a9cdcf3850e6dc9b87872b47899bd3375b89cdf13197951948b1586ba96b0a051f4cb34b8f28d93a3121cd747d01820a14b2ad6192fd89df
@@ -4,7 +4,7 @@ cache: bundler
4
4
  services:
5
5
  - redis-server
6
6
  before_install:
7
- - gem update --system
7
+ - gem install bundler -v '< 2'
8
8
  gemfile:
9
9
  - gemfiles/rails_4.gemfile
10
10
  - gemfiles/rails_5.gemfile
data/Changes.md CHANGED
@@ -2,6 +2,11 @@
2
2
 
3
3
  [Sidekiq Changes](https://github.com/mperham/sidekiq/blob/master/Changes.md) | [Sidekiq Pro Changes](https://github.com/mperham/sidekiq/blob/master/Pro-Changes.md) | [Sidekiq Enterprise Changes](https://github.com/mperham/sidekiq/blob/master/Ent-Changes.md)
4
4
 
5
+ 5.2.5
6
+ ---------
7
+
8
+ - Fix default usage of `config/sidekiq.yml` [#4077, Tensho]
9
+
5
10
  5.2.4
6
11
  ---------
7
12
 
@@ -96,8 +96,8 @@ module Sidekiq
96
96
  begin
97
97
  yield conn
98
98
  rescue Redis::CommandError => ex
99
- #2550 Failover can cause the server to become a slave, need
100
- # to disconnect and reopen the socket to get back to the master.
99
+ #2550 Failover can cause the server to become a replica, need
100
+ # to disconnect and reopen the socket to get back to the primary.
101
101
  (conn.disconnect!; retryable = false; retry) if retryable && ex.message =~ /READONLY/
102
102
  raise
103
103
  end
@@ -239,17 +239,22 @@ module Sidekiq
239
239
  raise ArgumentError, "No such file #{opts[:config_file]}"
240
240
  end
241
241
  else
242
- if opts[:require] && File.directory?(opts[:require])
243
- %w[config/sidekiq.yml config/sidekiq.yml.erb].each do |filename|
244
- path = File.expand_path(filename, opts[:require])
245
- opts[:config_file] ||= path if File.exist?(path)
246
- end
242
+ config_dir = if File.directory?(opts[:require].to_s)
243
+ File.join(opts[:require], 'config')
244
+ else
245
+ File.join(options[:require], 'config')
246
+ end
247
+
248
+ %w[sidekiq.yml sidekiq.yml.erb].each do |config_file|
249
+ path = File.join(config_dir, config_file)
250
+ opts[:config_file] ||= path if File.exist?(path)
247
251
  end
248
252
  end
249
253
 
250
254
  # parse config file options
251
255
  opts = parse_config(opts[:config_file]).merge(opts) if opts[:config_file]
252
256
 
257
+ # set defaults
253
258
  opts[:queues] = Array(opts[:queues]) << 'default' if opts[:queues].nil? || opts[:queues].empty?
254
259
  opts[:strict] = true if opts[:strict].nil?
255
260
  opts[:concurrency] = Integer(ENV["RAILS_MAX_THREADS"]) if opts[:concurrency].nil? && ENV["RAILS_MAX_THREADS"]
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Sidekiq
3
- VERSION = "5.2.4"
3
+ VERSION = "5.2.5"
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sidekiq
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.2.4
4
+ version: 5.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Perham
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-01-07 00:00:00.000000000 Z
11
+ date: 2019-01-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: redis