lrd_rack_bug 0.3.0.4 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -143,6 +143,10 @@
143
143
  padding: 0;
144
144
  }
145
145
 
146
+ #rack_bug #speedtracer.panel_content ul ul {
147
+ padding: 0 0 0 8px;
148
+ }
149
+
146
150
  #rack_bug .panel_content table {
147
151
  width: 100%;
148
152
  clear: both;
@@ -217,4 +221,4 @@
217
221
 
218
222
  #rack_bug #templates ul {
219
223
  padding-left:20px;
220
- }
224
+ }
@@ -4,23 +4,23 @@
4
4
 
5
5
  <dl>
6
6
  <dt>Executed SQL</dt>
7
- <dd><pre><%=h query %></pre></dd>
7
+ <dd><pre><%=h query.sql %></pre></dd>
8
8
 
9
9
  <dt>Time</dt>
10
- <dd><%=h "%.2f" % (time * 1_000) %>ms</dd>
10
+ <dd><%=h "%.2f" % (query.time * 1_000) %>ms</dd>
11
11
  </dl>
12
12
 
13
13
  <table class="sortable">
14
14
  <thead>
15
15
  <tr>
16
- <% result.fetch_fields.each do |field| %>
17
- <th><%= field.name.upcase %></th>
16
+ <% query.column_names.each do |field| %>
17
+ <th><%= field.upcase %></th>
18
18
  <% end %>
19
19
  </tr>
20
20
  </thead>
21
21
  <tbody>
22
22
  <% i = 1 %>
23
- <% result.each do |row| %>
23
+ <% query.rows.each do |row| %>
24
24
  <tr class="<%= i % 2 == 0 ? "even" : "odd" %>">
25
25
  <% row.each do |value| %>
26
26
  <td><%= value %></td>
@@ -4,23 +4,23 @@
4
4
 
5
5
  <dl>
6
6
  <dt>Executed SQL</dt>
7
- <dd><pre><%=h query %></pre></dd>
7
+ <dd><pre><%=h query.sql %></pre></dd>
8
8
 
9
9
  <dt>Time</dt>
10
- <dd><%=h "%.2f" % (time * 1_000) %>ms</dd>
10
+ <dd><%=h "%.2f" % (query.time * 1_000) %>ms</dd>
11
11
  </dl>
12
12
 
13
13
  <table class="sortable">
14
14
  <thead>
15
15
  <tr>
16
- <% result.fetch_fields.each do |field| %>
17
- <th><%= field.name.upcase %></th>
16
+ <% query.column_names.each do |field| %>
17
+ <th><%= field.upcase %></th>
18
18
  <% end %>
19
19
  </tr>
20
20
  </thead>
21
21
  <tbody>
22
22
  <% i = 1 %>
23
- <% result.each do |row| %>
23
+ <% query.rows.each do |row| %>
24
24
  <tr class="<%= i % 2 == 0 ? "even" : "odd" %>">
25
25
  <% row.each do |value| %>
26
26
  <td><%= value %></td>
@@ -0,0 +1,10 @@
1
+ <div class="traceblock">
2
+ <%=operation['label']%> - <%=range['duration']%>ms (self: <%=self_time%>ms)
3
+ <% unless children.empty? %>
4
+ <ul>
5
+ <% children.each do |child|%>
6
+ <li><%=child.to_html%></li>
7
+ <%end%>
8
+ </ul>
9
+ <% end %>
10
+ </div>
@@ -0,0 +1,12 @@
1
+ <a href='<%=url%>'>Raw JSON</a>
2
+ <dl>
3
+ <dt>Name</dt><dd><%=frameStack['label']%></dd>
4
+ <dt>Began</dt><dd><%=frameStack['range']['start']%></dd>
5
+ <dt>Duration</dt><dd><%=frameStack['range']['duration']%></dd>
6
+ <dt>Children</dt>
7
+ <dd><ul>
8
+ <% frameStack['children'].each do |child| %>
9
+ <li><%= child.to_html %></li>
10
+ <%end%>
11
+ </ul></dd>
12
+ </dl>
@@ -0,0 +1,16 @@
1
+ <h3>Traces</h3>
2
+ <h4>Process: <%= Process.pid %> (<%= Process.ppid %>)</h4>
3
+ <% unless advice.empty? %>
4
+ <p>Warning:</p>
5
+ <ul>
6
+ <% advice.each do |item| %>
7
+ <li><%= item %></li>
8
+ <% end %>
9
+ </ul>
10
+ <% end %>
11
+ <dl>
12
+ <% traces.each do |uuid, trace| %>
13
+ <dt><%= uuid %> - <%= trace.start.strftime("%H:%M:%S") %></dt>
14
+ <dd><%= trace.to_html %></dd>
15
+ <% end %>
16
+ </dl>
data/lrd_rack_bug.gemspec CHANGED
@@ -2,12 +2,12 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{lrd_rack_bug}
5
- s.version = "0.3.0.4"
5
+ s.version = "0.3.1"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
- s.authors = ["Evan Dorn", "Bryan Helmkamp"]
8
+ s.authors = ["Bryan Helmkamp", "Evan Dorn", "Judson Lester"]
9
9
  s.date = %q{2011-05-02}
10
- s.email = %q{evan@lrdesign.com}
10
+ s.email = %q{evan@lrdesign.com judson@lrdesign.com}
11
11
  s.extra_rdoc_files = [
12
12
  "README.md",
13
13
  "MIT-LICENSE.txt"
@@ -27,11 +27,12 @@ Gem::Specification.new do |s|
27
27
  s.homepage = %q{http://github.com/lrdesign/lrd_rack_bug}
28
28
  s.require_paths = ["lib"]
29
29
  s.rubygems_version = %q{1.3.7}
30
- s.summary = %q{Debugging toolbar for Rack applications implemented as middleware. Rails 3
31
- compatible version maintained by Logical Reality Design.
32
- }
33
- s.description = %q{Debugging toolbar for Rack applications implemented as middleware. Rails 3
34
- compatible version maintained by Logical Reality Design.
35
- }
36
- s.test_files = Dir.glob("spec/**/*")
30
+ s.summary = %q{Debugging toolbar for Rack applications implemented as
31
+ middleware. Rails 3 compatible version maintained by Logical Reality
32
+ Design. }
33
+ s.description = %q{Debugging toolbar for Rack applications implemented as
34
+ middleware. Rails 3 compatible version maintained by Logical Reality
35
+ Design. }
36
+ s.add_dependency("uuid", "~> 2.3.1")
37
+ #s.test_files = Dir.glob("spec/**/*") gem test assumes Test::Unit
37
38
  end
metadata CHANGED
@@ -1,28 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lrd_rack_bug
3
3
  version: !ruby/object:Gem::Version
4
- hash: 95
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 0
10
- - 4
11
- version: 0.3.0.4
9
+ - 1
10
+ version: 0.3.1
12
11
  platform: ruby
13
12
  authors:
14
- - Evan Dorn
15
13
  - Bryan Helmkamp
14
+ - Evan Dorn
15
+ - Judson Lester
16
16
  autorequire:
17
17
  bindir: bin
18
18
  cert_chain: []
19
19
 
20
20
  date: 2011-05-02 00:00:00 -07:00
21
21
  default_executable:
22
- dependencies: []
23
-
24
- description: "Debugging toolbar for Rack applications implemented as middleware. Rails 3\n compatible version maintained by Logical Reality Design.\n "
25
- email: evan@lrdesign.com
22
+ dependencies:
23
+ - !ruby/object:Gem::Dependency
24
+ name: uuid
25
+ prerelease: false
26
+ requirement: &id001 !ruby/object:Gem::Requirement
27
+ none: false
28
+ requirements:
29
+ - - ~>
30
+ - !ruby/object:Gem::Version
31
+ hash: 1
32
+ segments:
33
+ - 2
34
+ - 3
35
+ - 1
36
+ version: 2.3.1
37
+ type: :runtime
38
+ version_requirements: *id001
39
+ description: "Debugging toolbar for Rack applications implemented as \n middleware. Rails 3 compatible version maintained by Logical Reality \n Design. "
40
+ email: evan@lrdesign.com judson@lrdesign.com
26
41
  executables: []
27
42
 
28
43
  extensions: []
@@ -38,91 +53,102 @@ files:
38
53
  - Rakefile
39
54
  - Thorfile
40
55
  - lrd_rack_bug.gemspec
41
- - lib/lrd_rack_bug.rb
42
56
  - lib/rack/bug/autoloading.rb
43
- - lib/rack/bug/filtered_backtrace.rb
57
+ - lib/rack/bug/rack_static_bug_avoider.rb
58
+ - lib/rack/bug/toolbar.rb
59
+ - lib/rack/bug/views/redirect.html.erb
60
+ - lib/rack/bug/views/panels/rails_info.html.erb
61
+ - lib/rack/bug/views/panels/execute_sql.html.erb
62
+ - lib/rack/bug/views/panels/timer.html.erb
63
+ - lib/rack/bug/views/panels/view_cache.html.erb
64
+ - lib/rack/bug/views/panels/speedtracer/serverevent.html.erb
65
+ - lib/rack/bug/views/panels/speedtracer/traces.html.erb
66
+ - lib/rack/bug/views/panels/speedtracer/servertrace.html.erb
67
+ - lib/rack/bug/views/panels/sql.html.erb
68
+ - lib/rack/bug/views/panels/sphinx.html.erb
69
+ - lib/rack/bug/views/panels/templates.html.erb
70
+ - lib/rack/bug/views/panels/mongo.html.erb
71
+ - lib/rack/bug/views/panels/explain_sql.html.erb
72
+ - lib/rack/bug/views/panels/log.html.erb
73
+ - lib/rack/bug/views/panels/active_record.html.erb
74
+ - lib/rack/bug/views/panels/cache.html.erb
75
+ - lib/rack/bug/views/panels/request_variables.html.erb
76
+ - lib/rack/bug/views/panels/profile_sql.html.erb
77
+ - lib/rack/bug/views/panels/redis.html.erb
78
+ - lib/rack/bug/views/toolbar.html.erb
79
+ - lib/rack/bug/views/error.html.erb
44
80
  - lib/rack/bug/options.rb
45
81
  - lib/rack/bug/panel.rb
46
- - lib/rack/bug/panel_app.rb
47
- - lib/rack/bug/panels/active_record_panel/activerecord_extensions.rb
48
- - lib/rack/bug/panels/active_record_panel.rb
49
- - lib/rack/bug/panels/cache_panel/dalli_extension.rb
50
- - lib/rack/bug/panels/cache_panel/memcache_extension.rb
51
- - lib/rack/bug/panels/cache_panel/panel_app.rb
52
- - lib/rack/bug/panels/cache_panel/stats.rb
53
- - lib/rack/bug/panels/cache_panel.rb
82
+ - lib/rack/bug/filtered_backtrace.rb
83
+ - lib/rack/bug/panels/request_variables_panel.rb
84
+ - lib/rack/bug/panels/redis_panel.rb
54
85
  - lib/rack/bug/panels/log_panel/logger_extension.rb
55
- - lib/rack/bug/panels/log_panel.rb
56
- - lib/rack/bug/panels/memory_panel.rb
86
+ - lib/rack/bug/panels/rails_info_panel.rb
87
+ - lib/rack/bug/panels/sql_panel/sql_extension.rb
88
+ - lib/rack/bug/panels/sql_panel/panel_app.rb
89
+ - lib/rack/bug/panels/sql_panel/query.rb
57
90
  - lib/rack/bug/panels/mongo_panel/mongo_extension.rb
58
91
  - lib/rack/bug/panels/mongo_panel/stats.rb
59
- - lib/rack/bug/panels/mongo_panel.rb
60
- - lib/rack/bug/panels/rails_info_panel.rb
61
- - lib/rack/bug/panels/redis_panel/redis_extension.rb
62
- - lib/rack/bug/panels/redis_panel/stats.rb
63
- - lib/rack/bug/panels/redis_panel.rb
64
- - lib/rack/bug/panels/request_variables_panel.rb
92
+ - lib/rack/bug/panels/cache_panel/memcache_extension.rb
93
+ - lib/rack/bug/panels/cache_panel/dalli_extension.rb
94
+ - lib/rack/bug/panels/cache_panel/panel_app.rb
95
+ - lib/rack/bug/panels/cache_panel/stats.rb
96
+ - lib/rack/bug/panels/timer_panel.rb
65
97
  - lib/rack/bug/panels/sphinx_panel/sphinx_extension.rb
66
98
  - lib/rack/bug/panels/sphinx_panel/stats.rb
67
- - lib/rack/bug/panels/sphinx_panel.rb
68
- - lib/rack/bug/panels/sql_panel/panel_app.rb
69
- - lib/rack/bug/panels/sql_panel/query.rb
70
- - lib/rack/bug/panels/sql_panel/sql_extension.rb
99
+ - lib/rack/bug/panels/redis_panel/redis_extension.rb
100
+ - lib/rack/bug/panels/redis_panel/stats.rb
101
+ - lib/rack/bug/panels/active_record_panel/activerecord_extensions.rb
71
102
  - lib/rack/bug/panels/sql_panel.rb
72
- - lib/rack/bug/panels/templates_panel/actionview_extension.rb
103
+ - lib/rack/bug/panels/sphinx_panel.rb
104
+ - lib/rack/bug/panels/templates_panel.rb
105
+ - lib/rack/bug/panels/mongo_panel.rb
106
+ - lib/rack/bug/panels/log_panel.rb
107
+ - lib/rack/bug/panels/speedtracer_panel/profiling.rb
108
+ - lib/rack/bug/panels/speedtracer_panel/instrument.rb
109
+ - lib/rack/bug/panels/speedtracer_panel/database.rb
110
+ - lib/rack/bug/panels/speedtracer_panel/instrumentation.rb
111
+ - lib/rack/bug/panels/speedtracer_panel/trace-app.rb
112
+ - lib/rack/bug/panels/speedtracer_panel/render.rb
113
+ - lib/rack/bug/panels/speedtracer_panel/tracer.rb
114
+ - lib/rack/bug/panels/active_record_panel.rb
115
+ - lib/rack/bug/panels/cache_panel.rb
116
+ - lib/rack/bug/panels/speedtracer_panel.rb
73
117
  - lib/rack/bug/panels/templates_panel/rendering.rb
118
+ - lib/rack/bug/panels/templates_panel/actionview_extension.rb
74
119
  - lib/rack/bug/panels/templates_panel/trace.rb
75
- - lib/rack/bug/panels/templates_panel.rb
76
- - lib/rack/bug/panels/timer_panel.rb
77
- - lib/rack/bug/params_signature.rb
120
+ - lib/rack/bug/panels/memory_panel.rb
78
121
  - lib/rack/bug/public/__rack_bug__/bookmarklet.html
79
122
  - lib/rack/bug/public/__rack_bug__/bookmarklet.js
80
- - lib/rack/bug/public/__rack_bug__/bug.css
123
+ - lib/rack/bug/public/__rack_bug__/spinner.gif
124
+ - lib/rack/bug/public/__rack_bug__/jquery.tablesorter.min.js
81
125
  - lib/rack/bug/public/__rack_bug__/bug.js
82
126
  - lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js
83
- - lib/rack/bug/public/__rack_bug__/jquery.tablesorter.min.js
84
- - lib/rack/bug/public/__rack_bug__/spinner.gif
85
- - lib/rack/bug/rack_static_bug_avoider.rb
127
+ - lib/rack/bug/public/__rack_bug__/bug.css
86
128
  - lib/rack/bug/redirect_interceptor.rb
129
+ - lib/rack/bug/panel_app.rb
130
+ - lib/rack/bug/params_signature.rb
87
131
  - lib/rack/bug/render.rb
88
- - lib/rack/bug/toolbar.rb
89
- - lib/rack/bug/views/error.html.erb
90
- - lib/rack/bug/views/panels/active_record.html.erb
91
- - lib/rack/bug/views/panels/cache.html.erb
92
- - lib/rack/bug/views/panels/execute_sql.html.erb
93
- - lib/rack/bug/views/panels/explain_sql.html.erb
94
- - lib/rack/bug/views/panels/log.html.erb
95
- - lib/rack/bug/views/panels/mongo.html.erb
96
- - lib/rack/bug/views/panels/profile_sql.html.erb
97
- - lib/rack/bug/views/panels/rails_info.html.erb
98
- - lib/rack/bug/views/panels/redis.html.erb
99
- - lib/rack/bug/views/panels/request_variables.html.erb
100
- - lib/rack/bug/views/panels/sphinx.html.erb
101
- - lib/rack/bug/views/panels/sql.html.erb
102
- - lib/rack/bug/views/panels/templates.html.erb
103
- - lib/rack/bug/views/panels/timer.html.erb
104
- - lib/rack/bug/views/panels/view_cache.html.erb
105
- - lib/rack/bug/views/redirect.html.erb
106
- - lib/rack/bug/views/toolbar.html.erb
107
132
  - lib/rack/bug.rb
108
- - spec/custom_matchers.rb
109
- - spec/fixtures/config.ru
110
- - spec/fixtures/dummy_panel.rb
111
- - spec/fixtures/sample_app.rb
133
+ - lib/lrd_rack_bug.rb
112
134
  - spec/rack/bug/panels/active_record_panel_spec.rb
113
- - spec/rack/bug/panels/cache_panel_spec.rb
114
- - spec/rack/bug/panels/log_panel_spec.rb
115
- - spec/rack/bug/panels/memory_panel_spec.rb
116
- - spec/rack/bug/panels/mongo_panel_spec.rb
117
- - spec/rack/bug/panels/rails_info_panel_spec.rb
118
135
  - spec/rack/bug/panels/redis_panel_spec.rb
119
- - spec/rack/bug/panels/sql_panel_spec.rb
120
136
  - spec/rack/bug/panels/templates_panel_spec.rb
137
+ - spec/rack/bug/panels/memory_panel_spec.rb
138
+ - spec/rack/bug/panels/mongo_panel_spec.rb
121
139
  - spec/rack/bug/panels/timer_panel_spec.rb
140
+ - spec/rack/bug/panels/sql_panel_spec.rb
141
+ - spec/rack/bug/panels/rails_info_panel_spec.rb
142
+ - spec/rack/bug/panels/log_panel_spec.rb
143
+ - spec/rack/bug/panels/cache_panel_spec.rb
122
144
  - spec/rack/bug_spec.rb
123
- - spec/rcov.opts
124
- - spec/spec.opts
145
+ - spec/custom_matchers.rb
125
146
  - spec/spec_helper.rb
147
+ - spec/fixtures/config.ru
148
+ - spec/fixtures/dummy_panel.rb
149
+ - spec/fixtures/sample_app.rb
150
+ - spec/spec.opts
151
+ - spec/rcov.opts
126
152
  has_rdoc: true
127
153
  homepage: http://github.com/lrdesign/lrd_rack_bug
128
154
  licenses: []
@@ -156,23 +182,6 @@ rubyforge_project:
156
182
  rubygems_version: 1.4.2
157
183
  signing_key:
158
184
  specification_version: 3
159
- summary: Debugging toolbar for Rack applications implemented as middleware. Rails 3 compatible version maintained by Logical Reality Design.
160
- test_files:
161
- - spec/custom_matchers.rb
162
- - spec/fixtures/config.ru
163
- - spec/fixtures/dummy_panel.rb
164
- - spec/fixtures/sample_app.rb
165
- - spec/rack/bug/panels/active_record_panel_spec.rb
166
- - spec/rack/bug/panels/cache_panel_spec.rb
167
- - spec/rack/bug/panels/log_panel_spec.rb
168
- - spec/rack/bug/panels/memory_panel_spec.rb
169
- - spec/rack/bug/panels/mongo_panel_spec.rb
170
- - spec/rack/bug/panels/rails_info_panel_spec.rb
171
- - spec/rack/bug/panels/redis_panel_spec.rb
172
- - spec/rack/bug/panels/sql_panel_spec.rb
173
- - spec/rack/bug/panels/templates_panel_spec.rb
174
- - spec/rack/bug/panels/timer_panel_spec.rb
175
- - spec/rack/bug_spec.rb
176
- - spec/rcov.opts
177
- - spec/spec.opts
178
- - spec/spec_helper.rb
185
+ summary: Debugging toolbar for Rack applications implemented as middleware. Rails 3 compatible version maintained by Logical Reality Design.
186
+ test_files: []
187
+