rack-mini-profiler 0.9.9.1 → 0.9.9.2

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.

Potentially problematic release.


This version of rack-mini-profiler might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 81fab6117126813e24c0138727a15d8003034ed9
4
- data.tar.gz: ced0259792654878ede143826ba3ba25da96e7ac
3
+ metadata.gz: a2b10bd196bae4ba4dd1b18d3bdf54744e895f86
4
+ data.tar.gz: 33866dddf039f21eca7380c23fd31a09071d8666
5
5
  SHA512:
6
- metadata.gz: 6c480714ac5ff3cc5dd221b996a25a7f21299103e983a31fa2dff950cd26c5565d9b93525ee77cfa4af6a4edb16b84c8214e9edeff20f295a312fcc4244b8aa2
7
- data.tar.gz: 522e2c82da57475b552b24db6ca9114df1461022f5a50a0b19a383cbfe5496918fa703e98c669552172c0df78f1a5f1dce1d47592ad60ba465ba96e68e70236a
6
+ metadata.gz: 010b6b5b681db1dc8fddab3100c450a533be17b53290d07e9fafd89e29ac3fe6c6659371b978796455ebc8c6131192c1386186f1285abb81e5a1ccffcfe9e79a
7
+ data.tar.gz: 9cacdd67dc52d42556e6e0793d76675bf3bbc0ed27a748cd6f407b5996dc7a2f437e7ed559f905620ed267595bf3f79cf5744b25f5b4b7fd9f527c9c4b2bdf10
@@ -2,6 +2,10 @@
2
2
 
3
3
  ##
4
4
 
5
+ ## 0.9.9.2 2016-03-06
6
+
7
+ - [FEATURE] on pageTransition collapse previously expanded timings
8
+
5
9
  ## 0.9.9.1 2016-03-06
6
10
 
7
11
  - [FEATURE] expost MiniProfiler.pageTransition() for use by SPA web apps (@sam)
@@ -10,6 +10,7 @@ var MiniProfiler = (function () {
10
10
  ajaxStartTime,
11
11
  totalsControl,
12
12
  reqs = 0,
13
+ expandedResults = false,
13
14
  totalTime = 0;
14
15
  ;
15
16
 
@@ -159,7 +160,7 @@ var MiniProfiler = (function () {
159
160
  totalTime += parseFloat(json.duration_milliseconds, 10);
160
161
  reqs++;
161
162
 
162
- if (!controls && reqs > 1 && options.collapseResults) {
163
+ if (!controls && reqs > 1 && options.collapseResults && !expandedResults) {
163
164
  if (!totalsControl) {
164
165
  container.find('.profiler-result').hide();
165
166
 
@@ -168,7 +169,7 @@ var MiniProfiler = (function () {
168
169
  totalsControl.click(function(){
169
170
  totalsControl.parent().find('.profiler-result').show();
170
171
  totalsControl.hide();
171
- options.collapseResults = false;
172
+ expandedResults = true;
172
173
  });
173
174
 
174
175
  totalsControl.find('.profiler-button').show();
@@ -752,6 +753,7 @@ var MiniProfiler = (function () {
752
753
  }
753
754
  reqs = 0;
754
755
  totalTime = 0;
756
+ expandedResults = false;
755
757
  $('.profiler-results .profiler-result').remove();
756
758
  },
757
759
 
@@ -1,5 +1,5 @@
1
1
  module Rack
2
2
  class MiniProfiler
3
- ASSET_VERSION = 'd59c36ba35d129420ca9ba77918c7c3e'.freeze
3
+ ASSET_VERSION = '12b4b45a3c42e6e15503d7a03810ff33'.freeze
4
4
  end
5
5
  end
@@ -1,5 +1,5 @@
1
1
  module Rack
2
2
  class MiniProfiler
3
- VERSION = '0.9.9.1'
3
+ VERSION = '0.9.9.2'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-mini-profiler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.9.1
4
+ version: 0.9.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Saffron