deep-cover-core 0.7.3 → 0.7.4
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 603e2b385c1300a0de0cacb88c11f7217d4e980dcaff51155399213f75cf7f90
|
4
|
+
data.tar.gz: 43fb569eb81b540c91b95548995309ce8f98c4c71d3d8187121142f58f392c51
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b0462f47bfd1a5e95b963f0681dbae4432bdce6e1b21a4ec479900e21004954406f6e9a420212b47a0e7ab3cc13f867ef73d9bef06b4f0ba8638ee34c3a0492b
|
7
|
+
data.tar.gz: f92c1bdabdc19b35b39a3df5cd433c84ca1ad145dfe5cd6347f20f3eafbba305f4e8ac027cf5dc813018acb339fb46360377cba325abc9ffe33a350175c6560a
|
data/deep_cover_core.gemspec
CHANGED
@@ -38,8 +38,8 @@ Gem::Specification.new do |spec|
|
|
38
38
|
spec.add_runtime_dependency 'pry'
|
39
39
|
|
40
40
|
### Dev dependencies
|
41
|
-
spec.add_development_dependency 'bundler'
|
42
|
-
spec.add_development_dependency 'rake'
|
41
|
+
spec.add_development_dependency 'bundler'
|
42
|
+
spec.add_development_dependency 'rake'
|
43
43
|
spec.add_development_dependency 'rspec', '~> 3.0'
|
44
44
|
|
45
45
|
# About every single release breaks something
|
data/lib/deep_cover/base.rb
CHANGED
@@ -116,6 +116,9 @@ module DeepCover
|
|
116
116
|
#
|
117
117
|
# If no "tracked dirs" exist, fallback to everything in current directory except each of test/ spec/ bin/ exe/.
|
118
118
|
def auto_detected_paths
|
119
|
+
# When taking over, just go for everything
|
120
|
+
return ['.'] if DeepCover.const_defined?('TAKEOVER_IS_ON') && DeepCover::TAKEOVER_IS_ON
|
121
|
+
|
119
122
|
require_relative 'tools/looks_like_rails_project'
|
120
123
|
|
121
124
|
gemspec_paths = Dir['./*.gemspec'] + Dir['./*/*.gemspec']
|
@@ -5,6 +5,9 @@ require_relative 'coverage'
|
|
5
5
|
require_relative 'core_ext/coverage_replacement'
|
6
6
|
|
7
7
|
require 'coverage'
|
8
|
+
raise "Ruby's builtin coverage is already running, cannot do a takeover" if Coverage.respond_to?(:running?) && Coverage.running?
|
9
|
+
|
8
10
|
BuiltinCoverage = Coverage
|
9
11
|
Object.send(:remove_const, 'Coverage')
|
10
12
|
Coverage = DeepCover::CoverageReplacement.dup
|
13
|
+
DeepCover::TAKEOVER_IS_ON = true
|
@@ -167,7 +167,7 @@ module DeepCover
|
|
167
167
|
msg = "\nHTML coverage written to: '#{output}/index.html'"
|
168
168
|
end
|
169
169
|
end
|
170
|
-
`cd #{dir} && #{Istanbul.bin_path} report --reporter=text #{html}` + msg.to_s
|
170
|
+
`cd #{dir} && #{Istanbul.bin_path} report --exclude-after-remap=false --reporter=text #{html}` + msg.to_s
|
171
171
|
end
|
172
172
|
|
173
173
|
class << self
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module DeepCover
|
4
|
+
module Tools
|
5
|
+
module WithUnbundledEnv
|
6
|
+
extend self
|
7
|
+
# Bundler is changing from with_clean_env to with_unbundled_env in 2.0
|
8
|
+
def with_unbundled_env
|
9
|
+
if Bundler.respond_to?(:with_unbundled_env)
|
10
|
+
Bundler.with_unbundled_env { yield }
|
11
|
+
else
|
12
|
+
Bundler.with_clean_env { yield }
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
data/lib/deep_cover/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: deep-cover-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marc-André Lafortune
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2019-
|
12
|
+
date: 2019-05-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: parser
|
@@ -99,30 +99,30 @@ dependencies:
|
|
99
99
|
name: bundler
|
100
100
|
requirement: !ruby/object:Gem::Requirement
|
101
101
|
requirements:
|
102
|
-
- - "
|
102
|
+
- - ">="
|
103
103
|
- !ruby/object:Gem::Version
|
104
|
-
version: '
|
104
|
+
version: '0'
|
105
105
|
type: :development
|
106
106
|
prerelease: false
|
107
107
|
version_requirements: !ruby/object:Gem::Requirement
|
108
108
|
requirements:
|
109
|
-
- - "
|
109
|
+
- - ">="
|
110
110
|
- !ruby/object:Gem::Version
|
111
|
-
version: '
|
111
|
+
version: '0'
|
112
112
|
- !ruby/object:Gem::Dependency
|
113
113
|
name: rake
|
114
114
|
requirement: !ruby/object:Gem::Requirement
|
115
115
|
requirements:
|
116
|
-
- - "
|
116
|
+
- - ">="
|
117
117
|
- !ruby/object:Gem::Version
|
118
|
-
version: '
|
118
|
+
version: '0'
|
119
119
|
type: :development
|
120
120
|
prerelease: false
|
121
121
|
version_requirements: !ruby/object:Gem::Requirement
|
122
122
|
requirements:
|
123
|
-
- - "
|
123
|
+
- - ">="
|
124
124
|
- !ruby/object:Gem::Version
|
125
|
-
version: '
|
125
|
+
version: '0'
|
126
126
|
- !ruby/object:Gem::Dependency
|
127
127
|
name: rspec
|
128
128
|
requirement: !ruby/object:Gem::Requirement
|
@@ -290,6 +290,7 @@ files:
|
|
290
290
|
- lib/deep_cover/tools/slice.rb
|
291
291
|
- lib/deep_cover/tools/strip_heredoc.rb
|
292
292
|
- lib/deep_cover/tools/truncate_backtrace.rb
|
293
|
+
- lib/deep_cover/tools/with_unbundled_env.rb
|
293
294
|
- lib/deep_cover/version.rb
|
294
295
|
homepage: https://github.com/deep-cover/deep-cover
|
295
296
|
licenses:
|
@@ -310,7 +311,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
310
311
|
- !ruby/object:Gem::Version
|
311
312
|
version: '0'
|
312
313
|
requirements: []
|
313
|
-
rubygems_version: 3.0.
|
314
|
+
rubygems_version: 3.0.1
|
314
315
|
signing_key:
|
315
316
|
specification_version: 4
|
316
317
|
summary: In depth coverage of your Ruby code.
|