rspec-core 3.0.2 → 3.0.3

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: c5447ecf782b107af7573626ade27fdf62fb0307
4
- data.tar.gz: ca82f9eb6c9f35b3c0b59c104eeb34752320cab2
3
+ metadata.gz: df77bb782f455bfb1ae08962875679185c2a38a1
4
+ data.tar.gz: b518071746d17b15141cf4508730ac98ef4a5f0c
5
5
  SHA512:
6
- metadata.gz: 2452515ed3b91a42b6afda517a914819e73c6fbfce3e8cc724ca7067388e9f75318cf62a1ca7787529d5cec8c8c0d7441ebe3f475fd5f64ebfa7c29db2d88b24
7
- data.tar.gz: d4de137f453c1188858c4e5a77a208182f24f7dce0241f04691217082aaf601fc88faacdfcb5fbbb5ab4470fbfd51bf197fa995a85e069629011b2b12039acd4
6
+ metadata.gz: c1420cc5987896afb9ea7db1b52cb287326a1a38016a4a2a85b4e8b895f378a11ea3e77108b11b98ad8c2bce713752a80d54d0a668411184ce5ad246846acd9a
7
+ data.tar.gz: 5b21526d9b56ab20095e905152e338ecc13a2f6b0b314abc04c9d1940163e6bcbd53cb7bea650f7bf400d45a4f1b291bef6f19d17633146da4febc3c15a7069f
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -1,3 +1,15 @@
1
+ ### 3.0.3 / 2014-07-21
2
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v3.0.2...v3.0.3)
3
+
4
+ Bug Fixes:
5
+
6
+ * Properly convert both parts of a description into strings before
7
+ concatenation. (@nicklink483, #1636)
8
+ * Exclude the working directory when figuring out folders to ignore.
9
+ (Jon Rowe, Myron Marston, #1616)
10
+ * Allow `::RSpec::Core::Notifications::FailedExampleNotification#message_lines`
11
+ to be accessed without a colouriser. (@tomykaira, #1637)
12
+
1
13
  ### 3.0.2 / 2014-06-19
2
14
  [Full Changelog](http://github.com/rspec/rspec-core/compare/v3.0.1...v3.0.2)
3
15
 
@@ -44,27 +44,23 @@ module RSpec
44
44
  end
45
45
 
46
46
  def backtrace_line(line)
47
- RSpec::Core::Metadata::relative_path(line) unless exclude?(line)
47
+ Metadata.relative_path(line) unless exclude?(line)
48
48
  rescue SecurityError
49
49
  nil
50
50
  end
51
51
 
52
52
  def exclude?(line)
53
53
  return false if @full_backtrace
54
- matches_an_exclusion_pattern?(line) &&
55
- doesnt_match_inclusion_pattern_unless_system_exclusion?(line)
54
+ relative_line = Metadata.relative_path(line)
55
+ return false unless matches?(@exclusion_patterns, relative_line)
56
+ matches?(@system_exclusion_patterns, relative_line) || !matches?(@inclusion_patterns, line)
56
57
  end
57
58
 
58
59
  private
59
60
 
60
- def matches_an_exclusion_pattern?(line)
61
- @exclusion_patterns.any? { |p| line =~ p }
61
+ def matches?(patterns, line)
62
+ patterns.any? { |p| line =~ p }
62
63
  end
63
-
64
- def doesnt_match_inclusion_pattern_unless_system_exclusion?(line)
65
- @system_exclusion_patterns.any? { |p| line =~ p } || @inclusion_patterns.none? { |p| p =~ line }
66
- end
67
-
68
64
  end
69
65
  end
70
66
  end
@@ -126,7 +126,7 @@ module RSpec
126
126
  def build_description_from(parent_description=nil, my_description=nil)
127
127
  return parent_description.to_s unless my_description
128
128
  separator = description_separator(parent_description, my_description)
129
- parent_description.to_s + separator + my_description
129
+ parent_description.to_s + separator + my_description.to_s
130
130
  end
131
131
 
132
132
  def ensure_valid_user_keys
@@ -7,7 +7,7 @@ module RSpec::Core
7
7
 
8
8
  # @private
9
9
  class NullColorizer
10
- def wrap(line)
10
+ def wrap(line, _code_or_symbol)
11
11
  line
12
12
  end
13
13
  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.0.2'
6
+ STRING = '3.0.3'
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.0.2
4
+ version: 3.0.3
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-06-20 00:00:00.000000000 Z
37
+ date: 2014-07-21 00:00:00.000000000 Z
38
38
  dependencies:
39
39
  - !ruby/object:Gem::Dependency
40
40
  name: rspec-support
@@ -265,6 +265,6 @@ rubyforge_project: rspec
265
265
  rubygems_version: 2.2.2
266
266
  signing_key:
267
267
  specification_version: 4
268
- summary: rspec-core-3.0.2
268
+ summary: rspec-core-3.0.3
269
269
  test_files: []
270
270
  has_rdoc:
metadata.gz.sig CHANGED
Binary file