public
Description: Buffered ruby backtraces with start/stop.
Homepage:
Clone URL: git://github.com/geemus/annals.git
annals /
name age message
file .document Wed Oct 07 14:08:16 -0700 2009 Initial commit to annals. [geemus]
file .gitignore Wed Oct 07 14:08:16 -0700 2009 Initial commit to annals. [geemus]
file LICENSE Wed Oct 07 14:08:16 -0700 2009 Initial commit to annals. [geemus]
file README.rdoc Wed Oct 07 14:31:25 -0700 2009 add a puts method, more docs [geemus]
file Rakefile Wed Oct 07 14:10:35 -0700 2009 Version bump to 0.0.1 [geemus]
file VERSION Wed Oct 07 14:55:57 -0700 2009 Version bump to 0.0.3 [geemus]
file annals.gemspec Wed Oct 07 14:55:57 -0700 2009 Version bump to 0.0.3 [geemus]
directory lib/ Wed Oct 07 14:55:23 -0700 2009 cleanup method returns, allow custom trace_func [geemus]
README.rdoc

annals

Buffered ruby backtraces with start/stop.

Usage

  # initialize
  @annals = Annals.new

  # start/stop around the thing you care about
  @annals.start
  tricksy_bits
  @annals.stop

  # capture trace for a block
  @annals.capture { tricksy_bits }

  # print backtrace
  @annals.puts

  # get details for a particular line
  @annals.buffer[42]

Copyright

(The MIT License)

Copyright © 2009 geemus (Wesley Beary)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.