Skip to content

Commit

Permalink
Version 0.1.1 changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Gunderloy authored and Mike Gunderloy committed Feb 18, 2010
1 parent 8dee616 commit 397280c
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 2 deletions.
11 changes: 10 additions & 1 deletion HISTORY
Expand Up @@ -8,4 +8,13 @@ Version 0.0.3 27-Nov-2009
------------------------- -------------------------
- Various minor cleanups - Various minor cleanups
- Added Evgeniy Dolzhenko's changes to allow disabling on the fly and setting trace depth - 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
14 changes: 14 additions & 0 deletions README
Expand Up @@ -29,6 +29,20 @@ accessor:


QueryTrace.depth = 5 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 == Example


Before: Before:
Expand Down
2 changes: 1 addition & 1 deletion query_trace.gemspec
Expand Up @@ -2,7 +2,7 @@


Gem::Specification.new do |s| Gem::Specification.new do |s|
s.name = %q{query_trace} 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.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Nathaniel Talbott", "Mike Gunderloy"] s.authors = ["Nathaniel Talbott", "Mike Gunderloy"]
Expand Down

0 comments on commit 397280c

Please sign in to comment.