peek-performance_bar 1.1.2 → 1.1.3

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.
data/CHANGELOG.md CHANGED
@@ -14,3 +14,7 @@
14
14
 
15
15
  - Namespace the tooltips to not conflict with application styles. (#8)
16
16
  - Don't render the performance bar when `window.performance` doesn't exist. (#10)
17
+
18
+ # 1.1.3
19
+
20
+ - Use auto-gravity for tooltips on Peek bars that may be fixed to the bottom of the window.
data/README.md CHANGED
@@ -29,7 +29,7 @@ Or install it yourself as:
29
29
 
30
30
  ## Usage
31
31
 
32
- Add the following to your `config/initializers/peek.rb`:
32
+ Add the following to your `config/initializers/peek.rb`:
33
33
 
34
34
  ```ruby
35
35
  Peek.into Peek::Views::PerformanceBar
@@ -51,16 +51,6 @@ CoffeeScript:
51
51
  #= require peek/views/performance_bar
52
52
  ```
53
53
 
54
- Lastly this view requires you insert an additional partial after the `peek/results`:
55
-
56
- ```erb
57
- ...
58
- <%= yield %>
59
- <%= render 'peek/results' %>
60
- <%= render 'peek/results/performance_bar' %>
61
- ...
62
- ```
63
-
64
54
  ## Contributors
65
55
 
66
56
  - [@josh](https://github.com/josh) - The original implementation.
@@ -100,7 +100,7 @@ class PerformanceBar
100
100
  width: "#{width}px"
101
101
  left: "#{left}px"
102
102
  background: color
103
- bar.tipsy gravity: 'n'
103
+ bar.tipsy gravity: $.fn.tipsy.autoNS
104
104
  @el.append bar
105
105
 
106
106
  # Map a time offset value to a horizontal pixel offset.
@@ -116,7 +116,7 @@ renderPerformanceBar = ->
116
116
 
117
117
  span = $('<span>', {'class': 'peek-tooltip', title: 'Total navigation time for this page.'})
118
118
  .text(PerformanceBar.formatTime(bar.total()))
119
- span.tipsy({ gravity: 'n' })
119
+ span.tipsy gravity: $.fn.tipsy.autoNS
120
120
  updateStatus span
121
121
 
122
122
 
@@ -154,7 +154,7 @@ $(document).on 'pjax:end page:change', (event, xhr) ->
154
154
 
155
155
  span = $('<span>', {'class': 'peek-tooltip', title: "#{tech} navigation time"})
156
156
  .text(PerformanceBar.formatTime(total))
157
- span.tipsy({ gravity: 'n' })
157
+ span.tipsy gravity: $.fn.tipsy.autoNS
158
158
  updateStatus span
159
159
 
160
160
  ajaxStart = null
@@ -17,5 +17,5 @@ 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', '>= 0.0.5'
20
+ gem.add_dependency 'peek', '>= 0.1.0'
21
21
  end
@@ -1,5 +1,5 @@
1
1
  module Peek
2
2
  module PerformanceBar
3
- VERSION = '1.1.2'
3
+ VERSION = '1.1.3'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: peek-performance_bar
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.1.3
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-03-28 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: peek
@@ -18,7 +18,7 @@ dependencies:
18
18
  requirements:
19
19
  - - ! '>='
20
20
  - !ruby/object:Gem::Version
21
- version: 0.0.5
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.0.5
29
+ version: 0.1.0
30
30
  description: Take a peek into the MySQL queries made during your application's requests.
31
31
  email:
32
32
  - me@garrettbjerkhoel.com