rspec-core 3.5.1 → 3.5.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8edadb66ad16d53a8e8b9c24bcb0d6e0d0cf60a4
4
- data.tar.gz: 482215825781fdb27385c38e782ae15eea0d4340
3
+ metadata.gz: cec44daa280723490f842a4f70fc2155a28379c0
4
+ data.tar.gz: 3d74dfc5863a12e75a5d5ff591ecdba51f399489
5
5
  SHA512:
6
- metadata.gz: 033297ca6896a612fda69a3a7c4f60b98dac28da47312c866a0c1bbfcf799163393b9520f4e158f48d7bdf5b0d8d21dd65091f79779e9fe4e0e0530913588079
7
- data.tar.gz: 290acfab949ab5e5bf54b6cb67d298c232e03c3c00155a18754e327d79aa68d0bf8f210db2ee1f6aea2fc9b7271dd518cd08ee606c31a8f66035b4eee92b6e0f
6
+ metadata.gz: 61c37f52ef3408f9c4a6813708fb6e5785a87e8d610e25398b0a1ab0264de42afd008f1ff621d55b253b59718cf52a29862458fdc7db55647d6d91704be3d6cf
7
+ data.tar.gz: d1baf10d2a985bff5b8b9af2ed77be391c0a30ff77ced7b13d4b837b78c4b6c263c7de3b61878282734d3c06ee51ff09643a27549b3f6c81ce5c045e420e9131
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -1,3 +1,15 @@
1
+ ### 3.5.2 / 2016-07-28
2
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v3.5.1...v3.5.2)
3
+
4
+ Bug Fixes:
5
+
6
+ * Wait to report `example_finished` until the example's `execution_result`
7
+ has been completely filled in. (Myron Marston, #2291)
8
+ * Make sure example block is still available when using `duplicate_with`
9
+ to clone examples. (bootstraponline, #2298)
10
+ * Don't include the default `--pattern` in the Rake task when
11
+ `rspec_opts` specifies its own. (Jon Rowe, #2305)
12
+
1
13
  ### 3.5.1 / 2016-07-06
2
14
  [Full Changelog](http://github.com/rspec/rspec-core/compare/v3.5.0...v3.5.1)
3
15
 
@@ -138,8 +138,10 @@ module RSpec
138
138
 
139
139
  # don't clone the example group because the new example
140
140
  # must belong to the same example group (not a clone).
141
+ #
142
+ # block is nil in new_metadata so we have to get it from metadata.
141
143
  Example.new(example_group, description.clone,
142
- new_metadata, new_metadata[:block])
144
+ new_metadata, metadata[:block])
143
145
  end
144
146
 
145
147
  # @private
@@ -461,15 +463,14 @@ module RSpec
461
463
  def finish(reporter)
462
464
  pending_message = execution_result.pending_message
463
465
 
464
- reporter.example_finished(self)
465
466
  if @exception
466
- record_finished :failed
467
467
  execution_result.exception = @exception
468
+ record_finished :failed
468
469
  reporter.example_failed self
469
470
  false
470
471
  elsif pending_message
471
- record_finished :pending
472
472
  execution_result.pending_message = pending_message
473
+ record_finished :pending
473
474
  reporter.example_pending self
474
475
  true
475
476
  else
@@ -481,6 +482,7 @@ module RSpec
481
482
 
482
483
  def record_finished(status)
483
484
  execution_result.record_finished(status, clock.now)
485
+ reporter.example_finished(self)
484
486
  end
485
487
 
486
488
  def run_before_example
@@ -102,6 +102,7 @@ module RSpec
102
102
  if ENV['SPEC']
103
103
  FileList[ENV['SPEC']].sort
104
104
  elsif String === pattern && !File.exist?(pattern)
105
+ return if rspec_opts =~ /--pattern/
105
106
  "--pattern #{escape pattern}"
106
107
  else
107
108
  # Before RSpec 3.1, we used `FileList` to get the list of matched
@@ -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.5.1'
6
+ STRING = '3.5.2'
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.5.1
4
+ version: 3.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steven Baker
@@ -46,7 +46,7 @@ cert_chain:
46
46
  ZsVDj6a7lH3cNqtWXZxrb2wO38qV5AkYj8SQK7Hj3/Yui9myUX3crr+PdetazSqQ
47
47
  F3MdtaDehhjC
48
48
  -----END CERTIFICATE-----
49
- date: 2016-07-07 00:00:00.000000000 Z
49
+ date: 2016-07-28 00:00:00.000000000 Z
50
50
  dependencies:
51
51
  - !ruby/object:Gem::Dependency
52
52
  name: rspec-support
@@ -283,6 +283,6 @@ rubyforge_project:
283
283
  rubygems_version: 2.2.2
284
284
  signing_key:
285
285
  specification_version: 4
286
- summary: rspec-core-3.5.1
286
+ summary: rspec-core-3.5.2
287
287
  test_files: []
288
288
  has_rdoc:
metadata.gz.sig CHANGED
Binary file