rspec-core 3.1.3 → 3.1.4
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.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/Changelog.md +12 -0
- data/lib/rspec/core/backtrace_formatter.rb +8 -11
- data/lib/rspec/core/memoized_helpers.rb +1 -1
- data/lib/rspec/core/version.rb +1 -1
- metadata +3 -3
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f8d443beb68dc62c6262fe56753f49aaf78d185a
|
|
4
|
+
data.tar.gz: 09e2c21ad474f97b97ace68c74d63e1c1d64e289
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 17c41f5e26ba11c31020e0f6be81192f9045578721b005a0594db764a53f16280abb8ab0e462f3a58680abf4cd62068e800a6eb7eb70b1fa0c79dacd7973e353
|
|
7
|
+
data.tar.gz: daa45d7357c26db4db246e35292c5783281b5340c93fac275a1ac9917460ad1ea3a2b18b1b35f4692c96bbf630ce0df7aa547c310b515d24187b893b6af6e786
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data.tar.gz.sig
CHANGED
|
Binary file
|
data/Changelog.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
### 3.1.4 / 2014-09-18
|
|
2
|
+
[Full Changelog](http://github.com/rspec/rspec-core/compare/v3.1.3...v3.1.4)
|
|
3
|
+
|
|
4
|
+
Bug Fixes:
|
|
5
|
+
|
|
6
|
+
* Fix implicit `subject` when using `describe false` or `describe nil`
|
|
7
|
+
so that it returns the provided primitive rather than the string
|
|
8
|
+
representation. (Myron Marston, #1710)
|
|
9
|
+
* Fix backtrace filtering to allow code in subdirectories of your
|
|
10
|
+
current working directory (such as vendor/bundle/...) to be filtered
|
|
11
|
+
from backtraces. (Myron Marston, #1708)
|
|
12
|
+
|
|
1
13
|
### 3.1.3 / 2014-09-15
|
|
2
14
|
[Full Changelog](http://github.com/rspec/rspec-core/compare/v3.1.2...v3.1.3)
|
|
3
15
|
|
|
@@ -12,23 +12,22 @@ module RSpec
|
|
|
12
12
|
patterns << "org/jruby/" if RUBY_PLATFORM == 'java'
|
|
13
13
|
patterns.map! { |s| Regexp.new(s.gsub("/", File::SEPARATOR)) }
|
|
14
14
|
|
|
15
|
-
@
|
|
16
|
-
@
|
|
17
|
-
|
|
15
|
+
@exclusion_patterns = [Regexp.union(RSpec::CallerFilter::IGNORE_REGEX, *patterns)]
|
|
16
|
+
@inclusion_patterns = []
|
|
17
|
+
|
|
18
|
+
return unless matches?(@exclusion_patterns, File.join(Dir.getwd, "lib", "foo.rb:13"))
|
|
19
|
+
inclusion_patterns << Regexp.new(Dir.getwd)
|
|
18
20
|
end
|
|
19
21
|
|
|
20
22
|
attr_writer :full_backtrace
|
|
21
23
|
|
|
22
24
|
def full_backtrace?
|
|
23
|
-
@full_backtrace ||
|
|
25
|
+
@full_backtrace || exclusion_patterns.empty?
|
|
24
26
|
end
|
|
25
27
|
|
|
26
28
|
def filter_gem(gem_name)
|
|
27
29
|
sep = File::SEPARATOR
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
@exclusion_patterns << pattern
|
|
31
|
-
@system_exclusion_patterns << pattern
|
|
30
|
+
exclusion_patterns << /#{sep}#{gem_name}(-[^#{sep}]+)?#{sep}/
|
|
32
31
|
end
|
|
33
32
|
|
|
34
33
|
def format_backtrace(backtrace, options={})
|
|
@@ -54,9 +53,7 @@ module RSpec
|
|
|
54
53
|
|
|
55
54
|
def exclude?(line)
|
|
56
55
|
return false if @full_backtrace
|
|
57
|
-
|
|
58
|
-
return false unless matches?(@exclusion_patterns, relative_line)
|
|
59
|
-
matches?(@system_exclusion_patterns, relative_line) || !matches?(@inclusion_patterns, line)
|
|
56
|
+
matches?(exclusion_patterns, line) && !matches?(inclusion_patterns, line)
|
|
60
57
|
end
|
|
61
58
|
|
|
62
59
|
private
|
|
@@ -55,7 +55,7 @@ module RSpec
|
|
|
55
55
|
def subject
|
|
56
56
|
__memoized.fetch(:subject) do
|
|
57
57
|
__memoized[:subject] = begin
|
|
58
|
-
described = described_class || self.class.
|
|
58
|
+
described = described_class || self.class.metadata.fetch(:description_args).first
|
|
59
59
|
Class === described ? described.new : described
|
|
60
60
|
end
|
|
61
61
|
end
|
data/lib/rspec/core/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rspec-core
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.1.
|
|
4
|
+
version: 3.1.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Steven Baker
|
|
@@ -34,7 +34,7 @@ cert_chain:
|
|
|
34
34
|
1yHC1AcSYpvi2dAbOiHT5iQF+krm4wse8KctXgTNnjMsHEoGKulJS2/sZl90jcCz
|
|
35
35
|
muA=
|
|
36
36
|
-----END CERTIFICATE-----
|
|
37
|
-
date: 2014-09-
|
|
37
|
+
date: 2014-09-18 00:00:00.000000000 Z
|
|
38
38
|
dependencies:
|
|
39
39
|
- !ruby/object:Gem::Dependency
|
|
40
40
|
name: rspec-support
|
|
@@ -266,6 +266,6 @@ rubyforge_project: rspec
|
|
|
266
266
|
rubygems_version: 2.2.2
|
|
267
267
|
signing_key:
|
|
268
268
|
specification_version: 4
|
|
269
|
-
summary: rspec-core-3.1.
|
|
269
|
+
summary: rspec-core-3.1.4
|
|
270
270
|
test_files: []
|
|
271
271
|
has_rdoc:
|
metadata.gz.sig
CHANGED
|
Binary file
|