Permalink
Browse files

merged

  • Loading branch information...
2 parents 79ea46b + 7ed14b3 commit 169d6b438892c622ce9755b87b173921783025c0 @IdahoEv IdahoEv committed Feb 26, 2012
Showing with 21 additions and 7 deletions.
  1. +8 −0 .gitignore
  2. +4 −0 .simplecov
  3. +7 −6 README.md
  4. +2 −1 lib/insight/panels/speedtracer_panel/tracer.rb
View
@@ -1,2 +1,10 @@
*.sw?
*.gem
+.bundle/
+.conductor/
+corundum/
+doc/
+insight-test.log
+insight.sqlite
+notions-and-tests/
+pkg/
View
@@ -0,0 +1,4 @@
+SimpleCov.start do
+ coverage_dir "doc/coverage"
+ add_filter "./spec"
+end
View
@@ -50,10 +50,10 @@ Add this to your Gemfile
In config/environments/development.rb, add:
- config.middleware.use "Insight",
+ config.middleware.use "Insight::App",
:secret_key => "someverylongandveryhardtoguesspreferablyrandomstring"
-Any environment with Insight loaded will have a link to "Insight" in the upper left. Clicking that link will load the toolbar.
+Any environment with Insight loaded will have a link to "Insight" added to as the last child of BODY to normal responses. Clicking that link will load the toolbar. It's set with an id of "logical-insight-enabler", so it can be styled to go somewhere more noticeable. E.g. "position: absolute; top: 0; left: 0"
Using with non-Rails Rack apps
------------------------------
@@ -69,7 +69,7 @@ Specify the set of panels you want, in the order you want them to appear:
require "rack/bug"
- ActionController::Dispatcher.middleware.use Insight,
+ ActionController::Dispatcher.middleware.use "Insight::App",
:secret_key => "someverylongandveryhardtoguesspreferablyrandomstring",
:panel_files => %w[
timer_panel
@@ -97,13 +97,13 @@ Restrict access to particular IP addresses:
require "ipaddr"
- ActionController::Dispatcher.middleware.use "Insight"
+ ActionController::Dispatcher.middleware.use "Insight::App"
:secret_key => "someverylongandveryhardtoguesspreferablyrandomstring",
:ip_masks => [IPAddr.new("2.2.2.2/0")]
Restrict access using a password:
- ActionController::Dispatcher.middleware.use "Insight",
+ ActionController::Dispatcher.middleware.use "Insight::App",
:secret_key => "someverylongandveryhardtoguesspreferablyrandomstring",
:password => "yourpassword"
@@ -113,10 +113,11 @@ Authors
- Maintained by [Judson Lester](mailto:judson@lrdesign.com)
- Contributions from Luke Melia, Joey Aghion, Tim Connor, and more
+- Based on Rack::Bug by Bryan Helmkamp
Thanks
------
-Insight owes a lot to Rack::Bug, as the basis project. There's a lot of smart in there.
+Insight owes a lot to Rack::Bug, as the basis project. There's a lot of smart in there. Many thanks to Bryan for building it.
Inspiration for Rack::Bug is primarily from the Django debug toolbar. Additional ideas from Rails footnotes, Rack's ShowException middleware, Oink, and Rack::Cache
@@ -19,7 +19,8 @@ def request_finish(env, status, headers, body, timing)
def before_detect(method_call, arguments)
@event_id += 1
- arguments_string = make_string_of(arguments)
+ #arguments_string = make_string_of(arguments)
+ arguments_string = ""
#XXX ServerEvent use method call...
event = ServerEvent.new(method_call, arguments_string)
@pstack.push event

0 comments on commit 169d6b4

Please sign in to comment.