rspec_multi_matchers 1.2.0 → 1.2.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.
- data/lib/match_each.rb +6 -1
- data/lib/rspec_multi_matchers.rb +1 -1
- metadata +3 -3
data/lib/match_each.rb
CHANGED
@@ -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
|
-
|
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
|
data/lib/rspec_multi_matchers.rb
CHANGED
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:
|
4
|
+
hash: 29
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 1.2.
|
9
|
+
- 1
|
10
|
+
version: 1.2.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Greg Weber
|