sidekiq 4.2.4 → 4.2.5

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: 581035f739e6ecf4fdd07d42b7ff78b1012f3ad2
4
- data.tar.gz: 26c02597dab733a1fdf7d948a7a274029033ae21
3
+ metadata.gz: 9a2578c1e0ac05d0f59c8ec89ac300e8c8dab429
4
+ data.tar.gz: 180b80981a6d6043b6aec7222f16d9ab2d5f93a8
5
5
  SHA512:
6
- metadata.gz: ace3433e3bc81e986d56177f392a54f24e9a6f5cd1a050107d5273271cc61df5b022dfae32f99fb0cd74b71d5c9470daebca8073a5106bbe605f71d788196500
7
- data.tar.gz: abca98c2d32c438dfc4f60e8dabcea79cc0f28c616d62942a02f768bb0353199abd139aacdc12db546ee19e66b95fb0a36644104dd47c663f034f02882bffd24
6
+ metadata.gz: 60a192e270a1d867cb8c3787aebd46f6ffcb6bd5a6f63fd61519d83ef93ab46b44658d32d671139fb7a33a55dc5641b4e9793ebda1a82f69fa5105d19ac8ce3b
7
+ data.tar.gz: df14db1cc745182b29b7d8924a51759ff1fe01a1331959af53fde65eeab456dde03f52e85ddacc39a92ce6b27eead378a3ea30c3d5da5e8ea77b13007218f21f
data/Changes.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Sidekiq Changes
2
2
 
3
+ 4.2.5
4
+ -----------
5
+
6
+ - Re-enable eager loading of all code when running non-development Rails 5. [#3203]
7
+ - Better root URL handling for zany web servers [#3207]
8
+
3
9
  4.2.4
4
10
  -----------
5
11
 
@@ -3,6 +3,11 @@ Sidekiq Enterprise Changelog
3
3
 
4
4
  Please see [http://sidekiq.org/](http://sidekiq.org/) for more details and how to buy.
5
5
 
6
+ 1.4.0
7
+ -------------
8
+
9
+ - No functional changes, require latest Sidekiq and Sidekiq Pro versions
10
+
6
11
  1.3.2
7
12
  -------------
8
13
 
@@ -229,8 +229,9 @@ module Sidekiq
229
229
  require 'sidekiq/rails'
230
230
  require File.expand_path("#{options[:require]}/config/environment.rb")
231
231
  ::Rails.application.eager_load!
232
- elsif ::Rails::VERSION::MAJOR == 4
232
+ elsif ::Rails::VERSION::MAJOR >= 4 && environment != 'development'
233
233
  # Painful contortions, see 1791 for discussion
234
+ # No autoloading, we want to force eager load for everything.
234
235
  require File.expand_path("#{options[:require]}/config/application.rb")
235
236
  ::Rails::Application.initializer "sidekiq.eager_load" do
236
237
  ::Rails.application.config.eager_load = true
@@ -238,6 +239,7 @@ module Sidekiq
238
239
  require 'sidekiq/rails'
239
240
  require File.expand_path("#{options[:require]}/config/environment.rb")
240
241
  else
242
+ # Rails 5+ && development mode, use Reloader
241
243
  require 'sidekiq/rails'
242
244
  require File.expand_path("#{options[:require]}/config/environment.rb")
243
245
  end
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Sidekiq
3
- VERSION = "4.2.4"
3
+ VERSION = "4.2.5"
4
4
  end
@@ -28,10 +28,6 @@ module Sidekiq
28
28
  # nothing, backwards compatibility
29
29
  end
30
30
 
31
- get "" do
32
- redirect(root_path)
33
- end
34
-
35
31
  get "/" do
36
32
  @redis_info = redis_info.select{ |k, v| REDIS_KEYS.include? k }
37
33
  stats_history = Sidekiq::Stats::History.new((params['days'] || 30).to_i)
@@ -45,6 +45,10 @@ module Sidekiq
45
45
  request_method = env[REQUEST_METHOD]
46
46
  path_info = ::Rack::Utils.unescape env[PATH_INFO]
47
47
 
48
+ # There are servers which send an empty string when requesting the root.
49
+ # These servers should be ashamed of themselves.
50
+ path_info = "/" if path_info == ""
51
+
48
52
  @routes[request_method].each do |route|
49
53
  if params = route.match(request_method, path_info)
50
54
  env[ROUTE_PARAMS] = params
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: 4.2.4
4
+ version: 4.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: 2016-11-01 00:00:00.000000000 Z
11
+ date: 2016-11-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: redis