sidekiq 5.0.3 → 5.0.4

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
  SHA1:
3
- metadata.gz: 6c3542376ef438c3df60b3dd7aff6a49686395c5
4
- data.tar.gz: d5f6869758d9897a54f71d3b4c0eff4544d3c4eb
3
+ metadata.gz: c5eafdd7cf02082ddca6e556df6c2ef191c20380
4
+ data.tar.gz: eb520ecf4dd12b4c95da1d1b3765958aaf0f2e19
5
5
  SHA512:
6
- metadata.gz: 38acf5142486eca974edef0da082033a210ba03b2f53509e638a2d35e2e2a224f2348b0ce4ded7c6643a708184453afb76181e293a57e3f74836119135b3b9e3
7
- data.tar.gz: 8e4c6fed7be46d0b478deb457b35778552bbb8cd234934c9adc8d4a4d54ba7c1be48420a4e04882137bf9bf66617a03638fef6bd18c757335bd3670e2ae7735b
6
+ metadata.gz: 83ea17045bfd9f870b98af2292ff9490b752cd47bcdfdd8cfc73a5d4779e4ce56635b5ff7f4d76b6a791ff9e60b06281fc955e5cc1d3201f78a0d3ea995237bb
7
+ data.tar.gz: 784e604fac0fe0ffd914c87a973717de466b2b5a68bb710cddedd702ba39d4c2d6489a3be98ad868c8139f99d7cca231de593377bc268ca232c7c2dca585c3c8
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.0.4
6
+ -----------
7
+
8
+ - Fix "slow startup" performance regression from 5.0.2. [#3525]
9
+
5
10
  5.0.3
6
11
  -----------
7
12
 
@@ -4,6 +4,12 @@
4
4
 
5
5
  Please see [http://sidekiq.org/](http://sidekiq.org/) for more details and how to buy.
6
6
 
7
+ HEAD
8
+ ---------
9
+
10
+ - Fix `Status#completed?` when run against a Batch that had succeeded
11
+ and was deleted. [#3519]
12
+
7
13
  3.5.1
8
14
  ---------
9
15
 
@@ -24,6 +24,7 @@ module Sidekiq
24
24
 
25
25
  module PsychAutoload
26
26
  def resolve_class(klass_name)
27
+ return klass_name unless klass_name
27
28
  # constantize
28
29
  names = klass_name.split('::')
29
30
  names.shift if names.empty? || names.first.empty?
@@ -12,7 +12,7 @@ module Sidekiq
12
12
  options[key.to_sym] = options.delete(key)
13
13
  end
14
14
 
15
- options[:id] ||= "Sidekiq-#{Sidekiq.server? ? "server" : "client"}-PID-#{$$}"
15
+ options[:id] = "Sidekiq-#{Sidekiq.server? ? "server" : "client"}-PID-#{$$}" if !options.has_key?(:id)
16
16
  options[:url] ||= determine_redis_provider
17
17
 
18
18
  size = options[:size] || (Sidekiq.server? ? (Sidekiq.options[:concurrency] + 5) : 5)
@@ -101,7 +101,15 @@ module Sidekiq
101
101
  end
102
102
 
103
103
  def determine_redis_provider
104
- ENV[ENV['REDIS_PROVIDER'] || 'REDIS_URL']
104
+ # If you have this in your environment:
105
+ # MY_REDIS_URL=redis://hostname.example.com:1238/4
106
+ # then set:
107
+ # REDIS_PROVIDER=MY_REDIS_URL
108
+ # and Sidekiq will find your custom URL variable with no custom
109
+ # initialization code at all.
110
+ ENV[
111
+ ENV['REDIS_PROVIDER'] || 'REDIS_URL'
112
+ ]
105
113
  end
106
114
 
107
115
  end
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Sidekiq
3
- VERSION = "5.0.3"
3
+ VERSION = "5.0.4"
4
4
  end
@@ -15,6 +15,8 @@ Gem::Specification.new do |gem|
15
15
  gem.name = "sidekiq"
16
16
  gem.require_paths = ["lib"]
17
17
  gem.version = Sidekiq::VERSION
18
+ gem.required_ruby_version = ">= 2.2.2"
19
+
18
20
  gem.add_dependency 'redis', '~> 3.3', '>= 3.3.3'
19
21
  gem.add_dependency 'connection_pool', '~> 2.2', '>= 2.2.0'
20
22
  gem.add_dependency 'concurrent-ruby', '~> 1.0'
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.0.3
4
+ version: 5.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Perham
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-06-16 00:00:00.000000000 Z
11
+ date: 2017-07-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: redis
@@ -281,7 +281,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
281
281
  requirements:
282
282
  - - ">="
283
283
  - !ruby/object:Gem::Version
284
- version: '0'
284
+ version: 2.2.2
285
285
  required_rubygems_version: !ruby/object:Gem::Requirement
286
286
  requirements:
287
287
  - - ">="