solargraph_test_coverage 0.2.1 → 0.2.2

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: 1038b1738247fe8ef8aa47e6675989d5d1e97e4e18c2f26fb9d6aafceca5f6a6
4
- data.tar.gz: 9893901996387356d5547b57aa4ebb787998845976c8d7ae067bba3985acf49e
3
+ metadata.gz: ecd6c766dce692dd3817bffae0044eb53f3a85b016865bc32e3a699f9e1c706f
4
+ data.tar.gz: ad27ec8345225e6d9538b6debdaf68ea0621ef810bc49f65dd321c4f62566753
5
5
  SHA512:
6
- metadata.gz: 28ab19d5bfe978d8783bfd03f584b49228cc0d06bf310d8c1b8e5cdc20815d077c8587b3faac1ec1d6ddce6b2f7e7af74ace67a91ca94c0125269536607cad15
7
- data.tar.gz: f91c21643e59dd1001712f2e62248adccb52a0032ac6d300177a7779e3283bddca769f67c24b307dcba8947b1b5279607c2e32e532bf1c44b11d419df064f5e7
6
+ metadata.gz: ee3a2a267a8afbe5f43e6ade8a267d6ea7ce320c06a04811cf5828a34771758f7720b97cfa0d1159f6abfe6f6139d4dccfa0101c8aed2c74332e9b6dc1a8e441
7
+ data.tar.gz: edc5b1ff123b4e22120146494bf0fad32a498d6fea12af00a53d1390f81f4cd693d158ae60da44edd489019b7fc85dfd05edbd58019631df6c068e7e9750d577
@@ -7,7 +7,7 @@ module SolargraphTestCoverage
7
7
  # @return [Boolean]
8
8
  #
9
9
  def exclude_file?(source_filename)
10
- return true if source_filename.start_with? test_path
10
+ return true if source_filename.start_with? Helpers.test_path
11
11
 
12
12
  Config.exclude_paths.each { |path| return true if source_filename.sub(Dir.pwd, '').include? path }
13
13
 
@@ -98,7 +98,6 @@ module SolargraphTestCoverage
98
98
  # calling Coverage.result after requiring stops and resets it.
99
99
  #
100
100
  # This is a bit experimental - I'm not sure if there will be downstream side-effects
101
- # from having Rails preloaded, but... we'll see :)
102
101
  #
103
102
  # @return [Boolean]
104
103
  #
@@ -118,7 +117,10 @@ module SolargraphTestCoverage
118
117
  false
119
118
  end
120
119
 
121
- def test_path
120
+ # Returns absolute path for test folder
121
+ # @return [String]
122
+ #
123
+ def self.test_path
122
124
  File.join(Dir.pwd, Config.test_dir)
123
125
  end
124
126
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SolargraphTestCoverage
4
- VERSION = '0.2.1'
4
+ VERSION = '0.2.2'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: solargraph_test_coverage
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cameron Kolkey