cwninja-drunit 0.3 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/Rakefile +1 -1
  2. data/lib/drunit.rb +6 -3
  3. metadata +1 -1
data/Rakefile CHANGED
@@ -17,7 +17,7 @@ end
17
17
 
18
18
  spec = Gem::Specification.new do |s|
19
19
  s.name = %q{drunit}
20
- s.version = "0.3"
20
+ s.version = "0.3.1"
21
21
  s.summary = %q{A library for running tests across multiple applications from a single test case.}
22
22
  s.description = %q{A library for running tests across multiple applications from a single test case.}
23
23
 
data/lib/drunit.rb CHANGED
@@ -21,9 +21,12 @@ module Drunit
21
21
 
22
22
  private
23
23
  def rewrite_backtrace(e, method_name, app_name)
24
- if first_remote_line = e.backtrace.grep(Regexp.new(method_name)).last
25
- index = e.backtrace.index(first_remote_line)
26
- raise e, e.message, e.backtrace[0..index] + ["in drunit_remote(#{app_name})"] + caller(0)
24
+ backtrace = e.backtrace
25
+ if first_remote_line = backtrace.grep(Regexp.new(method_name)).first
26
+ index = backtrace.index(first_remote_line)
27
+ backtrace = backtrace[0..index] + ["in drunit_remote(#{app_name})"] + caller(1)
28
+ backtrace.map!{|line| line.gsub(/\(druby:\/\/[^\)]+\) /, "")}
29
+ raise e, e.message, backtrace
27
30
  end
28
31
  end
29
32
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cwninja-drunit
3
3
  version: !ruby/object:Gem::Version
4
- version: "0.3"
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom Lea