mini_backtrace 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -1,13 +1,14 @@
1
1
 
2
2
  = MiniBacktrace
3
3
 
4
- A minimal backtrace filter for MiniTest::Unit & Rails. If you have been using Rails 3 with Ruby 1.9, that means your test base test library is MiniTest::Unit. But since Rails 3 there have been no backtrace silencers included in ActiveSupport for the ActiveSupport::BacktraceCleaner (aka Rails.backtrace_cleaner) to hook into MiniTest::Unit. That means noisy tests.
4
+ MiniBacktrace allows you to take advantage of the Rails.backtrace_cleaner when using MiniTest. This includes everyone using Rails 3 with Ruby 1.9.
5
5
 
6
6
 
7
+ = Usage
7
8
 
8
- = Install
9
+ Just add 'mini_backtrace' to your Gemfile's :test group and your should automatically see a huge difference. Any additions to the Rails.backtrace_cleaner should now work.
9
10
 
10
- $ gem install mini_backtrace
11
+ Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
11
12
 
12
13
 
13
14
  = Code
@@ -1,3 +1,3 @@
1
1
  module MiniBacktrace
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -9,8 +9,8 @@ Gem::Specification.new do |s|
9
9
  s.authors = ['Ken Collins']
10
10
  s.email = ['ken@metaskills.net']
11
11
  s.homepage = 'http://github.com/metaskills/mini_backtrace'
12
- s.summary = 'MiniBacktrace - A minimal backtrace filter for MiniTest::Unit & Rails.'
13
- s.description = 'MiniBacktrace - A minimal backtrace filter for MiniTest::Unit & Rails.'
12
+ s.summary = 'Integrates the Rails.backtrace_cleaner with MiniTest.'
13
+ s.description = 'MiniBacktrace allows you to take advantage of the Rails.backtrace_cleaner when using MiniTest. This includes everyone using Rails 3 with Ruby 1.9.'
14
14
  s.files = `git ls-files`.split("\n")
15
15
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
16
16
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: mini_backtrace
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.0
5
+ version: 0.1.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - Ken Collins
@@ -35,7 +35,7 @@ dependencies:
35
35
  version: 2.3.2
36
36
  type: :runtime
37
37
  version_requirements: *id002
38
- description: MiniBacktrace - A minimal backtrace filter for MiniTest::Unit & Rails.
38
+ description: MiniBacktrace allows you to take advantage of the Rails.backtrace_cleaner when using MiniTest. This includes everyone using Rails 3 with Ruby 1.9.
39
39
  email:
40
40
  - ken@metaskills.net
41
41
  executables: []
@@ -84,7 +84,7 @@ rubyforge_project:
84
84
  rubygems_version: 1.6.2
85
85
  signing_key:
86
86
  specification_version: 3
87
- summary: MiniBacktrace - A minimal backtrace filter for MiniTest::Unit & Rails.
87
+ summary: Integrates the Rails.backtrace_cleaner with MiniTest.
88
88
  test_files:
89
89
  - test/rail_test.rb
90
90
  - test/test_helper.rb