peek-resque 1.0.2 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md CHANGED
@@ -5,3 +5,7 @@
5
5
  # 1.0.2
6
6
 
7
7
  - When no queues are passed in, expand to lookup all queues.
8
+
9
+ # 2.0.0
10
+
11
+ - Conform to the new Peek API for rendering data in the view.
@@ -1,6 +1,2 @@
1
- $(document).on 'peek:update', ->
2
- resqueContext = $('#peek-context-resque')
3
- if resqueContext.size()
4
- context = resqueContext.data('context')
5
- failures = context.jobs.failures
6
- $('#resque-jobs-tooltip').attr('title', "Failures: #{failures}").tipsy()
1
+ $(document).on 'peek:render', (event, request_id, data) ->
2
+ $('#resque-jobs-tooltip').attr('title', "Failures: #{data.context.resque.jobs.failures}").tipsy()
@@ -1,5 +1,5 @@
1
1
  module Peek
2
2
  module Resque
3
- VERSION = '1.0.2'
3
+ VERSION = '2.0.0'
4
4
  end
5
5
  end
data/peek-resque.gemspec CHANGED
@@ -17,6 +17,6 @@ Gem::Specification.new do |gem|
17
17
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
18
18
  gem.require_paths = ['lib']
19
19
 
20
- gem.add_dependency 'peek'
20
+ gem.add_dependency 'peek', '>= 0.1.0'
21
21
  gem.add_dependency 'resque'
22
22
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: peek-resque
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 2.0.0
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-04-16 00:00:00.000000000 Z
12
+ date: 2013-05-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: peek
@@ -18,7 +18,7 @@ dependencies:
18
18
  requirements:
19
19
  - - ! '>='
20
20
  - !ruby/object:Gem::Version
21
- version: '0'
21
+ version: 0.1.0
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: '0'
29
+ version: 0.1.0
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: resque
32
32
  requirement: !ruby/object:Gem::Requirement