rack-bug-rails-3 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (85) hide show
  1. data/.gitignore +3 -0
  2. data/History.txt +46 -0
  3. data/MIT-LICENSE.txt +19 -0
  4. data/README.md +118 -0
  5. data/Rakefile +23 -0
  6. data/Thorfile +113 -0
  7. data/lib/rack/bug/autoloading.rb +25 -0
  8. data/lib/rack/bug/filtered_backtrace.rb +38 -0
  9. data/lib/rack/bug/options.rb +89 -0
  10. data/lib/rack/bug/panel.rb +50 -0
  11. data/lib/rack/bug/panel_app.rb +33 -0
  12. data/lib/rack/bug/panels/active_record_panel/activerecord_extensions.rb +18 -0
  13. data/lib/rack/bug/panels/active_record_panel.rb +45 -0
  14. data/lib/rack/bug/panels/cache_panel/memcache_extension.rb +129 -0
  15. data/lib/rack/bug/panels/cache_panel/panel_app.rb +48 -0
  16. data/lib/rack/bug/panels/cache_panel/stats.rb +97 -0
  17. data/lib/rack/bug/panels/cache_panel.rb +51 -0
  18. data/lib/rack/bug/panels/log_panel/logger_extension.rb +24 -0
  19. data/lib/rack/bug/panels/log_panel.rb +56 -0
  20. data/lib/rack/bug/panels/memory_panel.rb +27 -0
  21. data/lib/rack/bug/panels/rails_info_panel.rb +23 -0
  22. data/lib/rack/bug/panels/redis_panel/redis_extension.rb +28 -0
  23. data/lib/rack/bug/panels/redis_panel/stats.rb +52 -0
  24. data/lib/rack/bug/panels/redis_panel.rb +44 -0
  25. data/lib/rack/bug/panels/request_variables_panel.rb +52 -0
  26. data/lib/rack/bug/panels/sphinx_panel/sphinx_extension.rb +25 -0
  27. data/lib/rack/bug/panels/sphinx_panel/stats.rb +96 -0
  28. data/lib/rack/bug/panels/sphinx_panel.rb +44 -0
  29. data/lib/rack/bug/panels/sql_panel/panel_app.rb +37 -0
  30. data/lib/rack/bug/panels/sql_panel/query.rb +63 -0
  31. data/lib/rack/bug/panels/sql_panel/sql_extension.rb +11 -0
  32. data/lib/rack/bug/panels/sql_panel.rb +55 -0
  33. data/lib/rack/bug/panels/templates_panel/actionview_extension.rb +10 -0
  34. data/lib/rack/bug/panels/templates_panel/rendering.rb +67 -0
  35. data/lib/rack/bug/panels/templates_panel/trace.rb +34 -0
  36. data/lib/rack/bug/panels/templates_panel.rb +47 -0
  37. data/lib/rack/bug/panels/timer_panel.rb +40 -0
  38. data/lib/rack/bug/params_signature.rb +63 -0
  39. data/lib/rack/bug/public/__rack_bug__/bookmarklet.html +10 -0
  40. data/lib/rack/bug/public/__rack_bug__/bookmarklet.js +217 -0
  41. data/lib/rack/bug/public/__rack_bug__/bug.css +220 -0
  42. data/lib/rack/bug/public/__rack_bug__/bug.js +84 -0
  43. data/lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js +4376 -0
  44. data/lib/rack/bug/public/__rack_bug__/jquery.tablesorter.min.js +1 -0
  45. data/lib/rack/bug/public/__rack_bug__/spinner.gif +0 -0
  46. data/lib/rack/bug/rack_static_bug_avoider.rb +16 -0
  47. data/lib/rack/bug/redirect_interceptor.rb +27 -0
  48. data/lib/rack/bug/render.rb +67 -0
  49. data/lib/rack/bug/toolbar.rb +64 -0
  50. data/lib/rack/bug/views/error.html.erb +16 -0
  51. data/lib/rack/bug/views/panels/active_record.html.erb +17 -0
  52. data/lib/rack/bug/views/panels/cache.html.erb +93 -0
  53. data/lib/rack/bug/views/panels/execute_sql.html.erb +38 -0
  54. data/lib/rack/bug/views/panels/explain_sql.html.erb +38 -0
  55. data/lib/rack/bug/views/panels/log.html.erb +21 -0
  56. data/lib/rack/bug/views/panels/profile_sql.html.erb +38 -0
  57. data/lib/rack/bug/views/panels/rails_info.html.erb +19 -0
  58. data/lib/rack/bug/views/panels/redis.html.erb +46 -0
  59. data/lib/rack/bug/views/panels/request_variables.html.erb +29 -0
  60. data/lib/rack/bug/views/panels/sphinx.html.erb +32 -0
  61. data/lib/rack/bug/views/panels/sql.html.erb +41 -0
  62. data/lib/rack/bug/views/panels/templates.html.erb +7 -0
  63. data/lib/rack/bug/views/panels/timer.html.erb +19 -0
  64. data/lib/rack/bug/views/panels/view_cache.html.erb +19 -0
  65. data/lib/rack/bug/views/redirect.html.erb +16 -0
  66. data/lib/rack/bug/views/toolbar.html.erb +42 -0
  67. data/lib/rack/bug.rb +82 -0
  68. data/rack-bug.gemspec +146 -0
  69. data/spec/fixtures/config.ru +8 -0
  70. data/spec/fixtures/dummy_panel.rb +2 -0
  71. data/spec/fixtures/sample_app.rb +46 -0
  72. data/spec/rack/bug/panels/active_record_panel_spec.rb +30 -0
  73. data/spec/rack/bug/panels/cache_panel_spec.rb +167 -0
  74. data/spec/rack/bug/panels/log_panel_spec.rb +43 -0
  75. data/spec/rack/bug/panels/memory_panel_spec.rb +22 -0
  76. data/spec/rack/bug/panels/rails_info_panel_spec.rb +40 -0
  77. data/spec/rack/bug/panels/redis_panel_spec.rb +69 -0
  78. data/spec/rack/bug/panels/sql_panel_spec.rb +146 -0
  79. data/spec/rack/bug/panels/templates_panel_spec.rb +71 -0
  80. data/spec/rack/bug/panels/timer_panel_spec.rb +38 -0
  81. data/spec/rack/bug_spec.rb +137 -0
  82. data/spec/rcov.opts +1 -0
  83. data/spec/spec.opts +1 -0
  84. data/spec/spec_helper.rb +44 -0
  85. metadata +198 -0
metadata ADDED
@@ -0,0 +1,198 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rack-bug-rails-3
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.3.0
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Bryan Helmkamp
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2010-09-03 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rack
16
+ requirement: &70149728835280 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '1.0'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: *70149728835280
25
+ - !ruby/object:Gem::Dependency
26
+ name: webrat
27
+ requirement: &70149728834800 !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ type: :development
34
+ prerelease: false
35
+ version_requirements: *70149728834800
36
+ - !ruby/object:Gem::Dependency
37
+ name: rspec
38
+ requirement: &70149728834320 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
43
+ version: '0'
44
+ type: :development
45
+ prerelease: false
46
+ version_requirements: *70149728834320
47
+ - !ruby/object:Gem::Dependency
48
+ name: sinatra
49
+ requirement: &70149728833840 !ruby/object:Gem::Requirement
50
+ none: false
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ type: :development
56
+ prerelease: false
57
+ version_requirements: *70149728833840
58
+ - !ruby/object:Gem::Dependency
59
+ name: git
60
+ requirement: &70149728833360 !ruby/object:Gem::Requirement
61
+ none: false
62
+ requirements:
63
+ - - ! '>='
64
+ - !ruby/object:Gem::Version
65
+ version: '0'
66
+ type: :development
67
+ prerelease: false
68
+ version_requirements: *70149728833360
69
+ description:
70
+ email: bryan@brynary.com
71
+ executables: []
72
+ extensions: []
73
+ extra_rdoc_files:
74
+ - README.md
75
+ - MIT-LICENSE.txt
76
+ files:
77
+ - .gitignore
78
+ - History.txt
79
+ - MIT-LICENSE.txt
80
+ - README.md
81
+ - Rakefile
82
+ - Thorfile
83
+ - lib/rack/bug.rb
84
+ - lib/rack/bug/autoloading.rb
85
+ - lib/rack/bug/filtered_backtrace.rb
86
+ - lib/rack/bug/options.rb
87
+ - lib/rack/bug/panel.rb
88
+ - lib/rack/bug/panel_app.rb
89
+ - lib/rack/bug/panels/active_record_panel.rb
90
+ - lib/rack/bug/panels/active_record_panel/activerecord_extensions.rb
91
+ - lib/rack/bug/panels/cache_panel.rb
92
+ - lib/rack/bug/panels/cache_panel/memcache_extension.rb
93
+ - lib/rack/bug/panels/cache_panel/panel_app.rb
94
+ - lib/rack/bug/panels/cache_panel/stats.rb
95
+ - lib/rack/bug/panels/log_panel.rb
96
+ - lib/rack/bug/panels/log_panel/logger_extension.rb
97
+ - lib/rack/bug/panels/memory_panel.rb
98
+ - lib/rack/bug/panels/rails_info_panel.rb
99
+ - lib/rack/bug/panels/redis_panel.rb
100
+ - lib/rack/bug/panels/redis_panel/redis_extension.rb
101
+ - lib/rack/bug/panels/redis_panel/stats.rb
102
+ - lib/rack/bug/panels/request_variables_panel.rb
103
+ - lib/rack/bug/panels/sphinx_panel.rb
104
+ - lib/rack/bug/panels/sphinx_panel/sphinx_extension.rb
105
+ - lib/rack/bug/panels/sphinx_panel/stats.rb
106
+ - lib/rack/bug/panels/sql_panel.rb
107
+ - lib/rack/bug/panels/sql_panel/panel_app.rb
108
+ - lib/rack/bug/panels/sql_panel/query.rb
109
+ - lib/rack/bug/panels/sql_panel/sql_extension.rb
110
+ - lib/rack/bug/panels/templates_panel.rb
111
+ - lib/rack/bug/panels/templates_panel/actionview_extension.rb
112
+ - lib/rack/bug/panels/templates_panel/rendering.rb
113
+ - lib/rack/bug/panels/templates_panel/trace.rb
114
+ - lib/rack/bug/panels/timer_panel.rb
115
+ - lib/rack/bug/params_signature.rb
116
+ - lib/rack/bug/public/__rack_bug__/bookmarklet.html
117
+ - lib/rack/bug/public/__rack_bug__/bookmarklet.js
118
+ - lib/rack/bug/public/__rack_bug__/bug.css
119
+ - lib/rack/bug/public/__rack_bug__/bug.js
120
+ - lib/rack/bug/public/__rack_bug__/jquery-1.3.2.js
121
+ - lib/rack/bug/public/__rack_bug__/jquery.tablesorter.min.js
122
+ - lib/rack/bug/public/__rack_bug__/spinner.gif
123
+ - lib/rack/bug/rack_static_bug_avoider.rb
124
+ - lib/rack/bug/redirect_interceptor.rb
125
+ - lib/rack/bug/render.rb
126
+ - lib/rack/bug/toolbar.rb
127
+ - lib/rack/bug/views/error.html.erb
128
+ - lib/rack/bug/views/panels/active_record.html.erb
129
+ - lib/rack/bug/views/panels/cache.html.erb
130
+ - lib/rack/bug/views/panels/execute_sql.html.erb
131
+ - lib/rack/bug/views/panels/explain_sql.html.erb
132
+ - lib/rack/bug/views/panels/log.html.erb
133
+ - lib/rack/bug/views/panels/profile_sql.html.erb
134
+ - lib/rack/bug/views/panels/rails_info.html.erb
135
+ - lib/rack/bug/views/panels/redis.html.erb
136
+ - lib/rack/bug/views/panels/request_variables.html.erb
137
+ - lib/rack/bug/views/panels/sphinx.html.erb
138
+ - lib/rack/bug/views/panels/sql.html.erb
139
+ - lib/rack/bug/views/panels/templates.html.erb
140
+ - lib/rack/bug/views/panels/timer.html.erb
141
+ - lib/rack/bug/views/panels/view_cache.html.erb
142
+ - lib/rack/bug/views/redirect.html.erb
143
+ - lib/rack/bug/views/toolbar.html.erb
144
+ - rack-bug.gemspec
145
+ - spec/fixtures/config.ru
146
+ - spec/fixtures/dummy_panel.rb
147
+ - spec/fixtures/sample_app.rb
148
+ - spec/rack/bug/panels/active_record_panel_spec.rb
149
+ - spec/rack/bug/panels/cache_panel_spec.rb
150
+ - spec/rack/bug/panels/log_panel_spec.rb
151
+ - spec/rack/bug/panels/memory_panel_spec.rb
152
+ - spec/rack/bug/panels/rails_info_panel_spec.rb
153
+ - spec/rack/bug/panels/redis_panel_spec.rb
154
+ - spec/rack/bug/panels/sql_panel_spec.rb
155
+ - spec/rack/bug/panels/templates_panel_spec.rb
156
+ - spec/rack/bug/panels/timer_panel_spec.rb
157
+ - spec/rack/bug_spec.rb
158
+ - spec/rcov.opts
159
+ - spec/spec.opts
160
+ - spec/spec_helper.rb
161
+ homepage: http://github.com/brynary/rack-bug
162
+ licenses: []
163
+ post_install_message:
164
+ rdoc_options: []
165
+ require_paths:
166
+ - lib
167
+ required_ruby_version: !ruby/object:Gem::Requirement
168
+ none: false
169
+ requirements:
170
+ - - ! '>='
171
+ - !ruby/object:Gem::Version
172
+ version: '0'
173
+ required_rubygems_version: !ruby/object:Gem::Requirement
174
+ none: false
175
+ requirements:
176
+ - - ! '>='
177
+ - !ruby/object:Gem::Version
178
+ version: '0'
179
+ requirements: []
180
+ rubyforge_project: rack-bug
181
+ rubygems_version: 1.8.10
182
+ signing_key:
183
+ specification_version: 3
184
+ summary: Debugging toolbar for Rack applications implemented as middleware
185
+ test_files:
186
+ - spec/fixtures/dummy_panel.rb
187
+ - spec/fixtures/sample_app.rb
188
+ - spec/rack/bug/panels/active_record_panel_spec.rb
189
+ - spec/rack/bug/panels/cache_panel_spec.rb
190
+ - spec/rack/bug/panels/log_panel_spec.rb
191
+ - spec/rack/bug/panels/memory_panel_spec.rb
192
+ - spec/rack/bug/panels/rails_info_panel_spec.rb
193
+ - spec/rack/bug/panels/redis_panel_spec.rb
194
+ - spec/rack/bug/panels/sql_panel_spec.rb
195
+ - spec/rack/bug/panels/templates_panel_spec.rb
196
+ - spec/rack/bug/panels/timer_panel_spec.rb
197
+ - spec/rack/bug_spec.rb
198
+ - spec/spec_helper.rb