fast_cov 0.1.1 → 0.1.2
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 +4 -4
- data/ext/fast_cov/extconf.rb +1 -2
- data/lib/fast_cov/compiler.rb +5 -4
- data/lib/fast_cov/version.rb +1 -1
- data/lib/fast_cov.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 83bcd9a433c42d297c5103111f5724eb029b01110b8124dc566bc8644b74130d
|
|
4
|
+
data.tar.gz: 3c09ad793f367ba6830cbfeeaffeac347c0fd002c2fa95034c053fab3ac28b9a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: aa77da18cbaa2bfe2189589e98b5b4f3370a10a6900bb8d8bb1de770f2c70e7cf764e8908f6a7b8309a159a08754c4cf74b12c46f04217c77bf46e7980d49984
|
|
7
|
+
data.tar.gz: 49ff8a841ad380b9c3c8b8550c8d8c2bd919046aed2eaf0a1bd87612c2ae2c1dcda0967fb7c75eb9587ca8f67eb61ed3341e89c0efbce1a2c1988f4732ef9abf
|
data/ext/fast_cov/extconf.rb
CHANGED
data/lib/fast_cov/compiler.rb
CHANGED
|
@@ -7,7 +7,8 @@ require "digest/md5"
|
|
|
7
7
|
module FastCov
|
|
8
8
|
module Compiler
|
|
9
9
|
EXT_DIR = File.expand_path("../../ext/fast_cov", __dir__)
|
|
10
|
-
LIB_DIR = File.expand_path("
|
|
10
|
+
LIB_DIR = File.expand_path("..", __dir__) # lib/
|
|
11
|
+
FAST_COV_DIR = File.expand_path(".", __dir__) # lib/fast_cov/
|
|
11
12
|
|
|
12
13
|
def self.compile!
|
|
13
14
|
Dir.chdir(EXT_DIR) do
|
|
@@ -29,8 +30,7 @@ module FastCov
|
|
|
29
30
|
end
|
|
30
31
|
|
|
31
32
|
def self.extension_exists?
|
|
32
|
-
|
|
33
|
-
Dir.glob(File.join(LIB_DIR, "#{ext_name}.{bundle,so}")).any?
|
|
33
|
+
Dir.glob(File.join(FAST_COV_DIR, "fast_cov.{bundle,so}")).any?
|
|
34
34
|
end
|
|
35
35
|
|
|
36
36
|
def self.source_digest
|
|
@@ -40,7 +40,8 @@ module FastCov
|
|
|
40
40
|
end
|
|
41
41
|
|
|
42
42
|
def self.digest_path
|
|
43
|
-
|
|
43
|
+
# Keep version-specific so we recompile when switching Ruby versions
|
|
44
|
+
File.join(FAST_COV_DIR, ".source_digest.#{RUBY_VERSION}")
|
|
44
45
|
end
|
|
45
46
|
|
|
46
47
|
def self.write_digest
|
data/lib/fast_cov/version.rb
CHANGED
data/lib/fast_cov.rb
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
3
|
require_relative "fast_cov/version"
|
|
4
|
-
require "fast_cov/fast_cov
|
|
4
|
+
require "fast_cov/fast_cov"
|
|
5
5
|
require_relative "fast_cov/configuration"
|
|
6
6
|
require_relative "fast_cov/trackers/abstract_tracker"
|
|
7
7
|
require_relative "fast_cov/trackers/coverage_tracker"
|