quietbacktrace 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +5 -0
- data/Rakefile +1 -1
- data/lib/quietbacktrace.rb +2 -1
- metadata +2 -2
data/History.txt
CHANGED
@@ -1,3 +1,8 @@
|
|
1
|
+
== 0.1.1 / 2007-12-04
|
2
|
+
|
3
|
+
* Added Seth Fitzsimmons' fix for view backtraces, which are a special case.
|
4
|
+
* View backtraces are an array with a single element, not an array of all lines.
|
5
|
+
|
1
6
|
== 0.1.0 / 2007-12-03
|
2
7
|
|
3
8
|
* Protected the ActiveSupport snippets with unless defined?(ActiveSupport).
|
data/Rakefile
CHANGED
data/lib/quietbacktrace.rb
CHANGED
@@ -97,6 +97,8 @@ module QuietBacktrace # :nodoc: all
|
|
97
97
|
def filter_backtrace_with_quieting(backtrace)
|
98
98
|
filter_backtrace_without_quieting(backtrace)
|
99
99
|
|
100
|
+
backtrace = backtrace.first.split("\n") if backtrace.size == 1
|
101
|
+
|
100
102
|
if Test::Unit::TestCase.quiet_backtrace
|
101
103
|
backtrace.reject! do |line|
|
102
104
|
[*Test::Unit::TestCase.backtrace_silencers].any? do |silencer_name|
|
@@ -111,7 +113,6 @@ module QuietBacktrace # :nodoc: all
|
|
111
113
|
end
|
112
114
|
end
|
113
115
|
|
114
|
-
backtrace = backtrace.first.split("\n") if backtrace.size == 1
|
115
116
|
backtrace
|
116
117
|
end
|
117
118
|
end
|
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.4
|
|
3
3
|
specification_version: 1
|
4
4
|
name: quietbacktrace
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.1.
|
7
|
-
date: 2007-12-
|
6
|
+
version: 0.1.1
|
7
|
+
date: 2007-12-04 00:00:00 -05:00
|
8
8
|
summary: quiet_backtrace suppresses the noise in your Test::Unit backtrace. It also provides hooks for you to add additional filters.
|
9
9
|
require_paths:
|
10
10
|
- lib
|