public
Rubygem
Description: Suppresses the noise in your Test::Unit backtraces
Homepage: http://www.thoughtbot.com/projects/quietbacktrace
Clone URL: git://github.com/thoughtbot/quietbacktrace.git
bump the gemspec - removed mattr_accessor, alias_method_chain definitions, 
replaced with require activesupport
dancroak (author)
Thu Oct 02 08:40:01 -0700 2008
commit  7a4954fdd01657f9793b9e79054e2f8523407fc3
tree    5604d504247a193686123a76f1fd30a699fd1c2e
parent  fbef4dcd49ecef01ca1b0f64d1dc7b8bb42d85a9
...
7
8
9
10
 
11
12
13
...
70
71
72
73
74
75
 
76
77
78
79
80
81
 
82
83
84
...
7
8
9
 
10
11
12
13
...
70
71
72
 
 
 
73
74
75
76
77
78
 
79
80
81
82
0
@@ -7,7 +7,7 @@ It also provides hooks for you to add additional silencers and filters.
0
 Install
0
 -------
0
 
0
-sudo gem install quietbacktrace
0
+sudo gem install thoughtbot-quietbacktrace --source=http://gems.github.com
0
 
0
 Usage
0
 -----
0
@@ -70,15 +70,13 @@ Requirements
0
 ------------
0
 
0
 * Test::Unit
0
-* aliasing.rb and attribute_accessors.rb, which are sniped from ActiveSupport and
0
- are included in the gem. They allow quietbacktrace.rb to use alias method chain,
0
- cattr accessor, and mattr accessor.
0
+* ActiveSupport (alias method chain, cattr accessor, & mattr accessor)
0
 
0
 Resources
0
 ---------
0
 
0
 * [mailing list](http://groups.google.com/group/quiet_backtrace)
0
-* [project site](http://rubyforge.org/projects/quietbacktrace)
0
+* [project site](http://github.com/thoughtbot/quietbacktrace)
0
 
0
 Authors
0
 -------
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
 
 
87
88
89
...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
 
 
2
3
4
5
6
0
@@ -1,89 +1,6 @@
0
-# = Quiet Backtrace
0
-#
0
-# Quiet Backtrace suppresses the noise in your Test::Unit backtrace.
0
-# It also provides hooks for you to add additional silencers and filters.
0
-#
0
-# == Install
0
-#
0
-# sudo gem install quietbacktrace
0
-#
0
-# == Usage
0
-#
0
-# Quiet Backtrace works by adding new attributes to Test::Unit::TestCase.
0
-# By default, their values are:
0
-# self.quiet_backtrace = true
0
-# self.backtrace_silencers = [:test_unit, :gem_root, :e1]
0
-# self.backtrace_filters = [:method_name]
0
-#
0
-# Silencers remove lines from the backtrace that return true for given conditions.
0
-# Filters modify the output of backtrace lines.
0
-#
0
-# Override the defaults by adding your own backtrace_silencers:
0
-# class Test::Unit::TestCase
0
-# self.backtrace_silencers :shoulda do |line|
0
-# line.include? 'vendor/plugins/shoulda'
0
-# end
0
-# end
0
-#
0
-# Or your own backtrace_filters:
0
-# class Test::Unit::TestCase
0
-# self.backtrace_filters :ruby_path do |line|
0
-# ruby_file_path = '/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8'
0
-# line.slice!(0..(line =~ ruby_file_path)) if (line =~ ruby_file_path)
0
-# end
0
-# end
0
-#
0
-# Turn Quiet Backtrace off anywhere in your test suite by setting the flag to false:
0
-# Test::Unit::TestCase.quiet_backtrace = false
0
-#
0
-# == Rails-specific usage
0
-#
0
-# Install gemsonrails, add it your Rails app, then freeze quietbacktrace:
0
-#
0
-# * gem install gemsonrails
0
-# * cd rails-app-folder
0
-# * gemsonrails
0
-# * rake gems:freeze GEM=quietbacktrace
0
-#
0
-# Quiet Backtrace comes with an excellent Rails-specific silencer and filter.
0
-# They must be added (usually in test_helper.rb) because they are not turned on by default:
0
-# class Test::Unit::TestCase
0
-# self.backtrace_silencers << :rails_vendor
0
-# self.backtrace_filters << :rails_root
0
-# end
0
-#
0
-# Because Quiet Backtrace works by adding attributes onto Test::Unit::TestCase,
0
-# you can add and remove silencers and filters at any level in your test suite,
0
-# down to the individual test.
0
-#
0
-# == Resources
0
-#
0
-# * mailing list: http://groups.google.com/group/quiet_backtrace
0
-# * project site: http://rubyforge.org/projects/quietbacktrace
0
-#
0
-# == Authors
0
-#
0
-# * Dan Croak (dcroak@thoughtbot.com, http://dancroak.com)
0
-# * James Golick (james@giraffesoft.ca, http://jamesgolick.com)
0
-# * Joe Ferris (jferris@thoughtbot.com)
0
-#
0
-# Special thanks to the Boston.rb group (http://bostonrb.org)
0
-# for cultivating this idea at our inaugural hackfest.
0
-#
0
-# == Requirements
0
-#
0
-# * Test::Unit
0
-# * aliasing.rb and attribute_accessors.rb, which are snipped from ActiveSupport and
0
-# are included in the gem. They allow quiet_backtrace.rb to use alias_method_chain,
0
-# cattr_accessor, and mattr_accessor.
0
-#
0
-# == Copyright
0
-#
0
-# Copyright (c) 2007 Dan Croak, thoughtbot, inc., released under the MIT license
0
-
0
 require 'test/unit'
0
-require File.expand_path(File.dirname(__FILE__) + '/attribute_accessors')
0
-require File.expand_path(File.dirname(__FILE__) + '/aliasing')
0
+require 'rubygems'
0
+require 'activesupport'
0
 
0
 module QuietBacktrace # :nodoc: all
0
   module BacktraceFilter
...
1
2
3
4
 
 
5
6
7
...
1
2
 
 
3
4
5
6
7
0
@@ -1,7 +1,7 @@
0
 Gem::Specification.new do |s|
0
   s.name = "quietbacktrace"
0
- s.version = "1.1.4"
0
- s.date = "2008-09-11"
0
+ s.version = "1.1.5"
0
+ s.date = "2008-10-0002"
0
   s.email = "dcroak@thoughtbot.com"
0
   s.homepage = "http://github.com/thoughtbot/quietbacktrace"
0
   s.summary = "Quiet Backtrace suppresses the noise in your Test::Unit backtrace."
...
10
11
12
13
 
14
15
16
...
10
11
12
 
13
14
15
16
0
@@ -10,7 +10,7 @@
0
 # context "Setting quiet backtrace to false" do
0
 #
0
 # setup do
0
-# self.quiet_backtrace = false
0
+# Test::Unit::TestCase.quiet_backtrace = false
0
 # end
0
 #
0
 # should "keep the backtrace noisy" do

Comments

    No one has commented yet.