Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 57 lines (37 sloc) 1.588 kB
bd43780 @nickrivadeneira Officially deprecating.
nickrivadeneira authored
1 DEPRECATED
2 ==========
3
4 Thoughtbot is no longer supporting this project, it hasn't be tested or used since at least Rails 2.x.
5
6 We recommend upgrading to Rails 3 as soon as possible, since this gem's functionality was merged into Rails a while ago.
7
dd4b86f @croaky updating README to use markdown
croaky authored
8 Quiet Backtrace
9 ===============
10
11 Quiet Backtrace suppresses the noise in your Test::Unit backtrace.
12 It also provides hooks for you to add additional silencers and filters.
13
14 Install
15 -------
16
7a4954f @croaky bump the gemspec - removed mattr_accessor, alias_method_chain definit…
croaky authored
17 sudo gem install thoughtbot-quietbacktrace --source=http://gems.github.com
dd4b86f @croaky updating README to use markdown
croaky authored
18
19 Usage
20 -----
21
6f3eb93 @croaky experiment with turning quiet backtrace off
croaky authored
22 Silencers remove lines from the backtrace. Create your own:
dd4b86f @croaky updating README to use markdown
croaky authored
23
86f031c @croaky working version matching Rails implementation
croaky authored
24 # Will reject all lines that include the word "mongrel",
25 # like "/gems/mongrel/server.rb" or "/app/my_mongrel_server/rb"
9111eb9 @croaky README typo. BacktraceCleaner is a class namespaced under QuietBactra…
croaky authored
26 backtrace_cleaner = QuietBacktrace::BacktraceCleaner.new
86f031c @croaky working version matching Rails implementation
croaky authored
27 backtrace_cleaner.add_silencer { |line| line =~ /mongrel/ }
dd4b86f @croaky updating README to use markdown
croaky authored
28
6f3eb93 @croaky experiment with turning quiet backtrace off
croaky authored
29 Filters modify the output of backtrace lines. Create your own:
dd4b86f @croaky updating README to use markdown
croaky authored
30
86f031c @croaky working version matching Rails implementation
croaky authored
31 # Will turn "/my/rails/root/app/models/person.rb" into "/app/models/person.rb"
9111eb9 @croaky README typo. BacktraceCleaner is a class namespaced under QuietBactra…
croaky authored
32 backtrace_cleaner = QuietBacktrace::BacktraceCleaner.new
86f031c @croaky working version matching Rails implementation
croaky authored
33 backtrace_cleaner.add_filter { |line| line.gsub(Rails.root, '') }
dd4b86f @croaky updating README to use markdown
croaky authored
34
35 Requirements
36 ------------
37
38 * Test::Unit
39
40 Resources
41 ---------
42
7a4954f @croaky bump the gemspec - removed mattr_accessor, alias_method_chain definit…
croaky authored
43 * [project site](http://github.com/thoughtbot/quietbacktrace)
dd4b86f @croaky updating README to use markdown
croaky authored
44
45 Authors
46 -------
47
48 * [Dan Croak](http://dancroak.com)
49 * [James Golick](http://jamesgolick.com/)
50 * [Joe Ferris](jferris@thoughtbot.com)
51
52 Special thanks to the [Boston.rb group](http://bostonrb.org)
53 for cultivating this idea at our inaugural hackfest.
54
55 Copyright (c) Dan Croak, James Golick, Joe Ferris, thoughtbot, inc.
56 (the MIT license)
Something went wrong with that request. Please try again.