rack-bug 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +3 -0
- data/History.txt +0 -0
- data/MIT-LICENSE.txt +19 -0
- data/README.rdoc +29 -0
- data/Rakefile +36 -0
- data/VERSION +1 -0
- data/lib/rack/bug.rb +43 -0
- data/lib/rack/bug/options.rb +89 -0
- data/lib/rack/bug/panel.rb +50 -0
- data/lib/rack/bug/panel_app.rb +33 -0
- data/lib/rack/bug/panels/active_record_panel.rb +45 -0
- data/lib/rack/bug/panels/active_record_panel/activerecord_extensions.rb +18 -0
- data/lib/rack/bug/panels/cache_panel.rb +50 -0
- data/lib/rack/bug/panels/cache_panel/memcache_extension.rb +129 -0
- data/lib/rack/bug/panels/cache_panel/panel_app.rb +48 -0
- data/lib/rack/bug/panels/cache_panel/stats.rb +97 -0
- data/lib/rack/bug/panels/log_panel.rb +39 -0
- data/lib/rack/bug/panels/log_panel/rails_extension.rb +11 -0
- data/lib/rack/bug/panels/memory_panel.rb +27 -0
- data/lib/rack/bug/panels/rails_info_panel.rb +23 -0
- data/lib/rack/bug/panels/redis_panel.rb +44 -0
- data/lib/rack/bug/panels/redis_panel/redis_extension.rb +14 -0
- data/lib/rack/bug/panels/redis_panel/stats.rb +48 -0
- data/lib/rack/bug/panels/request_variables_panel.rb +25 -0
- data/lib/rack/bug/panels/sql_panel.rb +55 -0
- data/lib/rack/bug/panels/sql_panel/panel_app.rb +37 -0
- data/lib/rack/bug/panels/sql_panel/query.rb +73 -0
- data/lib/rack/bug/panels/sql_panel/sql_extension.rb +11 -0
- data/lib/rack/bug/panels/templates_panel.rb +44 -0
- data/lib/rack/bug/panels/templates_panel/actionview_extension.rb +12 -0
- data/lib/rack/bug/panels/templates_panel/rendering.rb +67 -0
- data/lib/rack/bug/panels/templates_panel/trace.rb +34 -0
- data/lib/rack/bug/panels/timer_panel.rb +40 -0
- data/lib/rack/bug/params_signature.rb +65 -0
- data/lib/rack/bug/public/__rack_bug__/bookmarklet.html +10 -0
- data/lib/rack/bug/public/__rack_bug__/bookmarklet.js +215 -0
- data/lib/rack/bug/public/__rack_bug__/bug.css +211 -0
- data/lib/rack/bug/public/__rack_bug__/bug.js +84 -0
- data/lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js +4376 -0
- data/lib/rack/bug/public/__rack_bug__/jquery.tablesorter.min.js +1 -0
- data/lib/rack/bug/public/__rack_bug__/spinner.gif +0 -0
- data/lib/rack/bug/render.rb +66 -0
- data/lib/rack/bug/toolbar.rb +137 -0
- data/lib/rack/bug/views/error.html.erb +16 -0
- data/lib/rack/bug/views/panels/active_record.html.erb +17 -0
- data/lib/rack/bug/views/panels/cache.html.erb +93 -0
- data/lib/rack/bug/views/panels/execute_sql.html.erb +32 -0
- data/lib/rack/bug/views/panels/explain_sql.html.erb +32 -0
- data/lib/rack/bug/views/panels/log.html.erb +23 -0
- data/lib/rack/bug/views/panels/profile_sql.html.erb +32 -0
- data/lib/rack/bug/views/panels/rails_info.html.erb +19 -0
- data/lib/rack/bug/views/panels/redis.html.erb +32 -0
- data/lib/rack/bug/views/panels/request_variables.html.erb +107 -0
- data/lib/rack/bug/views/panels/sql.html.erb +43 -0
- data/lib/rack/bug/views/panels/templates.html.erb +7 -0
- data/lib/rack/bug/views/panels/timer.html.erb +19 -0
- data/lib/rack/bug/views/panels/view_cache.html.erb +19 -0
- data/lib/rack/bug/views/redirect.html.erb +16 -0
- data/lib/rack/bug/views/toolbar.html.erb +42 -0
- data/rack-bug.gemspec +126 -0
- data/spec/fixtures/config.ru +8 -0
- data/spec/fixtures/dummy_panel.rb +2 -0
- data/spec/fixtures/sample_app.rb +29 -0
- data/spec/rack/bug/panels/active_record_panel_spec.rb +30 -0
- data/spec/rack/bug/panels/cache_panel_spec.rb +159 -0
- data/spec/rack/bug/panels/log_panel_spec.rb +25 -0
- data/spec/rack/bug/panels/memory_panel_spec.rb +21 -0
- data/spec/rack/bug/panels/rails_info_panel_spec.rb +25 -0
- data/spec/rack/bug/panels/redis_panel_spec.rb +57 -0
- data/spec/rack/bug/panels/sql_panel_spec.rb +136 -0
- data/spec/rack/bug/panels/templates_panel_spec.rb +71 -0
- data/spec/rack/bug/panels/timer_panel_spec.rb +38 -0
- data/spec/rack/toolbar_spec.rb +100 -0
- data/spec/rcov.opts +1 -0
- data/spec/spec.opts +1 -0
- data/spec/spec_helper.rb +70 -0
- metadata +143 -0
@@ -0,0 +1,19 @@
|
|
1
|
+
<h3>Rails Environment</h3>
|
2
|
+
<table>
|
3
|
+
<thead>
|
4
|
+
<tr>
|
5
|
+
<th>Variable</th>
|
6
|
+
<th>Value</th>
|
7
|
+
</tr>
|
8
|
+
</thead>
|
9
|
+
<tbody>
|
10
|
+
<% i = 1 %>
|
11
|
+
<% Rails::Info.properties.each do |key, val| %>
|
12
|
+
<tr class="<%= i % 2 == 0 ? "even" : "odd" %>">
|
13
|
+
<td><%=h key %></td>
|
14
|
+
<td class="code"><div><%=h val %></div></td>
|
15
|
+
</tr>
|
16
|
+
<% i += 1 %>
|
17
|
+
<% end %>
|
18
|
+
</tbody>
|
19
|
+
</table>
|
@@ -0,0 +1,32 @@
|
|
1
|
+
<h3>Redis Usage</h3>
|
2
|
+
<table id="redis_usage">
|
3
|
+
<tr>
|
4
|
+
<th>Total Calls</th>
|
5
|
+
<td><%= stats.calls %></td>
|
6
|
+
|
7
|
+
<th>Total Time</th>
|
8
|
+
<td><%= stats.display_time %></td>
|
9
|
+
</tr>
|
10
|
+
</table>
|
11
|
+
|
12
|
+
<% if stats.queries.any? %>
|
13
|
+
<h3>Breakdown</h3>
|
14
|
+
<table id="redis_breakdown">
|
15
|
+
<thead>
|
16
|
+
<tr>
|
17
|
+
<th>Time (ms)</th>
|
18
|
+
<th>Command</th>
|
19
|
+
</tr>
|
20
|
+
</thead>
|
21
|
+
<tbody>
|
22
|
+
<% i = 1 %>
|
23
|
+
<% stats.queries.each do |query| %>
|
24
|
+
<tr class="<%= i % 2 == 0 ? "even" : "odd" %>">
|
25
|
+
<td><%= query.display_time %></td>
|
26
|
+
<td><%= query.command %></td>
|
27
|
+
</tr>
|
28
|
+
<% i += 1 %>
|
29
|
+
<% end %>
|
30
|
+
</tbody>
|
31
|
+
</table>
|
32
|
+
<% end %>
|
@@ -0,0 +1,107 @@
|
|
1
|
+
<% if request.GET.any? %>
|
2
|
+
<h3>GET</h3>
|
3
|
+
<table>
|
4
|
+
<thead>
|
5
|
+
<tr>
|
6
|
+
<th>Variable</th>
|
7
|
+
<th>Value</th>
|
8
|
+
</tr>
|
9
|
+
</thead>
|
10
|
+
<tbody>
|
11
|
+
<% i = 1 %>
|
12
|
+
<% request.GET.sort_by { |k, v| k.to_s }.each do |key, val| %>
|
13
|
+
<tr class="<%= i % 2 == 0 ? "even" : "odd" %>">
|
14
|
+
<td><%=h key %></td>
|
15
|
+
<td class="code"><div><%=h val %></div></td>
|
16
|
+
</tr>
|
17
|
+
<% i += 1 %>
|
18
|
+
<% end %>
|
19
|
+
</tbody>
|
20
|
+
</table>
|
21
|
+
<% end %>
|
22
|
+
|
23
|
+
<% if request.POST.any? %>
|
24
|
+
<h3>POST</h3>
|
25
|
+
<table>
|
26
|
+
<thead>
|
27
|
+
<tr>
|
28
|
+
<th>Variable</th>
|
29
|
+
<th>Value</th>
|
30
|
+
</tr>
|
31
|
+
</thead>
|
32
|
+
<tbody>
|
33
|
+
<% i = 1 %>
|
34
|
+
<% request.POST.sort_by { |k, v| k.to_s }.each do |key, val| %>
|
35
|
+
<tr class="<%= i % 2 == 0 ? "even" : "odd" %>">
|
36
|
+
<td><%=h key %></td>
|
37
|
+
<td class="code"><div><%=h val %></div></td>
|
38
|
+
</tr>
|
39
|
+
<% i += 1 %>
|
40
|
+
<% end %>
|
41
|
+
</tbody>
|
42
|
+
</table>
|
43
|
+
<% end %>
|
44
|
+
|
45
|
+
<% if request.env["rack.session"] && request.env["rack.session"].any? %>
|
46
|
+
<h3>Session</h3>
|
47
|
+
<table>
|
48
|
+
<thead>
|
49
|
+
<tr>
|
50
|
+
<th>Variable</th>
|
51
|
+
<th>Value</th>
|
52
|
+
</tr>
|
53
|
+
</thead>
|
54
|
+
<tbody>
|
55
|
+
<% i = 1 %>
|
56
|
+
<% request.env["rack.session"].sort_by { |k, v| k.to_s }.each do |key, val| %>
|
57
|
+
<tr class="<%= i % 2 == 0 ? "even" : "odd" %>">
|
58
|
+
<td><%=h key %></td>
|
59
|
+
<td class="code"><div><%=h val %></div></td>
|
60
|
+
</tr>
|
61
|
+
<% i += 1 %>
|
62
|
+
<% end %>
|
63
|
+
</tbody>
|
64
|
+
</table>
|
65
|
+
<% end %>
|
66
|
+
|
67
|
+
<% if request.env["rack.request.cookie_hash"] && request.env["rack.request.cookie_hash"].any? %>
|
68
|
+
<h3>Cookies</h3>
|
69
|
+
<table>
|
70
|
+
<thead>
|
71
|
+
<tr>
|
72
|
+
<th>Variable</th>
|
73
|
+
<th>Value</th>
|
74
|
+
</tr>
|
75
|
+
</thead>
|
76
|
+
<tbody>
|
77
|
+
<% i = 1 %>
|
78
|
+
<% request.env["rack.request.cookie_hash"].sort_by { |k, v| k.to_s }.each do |key, val| %>
|
79
|
+
<tr class="<%= i % 2 == 0 ? "even" : "odd" %>">
|
80
|
+
<td><%=h key %></td>
|
81
|
+
<td class="code"><div><%=h val %></div></td>
|
82
|
+
</tr>
|
83
|
+
<% i += 1 %>
|
84
|
+
<% end %>
|
85
|
+
</tbody>
|
86
|
+
</table>
|
87
|
+
<% end %>
|
88
|
+
|
89
|
+
<h3>Rack ENV</h3>
|
90
|
+
<table>
|
91
|
+
<thead>
|
92
|
+
<tr>
|
93
|
+
<th>Variable</th>
|
94
|
+
<th>Value</th>
|
95
|
+
</tr>
|
96
|
+
</thead>
|
97
|
+
<tbody>
|
98
|
+
<% i = 1 %>
|
99
|
+
<% env.sort_by { |k, v| k.to_s }.each do |key, val| %>
|
100
|
+
<tr class="<%= i % 2 == 0 ? "even" : "odd" %>">
|
101
|
+
<td><%=h key %></td>
|
102
|
+
<td class="code"><div><%=h val %></div></td>
|
103
|
+
</tr>
|
104
|
+
<% i += 1 %>
|
105
|
+
<% end %>
|
106
|
+
</tbody>
|
107
|
+
</table>
|
@@ -0,0 +1,43 @@
|
|
1
|
+
<h3>SQL Queries</h3>
|
2
|
+
<table class="sortable">
|
3
|
+
<thead>
|
4
|
+
<tr>
|
5
|
+
<th class="time">Time (ms)</th>
|
6
|
+
<th class="query">Query</th>
|
7
|
+
<th class="backtrace"></th>
|
8
|
+
<th class="actions"></th>
|
9
|
+
</tr>
|
10
|
+
</thead>
|
11
|
+
<tbody>
|
12
|
+
<% i = 1 %>
|
13
|
+
<% queries.each do |query| %>
|
14
|
+
<tr class="<%= i % 2 == 0 ? "even" : "odd" %>">
|
15
|
+
<td><%= query.human_time %></td>
|
16
|
+
<td class="syntax"><%= query.sql %></td>
|
17
|
+
<td>
|
18
|
+
<% if query.has_backtrace? %>
|
19
|
+
<a href="#" class="reveal_backtrace">Show Backtrace</a>
|
20
|
+
<% end %>
|
21
|
+
</td>
|
22
|
+
<td>
|
23
|
+
<% if query.inspectable? %>
|
24
|
+
<a href="/__rack_bug__/execute_sql?<%= signed_params("query" => query.sql, "time" => query.time) %>" class="remote_call">SELECT</a> |
|
25
|
+
<a href="/__rack_bug__/explain_sql?<%= signed_params("query" => query.sql, "time" => query.time) %>" class="remote_call">EXPLAIN</a> |
|
26
|
+
<a href="/__rack_bug__/profile_sql?<%= signed_params("query" => query.sql, "time" => query.time) %>" class="remote_call">Profile</a>
|
27
|
+
<% end %>
|
28
|
+
</td>
|
29
|
+
</tr>
|
30
|
+
<tr style="display:none">
|
31
|
+
<td></td>
|
32
|
+
<td colspan="3">
|
33
|
+
<ul>
|
34
|
+
<% query.filtered_backtrace.each do |line| %>
|
35
|
+
<li><%=h line %></li>
|
36
|
+
<% end %>
|
37
|
+
</ul>
|
38
|
+
</td>
|
39
|
+
</tr>
|
40
|
+
<% i += 1 %>
|
41
|
+
<% end %>
|
42
|
+
</tbody>
|
43
|
+
</table>
|
@@ -0,0 +1,19 @@
|
|
1
|
+
<h3>Resource Usage</h3>
|
2
|
+
<table class="sortable">
|
3
|
+
<thead>
|
4
|
+
<tr>
|
5
|
+
<th>Key</th>
|
6
|
+
<th>Value</th>
|
7
|
+
</tr>
|
8
|
+
</thead>
|
9
|
+
<tbody>
|
10
|
+
<% i = 1 %>
|
11
|
+
<% measurements.each do |key, val| %>
|
12
|
+
<tr class="<%= i % 2 == 0 ? "even" : "odd" %>">
|
13
|
+
<td><%=h key %></td>
|
14
|
+
<td><%=h val %></td>
|
15
|
+
</tr>
|
16
|
+
<% i += 1 %>
|
17
|
+
<% end %>
|
18
|
+
</tbody>
|
19
|
+
</table>
|
@@ -0,0 +1,19 @@
|
|
1
|
+
<a class="back" href="">« Back</a>
|
2
|
+
|
3
|
+
<h3>Cache Read</h3>
|
4
|
+
|
5
|
+
<dl>
|
6
|
+
<dt>Key</dt>
|
7
|
+
<dd><pre><%=h key %></pre></dd>
|
8
|
+
|
9
|
+
<dt>Time</dt>
|
10
|
+
<dd><%=h "%.2f" % (0.0 * 1_000) %>ms</dd>
|
11
|
+
</dl>
|
12
|
+
|
13
|
+
<p>
|
14
|
+
<% if value.is_a?(String )%>
|
15
|
+
<%=h value %>
|
16
|
+
<% else %>
|
17
|
+
<%=h value.inspect %>
|
18
|
+
<% end %>
|
19
|
+
</p>
|
@@ -0,0 +1,16 @@
|
|
1
|
+
<html>
|
2
|
+
<head>
|
3
|
+
</head>
|
4
|
+
<body>
|
5
|
+
<h1>Redirect</h1>
|
6
|
+
|
7
|
+
<p>Location: <a href="<%= redirect_to %>"><%= redirect_to %></a></p>
|
8
|
+
|
9
|
+
<p class="notice">
|
10
|
+
Rack::Bug has intercepted a redirect to the above URL for debug viewing
|
11
|
+
purposes. You can click the above link to continue with the redirect as
|
12
|
+
normal. If you'd like to disable this feature, set the Rack::Bug
|
13
|
+
<code>internal_redirects</code> option to <code>false</code>.
|
14
|
+
</p>
|
15
|
+
</body>
|
16
|
+
</html>
|
@@ -0,0 +1,42 @@
|
|
1
|
+
<script type="text/javascript" charset="utf-8">
|
2
|
+
if (typeof jQuery == 'undefined') {
|
3
|
+
var jquery_url = '/__rack_bug__/jquery-1.3.2.js';
|
4
|
+
document.write(unescape('%3Cscript src="' + jquery_url + '" type="text/javascript"%3E%3C/script%3E'));
|
5
|
+
}
|
6
|
+
</script>
|
7
|
+
<script type="text/javascript" src="/__rack_bug__/jquery.tablesorter.min.js"></script>
|
8
|
+
<script type="text/javascript" src="/__rack_bug__/bug.js"></script>
|
9
|
+
<style type="text/css" media="screen">
|
10
|
+
@import url(/__rack_bug__/bug.css);
|
11
|
+
</style>
|
12
|
+
|
13
|
+
<div id="rack_bug" class="rb_top">
|
14
|
+
<div id="rack_bug_toolbar">
|
15
|
+
<ul class="panels">
|
16
|
+
<li id="rb_debug_button">Rack::Bug</li>
|
17
|
+
|
18
|
+
<% panels.each do |panel| %>
|
19
|
+
<li>
|
20
|
+
<% if panel.has_content? %>
|
21
|
+
<a href="#" class="<%= panel.name %>">
|
22
|
+
<%= panel.heading %>
|
23
|
+
</a>
|
24
|
+
<% else %>
|
25
|
+
<%= panel.heading %>
|
26
|
+
<% end %>
|
27
|
+
</li>
|
28
|
+
<% end %>
|
29
|
+
</ul>
|
30
|
+
</div>
|
31
|
+
|
32
|
+
<% panels.each do |panel| %>
|
33
|
+
<% if panel.has_content? %>
|
34
|
+
<div class="panel_content" id="<%= panel.name %>">
|
35
|
+
<a href="" class="rack_bug_close">Close</a>
|
36
|
+
<%= panel.content %>
|
37
|
+
</div>
|
38
|
+
<% end %>
|
39
|
+
<% end %>
|
40
|
+
|
41
|
+
<div id="rack_bug_debug_window" class="panel_content"></div>
|
42
|
+
</div>
|
data/rack-bug.gemspec
ADDED
@@ -0,0 +1,126 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run `rake gemspec`
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = %q{rack-bug}
|
8
|
+
s.version = "0.2.1"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["Bryan Helmkamp"]
|
12
|
+
s.date = %q{2009-08-06}
|
13
|
+
s.email = %q{bryan@brynary.com}
|
14
|
+
s.extra_rdoc_files = [
|
15
|
+
"MIT-LICENSE.txt",
|
16
|
+
"README.rdoc"
|
17
|
+
]
|
18
|
+
s.files = [
|
19
|
+
".gitignore",
|
20
|
+
"History.txt",
|
21
|
+
"MIT-LICENSE.txt",
|
22
|
+
"README.rdoc",
|
23
|
+
"Rakefile",
|
24
|
+
"VERSION",
|
25
|
+
"lib/rack/bug.rb",
|
26
|
+
"lib/rack/bug/options.rb",
|
27
|
+
"lib/rack/bug/panel.rb",
|
28
|
+
"lib/rack/bug/panel_app.rb",
|
29
|
+
"lib/rack/bug/panels/active_record_panel.rb",
|
30
|
+
"lib/rack/bug/panels/active_record_panel/activerecord_extensions.rb",
|
31
|
+
"lib/rack/bug/panels/cache_panel.rb",
|
32
|
+
"lib/rack/bug/panels/cache_panel/memcache_extension.rb",
|
33
|
+
"lib/rack/bug/panels/cache_panel/panel_app.rb",
|
34
|
+
"lib/rack/bug/panels/cache_panel/stats.rb",
|
35
|
+
"lib/rack/bug/panels/log_panel.rb",
|
36
|
+
"lib/rack/bug/panels/log_panel/rails_extension.rb",
|
37
|
+
"lib/rack/bug/panels/memory_panel.rb",
|
38
|
+
"lib/rack/bug/panels/rails_info_panel.rb",
|
39
|
+
"lib/rack/bug/panels/redis_panel.rb",
|
40
|
+
"lib/rack/bug/panels/redis_panel/redis_extension.rb",
|
41
|
+
"lib/rack/bug/panels/redis_panel/stats.rb",
|
42
|
+
"lib/rack/bug/panels/request_variables_panel.rb",
|
43
|
+
"lib/rack/bug/panels/sql_panel.rb",
|
44
|
+
"lib/rack/bug/panels/sql_panel/panel_app.rb",
|
45
|
+
"lib/rack/bug/panels/sql_panel/query.rb",
|
46
|
+
"lib/rack/bug/panels/sql_panel/sql_extension.rb",
|
47
|
+
"lib/rack/bug/panels/templates_panel.rb",
|
48
|
+
"lib/rack/bug/panels/templates_panel/actionview_extension.rb",
|
49
|
+
"lib/rack/bug/panels/templates_panel/rendering.rb",
|
50
|
+
"lib/rack/bug/panels/templates_panel/trace.rb",
|
51
|
+
"lib/rack/bug/panels/timer_panel.rb",
|
52
|
+
"lib/rack/bug/params_signature.rb",
|
53
|
+
"lib/rack/bug/public/__rack_bug__/bookmarklet.html",
|
54
|
+
"lib/rack/bug/public/__rack_bug__/bookmarklet.js",
|
55
|
+
"lib/rack/bug/public/__rack_bug__/bug.css",
|
56
|
+
"lib/rack/bug/public/__rack_bug__/bug.js",
|
57
|
+
"lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js",
|
58
|
+
"lib/rack/bug/public/__rack_bug__/jquery.tablesorter.min.js",
|
59
|
+
"lib/rack/bug/public/__rack_bug__/spinner.gif",
|
60
|
+
"lib/rack/bug/render.rb",
|
61
|
+
"lib/rack/bug/toolbar.rb",
|
62
|
+
"lib/rack/bug/views/error.html.erb",
|
63
|
+
"lib/rack/bug/views/panels/active_record.html.erb",
|
64
|
+
"lib/rack/bug/views/panels/cache.html.erb",
|
65
|
+
"lib/rack/bug/views/panels/execute_sql.html.erb",
|
66
|
+
"lib/rack/bug/views/panels/explain_sql.html.erb",
|
67
|
+
"lib/rack/bug/views/panels/log.html.erb",
|
68
|
+
"lib/rack/bug/views/panels/profile_sql.html.erb",
|
69
|
+
"lib/rack/bug/views/panels/rails_info.html.erb",
|
70
|
+
"lib/rack/bug/views/panels/redis.html.erb",
|
71
|
+
"lib/rack/bug/views/panels/request_variables.html.erb",
|
72
|
+
"lib/rack/bug/views/panels/sql.html.erb",
|
73
|
+
"lib/rack/bug/views/panels/templates.html.erb",
|
74
|
+
"lib/rack/bug/views/panels/timer.html.erb",
|
75
|
+
"lib/rack/bug/views/panels/view_cache.html.erb",
|
76
|
+
"lib/rack/bug/views/redirect.html.erb",
|
77
|
+
"lib/rack/bug/views/toolbar.html.erb",
|
78
|
+
"rack-bug.gemspec",
|
79
|
+
"spec/fixtures/config.ru",
|
80
|
+
"spec/fixtures/dummy_panel.rb",
|
81
|
+
"spec/fixtures/sample_app.rb",
|
82
|
+
"spec/rack/bug/panels/active_record_panel_spec.rb",
|
83
|
+
"spec/rack/bug/panels/cache_panel_spec.rb",
|
84
|
+
"spec/rack/bug/panels/log_panel_spec.rb",
|
85
|
+
"spec/rack/bug/panels/memory_panel_spec.rb",
|
86
|
+
"spec/rack/bug/panels/rails_info_panel_spec.rb",
|
87
|
+
"spec/rack/bug/panels/redis_panel_spec.rb",
|
88
|
+
"spec/rack/bug/panels/sql_panel_spec.rb",
|
89
|
+
"spec/rack/bug/panels/templates_panel_spec.rb",
|
90
|
+
"spec/rack/bug/panels/timer_panel_spec.rb",
|
91
|
+
"spec/rack/toolbar_spec.rb",
|
92
|
+
"spec/rcov.opts",
|
93
|
+
"spec/spec.opts",
|
94
|
+
"spec/spec_helper.rb"
|
95
|
+
]
|
96
|
+
s.homepage = %q{http://github.com/brynary/rack-bug}
|
97
|
+
s.rdoc_options = ["--charset=UTF-8"]
|
98
|
+
s.require_paths = ["lib"]
|
99
|
+
s.rubygems_version = %q{1.3.4}
|
100
|
+
s.summary = %q{Debugging toolbar for Rack applications implemented as middleware}
|
101
|
+
s.test_files = [
|
102
|
+
"spec/fixtures/dummy_panel.rb",
|
103
|
+
"spec/fixtures/sample_app.rb",
|
104
|
+
"spec/rack/bug/panels/active_record_panel_spec.rb",
|
105
|
+
"spec/rack/bug/panels/cache_panel_spec.rb",
|
106
|
+
"spec/rack/bug/panels/log_panel_spec.rb",
|
107
|
+
"spec/rack/bug/panels/memory_panel_spec.rb",
|
108
|
+
"spec/rack/bug/panels/rails_info_panel_spec.rb",
|
109
|
+
"spec/rack/bug/panels/redis_panel_spec.rb",
|
110
|
+
"spec/rack/bug/panels/sql_panel_spec.rb",
|
111
|
+
"spec/rack/bug/panels/templates_panel_spec.rb",
|
112
|
+
"spec/rack/bug/panels/timer_panel_spec.rb",
|
113
|
+
"spec/rack/toolbar_spec.rb",
|
114
|
+
"spec/spec_helper.rb"
|
115
|
+
]
|
116
|
+
|
117
|
+
if s.respond_to? :specification_version then
|
118
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
119
|
+
s.specification_version = 3
|
120
|
+
|
121
|
+
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
122
|
+
else
|
123
|
+
end
|
124
|
+
else
|
125
|
+
end
|
126
|
+
end
|