rspec-core 3.4.1 → 3.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/Changelog.md +14 -0
- data/lib/rspec/core/example.rb +14 -3
- data/lib/rspec/core/metadata.rb +2 -0
- data/lib/rspec/core/runner.rb +7 -3
- data/lib/rspec/core/source/syntax_highlighter.rb +1 -1
- data/lib/rspec/core/version.rb +1 -1
- metadata +3 -17
- 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: 0e63ddb3b6ca4d7f6e9ff8840a31920d58c8381f
|
4
|
+
data.tar.gz: 7be258c6e7b6bcab6570fc1a117511fe0c8070b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8c4c1ec05fdcc0a7693346e32d320d8031be2e270f8d5cfd369d791e2a733ab39a6e6f867354c70d4b8bbf8bc722a841174101a309b46083892f1ef24c8432d6
|
7
|
+
data.tar.gz: 36af8dd8c5c4ffb1034f289dc6107e1e7c552cd6c74ca52c226a96e3279b8a00c3d2edc834b7d74bf1f5f311435f540d8d7c69389a00a3249efc1876a80b641b
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/Changelog.md
CHANGED
@@ -1,3 +1,17 @@
|
|
1
|
+
### 3.4.2 / 2016-01-26
|
2
|
+
[Full Changelog](http://github.com/rspec/rspec-core/compare/v3.4.1...v3.4.2)
|
3
|
+
|
4
|
+
Bug Fixes:
|
5
|
+
|
6
|
+
* Fix `rspec --profile` when an example calls `abort` or `exit`.
|
7
|
+
(Bradley Schaefer, #2144)
|
8
|
+
* Fix `--drb` so that when no DRb server is running, it prevents
|
9
|
+
the DRb connection error from being listed as the cause of all
|
10
|
+
expectation failures. (Myron Marston, #2156)
|
11
|
+
* Fix syntax highlighter so that it works when the `coderay` gem is
|
12
|
+
installed as a rubygem but not already available on your load path
|
13
|
+
(as happens when you use bundler). (Myron Marston, #2159)
|
14
|
+
|
1
15
|
### 3.4.1 / 2015-11-18
|
2
16
|
[Full Changelog](http://github.com/rspec/rspec-core/compare/v3.4.0...v3.4.1)
|
3
17
|
|
data/lib/rspec/core/example.rb
CHANGED
@@ -260,6 +260,7 @@ module RSpec
|
|
260
260
|
|
261
261
|
finish(reporter)
|
262
262
|
ensure
|
263
|
+
execution_result.ensure_timing_set(clock)
|
263
264
|
RSpec.current_example = nil
|
264
265
|
end
|
265
266
|
|
@@ -565,13 +566,23 @@ module RSpec
|
|
565
566
|
# @api private
|
566
567
|
# Records the finished status of the example.
|
567
568
|
def record_finished(status, finished_at)
|
568
|
-
self.status
|
569
|
-
|
570
|
-
|
569
|
+
self.status = status
|
570
|
+
calculate_run_time(finished_at)
|
571
|
+
end
|
572
|
+
|
573
|
+
# @api private
|
574
|
+
# Populates finished_at and run_time if it has not yet been set
|
575
|
+
def ensure_timing_set(clock)
|
576
|
+
calculate_run_time(clock.now) unless finished_at
|
571
577
|
end
|
572
578
|
|
573
579
|
private
|
574
580
|
|
581
|
+
def calculate_run_time(finished_at)
|
582
|
+
self.finished_at = finished_at
|
583
|
+
self.run_time = (finished_at - started_at).to_f
|
584
|
+
end
|
585
|
+
|
575
586
|
# For backwards compatibility we present `status` as a string
|
576
587
|
# when presenting the legacy hash interface.
|
577
588
|
def hash_for_delegation
|
data/lib/rspec/core/metadata.rb
CHANGED
data/lib/rspec/core/runner.rb
CHANGED
@@ -2,6 +2,10 @@ module RSpec
|
|
2
2
|
module Core
|
3
3
|
# Provides the main entry point to run a suite of RSpec examples.
|
4
4
|
class Runner
|
5
|
+
# @attr_reader
|
6
|
+
# @private
|
7
|
+
attr_reader :options, :configuration, :world
|
8
|
+
|
5
9
|
# Register an `at_exit` hook that runs the suite when the process exits.
|
6
10
|
#
|
7
11
|
# @note This is not generally needed. The `rspec` command takes care
|
@@ -65,13 +69,13 @@ module RSpec
|
|
65
69
|
require 'rspec/core/drb'
|
66
70
|
begin
|
67
71
|
DRbRunner.new(options).run(err, out)
|
72
|
+
return
|
68
73
|
rescue DRb::DRbConnError
|
69
74
|
err.puts "No DRb server is running. Running in local process instead ..."
|
70
|
-
new(options).run(err, out)
|
71
75
|
end
|
72
|
-
else
|
73
|
-
new(options).run(err, out)
|
74
76
|
end
|
77
|
+
|
78
|
+
new(options).run(err, out)
|
75
79
|
end
|
76
80
|
|
77
81
|
def initialize(options, configuration=RSpec.configuration, world=RSpec.world)
|
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.4.
|
4
|
+
version: 3.4.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:
|
49
|
+
date: 2016-01-26 00:00:00.000000000 Z
|
50
50
|
dependencies:
|
51
51
|
- !ruby/object:Gem::Dependency
|
52
52
|
name: rspec-support
|
@@ -118,20 +118,6 @@ dependencies:
|
|
118
118
|
- - "~>"
|
119
119
|
- !ruby/object:Gem::Version
|
120
120
|
version: 0.6.2
|
121
|
-
- !ruby/object:Gem::Dependency
|
122
|
-
name: nokogiri
|
123
|
-
requirement: !ruby/object:Gem::Requirement
|
124
|
-
requirements:
|
125
|
-
- - "~>"
|
126
|
-
- !ruby/object:Gem::Version
|
127
|
-
version: '1.5'
|
128
|
-
type: :development
|
129
|
-
prerelease: false
|
130
|
-
version_requirements: !ruby/object:Gem::Requirement
|
131
|
-
requirements:
|
132
|
-
- - "~>"
|
133
|
-
- !ruby/object:Gem::Version
|
134
|
-
version: '1.5'
|
135
121
|
- !ruby/object:Gem::Dependency
|
136
122
|
name: coderay
|
137
123
|
requirement: !ruby/object:Gem::Requirement
|
@@ -310,6 +296,6 @@ rubyforge_project:
|
|
310
296
|
rubygems_version: 2.2.2
|
311
297
|
signing_key:
|
312
298
|
specification_version: 4
|
313
|
-
summary: rspec-core-3.4.
|
299
|
+
summary: rspec-core-3.4.2
|
314
300
|
test_files: []
|
315
301
|
has_rdoc:
|
metadata.gz.sig
CHANGED
Binary file
|