peek-performance_bar 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 857b53ade1e4d64fe7f5ca135a3b3f16596ffc5f
|
4
|
+
data.tar.gz: 85802d7c4c3b219814b3e1d8abe015dcee927dce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8f40085f3fc6ec19f00c14355f60ad6507e162aa0b41cfe3fd400df004eeb0428e28a0abec950bc0b2a673167e5734d93e7faa2915802c095dec6bba902cce7d
|
7
|
+
data.tar.gz: 363db21a79d680fc00e1f1b93d903dfc890b6bc7103b04d11382dd32b168520953b8002d46c493008f10addc65f0fec83ba03d4284469f2bcdd372f9953e13a0
|
data/CHANGELOG.md
CHANGED
@@ -34,3 +34,7 @@
|
|
34
34
|
# 1.2.0
|
35
35
|
|
36
36
|
- Allow `PerformanceBar::ProcessUtilization::Body` to behave like normal response body - #22 (@tubaxenor)
|
37
|
+
|
38
|
+
# 1.2.1
|
39
|
+
|
40
|
+
- Listen to Turbolinks v5 `turbolinks:request-start` and `turbolinks:load` JS events to trigger peek-performance_bar updates. - [#26](https://github.com/peek/peek-performance_bar/pull/26) [@lucasmazza](https://github.com/lucasmazza)
|
@@ -119,15 +119,15 @@ renderPerformanceBar = ->
|
|
119
119
|
span.tipsy gravity: $.fn.tipsy.autoNS
|
120
120
|
updateStatus span
|
121
121
|
|
122
|
-
|
123
122
|
updateStatus = (html) ->
|
124
123
|
$('#serverstats').html html
|
125
124
|
|
126
125
|
ajaxStart = null
|
127
|
-
$(document).on 'pjax:start page:fetch', (event) ->
|
126
|
+
$(document).on 'pjax:start page:fetch turbolinks:request-start', (event) ->
|
128
127
|
ajaxStart = event.timeStamp
|
129
128
|
|
130
|
-
$(document).on 'pjax:end page:load', (event, xhr) ->
|
129
|
+
$(document).on 'pjax:end page:load turbolinks:load', (event, xhr) ->
|
130
|
+
return unless ajaxStart?
|
131
131
|
ajaxEnd = event.timeStamp
|
132
132
|
total = ajaxEnd - ajaxStart
|
133
133
|
serverTime = if xhr then parseInt(xhr.getResponseHeader('X-Runtime')) else 0
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: peek-performance_bar
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Garrett Bjerkhoel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-03-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: peek
|
@@ -67,7 +67,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
67
67
|
version: '0'
|
68
68
|
requirements: []
|
69
69
|
rubyforge_project:
|
70
|
-
rubygems_version: 2.
|
70
|
+
rubygems_version: 2.5.1
|
71
71
|
signing_key:
|
72
72
|
specification_version: 4
|
73
73
|
summary: Take a peek into the MySQL queries made during your application's requests.
|