peek-active_record 0.4.0 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,12 +1,11 @@
1
- $(document).on 'peek:update', ->
2
- arContext = $('#peek-context-active-record')
3
- if arContext.size()
4
- context = arContext.data('context')
5
- objects = context.object_count
6
- object_types = context.object_types
1
+ $(document).on 'peek:render', (event, request_id, data) ->
2
+ object_count = data.context['active-record'].object_count
3
+ object_types = data.context['active-record'].object_types
7
4
 
8
- title = "<strong>#{objects} AR Objects</strong>"
9
- for key, val of object_types
10
- title += "<br>#{val} #{key}"
5
+ title = "<strong>#{object_count} AR Objects</strong>"
6
+ for key, val of object_types
7
+ title += "<br>#{val} #{key}"
11
8
 
12
- $('#active_record-tooltip').attr('title', title).tipsy({html: true})
9
+ $('#active_record-tooltip').attr('title', title).tipsy
10
+ html: true
11
+ gravity: $.fn.tipsy.autoNS
@@ -2,7 +2,7 @@
2
2
  #
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = "peek-active_record"
5
- spec.version = "0.4.0"
5
+ spec.version = "0.5.0"
6
6
  spec.authors = ["Will Farrington"]
7
7
  spec.email = ["wfarr@github.com"]
8
8
  spec.description = %q{Peek into your ActiveRecord stats.}
@@ -17,7 +17,7 @@ Gem::Specification.new do |spec|
17
17
 
18
18
  spec.add_dependency "activerecord", "~> 3.2.0"
19
19
  spec.add_dependency "atomic", ">= 1.0.0"
20
- spec.add_dependency "peek"
20
+ spec.add_dependency "peek", ">= 0.1.0"
21
21
 
22
22
  spec.add_development_dependency "bundler", "~> 1.3"
23
23
  spec.add_development_dependency "rake"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: peek-active_record
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.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-15 00:00:00.000000000 Z
12
+ date: 2013-05-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activerecord
@@ -50,7 +50,7 @@ dependencies:
50
50
  requirements:
51
51
  - - ! '>='
52
52
  - !ruby/object:Gem::Version
53
- version: '0'
53
+ version: 0.1.0
54
54
  type: :runtime
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
@@ -58,7 +58,7 @@ dependencies:
58
58
  requirements:
59
59
  - - ! '>='
60
60
  - !ruby/object:Gem::Version
61
- version: '0'
61
+ version: 0.1.0
62
62
  - !ruby/object:Gem::Dependency
63
63
  name: bundler
64
64
  requirement: !ruby/object:Gem::Requirement