simplecov 0.18.3 → 0.18.4

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
  SHA256:
3
- metadata.gz: 8e154e20c4783b0bf086268b9ef996f2137e62db61e383ccb68e271b22e6ebb6
4
- data.tar.gz: b14b1151d5935267924bafa9abf436b1aa070bbd4839215abf883afa238f6fea
3
+ metadata.gz: 292aafbaf1d1e1907910e515b4c92dd05f869f7370cdc82eeb763795b46aae37
4
+ data.tar.gz: 3ec2c4d7fda0a09cdd1b82b9db5430fd3494fd0b366b2aeca9e66d4fc68e811f
5
5
  SHA512:
6
- metadata.gz: b5c87c16a29b4d6682f2dfeb4a24ce4027751c70fd7594c0651b1b66b5db2c274d458569d9342cdc7a7a03c5b52d5fd7261396748988a16bf23976d850bc7b12
7
- data.tar.gz: 87192405c9cf26f88bd59e609322ea8d7516174a22d99de2578e65ee5c916687ef09b0f5fdf7504dee2a58787319c47205a7b9a8286715d97e73917580238114
6
+ metadata.gz: 208645a01d3e939a088adfe158505a6a4462703b3218be1cff80e11290508d28edfb5fc2b8789a705911037de48af3938269a74a7291f6fe896c7a8d250e1c4d
7
+ data.tar.gz: 50834a4346792c0f6b696430a4ae032dbd51a4d14a3fd485d3f23c91aac1370cff0bddbffc0947df38ac94a9db6a0df568242653da8dfc51d2fdf826f08300e0
@@ -1,3 +1,12 @@
1
+ 0.18.4 (2020-02-24)
2
+ ===================
3
+
4
+ Another small bugfix release 🙈 Fixes SimpleCov running with rspec-rails, which was broken due to our fixed minitest integration.
5
+
6
+ ## Bugfixes
7
+ * SimpleCov will run again correctly when used with rspec-rails. The excellent bug report [#873](https://github.com/colszowka/simplecov/issues/873) by [@odlp](https://github.com/odlp) perfectly details what went wrong. Thanks to [@adam12](https://github.com/adam12) for the fix [#874](https://github.com/colszowka/simplecov/pull/874).
8
+
9
+
1
10
  0.18.3 (2020-02-23)
2
11
  ===========
3
12
 
@@ -4,6 +4,8 @@
4
4
  # https://github.com/seattlerb/minitest#writing-extensions
5
5
  module Minitest
6
6
  def self.plugin_simplecov_init(_options)
7
+ SimpleCov.external_at_exit = true
8
+
7
9
  Minitest.after_run do
8
10
  SimpleCov.at_exit_behavior if SimpleCov.respond_to?(:at_exit_behavior)
9
11
  end
@@ -27,6 +27,11 @@ module SimpleCov
27
27
  attr_accessor :pid
28
28
  attr_reader :exit_exception
29
29
 
30
+ # Basically, should we take care of at_exit behavior or something else?
31
+ # Used by the minitest plugin. See lib/minitest/simplecov_plugin.rb
32
+ attr_accessor :external_at_exit
33
+ alias external_at_exit? external_at_exit
34
+
30
35
  #
31
36
  # Sets up SimpleCov to run against your project.
32
37
  # You can optionally specify a profile to use as well as configuration with a block:
@@ -22,8 +22,7 @@ end
22
22
  SimpleCov::CommandGuesser.original_run_command = "#{$PROGRAM_NAME} #{ARGV.join(' ')}"
23
23
 
24
24
  at_exit do
25
- # Exit hook for Minitest defined in Minitest plugin
26
- next if defined?(Minitest)
25
+ next if SimpleCov.external_at_exit?
27
26
 
28
27
  SimpleCov.at_exit_behavior
29
28
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SimpleCov
4
- VERSION = "0.18.3"
4
+ VERSION = "0.18.4"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simplecov
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.18.3
4
+ version: 0.18.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christoph Olszowka
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-02-23 00:00:00.000000000 Z
11
+ date: 2020-02-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: docile
@@ -97,9 +97,9 @@ licenses:
97
97
  metadata:
98
98
  bug_tracker_uri: https://github.com/colszowka/simplecov/issues
99
99
  changelog_uri: https://github.com/colszowka/simplecov/blob/master/CHANGELOG.md
100
- documentation_uri: https://www.rubydoc.info/gems/simplecov/0.18.3
100
+ documentation_uri: https://www.rubydoc.info/gems/simplecov/0.18.4
101
101
  mailing_list_uri: https://groups.google.com/forum/#!forum/simplecov
102
- source_code_uri: https://github.com/colszowka/simplecov/tree/v0.18.3
102
+ source_code_uri: https://github.com/colszowka/simplecov/tree/v0.18.4
103
103
  post_install_message:
104
104
  rdoc_options: []
105
105
  require_paths: