rack-mini-profiler 0.1.14.pre → 0.1.15.pre
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.
- data/CHANGELOG +6 -0
- data/lib/mini_profiler/client_settings.rb +2 -2
- data/lib/mini_profiler/profiler.rb +6 -1
- data/rack-mini-profiler.gemspec +1 -1
- metadata +3 -3
data/CHANGELOG
CHANGED
@@ -63,3 +63,9 @@
|
|
63
63
|
* made pp=full-backtrace "sticky"
|
64
64
|
* added pp=normal-backtrace to clear the "sticky" state
|
65
65
|
* change "pp=sample" to work with "caller" no need for stack trace gem
|
66
|
+
|
67
|
+
4-September-2012 - Sam
|
68
|
+
|
69
|
+
* 1.15.pre
|
70
|
+
* fixed annoying bug where client settings were not sticking
|
71
|
+
* fixed long standing issue with Rack::ConditionalGet stopping MiniProfiler from working properly
|
@@ -33,12 +33,12 @@ module Rack
|
|
33
33
|
settings["dp"] = "t" if @disable_profiling
|
34
34
|
settings["bt"] = @backtrace_level if @backtrace_level
|
35
35
|
settings_string = settings.map{|k,v| "#{k}=#{v}"}.join(",")
|
36
|
-
Rack::Utils.set_cookie_header!(headers, COOKIE_NAME, :value => settings_string)
|
36
|
+
Rack::Utils.set_cookie_header!(headers, COOKIE_NAME, :value => settings_string, :path => '/')
|
37
37
|
end
|
38
38
|
end
|
39
39
|
|
40
40
|
def discard_cookie!(headers)
|
41
|
-
Rack::Utils.delete_cookie_header!(headers, COOKIE_NAME)
|
41
|
+
Rack::Utils.delete_cookie_header!(headers, COOKIE_NAME, :path => '/')
|
42
42
|
end
|
43
43
|
|
44
44
|
def has_cookie?
|
@@ -167,7 +167,6 @@ module Rack
|
|
167
167
|
|
168
168
|
|
169
169
|
def call(env)
|
170
|
-
|
171
170
|
client_settings = ClientSettings.new(env)
|
172
171
|
|
173
172
|
status = headers = body = nil
|
@@ -247,6 +246,12 @@ module Rack
|
|
247
246
|
status, headers, body = nil
|
248
247
|
start = Time.now
|
249
248
|
begin
|
249
|
+
|
250
|
+
# Strip all the caching headers so we don't get 304s back
|
251
|
+
# This solves a very annoying bug where rack mini profiler never shows up
|
252
|
+
env['HTTP_IF_MODIFIED_SINCE'] = nil
|
253
|
+
env['HTTP_IF_NONE_MATCH'] = nil
|
254
|
+
|
250
255
|
status,headers,body = @app.call(env)
|
251
256
|
client_settings.write!(headers)
|
252
257
|
ensure
|
data/rack-mini-profiler.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = "rack-mini-profiler"
|
3
|
-
s.version = "0.1.
|
3
|
+
s.version = "0.1.15.pre"
|
4
4
|
s.summary = "Profiles loading speed for rack applications."
|
5
5
|
s.authors = ["Aleks Totic","Sam Saffron", "Robin Ward"]
|
6
6
|
s.description = "Page loading speed displayed on every page. Optimize while you develop, performance is a feature."
|
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.1.
|
4
|
+
version: 0.1.15.pre
|
5
5
|
prerelease: 7
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2012-09-
|
14
|
+
date: 2012-09-04 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: rack
|
@@ -131,7 +131,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
131
131
|
version: '0'
|
132
132
|
segments:
|
133
133
|
- 0
|
134
|
-
hash:
|
134
|
+
hash: 439688077
|
135
135
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
136
136
|
none: false
|
137
137
|
requirements:
|