sidekiq 2.14.0 → 2.14.1
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.
- data/Changes.md +6 -0
- data/lib/sidekiq/middleware/chain.rb +4 -4
- data/lib/sidekiq/version.rb +1 -1
- data/sidekiq.gemspec +3 -3
- data/web/views/_workers.erb +1 -1
- data/web/views/dashboard.erb +1 -1
- metadata +8 -8
data/Changes.md
CHANGED
@@ -85,23 +85,23 @@ module Sidekiq
|
|
85
85
|
def insert_before(oldklass, newklass, *args)
|
86
86
|
i = entries.index { |entry| entry.klass == newklass }
|
87
87
|
new_entry = i.nil? ? Entry.new(newklass, *args) : entries.delete_at(i)
|
88
|
-
i = entries.
|
88
|
+
i = entries.index { |entry| entry.klass == oldklass } || 0
|
89
89
|
entries.insert(i, new_entry)
|
90
90
|
end
|
91
91
|
|
92
92
|
def insert_after(oldklass, newklass, *args)
|
93
93
|
i = entries.index { |entry| entry.klass == newklass }
|
94
94
|
new_entry = i.nil? ? Entry.new(newklass, *args) : entries.delete_at(i)
|
95
|
-
i = entries.
|
95
|
+
i = entries.index { |entry| entry.klass == oldklass } || entries.count - 1
|
96
96
|
entries.insert(i+1, new_entry)
|
97
97
|
end
|
98
98
|
|
99
99
|
def exists?(klass)
|
100
|
-
|
100
|
+
any? { |entry| entry.klass == klass }
|
101
101
|
end
|
102
102
|
|
103
103
|
def retrieve
|
104
|
-
|
104
|
+
map(&:make_new)
|
105
105
|
end
|
106
106
|
|
107
107
|
def clear
|
data/lib/sidekiq/version.rb
CHANGED
data/sidekiq.gemspec
CHANGED
@@ -15,14 +15,14 @@ Gem::Specification.new do |gem|
|
|
15
15
|
gem.require_paths = ["lib"]
|
16
16
|
gem.version = Sidekiq::VERSION
|
17
17
|
gem.add_dependency 'redis', '>= 3.0.4'
|
18
|
-
gem.add_dependency 'redis-namespace'
|
18
|
+
gem.add_dependency 'redis-namespace', '>= 1.3.1'
|
19
19
|
gem.add_dependency 'connection_pool', '>= 1.0.0'
|
20
20
|
gem.add_dependency 'celluloid', '>= 0.14.1'
|
21
21
|
gem.add_dependency 'json'
|
22
22
|
gem.add_development_dependency 'sinatra'
|
23
23
|
gem.add_development_dependency 'minitest', '~> 5'
|
24
24
|
gem.add_development_dependency 'rake'
|
25
|
-
gem.add_development_dependency 'actionmailer'
|
26
|
-
gem.add_development_dependency 'activerecord'
|
25
|
+
gem.add_development_dependency 'actionmailer', '>= 3.0.0'
|
26
|
+
gem.add_development_dependency 'activerecord', '>= 3.0.0'
|
27
27
|
gem.add_development_dependency 'coveralls'
|
28
28
|
end
|
data/web/views/_workers.erb
CHANGED
data/web/views/dashboard.erb
CHANGED
@@ -54,6 +54,6 @@
|
|
54
54
|
<% if @redis_info.fetch("used_memory_peak_human", nil) %>
|
55
55
|
<div class="stat">
|
56
56
|
<h3 class="used_memory_peak_human"><%= @redis_info.fetch("used_memory_peak_human") %></h3>
|
57
|
-
<p><%=
|
57
|
+
<p><%= t('PeakMemoryUsage') %></p>
|
58
58
|
</div>
|
59
59
|
<% end %>
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sidekiq
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.14.
|
4
|
+
version: 2.14.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-09-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: redis
|
@@ -34,7 +34,7 @@ dependencies:
|
|
34
34
|
requirements:
|
35
35
|
- - ! '>='
|
36
36
|
- !ruby/object:Gem::Version
|
37
|
-
version:
|
37
|
+
version: 1.3.1
|
38
38
|
type: :runtime
|
39
39
|
prerelease: false
|
40
40
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -42,7 +42,7 @@ dependencies:
|
|
42
42
|
requirements:
|
43
43
|
- - ! '>='
|
44
44
|
- !ruby/object:Gem::Version
|
45
|
-
version:
|
45
|
+
version: 1.3.1
|
46
46
|
- !ruby/object:Gem::Dependency
|
47
47
|
name: connection_pool
|
48
48
|
requirement: !ruby/object:Gem::Requirement
|
@@ -146,7 +146,7 @@ dependencies:
|
|
146
146
|
requirements:
|
147
147
|
- - ! '>='
|
148
148
|
- !ruby/object:Gem::Version
|
149
|
-
version:
|
149
|
+
version: 3.0.0
|
150
150
|
type: :development
|
151
151
|
prerelease: false
|
152
152
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -154,7 +154,7 @@ dependencies:
|
|
154
154
|
requirements:
|
155
155
|
- - ! '>='
|
156
156
|
- !ruby/object:Gem::Version
|
157
|
-
version:
|
157
|
+
version: 3.0.0
|
158
158
|
- !ruby/object:Gem::Dependency
|
159
159
|
name: activerecord
|
160
160
|
requirement: !ruby/object:Gem::Requirement
|
@@ -162,7 +162,7 @@ dependencies:
|
|
162
162
|
requirements:
|
163
163
|
- - ! '>='
|
164
164
|
- !ruby/object:Gem::Version
|
165
|
-
version:
|
165
|
+
version: 3.0.0
|
166
166
|
type: :development
|
167
167
|
prerelease: false
|
168
168
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -170,7 +170,7 @@ dependencies:
|
|
170
170
|
requirements:
|
171
171
|
- - ! '>='
|
172
172
|
- !ruby/object:Gem::Version
|
173
|
-
version:
|
173
|
+
version: 3.0.0
|
174
174
|
- !ruby/object:Gem::Dependency
|
175
175
|
name: coveralls
|
176
176
|
requirement: !ruby/object:Gem::Requirement
|