sidekiq_status 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/.rvmrc CHANGED
@@ -1 +1 @@
1
- rvm use 1.9.3-p194-perf@sidekiq_status --create
1
+ rvm use 1.9.3-p362-perf@sidekiq_status --create
data/README.md CHANGED
@@ -10,7 +10,7 @@ Sidekiq extension to track job execution statuses and returning job results back
10
10
  Add this line to your application's Gemfile:
11
11
 
12
12
  ```ruby
13
- gem 'sidekiq_status', :git => 'git@github.com:cryo28/sidekiq_status.git'
13
+ gem 'sidekiq_status'
14
14
  ```
15
15
 
16
16
  And then execute:
@@ -1,5 +1,5 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
  module SidekiqStatus
3
3
  # SidekiqStatus version
4
- VERSION = "1.0.0"
4
+ VERSION = "1.0.1"
5
5
  end
@@ -14,7 +14,17 @@ module SidekiqStatus
14
14
  super
15
15
  end
16
16
 
17
- tabs << 'Statuses'
17
+ case tabs
18
+ when Hash
19
+ # Sidekiq >= 2.5.0
20
+ tabs['Statuses'] = 'statuses'
21
+ when Array
22
+ # Sidekiq < 2.5.0
23
+ tabs << 'Statuses'
24
+ else
25
+ raise ScriptError, 'unexpected Sidekiq::Web.tabs format'
26
+ end
27
+
18
28
 
19
29
  get '/statuses' do
20
30
  @count = (params[:count] || 25).to_i
@@ -15,7 +15,7 @@ Gem::Specification.new do |gem|
15
15
  gem.require_paths = ["lib"]
16
16
  gem.version = SidekiqStatus::VERSION
17
17
 
18
- gem.add_runtime_dependency("sidekiq", "~> 2.3.3")
18
+ gem.add_runtime_dependency("sidekiq", "~> 2.6.1")
19
19
 
20
20
  gem.add_development_dependency("rspec")
21
21
  gem.add_development_dependency("simplecov")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sidekiq_status
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.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: 2012-12-21 00:00:00.000000000 Z
12
+ date: 2013-01-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sidekiq
@@ -18,7 +18,7 @@ dependencies:
18
18
  requirements:
19
19
  - - ~>
20
20
  - !ruby/object:Gem::Version
21
- version: 2.3.3
21
+ version: 2.6.1
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ~>
28
28
  - !ruby/object:Gem::Version
29
- version: 2.3.3
29
+ version: 2.6.1
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: rspec
32
32
  requirement: !ruby/object:Gem::Requirement