rspec-core 3.1.3 → 3.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: de35fb8af71557f3b94da1039900a1f59dd369c7
4
- data.tar.gz: 125f5fd4a44a2b725c10e7f6c7fcf27a5c5a519d
3
+ metadata.gz: f8d443beb68dc62c6262fe56753f49aaf78d185a
4
+ data.tar.gz: 09e2c21ad474f97b97ace68c74d63e1c1d64e289
5
5
  SHA512:
6
- metadata.gz: f6b05499ca1958817b42849bb529dc94ae6d6b6d92ba4885f5d9b6cf7f956e28c6c871f7b85d794c65ca27617799797106fbeffbeb821574571135f19e88d4b1
7
- data.tar.gz: f9b83d585f0913cc72c1bf167d107208658889c65de1eb93254554cee333faf5f517b5c4705a17ec6b0c950dd2b60d4ca55ee9c1fb1339b36d5470bafb422e9f
6
+ metadata.gz: 17c41f5e26ba11c31020e0f6be81192f9045578721b005a0594db764a53f16280abb8ab0e462f3a58680abf4cd62068e800a6eb7eb70b1fa0c79dacd7973e353
7
+ data.tar.gz: daa45d7357c26db4db246e35292c5783281b5340c93fac275a1ac9917460ad1ea3a2b18b1b35f4692c96bbf630ce0df7aa547c310b515d24187b893b6af6e786
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -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
- @system_exclusion_patterns = [Regexp.union(RSpec::CallerFilter::IGNORE_REGEX, *patterns)]
16
- @exclusion_patterns = [] + @system_exclusion_patterns
17
- @inclusion_patterns = [Regexp.new(Dir.getwd)]
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 || @exclusion_patterns.empty?
25
+ @full_backtrace || exclusion_patterns.empty?
24
26
  end
25
27
 
26
28
  def filter_gem(gem_name)
27
29
  sep = File::SEPARATOR
28
- pattern = /#{sep}#{gem_name}(-[^#{sep}]+)?#{sep}/
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
- relative_line = Metadata.relative_path(line)
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.description
58
+ described = described_class || self.class.metadata.fetch(:description_args).first
59
59
  Class === described ? described.new : described
60
60
  end
61
61
  end
@@ -3,7 +3,7 @@ module RSpec
3
3
  # Version information for RSpec Core.
4
4
  module Version
5
5
  # Current version of RSpec Core, in semantic versioning format.
6
- STRING = '3.1.3'
6
+ STRING = '3.1.4'
7
7
  end
8
8
  end
9
9
  end
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.3
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-15 00:00:00.000000000 Z
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.3
269
+ summary: rspec-core-3.1.4
270
270
  test_files: []
271
271
  has_rdoc:
metadata.gz.sig CHANGED
Binary file