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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 46e2d99ee5090f5c164222a9a5b2ab24419699aa
4
- data.tar.gz: 148fdca449079f69f78d4bf4ac5caf0427dcab24
3
+ metadata.gz: 0e63ddb3b6ca4d7f6e9ff8840a31920d58c8381f
4
+ data.tar.gz: 7be258c6e7b6bcab6570fc1a117511fe0c8070b2
5
5
  SHA512:
6
- metadata.gz: 46c485779addfd4ea66c4ea92afaa436fc4cd5f5a28da5272e60d816263263a82857577ed14476114fceb4a1f7022672c7459c6148bf7735995f2d7359f6e15d
7
- data.tar.gz: c70dd9ae7bc2b1a5769e4ccfed2272e13d313c2afad581fa083a9b9c0fbabe911347ed35e025734c372cae355e9bf2a85e6548f4dda083237bf4c5b96e673c65
6
+ metadata.gz: 8c4c1ec05fdcc0a7693346e32d320d8031be2e270f8d5cfd369d791e2a733ab39a6e6f867354c70d4b8bbf8bc722a841174101a309b46083892f1ef24c8432d6
7
+ data.tar.gz: 36af8dd8c5c4ffb1034f289dc6107e1e7c552cd6c74ca52c226a96e3279b8a00c3d2edc834b7d74bf1f5f311435f540d8d7c69389a00a3249efc1876a80b641b
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -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
 
@@ -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 = status
569
- self.finished_at = finished_at
570
- self.run_time = (finished_at - started_at).to_f
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
@@ -47,7 +47,9 @@ module RSpec
47
47
  return nil if line == '-e:1'.freeze
48
48
  line
49
49
  rescue SecurityError
50
+ # :nocov:
50
51
  nil
52
+ # :nocov:
51
53
  end
52
54
 
53
55
  # @private
@@ -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)
@@ -30,7 +30,7 @@ module RSpec
30
30
 
31
31
  def color_enabled_implementation
32
32
  @color_enabled_implementation ||= begin
33
- ::Kernel.require 'coderay'
33
+ require 'coderay'
34
34
  CodeRayImplementation
35
35
  rescue LoadError
36
36
  NoSyntaxHighlightingImplementation
@@ -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.4.1'
6
+ STRING = '3.4.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.4.1
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: 2015-11-19 00:00:00.000000000 Z
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.1
299
+ summary: rspec-core-3.4.2
314
300
  test_files: []
315
301
  has_rdoc:
metadata.gz.sig CHANGED
Binary file