Permalink
Browse files

Version 0.1.1 changes

  • Loading branch information...
1 parent 8dee616 commit 397280c045fcdc68e13748648f6b58d12d9a6083 @ffmike ffmike committed Feb 18, 2010
Showing with 25 additions and 2 deletions.
  1. +10 −1 HISTORY
  2. +14 −0 README
  3. +1 −1 query_trace.gemspec
View
11 HISTORY
@@ -8,4 +8,13 @@ Version 0.0.3 27-Nov-2009
-------------------------
- Various minor cleanups
- Added Evgeniy Dolzhenko's changes to allow disabling on the fly and setting trace depth
-- Pushed gem to gemcu
+- Pushed gem to gemcutter
+
+Version 0.1.0 18-Feb-2010
+-------------------------
+- Added QueryTrace.toggle! and QueryTrace.enabled? [Doug Barth]
+- Rails integration for toggling tracing with SIGQUIT (CTRL-\) [Doug Barth]
+
+Version 0.1.1 18-Feb-2010
+-------------------------
+Better example in readme
View
14 README
@@ -29,6 +29,20 @@ accessor:
QueryTrace.depth = 5
+== Runtime Toggling of QueryTrace
+
+Starting with version 0.1.0 of QueryTrace, you can toggle tracing on or off without restarting the
+server (thanks to Doug Barth for implementing this). To do so, include QueryTrace in your environment so that
+it loads at server startup; you can use an initializer to set its initial state (on or off). Then just
+send SIGQUIT (CTRL-\) to your server to switch from enabled to disabled and vice versa.
+
+Important note: initializers load after environment.rb, but before environment-specific configuration
+files like development.rb. So make sure you have the QueryTrace gem loaded in environment.rb or
+the runtime toggling will not work. You can use an initializer to selectively turn it on in
+development:
+
+QueryTrace.enable! if Rails.env.development?
+
== Example
Before:
View
2 query_trace.gemspec
@@ -2,7 +2,7 @@
Gem::Specification.new do |s|
s.name = %q{query_trace}
- s.version = "0.0.3"
+ s.version = "0.1.0"
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Nathaniel Talbott", "Mike Gunderloy"]

0 comments on commit 397280c

Please sign in to comment.