deep-cover-core 1.0.0 → 1.1.0

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: 3b1e1b60b0998fa8c6f0d33fb890922467343e8360f2273dc4e49b2c9475a9a5
4
- data.tar.gz: 8ad12267d8abe699a2293c49e13903fa369e7bdcc6af1f6d8659d5de5c485d1f
3
+ metadata.gz: 7e54c0b378f86ce59192fb96bf48ab337224c393b0fd8001aca282e0cd6089b4
4
+ data.tar.gz: 0b2e4d4be1a54115f0246faf36aa3de60c9f223f615bf6346e183f502308dd80
5
5
  SHA512:
6
- metadata.gz: 23577ccba0bb134ca3d77657eae725bf64463c7129e6bc8cb489e775dd46c6884261878302daa15553c0e9c4b2376ceafbb45da01a5f46b152aa77154fa01b70
7
- data.tar.gz: f0e0941b543ab4e9d8d2f892e33c92efd3df8ecb697b7c0a0a96856e18171fc66d52f6269fe91889f2383528a48df375395e8cd355d8a228ffb534d04b817f78
6
+ metadata.gz: ec49f79fe4432b3bf3f70567561226c9834b7f456afe03f820a4ee1c25b52f770c8303e5869be09f55db8ab3361a44c25aa1facb6881a67d1276992d695c83e2
7
+ data.tar.gz: ef087d944754939b47106482ef6a9813783f5fb8f55608a45e27533fc2263fa9a965555f01f85618e7e41d8981c676515339f81300733e911b3adbee57851066
@@ -90,7 +90,7 @@ module DeepCover
90
90
  end
91
91
 
92
92
  def lookup_globs
93
- return @lookup_globs if @lookup_globs
93
+ return @lookup_globs if defined?(@lookup_globs) && @lookup_globs
94
94
  paths = Array(config.paths || :auto_detect).dup
95
95
  paths.concat(auto_detected_paths) if paths.delete(:auto_detect)
96
96
 
@@ -3,12 +3,12 @@
3
3
  module DeepCover
4
4
  bootstrap
5
5
 
6
- require_relative_dir 'coverage'
7
-
8
6
  # A collection of CoveredCode
9
7
  class Coverage
10
8
  include Enumerable
11
9
 
10
+ DeepCover.require_relative_dir 'coverage'
11
+
12
12
  def initialize
13
13
  @covered_code_per_path = {}
14
14
  end
@@ -13,6 +13,7 @@ module DeepCover
13
13
  def executed_loc_keys(*loc_keys)
14
14
  # #flatten allows passing an empty array to be explicit
15
15
  loc_keys = loc_keys.flatten
16
+ undef_method :executed_loc_keys
16
17
  define_method :executed_loc_keys do
17
18
  loc_keys
18
19
  end
@@ -11,6 +11,9 @@ module DeepCover
11
11
  def self.new(*args)
12
12
  Struct.new(*args, :options).tap do |klass|
13
13
  klass.include Initializer
14
+ class << klass
15
+ undef_method :new
16
+ end
14
17
  klass.define_singleton_method(:new, Class.method(:new))
15
18
  end
16
19
  end
@@ -3,5 +3,5 @@
3
3
  top_level_module = Thread.current['_deep_cover_top_level_module'] || Object
4
4
 
5
5
  module top_level_module::DeepCover # rubocop:disable Naming/ClassAndModuleCamelCase
6
- VERSION = '1.0.0'
6
+ VERSION = '1.1.0'
7
7
  end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deep-cover-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marc-André Lafortune
8
8
  - Maxime Lapointe
9
- autorequire:
9
+ autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2020-06-01 00:00:00.000000000 Z
12
+ date: 2021-01-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: parser
@@ -312,7 +312,7 @@ homepage: https://github.com/deep-cover/deep-cover
312
312
  licenses:
313
313
  - MIT
314
314
  metadata: {}
315
- post_install_message:
315
+ post_install_message:
316
316
  rdoc_options: []
317
317
  require_paths:
318
318
  - lib
@@ -327,8 +327,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
327
327
  - !ruby/object:Gem::Version
328
328
  version: '0'
329
329
  requirements: []
330
- rubygems_version: 3.1.2
331
- signing_key:
330
+ rubygems_version: 3.1.4
331
+ signing_key:
332
332
  specification_version: 4
333
333
  summary: In depth coverage of your Ruby code.
334
334
  test_files: []