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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 303b7253e77157e255ce3c98705a3eff2a006ab96cef2609453fbef88a37aad1
4
- data.tar.gz: 959d6135852c91e81da81df1a93e8f9d03264902266a714ea1cfa965975eacfa
3
+ metadata.gz: 83bcd9a433c42d297c5103111f5724eb029b01110b8124dc566bc8644b74130d
4
+ data.tar.gz: 3c09ad793f367ba6830cbfeeaffeac347c0fd002c2fa95034c053fab3ac28b9a
5
5
  SHA512:
6
- metadata.gz: 1c9f0b52cbf30bd1d34972eb1ed85c5def9f525ea39e3e4277800dcc783ebabba838d10fd4bad93f2b48fa1ccc9c658690951324980e387c5aa3d89a258b6076
7
- data.tar.gz: c32577257ea699df332cd2ea3f0bdb448771c008c356c7fb205dc5573e0ba09f35e05b9166e8ad68337160302e6931bf1dd3e3187962baa009f832282b332f29
6
+ metadata.gz: aa77da18cbaa2bfe2189589e98b5b4f3370a10a6900bb8d8bb1de770f2c70e7cf764e8908f6a7b8309a159a08754c4cf74b12c46f04217c77bf46e7980d49984
7
+ data.tar.gz: 49ff8a841ad380b9c3c8b8550c8d8c2bd919046aed2eaf0a1bd87612c2ae2c1dcda0967fb7c75eb9587ca8f67eb61ed3341e89c0efbce1a2c1988f4732ef9abf
@@ -8,5 +8,4 @@ end
8
8
 
9
9
  require "mkmf"
10
10
 
11
- # Tag with Ruby version + platform so multiple versions coexist in lib/fast_cov/.
12
- create_makefile("fast_cov.#{RUBY_VERSION}_#{RUBY_PLATFORM}")
11
+ create_makefile("fast_cov/fast_cov")
@@ -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("../fast_cov", __dir__)
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
- ext_name = "fast_cov.#{RUBY_VERSION}_#{RUBY_PLATFORM}"
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
- File.join(LIB_DIR, ".source_digest.#{RUBY_VERSION}_#{RUBY_PLATFORM}")
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FastCov
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.2"
5
5
  end
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.#{RUBY_VERSION}_#{RUBY_PLATFORM}"
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"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fast_cov
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ngan Pham