rspec_multi_matchers 1.2.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -74,8 +74,13 @@ class MatchEach
74
74
  error_lines = []
75
75
  @error.backtrace.each do |line|
76
76
  if line[/:\d+:in\s*[`'"](.*)[`'"]\s*$/, 1] == 'matches?'
77
+ this_library_already = false
77
78
  error_lines.reverse_each do |line|
78
- return line[/^[^:]+:(\d+)/, 1] if line !~ %r!rspec-multi-matchers/lib/match_each\.rb!
79
+ this_library = line =~ %r!rspec-multi-matchers/lib/match_each\.rb!
80
+ this_library_already ||= this_library
81
+ if this_library_already and !this_library
82
+ return line[/^[^:]+:(\d+)/, 1]
83
+ end
79
84
  end
80
85
  end
81
86
  error_lines.push line
@@ -4,7 +4,7 @@ $:.unshift(File.dirname(__FILE__)) unless
4
4
  $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
5
5
 
6
6
  module RspecMultiMatchers
7
- VERSION = '1.2.0'
7
+ VERSION = '1.2.1'
8
8
  end
9
9
 
10
10
  require "match_each"
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec_multi_matchers
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 29
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 2
9
- - 0
10
- version: 1.2.0
9
+ - 1
10
+ version: 1.2.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Greg Weber