quietbacktrace 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/History.txt +5 -0
  2. data/Rakefile +1 -1
  3. data/lib/quietbacktrace.rb +2 -1
  4. metadata +2 -2
@@ -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
@@ -4,7 +4,7 @@ require 'rubygems'
4
4
  require 'hoe'
5
5
  require './lib/quietbacktrace.rb'
6
6
 
7
- Hoe.new('quietbacktrace', '0.1.0') do |p|
7
+ Hoe.new('quietbacktrace', '0.1.1') do |p|
8
8
  p.rubyforge_name = 'quietbacktrace'
9
9
  p.author = 'Dan Croak'
10
10
  p.email = 'dcroak@thoughtbot.com'
@@ -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.0
7
- date: 2007-12-03 00:00:00 -05:00
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